|
@@ -330,6 +330,8 @@ export default {
|
|
|
if (this.mess.deviceId) {
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.cascader.setValue([this.mess.deviceId])
|
|
|
+ this.addData.Family = this.mess.deviceId
|
|
|
+ this.numParams.Family = this.mess.deviceId
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@@ -348,6 +350,9 @@ export default {
|
|
|
toAddbyDie() {
|
|
|
if (this.addData.Family) {
|
|
|
this.showAddByDie = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.dieCascader.getAllData()
|
|
|
+ })
|
|
|
} else {
|
|
|
this.$message("请选择设备族")
|
|
|
}
|
|
@@ -377,6 +382,7 @@ export default {
|
|
|
let param = this.formatFilter()
|
|
|
createPropertys(param, res => {
|
|
|
this.myDialog.addDevice = false
|
|
|
+ this.$emit('getJson',{code: this.numParams.Family})
|
|
|
this.$message.success("创建成功!")
|
|
|
})
|
|
|
},
|