From 5caa25dc8f299cb5ef5cc056dfd6c307b6763934 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期二, 08 十月 2024 20:06:49 +0800
Subject: [PATCH] update
---
src/views/notification/notice/index.vue | 33 +++++++++++++++++++++++++--------
1 files changed, 25 insertions(+), 8 deletions(-)
diff --git a/src/views/notification/notice/index.vue b/src/views/notification/notice/index.vue
index f26a22b..f008313 100644
--- a/src/views/notification/notice/index.vue
+++ b/src/views/notification/notice/index.vue
@@ -43,8 +43,9 @@
<el-table-column prop="updateTime" label="鍏憡鏃堕棿"></el-table-column>
<el-table-column fixed="right" label="鎿嶄綔">
<template #default="scope">
- <el-button type="text" size="small" @click="table_edit(scope.row, scope.$index)">鏌ョ湅</el-button>
+ <el-button type="text" size="small" @click="table_show(scope.row, scope.$index)">鏌ョ湅</el-button>
<el-button type="text" size="small" @click="table_edit(scope.row, scope.$index)">缂栬緫</el-button>
+ <el-button type="text" size="small" @click="table_del(scope.row, scope.$index)">鍒犻櫎</el-button>
</template>
</el-table-column>
</el-table>
@@ -61,10 +62,10 @@
</div>
</div>
- <!-- <save-dialog v-if="dialog.save" ref="saveDialog" @success="addUserSuccess" @closed="dialog.save=false"></save-dialog> -->
+ <save-dialog v-if="dialog.save" ref="saveDialog" @success="addUserSuccess" @closed="dialog.save=false"></save-dialog>
</template>
<script>
- // import saveDialog from './addUser'
+ import saveDialog from './addNote'
export default {
name: "bakalaka",
data(){
@@ -105,7 +106,7 @@
this.getcategoryList();
},
components: {
- //saveDialog
+ saveDialog
},
methods: {
searchChange() {
@@ -124,7 +125,7 @@
})
},
addUserSuccess() {
-
+ this.getData();
},
getData() {
var obj = {};
@@ -141,24 +142,40 @@
}
})
},
+ //鍒犻櫎
+ table_del(row) {
+ var that = this;
+ this.$confirm(`纭畾灏嗛�夋嫨鏁版嵁鍒犻櫎?`, '', {
+ type: 'warning'
+ }).then(() => {
+ this.$HTTP.post("/api/blade-notify/notice/remove?ids="+row.id).then(res=> {
+ if(res.code == 200) {
+ that.$message.success("鎿嶄綔鎴愬姛");
+ that.getData();
+ }
+ })
+ }).catch(() => {
+
+ })
+ },
//娣诲姞
addPerson(){
this.dialog.save = true
this.$nextTick(() => {
- this.$refs.saveDialog.open()
+ this.$refs.saveDialog.open('add',this.categoryList);
})
},
table_edit(row){
this.dialog.save = true
this.$nextTick(() => {
- this.$refs.saveDialog.open('edit').setData(row)
+ this.$refs.saveDialog.open('edit',this.categoryList).setData(row)
})
},
//鏌ョ湅
table_show(row){
this.dialog.save = true
this.$nextTick(() => {
- this.$refs.saveDialog.open('show').setData(row)
+ this.$refs.saveDialog.open('show',this.categoryList).setData(row)
})
},
handleSelectionChange(selection) {
--
Gitblit v1.9.3