diff --git a/src/api/dictionary/index.ts b/src/api/dictionary/index.ts index a97ca0c..c283a0d 100644 --- a/src/api/dictionary/index.ts +++ b/src/api/dictionary/index.ts @@ -312,8 +312,7 @@ export async function getBackList() { method: 'get', }) - const list = res.data - return list + return res.data[0].distionaryList } /** diff --git a/src/store/modules/dictonary.ts b/src/store/modules/dictonary.ts index 5759f9d..a206445 100644 --- a/src/store/modules/dictonary.ts +++ b/src/store/modules/dictonary.ts @@ -216,7 +216,7 @@ export const useDictionaryStore = defineStore({ // 退回方式 async fetchBackList() { const list = await getBackList() - this.backList = generateOptions(list) + this.backList = generateOptions(list, 'codeno', 'name') return this.backList }, // 退回方式 diff --git a/src/views/final/comp/Action.vue b/src/views/final/comp/Action.vue index d01da7f..3adafdd 100644 --- a/src/views/final/comp/Action.vue +++ b/src/views/final/comp/Action.vue @@ -20,7 +20,7 @@ const actionConfig = { 3: [{ label: '查看', key: 'view' }], 4: [{ label: '查看', key: 'view' }], 2: [{ label: '通过', key: 'approval' }, { label: '不通过', key: 'reject' }], - 5: [{ label: '通过', key: 'approval' }, { label: '不通过', key: 'reject' }], + 5: [{ label: '查看', key: 'view' }], } const actions = computed(() => { diff --git a/src/views/final/comp/CustomTabelModal.vue b/src/views/final/comp/CustomTabelModal.vue index c0ed170..d0d6a8b 100644 --- a/src/views/final/comp/CustomTabelModal.vue +++ b/src/views/final/comp/CustomTabelModal.vue @@ -1,29 +1,29 @@