|
@@ -152,14 +152,14 @@
|
|
|
setTimeout(() => {
|
|
|
this.visible = false;
|
|
|
this.loading = false;
|
|
|
- let lists = [];
|
|
|
+ const lists = [];
|
|
|
let arr = [];
|
|
|
arr = JSON.parse(JSON.stringify( this.arrList))
|
|
|
arr.map(item =>{
|
|
|
lists.push({id:item.location||item.assetnum,name:item.wzjc||item.sbjc})
|
|
|
})
|
|
|
bus.$emit('changeAttachObjectIds',lists)
|
|
|
-
|
|
|
+ bus.$emit('updateAttachMsg',lists)
|
|
|
}, 3000);
|
|
|
},
|
|
|
handleCancel(e) {
|
|
@@ -193,7 +193,7 @@
|
|
|
},
|
|
|
//获取表格数据
|
|
|
queryGlsmsasset(){
|
|
|
- let data = {
|
|
|
+ const data = {
|
|
|
plazaId: getUrlMsg().projectId,//广场id 必填
|
|
|
page: this.page,//页数
|
|
|
size: this.size,//条数
|
|
@@ -201,8 +201,8 @@
|
|
|
if( this.keyword){
|
|
|
data.keyword = this.typeEdit=='Image'? `${this.keyword}:brand`:`${this.keyword}:wzjc`
|
|
|
}
|
|
|
- let paramData = {classstructureid: this.classstructureid,gname:this.floorId};
|
|
|
- let paramDataLocal = {locfl: this.locfl,gname:this.floorId};
|
|
|
+ const paramData = {classstructureid: this.classstructureid,gname:this.floorId};
|
|
|
+ const paramDataLocal = {locfl: this.locfl,gname:this.floorId};
|
|
|
this.loading = true;
|
|
|
if(this.typeEdit=='Image'){
|
|
|
queryGlsmsasset(data,paramData).then(res => {
|
|
@@ -210,7 +210,7 @@
|
|
|
if(res.data.result == 'success'){
|
|
|
this.total = res.data.count;
|
|
|
if(res.data.data){
|
|
|
- let data = res.data.data;
|
|
|
+ const data = res.data.data;
|
|
|
data.map(item=>{
|
|
|
item.id = item.sbjbm
|
|
|
})
|
|
@@ -265,7 +265,7 @@
|
|
|
return false;
|
|
|
}
|
|
|
this.arrList = [...this.arrList,...selectedRows]
|
|
|
- let obj = {}
|
|
|
+ const obj = {}
|
|
|
if(this.typeEdit=='Zone'){
|
|
|
this.arrList = this.arrList.reduce (function(item,next){
|
|
|
obj[next.location] ? ' ' : obj[next.location] = true && item.push(next)
|
|
@@ -295,12 +295,12 @@
|
|
|
},
|
|
|
//获取楼层
|
|
|
getPlazaFloor(){
|
|
|
- let data = {
|
|
|
+ const data = {
|
|
|
plazaId:getUrlMsg().projectId
|
|
|
}
|
|
|
getPlazaFloor(data).then(res =>{
|
|
|
if(res.result == 'success'){
|
|
|
- let data = res.data;
|
|
|
+ const data = res.data;
|
|
|
data.map(item=>{
|
|
|
item.id = item.gname;
|
|
|
})
|
|
@@ -314,7 +314,7 @@
|
|
|
getQuerySmsxt({}).then(res =>{
|
|
|
if(res.result == 'success'){
|
|
|
if(res.data){
|
|
|
- let data = res.data;
|
|
|
+ const data = res.data;
|
|
|
data.map(item=>{
|
|
|
item.id = item.code;
|
|
|
item.name = item.name;
|
|
@@ -328,7 +328,7 @@
|
|
|
queryWzfldl({}).then(res =>{
|
|
|
if(res.result == 'success'){
|
|
|
if(res.data){
|
|
|
- let data = res.data;
|
|
|
+ const data = res.data;
|
|
|
data.map(item=>{
|
|
|
item.id = item.dl;
|
|
|
item.name = item.dl;
|
|
@@ -343,13 +343,13 @@
|
|
|
// 获取设备大类下的分类和位置大类下的分类
|
|
|
getQuerySmsxtBy(smsxt){
|
|
|
if(this.typeEdit=='Image'){
|
|
|
- let data = {
|
|
|
+ const data = {
|
|
|
smsxt:smsxt
|
|
|
}
|
|
|
getQuerySmsxtBy(data,{}).then(res =>{
|
|
|
if(res.result == 'success') {
|
|
|
if(res.data){
|
|
|
- let data = res.data;
|
|
|
+ const data = res.data;
|
|
|
(function recursion(newObj) {
|
|
|
newObj.map(item=>{
|
|
|
item.label = item.gcxxhxtname || item.classqc;
|
|
@@ -368,13 +368,13 @@
|
|
|
}
|
|
|
})
|
|
|
}else if(this.typeEdit=='Zone'){
|
|
|
- let data = {
|
|
|
+ const data = {
|
|
|
dl:smsxt
|
|
|
}
|
|
|
queryWzflByDl(data,{}).then(res =>{
|
|
|
if(res.result == 'success') {
|
|
|
if(res.data){
|
|
|
- let data = res.data;
|
|
|
+ const data = res.data;
|
|
|
(function recursion(newObj) {
|
|
|
newObj.map(item=>{
|
|
|
item.label = item.name;
|