合并
This commit is contained in:
@ -50,7 +50,7 @@
|
||||
<div class="p-4">
|
||||
<p class="text-gray-600 mb-4">请选择要启动的流程:</p>
|
||||
<el-select v-model="flowCode" placeholder="请选择流程" style="width: 100%">
|
||||
<el-option v-for="item in flowCodeOptions" :key="item.value" :label="item.label" :value="item.value" />
|
||||
<el-option v-for="item in [flowCodeOptions[optionIndex]]" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</div>
|
||||
<template #footer>
|
||||
@ -98,6 +98,7 @@ const flowCodeOptions = ref([
|
||||
label: '资金设计变更审批'
|
||||
}
|
||||
]);
|
||||
const optionIndex = ref<number>(0);
|
||||
|
||||
const flowCode = ref<string>('');
|
||||
const status = ref<string>('');
|
||||
@ -272,12 +273,12 @@ const submit = async (status, data) => {
|
||||
} else {
|
||||
if ((form.value.status === 'draft' && (flowCode.value === '' || flowCode.value === null)) || routeParams.value.type === 'add') {
|
||||
if (form.value.costEstimation == '0') {
|
||||
flowCodeOptions.value = [flowCodeOptions.value[0]];
|
||||
optionIndex.value = 0;
|
||||
} else {
|
||||
console.log('🚀 ~ submit ~ flowCodeOptions.value:', flowCodeOptions.value[1]);
|
||||
flowCodeOptions.value = [flowCodeOptions.value[1]];
|
||||
optionIndex.value = 1;
|
||||
}
|
||||
flowCode.value = flowCodeOptions.value[0].value;
|
||||
flowCode.value = flowCodeOptions.value[optionIndex.value].value;
|
||||
dialogVisible.visible = true;
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user