|
@@ -51,6 +51,7 @@ SonarComRes.find().resJson["mp4_demo"] = new URL("./assets/mp4/demo.mp4", import
|
|
// 定义发射给父组件的方法
|
|
// 定义发射给父组件的方法
|
|
const emits = defineEmits([
|
|
const emits = defineEmits([
|
|
'callbackDownWell',
|
|
'callbackDownWell',
|
|
|
|
+ 'callbackProcessUpdate',
|
|
])
|
|
])
|
|
|
|
|
|
|
|
|
|
@@ -63,6 +64,14 @@ const callbackDownWellEvent = (bool) => {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * 每次进入流程回调
|
|
|
|
+ * db
|
|
|
|
+ */
|
|
|
|
+const callbackProcessUpdateEvent = (db) => {
|
|
|
|
+ emits('callbackProcessUpdate', db);
|
|
|
|
+}
|
|
|
|
+
|
|
watch(
|
|
watch(
|
|
() => SonarMyThreeWorldStore().loadSuccess,
|
|
() => SonarMyThreeWorldStore().loadSuccess,
|
|
(newVal, oldVal) => {
|
|
(newVal, oldVal) => {
|
|
@@ -169,6 +178,11 @@ const ProcessInit = () => {
|
|
SonarEvent.find().callbackDownWell = function(bool) {
|
|
SonarEvent.find().callbackDownWell = function(bool) {
|
|
callbackDownWellEvent(bool);
|
|
callbackDownWellEvent(bool);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ // 每次进入流程进行回调
|
|
|
|
+ SonarEvent.find().callbackProcessUpdateEvent = function(res) {
|
|
|
|
+ callbackProcessUpdateEvent(res);
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|