From df85764203947543c0ced0a0cdf8b7299f6b40ff Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期二, 28 五月 2024 13:28:22 +0800 Subject: [PATCH] 优化 --- src/views/accounting/jmreport/index.vue | 25 ++++++++++++++++++------- 1 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/views/accounting/jmreport/index.vue b/src/views/accounting/jmreport/index.vue index 5837437..bcc7044 100644 --- a/src/views/accounting/jmreport/index.vue +++ b/src/views/accounting/jmreport/index.vue @@ -18,6 +18,7 @@ import { mapGetters } from 'vuex' import ttable from '@/views/common/ztt-table.vue' import { pageList } from '@/api/accounting/personReport' +import { remote } from '@/api/admin/dict' export default { components: { ttable @@ -64,16 +65,16 @@ minWidth: '100', prop: 'workShop', label: '杞﹂棿', - sort: true, isTrue: true, - isSearch: true, - searchInfoType: 'text', + isSearch: true,searchInfoType:'select', + optList: () => { + return this.workShopList + } }, { minWidth: '100', prop: 'partName', label: '鐢熶骇闆朵欢', - sort: true, isTrue: true, isSearch: true, searchInfoType: 'text', @@ -82,7 +83,6 @@ minWidth: '100', prop: 'partNo', label: '鐢熶骇闆朵欢鍙�', - sort: true, isTrue: true, isSearch: true, searchInfoType: 'text', @@ -91,7 +91,6 @@ minWidth: '100', prop: 'staffName', label: '鐢熶骇浜哄憳', - sort: true, isTrue: true, isSearch: true, searchInfoType: 'text', @@ -109,7 +108,6 @@ minWidth: '100', prop: 'unit', label: '鍗曚綅', - sort: true, isTrue: true, isSearch: true, searchInfoType: 'text', @@ -128,13 +126,26 @@ operator: null }, prelang: "operation", + workShopList:[], } + }, + mounted(){ + this.getWorkShopList() }, methods:{ // table鑷甫浜嬩欢 handleSelectionChange(val) { this.multipleSelection = val }, + getWorkShopList(){ + remote('work_shop').then((response) => { + if (response.data.code === 0) { + this.workShopList = response.data.data + } else { + this.workShopList = [] + } + }) + } } } </script> -- Gitblit v1.9.3