From ed6c6350015d52ea1cb033c7558f72b721ece84a Mon Sep 17 00:00:00 2001 From: WangHan <wwh_work@126,com> Date: 星期四, 19 十二月 2024 19:58:55 +0800 Subject: [PATCH] 打包名称修改,去除错误输出 --- admin-web/src/views/foundation/store/index.vue | 43 +++++++++++++++++++++++++++++-------------- 1 files changed, 29 insertions(+), 14 deletions(-) diff --git a/admin-web/src/views/foundation/store/index.vue b/admin-web/src/views/foundation/store/index.vue index 9df6b08..152a088 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,11 +133,11 @@ }, // 鍒椾俊鎭� columns: [ - {title: '鍚嶇О浠撳簱', field: 'warehouseName', align: 'left',}, - {title: '缂栧彿', field: 'warehouseCode', align: 'center'}, - {title: '绫诲瀷', field: 'classificationName', align: 'center', }, - {title: '鍦板潃', field: 'adress', align: 'center', }, - // {title: '鎵�灞炴満鏋�', field: 'summary', align: 'left',}, + {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: 'agencyName', align: 'left',minWidth: 140 }, { field: 'states', title: '鐘舵��', @@ -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({}, { @@ -289,7 +304,7 @@ // 鏌ヨtable鍒楄〃 search(pageNum) { if (pageNum != undefined) { - this.$refs.myTable.search(pageNum) + this.$refs.myTable.search({pageNum}) } else { this.$refs.myTable.search() } -- Gitblit v1.9.1