Browse Source

Merge branch 'dev_shequzhili' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into dev_shequzhili

shibei_master
dai 3 years ago
parent
commit
85ef9c82ab
  1. 4
      src/assets/scss/modules/shequzhili/event-info.scss
  2. 27
      src/views/modules/shequzhili/event/cpts/event-info.vue
  3. 7
      src/views/modules/shequzhili/event/cpts/process-form-demand.vue
  4. 2
      src/views/modules/shequzhili/event/eventList.vue

4
src/assets/scss/modules/shequzhili/event-info.scss

@ -56,6 +56,10 @@
.g-page {
display: flex;
width:100%;
.g-total{
width:100%;
}
.g-left {
box-sizing: border-box;
width: 65%;

27
src/views/modules/shequzhili/event/cpts/event-info.vue

@ -31,7 +31,7 @@
<div v-if="pageTypeCopy == 'dispose'||pageTypeCopy == 'info'"
class="g-page">
<div :class="{'g-left':projectProcess.length>0}">
<div :class="['g-total',{'g-left':projectProcess.length>0}]">
<event-detail ref="ref_detail"
:type="pageType"
@ -356,7 +356,6 @@ export default {
this.$refs.ref_add.getEventInfo()
if (this.$refs.ref_add.okflag) {
this.eventInfoData = this.$refs.ref_add.formData
} else {
return false
@ -369,18 +368,21 @@ export default {
this.formData.operationType = this.$refs.ref_processinfo_add.operationType
this.eventInfoData.operationType = this.$refs.ref_processinfo_add.operationType
// this.eventInfoData.categoryList = this.$refs.ref_processinfo_add.categoryList
if (this.formData.operationType === '0') {
this.project = {}
this.demand = {}
this.replayInfo = this.$refs.ref_processinfo_add.replayInfo
console.log('replayInfo', this.replayInfo)
//
this.eventInfoData.content = this.replayInfo.content
this.eventInfoData.status = this.replayInfo.status
this.eventInfoData.categoryList = []
this.eventInfoData.categoryList.push(this.replayInfo.categoryId)
if (this.replayInfo.categoryId) {
this.eventInfoData.categoryList = []
this.eventInfoData.categoryList.push(this.replayInfo.categoryId)
}
} else if (this.formData.operationType === '1') {
@ -389,17 +391,22 @@ export default {
this.project = this.$refs.ref_processinfo_add.project
//
this.project.gridId = this.eventInfoData.gridId
if (this.project.categoryList && this.project.categoryList.length > 0) {
this.eventInfoData.categoryList = []
this.eventInfoData.categoryList.push(this.project.categoryList[0].id)
}
console.log('projectInfo', this.project)
} else if (this.formData.operationType === '2') {
this.replayInfo = {}
this.project = {}
this.demand = this.$refs.ref_processinfo_add.demand
//
this.demand.gridId = this.eventInfoData.gridId
this.demand.reportUserName = this.eventInfoData.name//
this.demand.reportUserMobile = this.eventInfoData.mobile//
this.demand.reportTime = this.eventInfoData.happenTime//
this.eventInfoData.categoryList = []
this.eventInfoData.categoryList.push(this.demand.categoryId)
console.log('demond', this.demand)
}
@ -413,7 +420,7 @@ export default {
}
console.log('this.formData', this.formData)
await this.submit()
// await this.submit()
},
async submit () {

7
src/views/modules/shequzhili/event/cpts/process-form-demand.vue

@ -363,6 +363,10 @@ export default {
this.formData.reportUserName = this.eventDetailCopy.name
this.formData.reportTime = this.eventDetailCopy.happenTime
this.formData.gridId = this.eventDetailCopy.gridId
this.formData.demandUserId = this.eventDetailCopy.reportUserId
this.formData.demandUserName = this.eventDetailCopy.name
this.formData.demandUserMobile = this.eventDetailCopy.mobile
if (this.eventDetailCopy.parentCategoryId && this.eventDetailCopy.categoryId) {
this.selCategoryArray = []
this.selCategoryArray.push(this.eventDetailCopy.parentCategoryId)
@ -525,10 +529,9 @@ export default {
this.$refs["ref_form"].validate((valid, messageObj) => {
if (!valid) {
app.util.validateRule(messageObj);
// this.formData.categoryId = this.selCateObj.id
} else {
this.okflag = true
}
});

2
src/views/modules/shequzhili/event/eventList.vue

@ -440,7 +440,7 @@ export default {
},
async handleExport () {
const url = "/epmetuser/icBirthRecord/export";
const url = "/gov/project/icEvent/export";
const { pageSize, pageNo, formData } = this;
axios({
url: window.SITE_CONFIG["apiURL"] + url,

Loading…
Cancel
Save