diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue index f805d786..fb4a4596 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue @@ -35,7 +35,7 @@
*执行操作:
- + @@ -45,7 +45,7 @@
*恢复操作:
- + @@ -89,7 +89,8 @@ export default { }, provide() { return { - loadData: throttle(this.loadData, 1000) + // loadData: throttle(this.loadData, 100) + loadData: this.loadData } }, props: { @@ -238,7 +239,7 @@ export default { this.thirdFormData.push(action); } }) - console.log('secondFormData', this.secondFormData) + // console.log('secondFormData', this.secondFormData) }).catch((err) => { console.log(err) Message.error("查询事件预案列表失败", err); diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/formTable/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/formTable/index.vue index 5fd79f6e..b4375e75 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/formTable/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/formTable/index.vue @@ -41,7 +41,7 @@ :value="item.id"> - @@ -115,6 +115,7 @@ export default { props: { visible: Boolean, eventType: Number, + type: Number, tableData: { type: Array, default: () => [{ @@ -219,10 +220,21 @@ export default { index: 1 } }, - async created() { - let loadData = await this.loadData(1); - // console.log('aa',loadData) - this.sbOptions = loadData; + watch: { + async tableData(newValue) { + console.log('newValue', newValue) + if (newValue) { + const item = this.tableData.find(it => it.searchRule == 1); + console.log('item', item); + if (item && item.deviceType) { + let loadData = await this.loadData(item.deviceType); + console.log('aa', loadData) + this.sbOptions = loadData; + } + } + } + }, + mounted() { }, methods: { initData() {