Browse Source

执行后跳到详情

master
maochaoying 2 years ago
parent
commit
a1429c29ae
  1. 5
      src/components/Formula.vue
  2. 6
      src/pages/Home.vue

5
src/components/Formula.vue

@ -128,6 +128,9 @@ const props = defineProps({
changeTab: {
type: Function,
},
changeShowOperator: {
type: Function,
},
})
const webSocketStore = useWebSocketStore()
@ -149,7 +152,6 @@ const isUpdatePreSettingVisible = ref(false)
const formulaInfo = ref({})
const showUpdateSetting = item => {
formulaInfo.value = item
console.log(item)
formulaStore.updateCurrentFormula(item)
isUpdatePreSettingVisible.value = true
}
@ -168,6 +170,7 @@ const runConfig = item => {
formulaStore.updateCurrentFormula(item)
webSocketStore.sendCommandMsg(startFormulaJSON(item.id))
props.changeTab(1)
props.changeShowOperator(false)
}
const addNewPre = () => {

6
src/pages/Home.vue

@ -220,7 +220,11 @@
"
/>
<Audit v-if="activeTab == 6" />
<Formula v-if="activeTab == 7" :changeTab="changeTab" />
<Formula
v-if="activeTab == 7"
:changeTab="changeTab"
:changeShowOperator="changeShowOperator"
/>
<div class="other_info">
<p class="ip">IP {{ settingStore.deviceIp }}</p>
<div class="time_wrap">

Loading…
Cancel
Save