|
@@ -155,64 +155,7 @@ export default {
|
|
let benchId = this.bench.id;
|
|
let benchId = this.bench.id;
|
|
var strRemoteBenchList = window.localStorage.getItem('remoteBenchList');
|
|
var strRemoteBenchList = window.localStorage.getItem('remoteBenchList');
|
|
var objRBL = JSON.parse(strRemoteBenchList);
|
|
var objRBL = JSON.parse(strRemoteBenchList);
|
|
- if (objRBL && objRBL.length>0) {
|
|
|
|
- var bExist = false;
|
|
|
|
- for(var i = 0; i< objRBL.length;i++)
|
|
|
|
- {
|
|
|
|
- if(objRBL[i] == benchId)
|
|
|
|
- {
|
|
|
|
- bExist = true;
|
|
|
|
- if(objRBL.length == 1)
|
|
|
|
- {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: '/',
|
|
|
|
- query:{
|
|
|
|
- m: '8b934420_ZJUb_b6f9',
|
|
|
|
- benchid: benchId
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- this.$store.dispatch('common/setSquareStatus', false)
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: '/',
|
|
|
|
- query:{
|
|
|
|
- m: '8b934420_ZJUb_b6f9'
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- this.$store.dispatch('common/setSquareStatus', true)
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if(bExist == false)
|
|
|
|
- {
|
|
|
|
- objRBL.push(benchId);
|
|
|
|
- window.localStorage.setItem('remoteBenchList',JSON.stringify(objRBL));
|
|
|
|
- this.$router.push({
|
|
|
|
- path: '/',
|
|
|
|
- query:{
|
|
|
|
- m: '8b934420_ZJUb_b6f9'
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- this.$store.dispatch('common/setSquareStatus', true)
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- var rml= [];
|
|
|
|
- rml.push(benchId);
|
|
|
|
- window.localStorage.setItem('remoteBenchList',JSON.stringify(rml));
|
|
|
|
- this.$router.push({
|
|
|
|
- path: '/',
|
|
|
|
- query:{
|
|
|
|
- m: '8b934420_ZJUb_b6f9',
|
|
|
|
- benchid: benchId
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- this.$store.dispatch('common/setSquareStatus', false)
|
|
|
|
- }
|
|
|
|
|
|
+ this.$emit('changeCurrentBench', benchId)
|
|
},
|
|
},
|
|
routerToBmt(){
|
|
routerToBmt(){
|
|
window.open("http://106.14.237.165/task/ticket/set?tab=1", "_blank");
|
|
window.open("http://106.14.237.165/task/ticket/set?tab=1", "_blank");
|