From 09da100729793848bc01b51f7b05ca3f1e7ec64f Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期四, 20 六月 2024 14:05:35 +0800 Subject: [PATCH] 提交一把 --- company/src/components/system/dict/DictDataManagerWindow.vue | 40 ++++++++++++++++++++++++++++++++++++++-- 1 files changed, 38 insertions(+), 2 deletions(-) diff --git a/company/src/components/system/dict/DictDataManagerWindow.vue b/company/src/components/system/dict/DictDataManagerWindow.vue index bbad831..86c092a 100644 --- a/company/src/components/system/dict/DictDataManagerWindow.vue +++ b/company/src/components/system/dict/DictDataManagerWindow.vue @@ -20,7 +20,14 @@ > <el-table-column type="selection" width="55"></el-table-column> <el-table-column prop="label" label="鏁版嵁鏍囩" min-width="100px"></el-table-column> - <el-table-column prop="code" label="鏁版嵁鍊�" min-width="100px"></el-table-column> + <el-table-column prop="code" label="鏁版嵁鍊�" min-width="100px"> + <template slot-scope="{row}"> + <div v-if="row.code || row.code.length>500" > + <el-button type="text" @click="showCode(row)" >鐐瑰嚮鏌ョ湅</el-button> + </div> + <div v-else>{{row.code}}</div> + </template> + </el-table-column> <el-table-column prop="disabled" label="鐘舵��" min-width="100px"> <template slot-scope="{row}">{{row.disabled | disabledText}}</template> </el-table-column> @@ -38,7 +45,7 @@ fixed="right" > <template slot-scope="{row}"> - <el-button type="text" @click="$refs.operaDictDataWindow.open('缂栬緫瀛楀吀鏁版嵁', dictId, row)" icon="el-icon-edit">缂栬緫</el-button> + <el-button type="text" @click="$refs.operaDictDataWindow.open('缂栬緫瀛楀吀鏁版嵁', searchForm.dictId, row)" icon="el-icon-edit">缂栬緫</el-button> <el-button type="text" @click="deleteById(row)" icon="el-icon-delete">鍒犻櫎</el-button> </template> </el-table-column> @@ -51,6 +58,22 @@ </template> <!-- 鏂板缓/淇敼 --> <OperaDictDataWindow ref="operaDictDataWindow" @success="handlePageChange(tableData.pagination.pageIndex)"/> + + <el-dialog + class="center-title" + title="瀛楀吀鍊�" + width="70%" + height="70%" + text="瀛楀吀鍊�" + :visible.sync="visible1" + append-to-body + > + <div class="agree-list" v-html="agreement"> + </div> + <template v-slot:footer> + <el-button @click="visible1=false">杩斿洖</el-button> + </template> + </el-dialog> </TableLayout> </GlobalWindow> </template> @@ -68,6 +91,8 @@ data () { return { visible: false, + visible1: false, + agreement: '', searchForm: { // 瀛楀吀ID dictId: null @@ -83,6 +108,10 @@ this.dictName = dictName this.visible = true this.search() + }, + showCode(row){ + this.agreement=row.code + this.visible1=true } }, created () { @@ -95,6 +124,12 @@ </script> <style scoped lang="scss"> +.agree-list{ + height: 550px; + //max-height: 50%; + overflow: auto; +} + /deep/ .window__body { .table-content { padding: 0; @@ -102,5 +137,6 @@ padding-top: 0; } } + } </style> -- Gitblit v1.9.3