From ff225f1ffef14302b2ba9c9cd25afd7a29c33bf3 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期五, 03 五月 2024 00:58:48 +0800
Subject: [PATCH] update
---
src/views/console/base/Shiftsystem.vue | 24 ++++++++++++++++++++----
1 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/src/views/console/base/Shiftsystem.vue b/src/views/console/base/Shiftsystem.vue
index b7f7136..d322bbb 100644
--- a/src/views/console/base/Shiftsystem.vue
+++ b/src/views/console/base/Shiftsystem.vue
@@ -1,7 +1,7 @@
<!--
* @Date: 2024-04-09 20:19:46
* @LastEditors: Sneed
- * @LastEditTime: 2024-05-02 00:31:01
+ * @LastEditTime: 2024-05-03 00:11:11
* @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/base/Shiftsystem.vue
-->
<template>
@@ -56,7 +56,7 @@
</el-row>
</el-main>
</el-container>
- <Dialog ref="dialog" :option="{ types, status, group }" :detail="detail"></Dialog>
+ <Dialog ref="dialog" :option="{ types, status, group }" :detail="detail" @success="success"></Dialog>
</el-container>
</template>
@@ -202,6 +202,9 @@
this.init()
},
methods: {
+ success() {
+ this.$refs.table.reload(this.params)
+ },
init() {
this.$HTTP.get('/api/blade-system/param/detail?paramKey=system.shift.max').then(res => {
if (res.code === 200) {
@@ -257,12 +260,25 @@
})
},
table_add() {
- this.$refs.dialog.open()
+ this.$refs.dialog.open('add', {
+
+ })
},
table_edit() {
- this.$refs.dialog.open()
+ this.$refs.dialog.open('edit', this.info)
},
del() {
+ this.$confirm(`纭畾鍒犻櫎鏁版嵁?`, '', {
+ type: 'warning'
+ }).then(() => {
+ this.$HTTP.delete(`/api/blade-cps/shift/${this.info.id}`).then(res => {
+ if (res.code === 200) {
+ this.$refs.table.reload(this.params)
+ }
+ })
+ }).catch(() => {
+
+ })
}
},
--
Gitblit v1.9.3