|
@@ -102,6 +102,8 @@
|
|
|
@change='treeConfirmDevice'
|
|
|
:hideClear='true'
|
|
|
:lastStage='true'
|
|
|
+ :selectedIds='InfosList'
|
|
|
+ :notNull='true'
|
|
|
/>
|
|
|
</span>
|
|
|
<TreeSelect
|
|
@@ -115,7 +117,7 @@
|
|
|
@change='treeConfirm'
|
|
|
@focusChange='focusChange'
|
|
|
:hideClear='true'
|
|
|
- :selectedIds='selectedIds'
|
|
|
+ :selectedIds='InfoTypeIdList'
|
|
|
:lastStage='true'
|
|
|
/>
|
|
|
</div>
|
|
@@ -197,15 +199,14 @@ export default {
|
|
|
|
|
|
// majorList: [], //专业
|
|
|
deviceList: [],
|
|
|
- key: 1
|
|
|
- }
|
|
|
- },
|
|
|
- props: ['ruleForm', 'title'],
|
|
|
- computed: {
|
|
|
- form() {
|
|
|
- console.log(this.ruleForm)
|
|
|
+ key: 1,
|
|
|
+ InfoLocals: undefined, //工程信息化
|
|
|
+ // InfoSystems: undefined, //工程信息化专业/系统
|
|
|
+ InfoTypeIds: undefined //铺位可视化typeid
|
|
|
}
|
|
|
},
|
|
|
+ props: ['ruleForm', 'title', 'InfosList', 'InfoTypeIdList'],
|
|
|
+
|
|
|
methods: {
|
|
|
//业下设备分类和位置分类树形结构
|
|
|
initQueryDeviceAndPOsition() {
|
|
@@ -215,7 +216,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleRemove(file, fileList) {
|
|
|
- console.log(file, fileList, 'file')
|
|
|
+ // console.log(file, fileList, 'file')
|
|
|
this.ruleForm.Url = ''
|
|
|
},
|
|
|
getFile(file) {
|
|
@@ -266,7 +267,7 @@ export default {
|
|
|
let postParams = {
|
|
|
Content: [this.ruleForm]
|
|
|
}
|
|
|
- this.ruleForm.InfoSystem = this.ruleForm.InfoSystems ? this.ruleForm.InfoSystems : this.ruleForm.InfoSystem
|
|
|
+
|
|
|
updateLegend({ postParams }).then(res => {
|
|
|
if (res.Result == 'success') {
|
|
|
this.$message.success('图例修改成功!')
|
|
@@ -373,7 +374,6 @@ export default {
|
|
|
break
|
|
|
}
|
|
|
var hex = '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1) + opacity
|
|
|
- console.log(hex, 'hrc')
|
|
|
return hex
|
|
|
},
|
|
|
// 背景颜色改变
|
|
@@ -457,20 +457,26 @@ export default {
|
|
|
|
|
|
//位置/设备
|
|
|
treeConfirmDevice(id, info) {
|
|
|
+ console.log(id)
|
|
|
// this.$set(this.ruleForm, 'InfoLocal', data)
|
|
|
let InfoSystem = []
|
|
|
let InfoLocal = []
|
|
|
- for (let i = 0; i < info.length; i++) {
|
|
|
- let type = info[i]
|
|
|
- if (type.name.includes('/')) {
|
|
|
- InfoLocal.push(type)
|
|
|
- //位置/设备
|
|
|
- this.$set(this.ruleForm, 'InfoLocal', InfoLocal)
|
|
|
- } else {
|
|
|
- InfoSystem.push(type)
|
|
|
- //专业
|
|
|
- this.$set(this.ruleForm, 'InfoSystem', InfoSystem)
|
|
|
+ if (info && info.length > 0) {
|
|
|
+ for (let i = 0; i < info.length; i++) {
|
|
|
+ let type = info[i]
|
|
|
+ if (type.name.includes('/')) {
|
|
|
+ InfoLocal.push(type)
|
|
|
+ //位置/设备
|
|
|
+ this.$set(this.ruleForm, 'InfoLocal', InfoLocal)
|
|
|
+ } else {
|
|
|
+ InfoSystem.push(type)
|
|
|
+ //专业
|
|
|
+ this.$set(this.ruleForm, 'InfoSystem', InfoSystem)
|
|
|
+ }
|
|
|
}
|
|
|
+ } else {
|
|
|
+ this.$set(this.ruleForm, 'InfoLocal', [])
|
|
|
+ this.$set(this.ruleForm, 'InfoSystem', [])
|
|
|
}
|
|
|
},
|
|
|
focusChange(status) {
|