From 1bb161c3a19b95b546c99db5296758c77cefe1c3 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期二, 11 十一月 2025 16:46:53 +0800
Subject: [PATCH] 点位数据处理无数据的时段展示效果
---
src/views/master/person/main/department.vue | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/views/master/person/main/department.vue b/src/views/master/person/main/department.vue
index aea0eec..1b17c96 100644
--- a/src/views/master/person/main/department.vue
+++ b/src/views/master/person/main/department.vue
@@ -73,7 +73,7 @@
},
methods: {
getOrganizationList() {
- this.$HTTP.get(`/api/blade-cps/organization/tree?groupType=group_organization&groupCategory=1`).then(res=> {
+ this.$HTTP.get(`/api/smis/organization/tree?groupType=group_organization&groupCategory=1`).then(res=> {
if(res.code == 200) {
this.departmentList = res.data;
}
@@ -100,11 +100,16 @@
},
//琛ㄥ崟鎻愪氦鏂规硶
departmentSubmit(){
+ if(this.mode == "edit") {
+ var postMethods = "put";
+ }else {
+ var postMethods = "post";
+ }
var obj = Object.assign({},this.depatmentForm);
obj.status = obj.status ? 1 : 0;
this.$refs.dialogForm.validate(async (valid) => {
if (valid) {
- this.$HTTP.post("/api/blade-cps/group",obj).then(res=> {
+ this.$HTTP[postMethods]("/api/smis/group",obj).then(res=> {
if(res.code == 200) {
this.$emit('success', this.depatmentForm, this.mode);
this.visible = false;
--
Gitblit v1.9.3