fix : 修复功能
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="所属公司">
|
||||
<span>{{ formData.companyIds }}</span>
|
||||
<span>{{ getDataSourceOptionItem(formData.companyIds) }}</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
@@ -91,10 +91,12 @@ import OperationRender from '@/views/workflow/common/OperationRender.vue'
|
||||
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue'
|
||||
import {useProcessStore} from '@/stores/processStore.js';
|
||||
import {getInfo, agreeTask, rejectTask} from "@/api/project-demand/index.js";
|
||||
import {getSubCompOpt} from '@/api/user/user.js'
|
||||
|
||||
const route = useRoute()
|
||||
const form = ref();
|
||||
const processStore = useProcessStore()
|
||||
const companyOption = ref([])
|
||||
const processInstanceData = ref({})
|
||||
const processDiagramViewer = ref(false)
|
||||
const processTree = ref()
|
||||
@@ -119,11 +121,33 @@ const handleReject = () => {
|
||||
console.log(res)
|
||||
})
|
||||
}
|
||||
const getCompanyOption=async ()=>{
|
||||
const res = await getSubCompOpt()
|
||||
companyOption.value= res.data
|
||||
console.log('companyOption.value',companyOption.value)
|
||||
}
|
||||
const getDataSourceOptionItem = (val) => {
|
||||
console.log('val',val,companyOption.value)
|
||||
if(val!==undefined){
|
||||
|
||||
}
|
||||
// let arr=[]
|
||||
// console.log('arr',arr)
|
||||
// for (let item of companyOption.value) {
|
||||
// if (item.value === dataSourceId) {
|
||||
// return item.label;
|
||||
// }
|
||||
// }
|
||||
// return "";
|
||||
}
|
||||
const init = async () => {
|
||||
await getCompanyOption()
|
||||
getInfo(route.query.id).then(res => {
|
||||
let data = res.data
|
||||
formData.value = data.formData;
|
||||
if(data.formData.companyIds.length!==0){
|
||||
|
||||
}
|
||||
processInstanceData.value = data
|
||||
processStore.setDesign(data)
|
||||
processStore.runningList.value = data.runningList;
|
||||
|
||||
Reference in New Issue
Block a user