diff --git a/src/views/modules/communityParty/regionalParty/activitys.vue b/src/views/modules/communityParty/regionalParty/activitys.vue index 19b4fed3..2842a246 100644 --- a/src/views/modules/communityParty/regionalParty/activitys.vue +++ b/src/views/modules/communityParty/regionalParty/activitys.vue @@ -14,22 +14,26 @@ placeholder="全部" clearable> + :key="item.value" + :label="item.label" + :value="item.value"> - - - + + + + + + @@ -39,34 +43,28 @@ prop="title"> - - - - - - + + + + 查询 重置 @@ -288,8 +286,8 @@ export default { }, async loadUnit () { - // const url = "/heart/icpartyunit/option" - const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyunit/option" + const url = "/heart/icpartyunit/option" + // const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyunit/option" let params = { agencyId: this.agencyId @@ -308,8 +306,8 @@ export default { //获取服务事项下拉框 async loadService () { - // const url = "/heart/icresidemanddict/subcodelist" - const url = "http://yapi.elinkservice.cn/mock/245/heart/icresidemanddict/subcodelist" + const url = "/heart/icresidemanddict/subcodelist" + // const url = "http://yapi.elinkservice.cn/mock/245/heart/icresidemanddict/subcodelist" let params = { parentCategoryCode: '1010' @@ -329,8 +327,8 @@ export default { async loadTable () { this.tableLoading = true - // const url = "/heart/icpartyactivity/list" - const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/list" + const url = "/heart/icpartyactivity/search" + // const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/list" let params = { agencyId: this.agencyId, pageSize: this.pageSize, @@ -397,7 +395,7 @@ export default { type: "warning" }) .then(() => { - this.deleteUnit(row) + this.deleteActivity(row) }) .catch(err => { if (err == "cancel") { @@ -407,9 +405,9 @@ export default { }); }, - async deleteUnit (row) { - // const url = "/heart/icpartyactivity/delete" - const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/delete" + async deleteActivity (row) { + const url = "/heart/icpartyactivity/delete" + // const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/delete" let params = { id: row.id @@ -626,6 +624,9 @@ export default { .item_width_1 { width: 260px; } +.item_width_2 { + width: 520px; +} .div_table { background: #ffffff; diff --git a/src/views/modules/communityParty/regionalParty/activitysForm.vue b/src/views/modules/communityParty/regionalParty/activitysForm.vue index a120e282..a85b8f7c 100644 --- a/src/views/modules/communityParty/regionalParty/activitysForm.vue +++ b/src/views/modules/communityParty/regionalParty/activitysForm.vue @@ -34,9 +34,9 @@ placeholder="请选择" clearable> + :key="item.value" + :label="item.label" + :value="item.value"> @@ -96,7 +96,7 @@ prop="activityTime" label-width="150px"> @@ -230,24 +230,26 @@ export default { methods: { async initForm (type, activityId) { + this.startLoading() this.$refs.ref_form.resetFields(); - // debugger - // map.setCenter(new TMap.LatLng(agencyObj.latitude, agencyObj.longitude)) - this.formType = type if (activityId) { this.activityId = activityId this.formData.id = activityId await this.loadFormData() + } else { + map.setCenter(new TMap.LatLng(36.0722275, 120.38945519)) + this.setMarker(36.0722275, 120.38945519) } + this.endLoading() }, //加载组织 async loadFormData () { - // const url = '/heart/icpartyactivity/detail' - const url = 'http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/detail' + const url = '/heart/icpartyactivity/detail' + // const url = 'http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/detail' let params = { id: this.activityId } @@ -256,7 +258,8 @@ export default { if (code === 0) { this.formData = data - + map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude)) + this.setMarker(this.formData.latitude, this.formData.longitude) } else { this.$message.error(msg) } @@ -279,8 +282,8 @@ export default { }, async addActivity () { - // let url = '/heart/icpartyactivity/save' - let url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/save" + let url = '/heart/icpartyactivity/save' + // let url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/save" const { data, code, msg } = await requestPost(url, this.formData) diff --git a/src/views/modules/communityParty/regionalParty/units.vue b/src/views/modules/communityParty/regionalParty/units.vue index 792c2244..ce93f05a 100644 --- a/src/views/modules/communityParty/regionalParty/units.vue +++ b/src/views/modules/communityParty/regionalParty/units.vue @@ -6,25 +6,11 @@ ref="ref_searchform" :label-width="'100px'">
- - - - - - @@ -32,7 +18,7 @@ - @@ -64,7 +50,6 @@ prop="contact"> @@ -75,7 +60,6 @@ prop="contactMobile"> @@ -84,11 +68,9 @@ 查询 重置
@@ -133,12 +115,7 @@ align="center" type="index" width="50"> - - + + width="80"> - + min-width="180"> + + + width="100"> + width="100"> { - item.serviceMatterShow = '' - if (item.serviceMatterList.length > 0) { - item.serviceMatterShow = item.serviceMatterList.jone('') + // this.tableData.forEach(item => { + // item.serviceMatterShow = '' + // if (item.serviceMatterList.length > 0) { + // item.serviceMatterShow = item.serviceMatterList.join('') - } + // } - }); + // }); } else { this.$message.error(msg) } @@ -477,8 +440,8 @@ export default { }, async deleteUnit (row) { - // const url = "/heart/icpartyunit/delete" - const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyunit/delete" + const url = "/heart/icpartyunit/delete" + // const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyunit/delete" let params = { id: row.id @@ -501,7 +464,6 @@ export default { //重置搜索条件 resetSearch () { this.formData = { - gridId: '', unitName: '', serviceMatter: '', type: '', @@ -676,6 +638,9 @@ export default { .item_width_1 { width: 260px; } +.item_width_2 { + width: 620px; +} .div_table { background: #ffffff; diff --git a/src/views/modules/communityParty/regionalParty/unitsForm.vue b/src/views/modules/communityParty/regionalParty/unitsForm.vue index 0f9371a1..bfc2c23c 100644 --- a/src/views/modules/communityParty/regionalParty/unitsForm.vue +++ b/src/views/modules/communityParty/regionalParty/unitsForm.vue @@ -9,22 +9,6 @@ :disabled="formType === 'detail'" class="form"> - - - - - - - + :min="0" + label="在职党员"> @@ -81,11 +80,9 @@ 查询 重置 @@ -118,13 +115,13 @@ header-align="center" align="center" label="场所类型" - min-width="180"> + width="180"> + width="180"> + width="110"> + width="110"> + width="80"> 0) { + this.tableData.forEach(item => { + if (item.firstTime) { + let firstTimeArray = item.firstTime.split(' ') + item.firstTime = firstTimeArray[0] + } + + if (item.reviewTime) { + let reviewTimeArray = item.reviewTime.split(' ') + item.reviewTime = reviewTimeArray[0] + } + + if (item.finalTime) { + let finalTimeArray = item.finalTime.split(' ') + item.finalTime = finalTimeArray[0] + } + + if (item.firstResult) { + item.firstResult = item.firstResult === '0' ? '合格' : '不合格' + } + if (item.finalResult) { + item.finalResult = item.finalResult === '0' ? '合格' : '不合格' + } + }); + + } + } else { this.$message.error(msg) } @@ -431,8 +455,8 @@ export default { }, async deleteRecord (row) { - // const url = "/gov/org/placepatrolrecord/del" - const url = "http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolrecord/del" + const url = "/gov/org/placepatrolrecord/del" + // const url = "http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolrecord/del" let params = { placePatrolRecordId: row.placePatrolRecordId diff --git a/src/views/modules/communityService/ninePlaces/inspect/inspectForm.vue b/src/views/modules/communityService/ninePlaces/inspect/inspectForm.vue index 1c09cbc1..83836816 100644 --- a/src/views/modules/communityService/ninePlaces/inspect/inspectForm.vue +++ b/src/views/modules/communityService/ninePlaces/inspect/inspectForm.vue @@ -80,8 +80,8 @@ style="display:flex;flex-wrap:wrap" v-model="formData.inspectorArray"> {{item.name}} + :key="item.id" + :label="item.id">{{item.name}} @@ -91,7 +91,7 @@ prop="firstTime" label-width="150px"> @@ -131,7 +131,7 @@ prop="reviewTime" label-width="150px"> @@ -189,25 +189,26 @@ export default { methods: { - async initForm (type, placeOrgId) { + async initForm (type, placePatrolRecordId) { this.$refs.ref_form.resetFields(); - + this.startLoading() await this.loadPlaces() await this.loadTeams() this.formType = type - if (placeOrgId) { - this.placeOrgId = placeOrgId - this.formData.placeOrgId = placeOrgId + if (placePatrolRecordId) { + this.placePatrolRecordId = placePatrolRecordId + this.formData.placePatrolRecordId = placePatrolRecordId await this.loadFormData() + await this.loadInspectors() } - + this.endLoading() }, //加载场所 async loadPlaces () { - // const url = '/gov/org/placeorg/getlist' - const url = 'http://yapi.elinkservice.cn/mock/245/gov/org/placeorg/getlist' + const url = '/gov/org/placeorg/getlist' + let params = { isPage: false } @@ -224,8 +225,8 @@ export default { //加载分队 async loadTeams () { - // const url = '/gov/org/placepatrolteam/getlist' - const url = 'http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolteam/getlist' + const url = '/gov/org/placepatrolteam/getlist' + // const url = 'http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolteam/getlist' let params = { isPage: false } @@ -247,14 +248,16 @@ export default { //点击分队切换人员 async hancleChangeTeam (index) { + let array = [] + this.formData.inspectorArray = [...array] // this.formData.placePatrolTeamId = this.teamsList[index].teamId await this.loadInspectors() }, //加载分队下人员 async loadInspectors () { - // const url = '/gov/org/placepatrolteamstaff/getlist' - const url = 'http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolteamstaff/getlist' + const url = '/gov/org/placepatrolteamstaff/getlist' + // const url = 'http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolteamstaff/getlist' let params = { teamId: this.formData.placePatrolTeamId } @@ -270,16 +273,19 @@ export default { }, //加载form async loadFormData () { - // const url = '/gov/org/placeorg/detail' - const url = 'http://yapi.elinkservice.cn/mock/245/gov/org/placeorg/detail' + const url = '/gov/org/placepatrolrecord/detail' + let params = { - placeOrgId: this.placeOrgId + placePatrolRecordId: this.placePatrolRecordId } const { data, code, msg } = await requestPost(url, params) if (code === 0) { - this.formData = data + data.inspectorArray = data.inspectors.split(',') + this.formData = { ...data } + + } else { this.$message.error(msg) @@ -306,8 +312,8 @@ export default { }, async addRecord () { - // let url = "/gov/org/placepatrolrecord/add" - let url = "http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolrecord/add" + let url = "/gov/org/placepatrolrecord/add" + // let url = "http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolrecord/add" this.formData.inspectors = this.formData.inspectorArray.join(',') const { data, code, msg } = await requestPost(url, this.formData) @@ -374,7 +380,7 @@ export default { ninePlaceVal: [ { required: true, message: '场所类型不能为空', trigger: 'blur' }, ], - placeOrgName: [ + placeOrgId: [ { required: true, message: '场所名称不能为空', trigger: 'blur' } ], placePatrolTeamId: [ diff --git a/src/views/modules/communityService/ninePlaces/inspect/inspectReview.vue b/src/views/modules/communityService/ninePlaces/inspect/inspectReview.vue index 7af12868..12a350ac 100644 --- a/src/views/modules/communityService/ninePlaces/inspect/inspectReview.vue +++ b/src/views/modules/communityService/ninePlaces/inspect/inspectReview.vue @@ -25,9 +25,9 @@ label="复查时间" width="250">