From 590794315aa2dff6b91354c83c9e7a1e7c908ff0 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期五, 30 六月 2023 19:59:42 +0800 Subject: [PATCH] 代码整合 --- Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue | 32 ++++++++++++++++++++++++++------ 1 files changed, 26 insertions(+), 6 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue index 48731fd..21a5b5f 100644 --- a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue @@ -8,9 +8,9 @@ <el-button plain size="small" type="primary" @click="editHandler" >缂栬緫 </el-button> - <el-button plain size="small" type="primary">鎵归噺瀵煎叆鐢宠</el-button> - <el-button plain size="small" type="primary">鍘嗗彶鏁版嵁瀵煎叆</el-button> - <el-button plain size="small" type="primary">鎵归噺鐢宠缂栫爜</el-button> + <el-button plain size="small" type="primary" @click="openBatchImport('batchImportApply')">鎵归噺瀵煎叆鐢宠</el-button> + <el-button plain size="small" type="primary" @click="openBatchImport('historyImport')">鍘嗗彶鏁版嵁瀵煎叆</el-button> + <el-button plain size="small" type="primary" @click="openBatchImport('batchApplyCode')">鎵归噺鐢宠缂栫爜</el-button> <el-button plain size="small" type="primary">鎵归噺鍙戝竷</el-button> <el-button plain size="small" type="primary">鏌ョ湅娴佺▼鍘嗗彶</el-button> <el-button plain size="small" type="primary">鍒犻櫎</el-button> @@ -144,6 +144,7 @@ > </el-pagination> </div> + <BatchImport v-if="batchImportData.visible" :visible.sync="batchImportData.visible" v-bind="batchImportData"></BatchImport> </basic-container> </template> <script> @@ -152,11 +153,13 @@ import integrationTransfer from "@/views/integration/integrationTransfer"; import SetPersonnel from "@/components/template/SetPersonnel"; import ResembleQueryDialog from "@/components/FormTemplate/ResembleQueryDialog.vue"; +import BatchImport from '@/components/BatchImport' export default { components: { integrationTransfer, SetPersonnel, ResembleQueryDialog, + BatchImport }, name: "Crud.vue", props: { @@ -243,6 +246,11 @@ seniorQueryColumns: [], selectRow: [], userName: "", + batchImportData: { + visible: false, + type: '', + codeClassifyOid: '' + } }; }, computed: {}, @@ -289,9 +297,9 @@ // 杞崲鏁版嵁true鍜宖alse formatBoolean(row, column) { if (column.property === "xiaoshouwl" - ||column.property === "shifoupihaoguanli" - ||column.property === "caigouwl" - ||column.property === "kucunwl" + ||column.property === "shifoupihaoguanli" + ||column.property === "caigouwl" + ||column.property === "kucunwl" ||column.property === "passing") { return row[column.property] =='true'? "鏄�" : "鍚�"; } @@ -441,6 +449,7 @@ this.rowOid = ""; } this.selectRow = row; + this.parameter.ids = []; row.forEach((item) => { this.parameter.ids.push(item.oid); }); @@ -502,6 +511,11 @@ EditSumbit(val) { this.editvisible = false; }, + openBatchImport(type) { + this.batchImportData.visible = true + this.batchImportData.type = type + this.batchImportData.codeClassifyOid = this.codeClassifyOid + } }, }; </script> @@ -516,4 +530,10 @@ background-color: #f5f7fa !important; } } + +/deep/ .el-button { + margin: 0 10px 10px 0; +} + + </style> -- Gitblit v1.9.3