From 3931e2728f618d0090f129b2665bc1285c4440c3 Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期日, 03 十一月 2024 17:27:32 +0800 Subject: [PATCH] update --- src/views/console/system/collection.vue | 66 +++++++++++++++++++++++++++++++-- 1 files changed, 62 insertions(+), 4 deletions(-) diff --git a/src/views/console/system/collection.vue b/src/views/console/system/collection.vue index af45372..ccdfa90 100644 --- a/src/views/console/system/collection.vue +++ b/src/views/console/system/collection.vue @@ -1,18 +1,76 @@ <!-- * @Date: 2024-10-02 20:34:08 * @LastEditors: gaoshp - * @LastEditTime: 2024-10-02 20:34:22 + * @LastEditTime: 2024-10-05 10:07:12 * @FilePath: /cps-web/src/views/console/system/collection.vue --> <template> - <div> - caijidian - </div> + <el-main> + <el-card> + <el-container> + <el-header style="justify-content: flex-end;"> + <el-button type="primary">鏂板妯$増</el-button> + <el-button type="primary">鏂板妯$増</el-button> + </el-header> + <el-main> + <scTable highlight-current-row @dataChange="dataChange" @row-click="rowClick" ref="table" + :params="params" :apiObj="apiObj" @selection-change="selectionChange" stripe> + <el-table-column prop="" label="妯$増鍚嶇О" width="100px" /> + <el-table-column prop="" label="绫诲瀷" /> + <el-table-column prop="" label="榛樿杞" /> + <el-table-column prop="" label="鎻忚堪" /> + <el-table-column prop="" label="澶囨敞" /> + <el-table-column label="鎿嶄綔" fixed="right" align="left" width="160"> + <template #default="scope"> + <el-button-group> + <el-button text type="primary" size="small" + @click="table_edit(scope.row, scope.$index)">缂栬緫</el-button> + <el-popconfirm width="220" cancel-button-text="鍋滅敤" confirm-button-text="鍒犻櫎" + title="鍒犻櫎鏁版嵁浼氬奖鍝嶅凡鍏宠仈鐨勪笟鍔� ,鑻ユ偍鎯冲湪宸插叧鑱旂殑涓氬姟涓緷鐒舵樉绀鸿繖浜涙暟鎹�, 鎮ㄥ彲浠ラ�夋嫨 鍋滅敤 鎿嶄綔銆傚仠鐢ㄥ悗姝ゆ暟鎹皢涓嶈兘鍐嶈鏂颁笟鍔′娇鐢ㄣ��" + @confirm="table_del([scope.row], '0')" @cancel="table_del([scope.row], '1')"> + <template #reference> + <el-button type="danger" text size="small">鍒犻櫎</el-button> + </template> + </el-popconfirm> + </el-button-group> + </template> + </el-table-column> + </scTable> + </el-main> + </el-container> + </el-card> + </el-main> + </template> <script> export default { + data() { + return { + params: {}, + apiObj: { + get: async (data) => { + let params = { + } + return await this.$HTTP.get(`/api/smart-collect/tpl/page`, {}, { params }).then(res => { + res.data.records = res?.data?.records.map(v => { + return { + ...v, + statusName: v.status ? '鍚敤' : '绂佺敤' + } + }) + return res + }) + } + } + } + }, + methods: { + dataChange() { + + } + } } </script> -- Gitblit v1.9.3