This commit is contained in:
那些花儿
2025-09-02 15:35:28 +08:00
parent 1531aea1d6
commit 7665726c84
51 changed files with 893 additions and 472 deletions
@@ -0,0 +1,46 @@
const flowMixins = {
created() {
this.$nextTick(async ()=>{
await httpVueLoader("/components/plugins/Guava.vue?v=" + new Date().getTime())()
this.checkFlowTask();
})
},
methods: {
checkFlowTask() {
const taskId = GetQueryString("taskId")
if (!taskId) return
// 如果是开始任务,用户自己处理(编辑、删除、撤销等等)
const taskKey = GetQueryString("taskKey")
if (taskKey === 'startTask') return;
// 增加loading动画
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
console.log(this.$refs)
console.log(this.$refs.guava)
// this.oepnAudit({})
//
//
// this.$axios.post(location.pathname + '/queryTask', {taskId}).then(res => {
// if (res.code === 0) {
// // 延迟1.5秒 显示loading动画 解决Guava异步加载 获取不到实例的问题
// setTimeout(() => {
// if (res.data.taskState === 10) {
// this.openAudit(res.data);
// } else {
// this.openView(res.data);
// }
// loading.close();
// }, 1500)
// }
// })
},
}
}