10.10综合交易所原始源码-管理后台
1
admin
2026-01-10 6345eb1417e605b6e9e191ba176520982145d090
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; // 重置当前页为第一页