From f67cecb5538764c08e7a4fc2153e1d686dac7cb3 Mon Sep 17 00:00:00 2001
From: zxy <353513737@qq.com>
Date: Tue, 27 Feb 2024 19:21:26 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=90=AF=E7=94=A8=E6=9A=82?=
=?UTF-8?q?=E5=81=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/tenant/main/serve/index.vue | 103 +++++++++++++-------------
1 file changed, 53 insertions(+), 50 deletions(-)
diff --git a/src/views/tenant/main/serve/index.vue b/src/views/tenant/main/serve/index.vue
index 4be57eb..bd9aadc 100644
--- a/src/views/tenant/main/serve/index.vue
+++ b/src/views/tenant/main/serve/index.vue
@@ -98,42 +98,21 @@
size="small"
@click="showKeyAudience(row)"
>服务详情
+ 启用
+ 暂停
-
-
-
-
-
-
-
-
{{ row.missionDesc.length > 50 ? row.missionDesc.substring(0, 50) : row.missionDesc}}
@@ -292,8 +269,6 @@ import ied from "@/views/util/import-error-dialog";
import { excelAccept } from "@/common/accept";
import missionView from "../../mission/Table/missionView.vue";
import workView from "../../works/Table/missionView.vue"
-// import ServeDetail from './Dialog/ServeDetail.vue'
-// import CopyMission from "../mission/Dialog/CopyMission";
const page = {
pageSize: 10,
currentPage: 1,
@@ -651,12 +626,6 @@ export default {
label: "标签",
prop: "labelsBase",
},
-
- // {
- // label: "备注",
- // prop: "remarks",
-
- // },
]
}
},
@@ -707,7 +676,6 @@ export default {
this.getKeyAudience({
id: row.id
})
- // this.$refs.copy.onLoad();
this.drawer = true;
},
getKeyAudience(params) {
@@ -795,8 +763,6 @@ export default {
}
}
this.personTotal = res.data.data.sum;
- // this.onLoad();
- //this.treeData.push(treeDataOne);
this.loading = false;
});
},
@@ -853,10 +819,6 @@ export default {
);
})
.catch(() => {
- // this.$message({
- // type: 'info',
- // message: '已取消'
- // });
});
},
/*批量转移分组 */
@@ -1250,6 +1212,47 @@ export default {
}
},
+ // 启用服务
+ playServe(row) {
+ console.log(row)
+ update({
+ id: row.id,
+ status: 1
+ }).then(
+ () => {
+ // done();
+ this.$message({
+ type: "success",
+ message: "启用成功!",
+ });
+ this.refresh();
+ },
+ (error) => {
+ window.console.log(error);
+ // done();
+ }
+ );
+ },
+ pauseServe(row) {
+ console.log(row)
+ update({
+ id: row.id,
+ status: 0
+ }).then(
+ () => {
+ // done();
+ this.$message({
+ type: "success",
+ message: "暂停成功!",
+ });
+ this.refresh();
+ },
+ (error) => {
+ window.console.log(error);
+ // done();
+ }
+ );
+ }
},
};