From 987c04588c7640901c15c7505bb9ac05bb4550fc Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期一, 07 十月 2024 00:33:03 +0800
Subject: [PATCH] update
---
src/views/mdc/configComp/Status.vue | 22 ++++++++++++++++------
1 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/src/views/mdc/configComp/Status.vue b/src/views/mdc/configComp/Status.vue
index 1dce398..331f075 100644
--- a/src/views/mdc/configComp/Status.vue
+++ b/src/views/mdc/configComp/Status.vue
@@ -1,8 +1,8 @@
<!--
* @Date: 2024-04-17 18:53:45
- * @LastEditors: Sneed
- * @LastEditTime: 2024-06-18 20:17:23
- * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/configComp/Status.vue
+ * @LastEditors: gaosp
+ * @LastEditTime: 2024-09-19 21:45:01
+ * @FilePath: /mdc/Users/mache/Documents/demo/cps-web/src/views/mdc/configComp/Status.vue
-->
<template>
<el-main>
@@ -35,10 +35,10 @@
</el-table-column>
</scFormTable>
</el-row>
- <el-row style="margin-top: 20px;">
+ <el-row style="margin-top: 20px;position: relative">
<!-- dragSort -->
- <scFormTable ref="table1" v-model="Tabledata" stripe @delRow="remove" :addTemplate="addTemplate"
- @rowDrop="rowDrop" dragSort>
+ <scFormTable ref=" table1" v-model="Tabledata" stripe @delRow="remove" :addTemplate="addTemplate"
+ @rowDrop="rowDrop" dragSort hideDelete>
<el-table-column label="浜哄伐鍙嶉鐘舵��" prop="name">
<template #default="scope">
<el-input v-model="scope.row.name" @change="update(scope.row)"></el-input>
@@ -67,6 +67,11 @@
</el-table-column>
<el-table-column label="鎿嶄綔" prop="state">
<template #default="scope">
+ <el-popconfirm title="纭畾鍒犻櫎鍚楋紵" @confirm="rowDel(scope.row, scope.$index)">
+ <template #reference>
+ <el-button type="danger" icon="el-icon-delete" size="small" plain circle></el-button>
+ </template>
+ </el-popconfirm>
<el-button v-show="scope.row.isNew" @click="add(scope.row)">淇濆瓨</el-button>
</template>
</el-table-column>
@@ -170,6 +175,11 @@
this.getList()
},
methods: {
+ rowDel(row, index) {
+ // this.$emit('delRow', row)
+ this.remove(row)
+ this.data.splice(index, 1)
+ },
getList() {
this.$HTTP.get('/api/blade-cps/global_wcs/wcs-achievements').then(res => {
if (res.code === 200) {
--
Gitblit v1.9.3