|
@@ -201,7 +201,7 @@ export default {
|
|
view: null,
|
|
view: null,
|
|
scene: null,
|
|
scene: null,
|
|
typeVisualization: [],
|
|
typeVisualization: [],
|
|
- visualizationList: [], //已选铺位可视化
|
|
|
|
|
|
+
|
|
majorList: [], //专业
|
|
majorList: [], //专业
|
|
deviceList: []
|
|
deviceList: []
|
|
}
|
|
}
|
|
@@ -210,7 +210,6 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
getFile(file) {
|
|
getFile(file) {
|
|
this.file = file.file
|
|
this.file = file.file
|
|
- console.log(file)
|
|
|
|
var formData = new FormData()
|
|
var formData = new FormData()
|
|
formData.append('file', file.file)
|
|
formData.append('file', file.file)
|
|
if (this.ruleForm.Url) {
|
|
if (this.ruleForm.Url) {
|
|
@@ -218,7 +217,6 @@ export default {
|
|
}
|
|
}
|
|
let postParams = formData
|
|
let postParams = formData
|
|
uploadImg({ postParams }).then(res => {
|
|
uploadImg({ postParams }).then(res => {
|
|
- console.log(res)
|
|
|
|
if (res.Result == 'success') {
|
|
if (res.Result == 'success') {
|
|
this.$set(this.ruleForm, 'Url', res.EntityList[0])
|
|
this.$set(this.ruleForm, 'Url', res.EntityList[0])
|
|
this.$message.success('图标上传成功!')
|
|
this.$message.success('图标上传成功!')
|
|
@@ -232,7 +230,6 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
createLegend({ postParams }).then(res => {
|
|
createLegend({ postParams }).then(res => {
|
|
- console.log(res)
|
|
|
|
if (res.Result == 'success') {
|
|
if (res.Result == 'success') {
|
|
this.$message.success('添加图例成功!')
|
|
this.$message.success('添加图例成功!')
|
|
this.$emit('addSuccess')
|
|
this.$emit('addSuccess')
|
|
@@ -322,14 +319,6 @@ export default {
|
|
//线条宽度
|
|
//线条宽度
|
|
changeLineWidth(val) {
|
|
changeLineWidth(val) {
|
|
this.$set(this.ruleForm, 'LineWidth', val)
|
|
this.$set(this.ruleForm, 'LineWidth', val)
|
|
- // this.linepxObject = val && this.linepxOption.find(item => item.id == val)
|
|
|
|
- // if (this.$refs.select && this.$refs.select.$el) {
|
|
|
|
- // this.$refs.select.$el.children[0].children[0].setAttribute(
|
|
|
|
- // 'style',
|
|
|
|
- // 'background:url(' + this.linepxObject.src + ') center center no-repeat;color:transparent;'
|
|
|
|
- // )
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
if (this.view) {
|
|
if (this.view) {
|
|
this.view.lineWidth = Number(val)
|
|
this.view.lineWidth = Number(val)
|
|
}
|
|
}
|
|
@@ -374,18 +363,17 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // 多选返回的id组
|
|
|
|
|
|
+ // 铺位可视化
|
|
treeConfirm(data) {
|
|
treeConfirm(data) {
|
|
- console.log(data, 'data')
|
|
|
|
- this.visualizationList = data
|
|
|
|
|
|
+ this.$set(this.ruleForm, 'InfoTypeId', data)
|
|
},
|
|
},
|
|
//专业
|
|
//专业
|
|
treeConfirmMajor(id, info) {
|
|
treeConfirmMajor(id, info) {
|
|
- console.log(id)
|
|
|
|
|
|
+ this.$set(this.ruleForm, 'InfoSystem', data)
|
|
},
|
|
},
|
|
//位置/设备
|
|
//位置/设备
|
|
treeConfirmDevice(id, info) {
|
|
treeConfirmDevice(id, info) {
|
|
- console.log(id)
|
|
|
|
|
|
+ this.$set(this.ruleForm, 'InfoLocal', data)
|
|
},
|
|
},
|
|
focusChange(status) {
|
|
focusChange(status) {
|
|
// console.log('focusChange', status)
|
|
// console.log('focusChange', status)
|