From 6f299ac0ae6f863cc25e1534d40a1d4c450b3f36 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期四, 03 十月 2024 10:11:48 +0800
Subject: [PATCH] 数据点编辑
---
src/views/console/system/collection.vue | 67 +++++++++++++++++++++++++++++++--
1 files changed, 63 insertions(+), 4 deletions(-)
diff --git a/src/views/console/system/collection.vue b/src/views/console/system/collection.vue
index af45372..f25afc8 100644
--- a/src/views/console/system/collection.vue
+++ b/src/views/console/system/collection.vue
@@ -1,18 +1,77 @@
<!--
* @Date: 2024-10-02 20:34:08
* @LastEditors: gaoshp
- * @LastEditTime: 2024-10-02 20:34:22
+ * @LastEditTime: 2024-10-03 10:08:26
* @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 style="width: 100%;" ref="table" row-key="id" border :params="params" :apiObj="apiObj"
+ stripe paginationLayout="total, prev, pager, next" @dataChange="dataChange"
+ @row-click="rowClick" highlight-current-row>
+ <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/blade-cps/check-project/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