From 6345eb1417e605b6e9e191ba176520982145d090 Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Sat, 10 Jan 2026 11:27:24 +0800
Subject: [PATCH] 1

---
 src/views/modules/etf-spots/dazongjiaoyi.vue |   37 ++++++++++++++++++++++++++++++++++++-
 1 files changed, 36 insertions(+), 1 deletions(-)

diff --git a/src/views/modules/etf-spots/dazongjiaoyi.vue b/src/views/modules/etf-spots/dazongjiaoyi.vue
index 64c6bd8..45fef67 100644
--- a/src/views/modules/etf-spots/dazongjiaoyi.vue
+++ b/src/views/modules/etf-spots/dazongjiaoyi.vue
@@ -1,7 +1,8 @@
 <template>
     <div class="mod-etf-transport">
         <avue-crud ref="crud" :page.sync="page" :data="dataList" :option="dazongJiaoYi" :cell-class-name="addClasscolor"
-            @search-change="searchChange" @selection-change="selectionChange" @refresh-change="refreshChange" @on-load="getDataList">
+            @search-change="searchChange" @selection-change="selectionChange" @refresh-change="refreshChange"
+            @on-load="getDataList">
             <template slot="userName" slot-scope="scope">
                 <span>{{ scope.row.userName + '(' + scope.row.userCode + ')' }}</span>
             </template>
@@ -16,6 +17,12 @@
 
                 <el-button slot="reference" type="primary" size="small" @click="deleteHandle(scope.row)"
                     v-show="scope.row.state == 'submitted'">拒绝</el-button>
+
+                <el-button type="primary" size="small" @click.stop="lockHandle(scope.row)"
+                    v-show="scope.row.unLock == 1">锁定</el-button>
+
+                <el-button type="primary" size="small" @click.stop="lockHandle(scope.row)"
+                    v-show="scope.row.unLock == 0">解锁</el-button>
             </template>
         </avue-crud>
 
@@ -143,6 +150,34 @@
                     }
                 })
         }),
+        // 锁定/解锁
+        lockHandle: Debounce(function (row) {
+            this.$http({
+                url: this.$http.adornUrl(`/eftDz/unLock`),
+                method: 'post',
+                params: { id: row.uuid }
+            })
+                .then(({ data }) => {
+                    if (data.code == 0) {
+                        this.$message({
+                            message: '操作成功',
+                            type: 'success',
+                            duration: 1000,
+                            onClose: () => {
+                                this.getDataList()
+                            }
+                        })
+                    } else {
+                        this.$message({
+                            message: data.msg,
+                            type: 'error',
+                            duration: 1000,
+                            onClose: () => {
+                            }
+                        })
+                    }
+                })
+        }),
         // 条件查询
         searchChange(params, done) {
             this.page.currentPage = 1; // 重置当前页为第一页

--
Gitblit v1.9.3