diff --git a/src/assets/scss/modules/management/list-main.scss b/src/assets/scss/modules/management/list-main.scss
index dd8a7f865..490652011 100644
--- a/src/assets/scss/modules/management/list-main.scss
+++ b/src/assets/scss/modules/management/list-main.scss
@@ -106,7 +106,12 @@
}
}
-
+.div-flex{
+ .m-page{
+ display: flex;
+ justify-content: space-between;
+ }
+}
// 弹性盒子
.f-flex {
diff --git a/src/views/modules/communityParty/regionalParty/activitys.vue b/src/views/modules/communityParty/regionalParty/activitys.vue
index 3db8e731f..5fbda8bbe 100644
--- a/src/views/modules/communityParty/regionalParty/activitys.vue
+++ b/src/views/modules/communityParty/regionalParty/activitys.vue
@@ -385,7 +385,7 @@ export default {
//获取服务事项下拉框
async loadService () {
- const url = "/heart/serviceitem/dict-list"
+ const url = "/actual/base/serviceitem/dict-list"
let params = {
diff --git a/src/views/modules/communityParty/regionalParty/activitysForm.vue b/src/views/modules/communityParty/regionalParty/activitysForm.vue
index 1c1dfc789..fed357721 100644
--- a/src/views/modules/communityParty/regionalParty/activitysForm.vue
+++ b/src/views/modules/communityParty/regionalParty/activitysForm.vue
@@ -315,7 +315,7 @@ export default {
//获取服务事项下拉框
async loadService () {
- const url = "/heart/serviceitem/dict-list"
+ const url = "/actual/base/serviceitem/dict-list"
let params = {
type: 'usable'
diff --git a/src/views/modules/communityParty/regionalParty/finishList.vue b/src/views/modules/communityParty/regionalParty/finishList.vue
index 40296b06c..fbc1a73f7 100644
--- a/src/views/modules/communityParty/regionalParty/finishList.vue
+++ b/src/views/modules/communityParty/regionalParty/finishList.vue
@@ -301,8 +301,8 @@ export default {
async loadTable () {
this.tableLoading = true
- const url = '/heart/icpartyunitcompletion/list'
- // const url = 'http://yapi.elinkservice.cn/mock/245/heart/icpartyunitcompletion/list'
+ const url = '/actual/base/icpartyunitcompletion/list'
+ // const url = 'http://yapi.elinkservice.cn/mock/245/actual/base/icpartyunitcompletion/list'
let params = {
unitId: this.unitId
}
@@ -375,9 +375,9 @@ export default {
},
async addReview (row, tableIndex) {
- let url = "/heart/icpartyunitcompletion/save"
+ let url = "/actual/base/icpartyunitcompletion/save"
- // let url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyunitcompletion/save"
+ // let url = "http://yapi.elinkservice.cn/mock/245/actual/base/icpartyunitcompletion/save"
let params = JSON.parse(JSON.stringify(row))
@@ -462,8 +462,8 @@ export default {
async deleteRecord (row, tableIndex) {
- const url = "/heart/icpartyunitcompletion/delete"
- // const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyunitcompletion/delete"
+ const url = "/actual/base/icpartyunitcompletion/delete"
+ // const url = "http://yapi.elinkservice.cn/mock/245/actual/base/icpartyunitcompletion/delete"
let params = {
id: row.id
diff --git a/src/views/modules/communityParty/regionalParty/units.vue b/src/views/modules/communityParty/regionalParty/units.vue
index 9137a438b..42729924e 100644
--- a/src/views/modules/communityParty/regionalParty/units.vue
+++ b/src/views/modules/communityParty/regionalParty/units.vue
@@ -217,10 +217,10 @@
trigger="click">
@@ -412,7 +412,7 @@ export default {
//获取服务事项下拉框
async loadService () {
- const url = "/heart/serviceitem/dict-list"
+ const url = "/actual/base/serviceitem/dict-list"
let params = {
@@ -451,7 +451,7 @@ export default {
async loadTable () {
this.tableLoading = true
- const url = "/heart/icpartyunit/list"
+ const url = "/actual/base/icpartyunit/list"
// const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyunit/list"
let params = {
pageSize: this.pageSize,
@@ -544,23 +544,23 @@ export default {
},
- async handleSync (row) {
+ // async handleSync (row) {
- this.$confirm("确认同步到通讯录?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- })
- .then(() => {
- this.syncUnit(row)
- })
- .catch(err => {
- if (err == "cancel") {
+ // this.$confirm("确认同步到通讯录?", "提示", {
+ // confirmButtonText: "确定",
+ // cancelButtonText: "取消",
+ // type: "warning"
+ // })
+ // .then(() => {
+ // this.syncUnit(row)
+ // })
+ // .catch(err => {
+ // if (err == "cancel") {
- }
+ // }
- });
- },
+ // });
+ // },
async handleNoSync (row) {
this.$confirm("确认取消同步?", "提示", {
diff --git a/src/views/modules/communityParty/regionalParty/unitsForm.vue b/src/views/modules/communityParty/regionalParty/unitsForm.vue
index 3bb06c249..b588472a7 100644
--- a/src/views/modules/communityParty/regionalParty/unitsForm.vue
+++ b/src/views/modules/communityParty/regionalParty/unitsForm.vue
@@ -224,7 +224,7 @@ export default {
//获取服务事项下拉框
async loadService () {
- const url = "/heart/serviceitem/dict-list"
+ const url = "/actual/base/serviceitem/dict-list"
let params = {
type: 'usable'
// parentCategoryCode: '1010'
diff --git a/src/views/modules/communityService/gxxq/addForm.vue b/src/views/modules/communityService/gxxq/addForm.vue
index f447c1f55..9ef5544c1 100644
--- a/src/views/modules/communityService/gxxq/addForm.vue
+++ b/src/views/modules/communityService/gxxq/addForm.vue
@@ -444,6 +444,7 @@ export default {
this.formData.content = data.content;
this.formData.assignFlag = data.assignFlag
this.formData.resiSearchTagId = data.resiSearchTagId;
+ if( data.assignInfo){
this.newFormData.serviceTimeStart = data.assignInfo.serviceTimeStart;
this.newFormData.serviceTimeEnd = data.assignInfo.serviceTimeEnd;
this.newFormData.serverOrgType = data.assignInfo.serverOrgType;
@@ -455,8 +456,9 @@ export default {
data.assignInfo.serviceScopeList[i].objectId
);
}
- await this.handleChangeServiceTypeLevel1();
await this.getServiceuserList(data.assignInfo.serverOrgType);
+ }
+ await this.handleChangeServiceTypeLevel1();
await // this.formData = { ...data };
await this.getTagName();
@@ -696,33 +698,47 @@ export default {
objectName: this.newArr[i].objectName,
});
}
+ this.newArr = []
// 如果是编辑的话回填的数据会有数组字符串需要将不是对象属性的过滤掉
let arr = [];
+ let isOk = false;
this.newFormData.serviceScopeList.forEach((item) => {
if (typeof item != "string") {
arr.push(item);
}
});
- // 选中的数据中有不是网格或者社区或者楼栋的就停止它
- let isOk = false;
- arr.findIndex((item) => {
- if (
- item.objectType == "neighborhood" ||
- item.objectType == "agency" ||
- item.objectType == "grid"
- ) {
- isOk = true;
- } else {
- return (isOk = false);
- }
- });
- console.log(isOk);
- if (!isOk) {
- this.newArr = [];
- this.$message.error("请选择正确的网格,社区,楼栋!");
- return;
- }
- this.newFormData.serviceScopeList = arr;
+ // 选中的数据中有不是网格或者小区或者楼栋的就停止它
+
+ // arr.forEach((item) => {
+ // if (
+ // item.objectType == "neighborhood" ||
+ // item.objectType == "agency" ||
+ // item.objectType == "grid"
+ // ) {
+ // isOk = true;
+ // } else {
+ // isOk = false
+ // this.newArr = [];
+ // this.newFormData.serviceScopeList = []
+ // arr = []
+ // this.$message.error("请选择正确的网格,社区,楼栋!");
+ // }
+ // });
+ for(let i in arr){
+ if(arr[i].objectType == "neighborhood" ||
+ arr[i].objectType == "agency" ||
+ arr[i].objectType == "grid"){
+ isOk = true;
+ }else{
+ isOk = false;
+ console.log( this.newArr,'没有清空?');
+ this.$message.error("请选择正确的网格,社区,楼栋!");
+ return
+ }
+ }
+ console.log( this.newArr);
+ this.newFormData.serviceScopeList = arr;
+ if (!isOk && this.formData.assignFlag) return
var url = "";
var params = {};
if (this.formType == "edit") {
@@ -749,15 +765,15 @@ export default {
}
// const url = 'http://yapi.elinkservice.cn/mock/245/governance/icServiceProject/service/initiate'
console.log(params);
- // const { data, code, msg } = await requestPost(url, params);
-
- // if (code === 0) {
- // this.$message.success("添加成功");
- // this.resetData();
- // this.$emit("handleComfirm");
- // } else if(code>=8000){
- // this.$message.error(msg);
- // }
+ const { data, code, msg } = await requestPost(url, params);
+
+ if (code === 0) {
+ this.$message.success("添加成功");
+ this.resetData();
+ this.$emit("handleComfirm");
+ } else if(code>=8000){
+ this.$message.error(msg);
+ }
},
handleCancle() {
diff --git a/src/views/modules/communityService/gxxq/index.vue b/src/views/modules/communityService/gxxq/index.vue
index 49799d130..681ab04c3 100644
--- a/src/views/modules/communityService/gxxq/index.vue
+++ b/src/views/modules/communityService/gxxq/index.vue
@@ -204,7 +204,9 @@
diff --git a/src/views/modules/communityService/measure/detail.vue b/src/views/modules/communityService/measure/detail.vue
index e9a5e09c5..52d28dabd 100644
--- a/src/views/modules/communityService/measure/detail.vue
+++ b/src/views/modules/communityService/measure/detail.vue
@@ -86,11 +86,13 @@
-