feat: 流程类型筛选改从后端字典接口加载(保留静态兜底)

This commit is contained in:
weicw
2026-10-31 07:43:17 +08:00
parent 7ae4319102
commit 3f62712ecb
664 changed files with 12766 additions and 9498 deletions
@@ -48,7 +48,10 @@
import { ref, reactive, watch } from 'vue';
import { Form, message } from 'ant-design-vue';
import { assignObject, uuid } from 'ele-admin-pro';
import { addDealerSetting, updateDealerSetting } from '@/api/shop/dealerSetting';
import {
addDealerSetting,
updateDealerSetting
} from '@/api/shop/dealerSetting';
import { DealerSetting } from '@/api/shop/dealerSetting/model';
import { useThemeStore } from '@/store/modules/theme';
import { storeToRefs } from 'pinia';
@@ -142,7 +145,9 @@
const formData = {
...form
};
const saveOrUpdate = isUpdate.value ? updateDealerSetting : addDealerSetting;
const saveOrUpdate = isUpdate.value
? updateDealerSetting
: addDealerSetting;
saveOrUpdate(formData)
.then((msg) => {
loading.value = false;
@@ -165,12 +170,12 @@
images.value = [];
if (props.data) {
assignObject(form, props.data);
if(props.data.image){
if (props.data.image) {
images.value.push({
uid: uuid(),
url: props.data.image,
status: 'done'
})
});
}
isUpdate.value = true;
} else {