feat : workflow前端内容检查
This commit is contained in:
@@ -66,11 +66,9 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="jsx">
|
||||
import {getInitiateInfo} from "@/api/workflow/process-definition.js";
|
||||
import {useTagsView} from '@/stores/tagsview.js'
|
||||
import {useAuthStore} from '@/stores/userstore.js'
|
||||
import {ElLoading, ElMessage, ElNotification} from 'element-plus';
|
||||
import {getMenuList} from '@/api/system/menuman.js'
|
||||
import {getWorkflowInfo} from "@/api/project-demand/index.js";
|
||||
import FileUpload from "../../../components/FileUpload.vue";
|
||||
|
||||
@@ -181,22 +179,12 @@ const init = () => {
|
||||
console.log("asdasdasd")
|
||||
getWorkflowInfo().then(res => {
|
||||
console.log('res', res)
|
||||
})
|
||||
}
|
||||
const getTree = async () => {
|
||||
getInitiateInfo('pronode_46c5e446-b4d1-495e-a97d-40667fa6aa9f').then(res => {
|
||||
console.log('res11', res)
|
||||
// processDefinition.value = res.data;
|
||||
//构建表单及校验规则
|
||||
processStore.setDesign(res.data)
|
||||
nextTick(() => {
|
||||
processTree.value.init()
|
||||
})
|
||||
}).catch(err => {
|
||||
ElMessage.error(err);
|
||||
});
|
||||
})
|
||||
}
|
||||
getTree()
|
||||
const handleSubmit = async () => {
|
||||
// const loading = ElLoading.service({fullscreen: true})
|
||||
// const {isValidate} = await form.value.validate()
|
||||
|
||||
@@ -36,6 +36,8 @@ const valid = ref(true)
|
||||
let vNode = {}
|
||||
|
||||
const init = () => {
|
||||
|
||||
console.log("sdsdsdsdsdsdsd",processStore.getProcess())
|
||||
processStore.init()
|
||||
initMapping(processStore.getProcess())
|
||||
// 定义类名(可忽略)
|
||||
|
||||
@@ -155,7 +155,7 @@ const conditionList = computed(() => {
|
||||
// if (conditionItems.length === 0 || conditionItems[0].id !== 'root') {
|
||||
// conditionItems.unshift({id: 'root', title: '发起人', valueType: 'User'})
|
||||
// }
|
||||
conditionItems.unshift({id: 'root', title: '发起人', valueType: 'User'})
|
||||
// conditionItems.unshift({id: 'root', title: '发起人', valueType: 'User'})
|
||||
return conditionItems
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user