From 98810eb52a46ec72f2bc3d89be8ea42c33d55c5f Mon Sep 17 00:00:00 2001 From: gaoluyang <gaoluyang@rengu.cc> Date: 星期三, 17 七月 2024 10:14:49 +0800 Subject: [PATCH] 日工时管理的辅助工时的录入数据,完成一个数据的录入后页面不跳转,但是弹窗的内容清空继续新增录入 --- src/components/do/b1-sample/detail.vue | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/do/b1-sample/detail.vue b/src/components/do/b1-sample/detail.vue index 5a07876..938461d 100644 --- a/src/components/do/b1-sample/detail.vue +++ b/src/components/do/b1-sample/detail.vue @@ -2,7 +2,7 @@ <div style="width: 100%;height: 100%;overflow-y: auto;" class="detail"> <div> <el-row class="title"> - <el-col :span="12" style="padding-left: 20px;">鏍峰搧璇︽儏</el-col> + <el-col :span="12" style="padding-left: 20px;text-align: left;">鏍峰搧璇︽儏</el-col> <el-col :span="12" style="text-align: right;"> <el-button size="small" @click="hanldeBack">杩斿洖</el-button> </el-col> @@ -69,7 +69,11 @@ <el-table-column prop="inspectionItemSubclass" label="妫�楠岄」鍒嗙被" min-width="100" show-overflow-tooltip></el-table-column> <el-table-column prop="laboratory" label="瀹為獙瀹�" min-min-width="100" show-overflow-tooltip></el-table-column> <el-table-column prop="unit" label="鍗曚綅" min-width="100" show-overflow-tooltip></el-table-column> - <el-table-column prop="equipValue" label="璁惧" min-width="100" show-overflow-tooltip></el-table-column> + <el-table-column prop="equipName" label="璁惧" min-width="100" show-overflow-tooltip> + <template slot-scope="scope"> + {{handleData(scope.row.equipName)}} + </template> + </el-table-column> <el-table-column prop="entrustCode" label="濮旀墭缂栧彿" min-width="100" show-overflow-tooltip></el-table-column> <el-table-column prop="updateUserName" label="妫�楠屼汉" min-width="100" show-overflow-tooltip></el-table-column> <el-table-column prop="updateTime" label="妫�楠屾椂闂�" min-width="100" show-overflow-tooltip></el-table-column> @@ -129,6 +133,12 @@ this.histories = histories; this.products = products; }) + }, + handleData(e){ + let info = JSON.parse(e).map(item => { + return item.v; + }).join(',') + return info } } } -- Gitblit v1.9.3