@@ -1,7 +1,16 @@
<script setup>
import { QingXiCheAndQvProcessEventStore } from "../event/store/QingXiCheAndQvProcessEventStore.js";
+import { computed, onMounted, onUnmounted, ref, watch } from "vue";
+// 监听某个参数发生变化
+watch(
+ () => QingXiCheAndQvProcessEventStore().obj.downTime,
+ (newVal, oldVal) => {
+
+ console.log("触发组件的UI下一步逻辑");
+ }
+)
// 定义发射给父组件的方法
const emits = defineEmits([
@@ -440,10 +440,12 @@ export class QingXiCheAndQvCarEventClick {
*/
downTimeEvent = () => {
+ let thisClass = this;
ElMessageBox.alert('恭喜你,完成了当前任务,请点击下一步继续', '提示', {
confirmButtonText: '下一步',
callback: (action) => {
-
+ thisClass.QingXiCheAndQvProcessEventStore.obj.downTime = "" + new Date().getTime();
},
});