|
@@ -101,6 +101,7 @@
|
|
|
:data='deviceList'
|
|
|
@change='treeConfirmDevice'
|
|
|
:hideClear='true'
|
|
|
+ :lastStage='true'
|
|
|
/>
|
|
|
</span>
|
|
|
<TreeSelect
|
|
@@ -115,6 +116,7 @@
|
|
|
@focusChange='focusChange'
|
|
|
:hideClear='true'
|
|
|
:selectedIds='selectedIds'
|
|
|
+ :lastStage='true'
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -199,6 +201,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
props: ['ruleForm', 'title'],
|
|
|
+ computed: {
|
|
|
+ form() {
|
|
|
+ console.log(this.ruleForm)
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
//业下设备分类和位置分类树形结构
|
|
|
initQueryDeviceAndPOsition() {
|
|
@@ -259,6 +266,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('图例修改成功!')
|
|
@@ -294,17 +302,6 @@ export default {
|
|
|
},
|
|
|
//rgba转成16进制
|
|
|
hexify(color) {
|
|
|
- console.log(color, 'color')
|
|
|
- // var values = color
|
|
|
- // .replace(/rgba?\(/, '')
|
|
|
- // .replace(/\)/, '')
|
|
|
- // .replace(/[\s+]/g, '')
|
|
|
- // .split(',')
|
|
|
- // var a = parseFloat(values[3] || 1),
|
|
|
- // r = Math.floor(a * parseInt(values[0]) + (1 - a) * 255),
|
|
|
- // g = Math.floor(a * parseInt(values[1]) + (1 - a) * 255),
|
|
|
- // b = Math.floor(a * parseInt(values[2]) + (1 - a) * 255),
|
|
|
- // opacity = ''
|
|
|
var opacity = ''
|
|
|
var rgb = color.split(',')
|
|
|
var r = parseInt(rgb[0].split('(')[1])
|
|
@@ -378,8 +375,6 @@ export default {
|
|
|
var hex = '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1) + opacity
|
|
|
console.log(hex, 'hrc')
|
|
|
return hex
|
|
|
-
|
|
|
- // return '#' + ('0' + r.toString(16)).slice(-2) + ('0' + g.toString(16)).slice(-2) + ('0' + b.toString(16)).slice(-2) + opacity
|
|
|
},
|
|
|
// 背景颜色改变
|
|
|
changBgColor(val) {
|