From 9552df0290118ebea2b840795fe3874be036841c Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 07 四月 2025 09:07:19 +0800
Subject: [PATCH] 代码初始化

---
 admin/src/components/system/dict/DictDataManagerWindow.vue |   33 +++++++++++++++++++++++++++++++--
 1 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/admin/src/components/system/dict/DictDataManagerWindow.vue b/admin/src/components/system/dict/DictDataManagerWindow.vue
index 1182f69..5fb62d7 100644
--- a/admin/src/components/system/dict/DictDataManagerWindow.vue
+++ b/admin/src/components/system/dict/DictDataManagerWindow.vue
@@ -21,8 +21,16 @@
           @selection-change="handleSelectionChange"
         >
           <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="remark" label="鏁版嵁璇存槑" min-width="130px"></el-table-column>
+          <el-table-column prop="label" label="鏁版嵁鏍囩" min-width="130px"></el-table-column>
+          <el-table-column prop="code" label="鏁版嵁鍊�" min-width="100px">
+            <template slot-scope="{row}">
+              <div v-if="row.code && row.code.length>20" :title="row.code">
+                <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>
@@ -53,6 +61,21 @@
       </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>
@@ -70,6 +93,8 @@
   data () {
     return {
       visible: false,
+      visible1: false,
+      agreement: '',
       searchForm: {
         // 瀛楀吀ID
         dictId: null
@@ -83,6 +108,10 @@
     }
   },
   methods: {
+    showCode(row){
+      this.agreement=row.code
+      this.visible1=true
+    },
     /**
      * 鎵撳紑绐楀彛
      *

--
Gitblit v1.9.3