|
@@ -273,7 +273,7 @@ export default {
|
|
|
websiteTag_arr_id: [], //站点标识下拉id only
|
|
|
|
|
|
websiteTag_reg: "",
|
|
|
- sszq: "", //站点标识下拉id
|
|
|
+ sszq: [], //站点标识下拉id
|
|
|
|
|
|
|
|
|
|
|
@@ -465,9 +465,9 @@ export default {
|
|
|
this.$message.warning(`当前限制选择 30 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
|
|
|
},
|
|
|
beforeRemove(file, fileList) {
|
|
|
- console.log('file, fileList',file, fileList);
|
|
|
- for(let item of fileList){
|
|
|
- this.form.other = this.form.other.filter(item => item !== file.url);
|
|
|
+ console.log('file, fileList', file, fileList);
|
|
|
+ for (let item of fileList) {
|
|
|
+ this.form.other = this.form.other.filter(item => item !== file.url);
|
|
|
}
|
|
|
return this.$confirm(`确定移除 ${file.name}?`);
|
|
|
},
|
|
@@ -588,11 +588,11 @@ export default {
|
|
|
}
|
|
|
this.webSiteList.push(data)
|
|
|
}
|
|
|
- //如果有数据可以回显
|
|
|
- if (userWebList) {
|
|
|
- console.log("显示编辑用户的所属网站!")
|
|
|
- this.form.sszq = userWebList;
|
|
|
- }
|
|
|
+ // //如果有数据可以回显
|
|
|
+ // if (userWebList) {
|
|
|
+ // console.log("显示编辑用户的所属网站!")
|
|
|
+ // this.form.sszq = userWebList;
|
|
|
+ // }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -696,7 +696,11 @@ export default {
|
|
|
//this.form.city_arr_id = JSON.parse(this.form.address_arr_id);
|
|
|
|
|
|
//数组转换为数字
|
|
|
- this.form.sszq = this.form.sszq[0]
|
|
|
+ if (typeof (this.form.sszq) == 'number') {
|
|
|
+ this.form.sszq = this.form.sszq
|
|
|
+ } else {
|
|
|
+ this.form.sszq = this.form.sszq[0]
|
|
|
+ }
|
|
|
|
|
|
//2.设置修改的用户id
|
|
|
this.form.id = this.editId;
|