From ed2f130164f4145560b4176da6629890c0806ded Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期四, 10 八月 2023 18:11:27 +0800 Subject: [PATCH] 服务管理模块联调 --- src/views/sales/contractManage/index.vue | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/views/sales/contractManage/index.vue b/src/views/sales/contractManage/index.vue index ff11738..99243fa 100644 --- a/src/views/sales/contractManage/index.vue +++ b/src/views/sales/contractManage/index.vue @@ -17,7 +17,7 @@ <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" /> </div> </div> - <TableCommonView ref="tableListRef" :table-list="tableList"> + <TableCommonView ref="tableListRef" :table-list="tableList" @selCommonClick="selCommonClick"> <template slot="tableButton"> <el-table-column label="鎿嶄綔" width="100"> <template slot-scope="scope"> @@ -29,6 +29,8 @@ </TableCommonView> <!-- 鏂板缓/缂栬緫 --> <AddContractManageDialog v-if="editConfig.visible" :edit-common-config="editConfig" /> + <!-- 鏈轰細璇︽儏 --> + <DetailContractManage v-if="contractDetail.visible" :contract-detail="contractDetail" /> </div> </template> @@ -36,13 +38,15 @@ import AddContractManageDialog from "@/views/sales/contractManage/AddContractManageDialog" import { getContractList, getDelContract } from "@/api/sales/contractManage" import pageMixin from "@/components/makepager/pager/mixin/pageMixin" +import DetailContractManage from "@/views/sales/contractManage/DetailContractManage" export default { name: "ContractManage", props: {}, mixins: [pageMixin], components: { - AddContractManageDialog + AddContractManageDialog, + DetailContractManage }, computed: { searchCommonHeight() { @@ -75,6 +79,10 @@ visible: false, title: "鏂板缓", infomation: {} + }, + contractDetail: { + visible: false, + infomation: {} } } }, @@ -87,7 +95,7 @@ this.tableList = { tableInfomation: [], tableColumn: [ - { label: "鍗曟嵁缂栧彿", prop: "number", min: 120 }, + { label: "鍗曟嵁缂栧彿", prop: "number", min: 120, isCommonClick: true }, { label: "璐熻矗浜�", prop: "memberId", min: 90 }, { label: "瀹℃壒鐘舵��", prop: "approvalStatus" }, { label: "鍒涘缓浜�", prop: "creator", min: 100 }, @@ -168,6 +176,12 @@ }, getSelectArray(val) { console.log(val) + }, + // 鍚堝悓绠$悊璇︽儏 + selCommonClick(row) { + console.log(row) + this.contractDetail.visible = true + this.contractDetail.infomation = { ...row } } } } -- Gitblit v1.8.0