From b8ec2530b16d89056909ff2ececdf41340b51fff Mon Sep 17 00:00:00 2001 From: futian.liu <liufutianyoo@163.com> Date: 星期六, 02 十二月 2023 12:06:41 +0800 Subject: [PATCH] 部门分发详情,明细 --- admin-web/src/views/foundation/store/index.vue | 39 +++++++++++++++++++++++++++------------ 1 files changed, 27 insertions(+), 12 deletions(-) diff --git a/admin-web/src/views/foundation/store/index.vue b/admin-web/src/views/foundation/store/index.vue index 9df6b08..0578ce5 100644 --- a/admin-web/src/views/foundation/store/index.vue +++ b/admin-web/src/views/foundation/store/index.vue @@ -15,6 +15,7 @@ </el-row> <!--娣诲姞/缂栬緫寮圭獥--> <edit v-if="editSetting.show" :setting="editSetting" @close="editSetting.show = false" @search="search"/> + <person v-if="personSetting.show" :setting="personSetting" @close="personSetting.show = false" @search="search"/> </el-card> </el-container> </el-container> @@ -31,13 +32,14 @@ import MyButton from "@/components/myButton/myButton"; import SettingIplatform from '@/utils/settingIplatform'; import edit from './edit' +import person from './person' import * as finsystenant from '@/api/baseSetting/finsystenant' import myImport from '@/views/components/myImport' import {getBaseUrl} from '@/utils/base'; export default { name: "index", - components: {MyButton, MyTableV2, edit, myImport}, + components: {MyButton, MyTableV2, edit, myImport, person}, data() { return { // 鎼滅储妗� @@ -100,6 +102,12 @@ orgId: '', show: false, }, + personSetting: { + title: '', + id: '', + orgId: '', + show: false, + }, // 琛ㄦ牸鏁版嵁 table: { showIndex: true, // 鏄惁鏄剧ず搴忓彿 @@ -125,10 +133,10 @@ }, // 鍒椾俊鎭� columns: [ - {title: '鍚嶇О浠撳簱', field: 'warehouseName', align: 'left',}, - {title: '缂栧彿', field: 'warehouseCode', align: 'center'}, - {title: '绫诲瀷', field: 'classificationName', align: 'center', }, - {title: '鍦板潃', field: 'adress', align: 'center', }, + {title: '浠撳簱鍚嶇О', field: 'warehouseName', align: 'left', minWidth: 140}, + {title: '缂栧彿', field: 'warehouseCode', align: 'center', width: 120}, + {title: '绫诲瀷', field: 'classificationName', align: 'center', width: 120 }, + {title: '鍦板潃', field: 'adress', align: 'left', minWidth: 140 }, // {title: '鎵�灞炴満鏋�', field: 'summary', align: 'left',}, { field: 'states', @@ -161,7 +169,7 @@ // 鎿嶄綔淇℃伅 operation: { show: true, // 鏄剧ず鎿嶄綔鍒� - width: '150', // 鍒楀 + width: 240, // 鍒楀 attr: [ { title: '缂栬緫', @@ -175,12 +183,13 @@ this.del(row); }, }, - // { - // title: '浠撳簱鍛�', - // events: (row) => { - // this.showAudit(row); - // }, - // } + { + title: '搴撶鍛�', + type:'primary', + events: (row) => { + this.showPerson(row); + }, + } ], }, paging: { @@ -270,6 +279,12 @@ this.editSetting.title = '缂栬緫'; this.editSetting.show = true; }, + showPerson(row) { + this.personSetting.id = row.id; + this.personSetting.info = JSON.stringify(row); + this.personSetting.title = '閫夋嫨搴撶鍛�'; + this.personSetting.show = true; + }, nodeClick(param) { param = param || {} this.p = Object.assign({}, { -- Gitblit v1.9.1