|
@@ -37,6 +37,7 @@
|
|
|
:formReadOnly="formReadOnly"
|
|
|
v-if="formType === '2'"
|
|
|
:class="formReadOnly ? 'readonly' : ''"
|
|
|
+ :status="'taskFormDetail'"
|
|
|
ref="form"
|
|
|
:businessId="businessId"
|
|
|
:is="form"
|
|
@@ -87,6 +88,7 @@ import FlowTimeLine from "@/views/flowable/components/FlowTimeLine.vue";
|
|
|
import taskService from "@/api/flowable/taskService.js";
|
|
|
import formService from "@/api/flowable/formService.js";
|
|
|
import processService from "@/api/flowable/processService.js";
|
|
|
+import { shallowRef } from 'vue'
|
|
|
export default {
|
|
|
activated() {
|
|
|
this.init();
|
|
@@ -100,7 +102,8 @@ export default {
|
|
|
Object.keys(modules).forEach((path) => {
|
|
|
const dir = path.split("views")[1].split(".vue")[0];
|
|
|
if (dir === this.formUrl) {
|
|
|
- this.form = modules[path].default;
|
|
|
+ // this.form = modules[path].default;
|
|
|
+ this.form = shallowRef(modules[path].default);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -164,6 +167,15 @@ export default {
|
|
|
this.businessId = this.$route.query.businessId;
|
|
|
this.procInsId = this.$route.query.procInsId;
|
|
|
this.formReadOnly = true;
|
|
|
+
|
|
|
+ let _this = this
|
|
|
+ setTimeout(function () {
|
|
|
+ try {
|
|
|
+ _this.$refs.form.getKeyWatch(Math.random().toString())
|
|
|
+ } catch (e) {
|
|
|
+ console.log(e)
|
|
|
+ }
|
|
|
+ }, 500)
|
|
|
},
|
|
|
},
|
|
|
data() {
|