|
@ -78,47 +78,24 @@ |
|
|
<div class="div_btn"> |
|
|
<div class="div_btn"> |
|
|
|
|
|
|
|
|
<el-button @click="handleExport" class="diy-button--white" size="small">导出</el-button> |
|
|
<el-button @click="handleExport" class="diy-button--white" size="small">导出</el-button> |
|
|
<!-- <el-button class="diy-button--white" size="small"> |
|
|
|
|
|
<el-upload :headers="$getElUploadHeaders()" ref="upload" class="upload-btn" |
|
|
|
|
|
action="uploadUlr" :limit="1" :accept="'.xls,.xlsx'" :with-credentials="true" |
|
|
|
|
|
:show-file-list="false" :auto-upload="true" :on-progress="handleProgress" |
|
|
|
|
|
:on-success="handleExcelSuccess" :before-upload="beforeExcelUpload" |
|
|
|
|
|
:http-request="uploadHttpRequest"> |
|
|
|
|
|
上传导入 |
|
|
|
|
|
</el-upload> |
|
|
|
|
|
</el-button> --> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-dropdown size="small" split-button type="primary" style="margin: 0 10px; height: 30px" |
|
|
|
|
|
@command="(command) => importTypeChange(command)"> |
|
|
|
|
|
导入 |
|
|
|
|
|
<el-dropdown-menu slot="dropdown"> --> |
|
|
|
|
|
<!-- <el-dropdown-item command="0" @click.native="handleExportModule">下载模板</el-dropdown-item> --> |
|
|
|
|
|
<!-- <el-upload :headers="$getElUploadHeaders()" ref="upload" class="upload-btn" |
|
|
|
|
|
action="uploadUlr" :limit="1" :accept="'.xls,.xlsx'" :with-credentials="true" |
|
|
|
|
|
:show-file-list="false" :auto-upload="true" :on-progress="handleProgress" |
|
|
|
|
|
:on-success="handleExcelSuccess" :before-upload="beforeExcelUpload" |
|
|
|
|
|
:http-request="uploadHttpRequest"> |
|
|
|
|
|
<el-dropdown-item command="1">上传导入</el-dropdown-item> |
|
|
|
|
|
</el-upload> |
|
|
|
|
|
</el-dropdown-menu> --> |
|
|
|
|
|
<!-- </el-dropdown> --> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<el-table :data="tableData" border class="m-table-item" style="width: 100%" |
|
|
<el-table :data="tableData" border class="m-table-item" style="width: 100%" |
|
|
@selection-change="handleSelectionChange" :height="maxTableHeight"> |
|
|
@selection-change="handleSelectionChange" :height="maxTableHeight"> |
|
|
<el-table-column label="" fixed="left" type="selection" align="center" width="50" /> |
|
|
<el-table-column label="" fixed="left" type="selection" align="center" width="50" /> |
|
|
<!-- <el-table-column label="序号" fixed="left" type="index" align="center" width="50" /> --> |
|
|
<!-- <el-table-column label="序号" fixed="left" type="index" align="center" width="50" /> --> |
|
|
|
|
|
|
|
|
<el-table-column prop="workOrderNum" align="center" label="所属组织" :show-overflow-tooltip="true"> |
|
|
<el-table-column prop="agencyName" align="center" label="所属组织" :show-overflow-tooltip="true"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="categoryAllName" label="征集领域" min-width="140" align="center" |
|
|
<el-table-column prop="typeCode" label="征集领域" min-width="140" align="center" |
|
|
:show-overflow-tooltip="true" /> |
|
|
:show-overflow-tooltip="true" /> |
|
|
<!-- <template slot-scope="scope"> |
|
|
<!-- <template slot-scope="scope"> |
|
|
{{ scope.row.firstName + '-' + scope.row.secondName }} |
|
|
{{ scope.row.firstName + '-' + scope.row.secondName }} |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> --> |
|
|
</el-table-column> --> |
|
|
<el-table-column prop="eventContent" label="意见标题" align="center" :show-overflow-tooltip="true"> |
|
|
<el-table-column prop="subjectTitle" label="意见标题" align="center" :show-overflow-tooltip="true"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="name" label="意见内容" align="center" :show-overflow-tooltip="true"> |
|
|
<el-table-column prop="eventContent" label="意见内容" align="center" :show-overflow-tooltip="true"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="name" label="提交人" align="center" :show-overflow-tooltip="true"> |
|
|
<el-table-column prop="name" label="提交人" align="center" :show-overflow-tooltip="true"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
@ -137,27 +114,27 @@ |
|
|
</span> |
|
|
</span> |
|
|
</template> --> |
|
|
</template> --> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="statusName" align="center" width="110" label="是否愿意公开" |
|
|
<el-table-column prop="openFlag" align="center" width="110" label="是否愿意公开" |
|
|
:show-overflow-tooltip="true"> |
|
|
:show-overflow-tooltip="true"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="scope.row.status === '0'" style="color: #ff6600;">否</span> |
|
|
<span v-if="scope.row.openFlag === 0" style="color: #ff6600;">否</span> |
|
|
<span v-else-if="scope.row.status ==='1'">是</span> |
|
|
<span v-else-if="scope.row.openFlag ===1">是</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="statusName" align="center" width="110" label="是否金点子建议" |
|
|
<el-table-column prop="goldenIdeaFlag" align="center" width="110" label="是否金点子建议" |
|
|
:show-overflow-tooltip="true"> |
|
|
:show-overflow-tooltip="true"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="scope.row.status === '0'" style="color: #ff6600;">否</span> |
|
|
<span v-if="scope.row.goldenIdeaFlag === 0" style="color: #ff6600;">否</span> |
|
|
<span v-else-if="scope.row.status ==='1'">是</span> |
|
|
<span v-else-if="scope.row.goldenIdeaFlag ===1">是</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="limitTime" align="center" width="110" label="提交时间" |
|
|
<el-table-column prop="submitTime" align="center" width="110" label="提交时间" |
|
|
:show-overflow-tooltip="true"> |
|
|
:show-overflow-tooltip="true"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column fixed="right" label="操作" align="center" width="200px" prop="status"> |
|
|
<el-table-column fixed="right" label="操作" align="center" width="200px" prop="status"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-button @click="handleDispose(scope.row,'dispose')" type="text" size="small" |
|
|
<el-button @click="handleDispose(scope.row,'dispose')" type="text" size="small" |
|
|
v-if="scope.row.status =='unassigned'||scope.row.status =='processing'||scope.row.operationType =='13'">办理</el-button> |
|
|
>办理</el-button> |
|
|
<el-button @click="handleDispose(scope.row,'info')" type="text" size="small" |
|
|
<el-button @click="handleDispose(scope.row,'info')" type="text" size="small" |
|
|
>删除</el-button> |
|
|
>删除</el-button> |
|
|
</template> |
|
|
</template> |
|
@ -354,19 +331,17 @@ export default { |
|
|
{label:'违章停车',value:'1'} |
|
|
{label:'违章停车',value:'1'} |
|
|
], |
|
|
], |
|
|
formData: { |
|
|
formData: { |
|
|
agencyId: "", |
|
|
demandType: "", |
|
|
gridId:"", |
|
|
|
|
|
sourceType: "", |
|
|
|
|
|
eventContent: "", |
|
|
|
|
|
name: "", |
|
|
name: "", |
|
|
mobile: "", |
|
|
mobile: "", |
|
|
startTime: "", |
|
|
eventContent: "", |
|
|
endTime: "", |
|
|
operationType: 4, |
|
|
status: "", |
|
|
openFlag: "", |
|
|
firstIdList: [], |
|
|
specialSubjectId: "", |
|
|
secondIdList: [], |
|
|
subjectTitle: "", |
|
|
openFlag:null, |
|
|
goldenIdeaFlag: "", |
|
|
keyProblem:'' |
|
|
agencyId: "", |
|
|
|
|
|
clientType: "web" |
|
|
}, |
|
|
}, |
|
|
cateOptions: [], |
|
|
cateOptions: [], |
|
|
optionProps: { |
|
|
optionProps: { |
|
@ -423,8 +398,8 @@ export default { |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.user = this.$store.state.user; |
|
|
this.user = this.$store.state.user; |
|
|
this.agencyId = this.user.agencyId; |
|
|
this.agencyId = this.user.agencyId; |
|
|
this.getOrgTreeList() |
|
|
// this.getOrgTreeList() |
|
|
this.getGridList() |
|
|
// this.getGridList() |
|
|
this.getTableData(); |
|
|
this.getTableData(); |
|
|
this.getCateOptions(); |
|
|
this.getCateOptions(); |
|
|
}, |
|
|
}, |
|
@ -618,7 +593,7 @@ export default { |
|
|
async handleDispose(row,type) { |
|
|
async handleDispose(row,type) { |
|
|
// this.eventDetailData = { ...data }; |
|
|
// this.eventDetailData = { ...data }; |
|
|
// this.pageType = type |
|
|
// this.pageType = type |
|
|
this.eventId = "1855782512757325825"; |
|
|
this.eventId = row.icEventId; |
|
|
const url = "/governance/icEventOld/detail"; |
|
|
const url = "/governance/icEventOld/detail"; |
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
icEventId: this.eventId, |
|
|
icEventId: this.eventId, |
|
@ -694,24 +669,24 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async getTableData() { |
|
|
async getTableData() { |
|
|
const url = "/governance/icEventOld/list"; |
|
|
const url = "/governance/icEventOld/ideaList"; |
|
|
console.log(this.formData,"formData"); |
|
|
console.log(this.formData,"formData"); |
|
|
if (this.eventTypeCheck) { |
|
|
// if (this.eventTypeCheck) { |
|
|
this.formData.secondIdList = this.eventTypeCheck |
|
|
// this.formData.secondIdList = this.eventTypeCheck |
|
|
} |
|
|
// } |
|
|
// 处理 agencyId |
|
|
// // 处理 agencyId |
|
|
if (Array.isArray(this.formData.agencyId) && this.formData.agencyId.length) { |
|
|
// if (Array.isArray(this.formData.agencyId) && this.formData.agencyId.length) { |
|
|
if(this.level=="grid"){ |
|
|
// if(this.level=="grid"){ |
|
|
this.formData.gridId = this.formData.agencyId[this.formData.agencyId.length - 1]; |
|
|
// this.formData.gridId = this.formData.agencyId[this.formData.agencyId.length - 1]; |
|
|
this.formData.agencyId = ""; |
|
|
// this.formData.agencyId = ""; |
|
|
}else{ |
|
|
// }else{ |
|
|
this.formData.agencyId = this.formData.agencyId[this.formData.agencyId.length - 1]; |
|
|
// this.formData.agencyId = this.formData.agencyId[this.formData.agencyId.length - 1]; |
|
|
this.formData.gridId = ""; |
|
|
// this.formData.gridId = ""; |
|
|
} |
|
|
// } |
|
|
} else { |
|
|
// } else { |
|
|
this.formData.agencyId = ""; |
|
|
// this.formData.agencyId = ""; |
|
|
this.formData.gridId = ""; |
|
|
// this.formData.gridId = ""; |
|
|
} |
|
|
// } |
|
|
|
|
|
|
|
|
const { pageSize, pageNo, formData } = this; |
|
|
const { pageSize, pageNo, formData } = this; |
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
const { data, code, msg } = await requestPost(url, { |
|
@ -726,19 +701,6 @@ export default { |
|
|
return item; |
|
|
return item; |
|
|
}) |
|
|
}) |
|
|
: []; |
|
|
: []; |
|
|
|
|
|
|
|
|
// this.tableData.forEach(item => { |
|
|
|
|
|
// if (item.operationType === '2') { |
|
|
|
|
|
// item.operationTypeShow = '已转服务' |
|
|
|
|
|
// } |
|
|
|
|
|
// if (item.operationType === '1') { |
|
|
|
|
|
// item.operationTypeShow = '已立项' |
|
|
|
|
|
// } |
|
|
|
|
|
// if (item.operationType === '0') { |
|
|
|
|
|
// item.operationTypeShow = '已回复' |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
// }); |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(msg); |
|
|
this.$message.error(msg); |
|
|
} |
|
|
} |
|
|