tianq 3 years ago
parent
commit
4f64f24b32
  1. 7
      src/assets/scss/modules/management/list-main.scss
  2. 2
      src/views/modules/communityParty/regionalParty/activitys.vue
  3. 2
      src/views/modules/communityParty/regionalParty/activitysForm.vue
  4. 12
      src/views/modules/communityParty/regionalParty/finishList.vue
  5. 36
      src/views/modules/communityParty/regionalParty/units.vue
  6. 2
      src/views/modules/communityParty/regionalParty/unitsForm.vue
  7. 68
      src/views/modules/communityService/gxxq/addForm.vue
  8. 7
      src/views/modules/communityService/gxxq/index.vue
  9. 10
      src/views/modules/communityService/measure/detail.vue
  10. 621
      src/views/modules/communityService/measure/index.vue
  11. 2
      src/views/modules/shequzhili/csgltc/csgl.vue
  12. 2
      src/views/modules/visual/communityParty/community.vue

7
src/assets/scss/modules/management/list-main.scss

@ -106,7 +106,12 @@
}
}
.div-flex{
.m-page{
display: flex;
justify-content: space-between;
}
}
// 弹性盒子
.f-flex {

2
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 = {

2
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'

12
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

36
src/views/modules/communityParty/regionalParty/units.vue

@ -217,10 +217,10 @@
trigger="click">
<div v-if="scope.row.syncType==='not_sync'"
class="table-more-btn">
<el-button type="text"
<!-- <el-button type="text"
class="div-table-button--detail"
size="small"
@click="handleSync(scope.row)">同步</el-button>
@click="handleSync(scope.row)">同步</el-button> -->
</div>
<div v-if="scope.row.syncType==='sync'"
class="table-more-btn">
@ -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("确认取消同步?", "提示", {

2
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'

68
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"
) {
//
// 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 {
return (isOk = false);
}
});
console.log(isOk);
if (!isOk) {
this.newArr = [];
}else{
isOk = false;
console.log( this.newArr,'没有清空?');
this.$message.error("请选择正确的网格,社区,楼栋!");
return;
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() {

7
src/views/modules/communityService/gxxq/index.vue

@ -204,7 +204,9 @@
<div class="div-flex">
<div class="m-page">
<el-button @click="deleteBatch" size="small" style="margin-top: 15px;">
批量删除
</el-button>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
@ -214,9 +216,6 @@
layout="sizes, prev, pager, next, total"
:total="total"
>
<el-button @click="deleteBatch">
批量删除
</el-button>
</el-pagination>
</div>
</div>

10
src/views/modules/communityService/measure/detail.vue

@ -86,11 +86,13 @@
</div>
</div>
<div class="div-btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
<el-row>
<el-col :span="24" align="right">
<el-button size="small"
@click="handleCancle" style="margin-right: 16px;"> </el-button>
</el-col>
</el-row>
</div>
</template>

621
src/views/modules/communityService/measure/index.vue

File diff suppressed because it is too large

2
src/views/modules/shequzhili/csgltc/csgl.vue

@ -314,7 +314,7 @@ export default {
//
async loadService () {
// const url = "/heart/serviceitem/dict-list"
// const url = "/heart/actual/base/serviceitem/dict-list"
const url = "/gov/org/coverage/dict-select-list/city_management"

2
src/views/modules/visual/communityParty/community.vue

@ -837,7 +837,7 @@ export default {
return y + '-' + m + '-' + d + ' ' + h
},
async loadUnit () {
const url = "/heart/serviceitem/dict-list"
const url = "/actual/base/serviceitem/dict-list"
let params = {

Loading…
Cancel
Save