|
|
|
@ -1,24 +1,26 @@ |
|
|
|
<template> |
|
|
|
<div class="resi-container"> |
|
|
|
<div class="g-page" v-show="pageType == 'list'"> |
|
|
|
<el-card ref="searchCard" class="search-card"> |
|
|
|
<el-form |
|
|
|
ref="searchForm" |
|
|
|
:inline="true" |
|
|
|
:model="fmData" |
|
|
|
:label-width="'100px'" |
|
|
|
class="demo-form-inline" |
|
|
|
> |
|
|
|
<div class="g-page" |
|
|
|
v-show="pageType == 'list'"> |
|
|
|
<el-card ref="searchCard" |
|
|
|
class="search-card"> |
|
|
|
<el-form ref="searchForm" |
|
|
|
:inline="true" |
|
|
|
:model="fmData" |
|
|
|
:label-width="'100px'" |
|
|
|
class="demo-form-inline"> |
|
|
|
<div> |
|
|
|
|
|
|
|
<el-form-item label="所属组织" label-width="100px" |
|
|
|
prop="orgId"> |
|
|
|
<el-cascader ref="cascaderUnit" v-model="orgId" |
|
|
|
:options="optionsA" |
|
|
|
:props="{ checkStrictly: true, |
|
|
|
emitPath: false,children:'subAgencyList',label:'agencyName', value: 'orgLevel'}" |
|
|
|
clearable |
|
|
|
@change="handleCalscChange"/> |
|
|
|
<el-form-item label="所属组织" |
|
|
|
label-width="100px" |
|
|
|
prop="orgId"> |
|
|
|
<el-cascader ref="cascaderUnit" |
|
|
|
v-model="orgId" |
|
|
|
:options="optionsA" |
|
|
|
:props="{ checkStrictly: true, |
|
|
|
emitPath: false,children:'subAgencyList',label:'agencyName', value: 'orgLevel'}" |
|
|
|
clearable |
|
|
|
@change="handleCalscChange" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="上报渠道" |
|
|
|
prop="origin"> |
|
|
|
@ -63,24 +65,30 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="事件类型" |
|
|
|
prop="firstIdList"> |
|
|
|
<el-cascader ref="cascaderEvent" v-model="eventTypeCheck" :options="cateOptions" |
|
|
|
collapse-tags |
|
|
|
:show-all-levels="false" |
|
|
|
:props="{ |
|
|
|
<el-cascader ref="cascaderEvent" |
|
|
|
v-model="eventTypeCheck" |
|
|
|
:options="cateOptions" |
|
|
|
collapse-tags |
|
|
|
:show-all-levels="false" |
|
|
|
:props="{ |
|
|
|
multiple: true, |
|
|
|
checkStrictly: false, |
|
|
|
emitPath: false, |
|
|
|
children:'subCategory', |
|
|
|
label:'name', |
|
|
|
value:'id' |
|
|
|
}" clearable class="item_width_2" @change="handleEventType" /> |
|
|
|
<!-- <template slot-scope="{ node, data }"> |
|
|
|
}" |
|
|
|
clearable |
|
|
|
class="item_width_2" |
|
|
|
@change="handleEventType" /> |
|
|
|
<!-- <template slot-scope="{ node, data }"> |
|
|
|
<div @click="cascaderClick(node, data)"> |
|
|
|
<span>{{ data.name }}</span> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-cascader> --> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="事件状态" |
|
|
|
prop="status"> |
|
|
|
<el-select class="item_width_2" |
|
|
|
@ -96,7 +104,21 @@ |
|
|
|
</el-select> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<!-- <el-form-item label="解决状态" |
|
|
|
prop="status"> |
|
|
|
<el-select class="item_width_2" |
|
|
|
v-model="fmData.status" |
|
|
|
placeholder="全部" |
|
|
|
size="small" |
|
|
|
clearable> |
|
|
|
<el-option v-for="item in resolvedStatus" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
|
|
|
|
</el-form-item> --> |
|
|
|
<el-form-item label="上报时间" |
|
|
|
prop="startTime"> |
|
|
|
<el-date-picker v-model="fmData.startTime" |
|
|
|
@ -120,7 +142,8 @@ |
|
|
|
|
|
|
|
<el-form-item label="处置选项" |
|
|
|
prop="staffId"> |
|
|
|
<el-checkbox v-model="checkStaffId" @change="handleCheckbox"></el-checkbox> |
|
|
|
<el-checkbox v-model="checkStaffId" |
|
|
|
@change="handleCheckbox"></el-checkbox> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
<el-button style="margin-left:30px" |
|
|
|
@ -137,135 +160,105 @@ |
|
|
|
|
|
|
|
<el-card class="resi-card-table"> |
|
|
|
<div class="resi-row-btn"> |
|
|
|
<el-button |
|
|
|
v-if="false" |
|
|
|
class="diy-button--add" |
|
|
|
size="small" |
|
|
|
@click="handleAdd" |
|
|
|
>新增</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
v-if="false" |
|
|
|
class="diy-button--export" |
|
|
|
size="small" |
|
|
|
@click="handleExportModule('room')" |
|
|
|
>下载模板</el-button |
|
|
|
> |
|
|
|
<el-upload |
|
|
|
v-if="false" |
|
|
|
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-button |
|
|
|
size="small" |
|
|
|
class="diy-button--delete" |
|
|
|
:loading="importLoading" |
|
|
|
>{{ importBtnTitle }}</el-button |
|
|
|
> |
|
|
|
<el-button v-if="false" |
|
|
|
class="diy-button--add" |
|
|
|
size="small" |
|
|
|
@click="handleAdd">新增</el-button> |
|
|
|
<el-button v-if="false" |
|
|
|
class="diy-button--export" |
|
|
|
size="small" |
|
|
|
@click="handleExportModule('room')">下载模板</el-button> |
|
|
|
<el-upload v-if="false" |
|
|
|
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-button size="small" |
|
|
|
class="diy-button--delete" |
|
|
|
:loading="importLoading">{{ importBtnTitle }}</el-button> |
|
|
|
</el-upload> |
|
|
|
|
|
|
|
<el-button @click="handleChu" class="diy-button--reset" size="small" |
|
|
|
:loading="exportLoading">导出</el-button |
|
|
|
> |
|
|
|
<el-button @click="handleChu" |
|
|
|
class="diy-button--reset" |
|
|
|
size="small" |
|
|
|
:loading="exportLoading">导出</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
<el-table |
|
|
|
:data="tableData" |
|
|
|
border |
|
|
|
style="width: 100%" |
|
|
|
class="resi-table" |
|
|
|
:height="maxTableHeight" |
|
|
|
> |
|
|
|
<el-table-column |
|
|
|
label="序号" |
|
|
|
fixed="left" |
|
|
|
type="index" |
|
|
|
align="center" |
|
|
|
width="50" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="gridName" |
|
|
|
align="center" |
|
|
|
label="所属组织/网格" |
|
|
|
min-width="140" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
> |
|
|
|
<el-table :data="tableData" |
|
|
|
border |
|
|
|
style="width: 100%" |
|
|
|
class="resi-table" |
|
|
|
:height="maxTableHeight"> |
|
|
|
<el-table-column label="序号" |
|
|
|
fixed="left" |
|
|
|
type="index" |
|
|
|
align="center" |
|
|
|
width="50" /> |
|
|
|
<el-table-column prop="gridName" |
|
|
|
align="center" |
|
|
|
label="所属组织/网格" |
|
|
|
min-width="140" |
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
prop="firstName" |
|
|
|
label="事件类型" |
|
|
|
min-width="140" |
|
|
|
align="center" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
> |
|
|
|
<el-table-column prop="firstName" |
|
|
|
label="事件类型" |
|
|
|
min-width="140" |
|
|
|
align="center" |
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.firstName + '-' + scope.row.secondName }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
prop="staffName" |
|
|
|
width="100" |
|
|
|
align="center" |
|
|
|
label="报事人" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
> |
|
|
|
<el-table-column prop="staffName" |
|
|
|
width="100" |
|
|
|
align="center" |
|
|
|
label="报事人" |
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
prop="mobile" |
|
|
|
align="center" |
|
|
|
label="手机号" |
|
|
|
width="140" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
> |
|
|
|
<el-table-column prop="mobile" |
|
|
|
align="center" |
|
|
|
label="手机号" |
|
|
|
width="140" |
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
prop="createdTime" |
|
|
|
align="center" |
|
|
|
label="上报时间" |
|
|
|
width="160" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
> |
|
|
|
<el-table-column prop="createdTime" |
|
|
|
align="center" |
|
|
|
label="上报时间" |
|
|
|
width="160" |
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
prop="backGround" |
|
|
|
align="center" |
|
|
|
label="事件内容" |
|
|
|
min-width="160" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
> |
|
|
|
<el-table-column prop="backGround" |
|
|
|
align="center" |
|
|
|
label="事件内容" |
|
|
|
min-width="160" |
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
prop="publicReply" |
|
|
|
align="center" |
|
|
|
min-width="160" |
|
|
|
label="办理结果(结案说明)" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
> |
|
|
|
<el-table-column prop="publicReply" |
|
|
|
align="center" |
|
|
|
min-width="160" |
|
|
|
label="办理结果(结案说明)" |
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.publicReply }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="urlList" |
|
|
|
align="center" |
|
|
|
label="图片 " |
|
|
|
> |
|
|
|
<el-table-column prop="urlList" |
|
|
|
align="center" |
|
|
|
label="图片 "> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-image v-if="scope.row.urlList&&scope.row.urlList.length>0" |
|
|
|
style="width: 40px; height: 40px" |
|
|
|
@ -275,13 +268,11 @@ |
|
|
|
<span v-else></span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="origin" |
|
|
|
align="center" |
|
|
|
label="上报渠道" |
|
|
|
width="120" |
|
|
|
/> |
|
|
|
<!-- <template slot-scope="scope"> |
|
|
|
<el-table-column prop="origin" |
|
|
|
align="center" |
|
|
|
label="上报渠道" |
|
|
|
width="120" /> |
|
|
|
<!-- <template slot-scope="scope"> |
|
|
|
<span v-if="scope.row.origin == 'agency'">网格上报</span> |
|
|
|
<span v-else-if="scope.row.origin == 'ic_event'">居民上报</span> |
|
|
|
<span v-else-if="scope.row.origin == 'work_event'">巡查上报</span> |
|
|
|
@ -289,89 +280,73 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> --> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
prop="address" |
|
|
|
align="center" |
|
|
|
label="地址 " |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="status" |
|
|
|
align="center" |
|
|
|
label="状态 " |
|
|
|
width="70" |
|
|
|
/> |
|
|
|
<!-- <template slot-scope="scope"> |
|
|
|
<el-table-column prop="address" |
|
|
|
align="center" |
|
|
|
label="地址 " |
|
|
|
:show-overflow-tooltip="true" /> |
|
|
|
<el-table-column prop="status" |
|
|
|
align="center" |
|
|
|
label="状态 " |
|
|
|
width="70" /> |
|
|
|
<!-- <el-table-column prop="status" |
|
|
|
align="center" |
|
|
|
label="解决状态 " |
|
|
|
width="90" /> --> |
|
|
|
<!-- <template slot-scope="scope"> |
|
|
|
{{ scope.row.status == 'pending' ? '处理中' : '已结案' }} |
|
|
|
</template> |
|
|
|
</el-table-column> --> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
fixed="right" |
|
|
|
label="操作" |
|
|
|
align="center" |
|
|
|
width="100" |
|
|
|
> |
|
|
|
<el-table-column fixed="right" |
|
|
|
label="操作" |
|
|
|
align="center" |
|
|
|
width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button |
|
|
|
v-if="scope.row.processable" |
|
|
|
@click="handleEdit(scope.$index)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class="div-table-button--edit" |
|
|
|
>处理</el-button |
|
|
|
> |
|
|
|
|
|
|
|
<el-button |
|
|
|
v-else |
|
|
|
@click="handleWatch(scope.$index)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
>查看</el-button |
|
|
|
> |
|
|
|
|
|
|
|
<el-popconfirm |
|
|
|
v-if="false" |
|
|
|
title="删除之后无法回复,确认删除?" |
|
|
|
@onConfirm="handleDel(scope.row, scope.$index)" |
|
|
|
@confirm="handleDel(scope.row, scope.$index)" |
|
|
|
> |
|
|
|
<el-button |
|
|
|
slot="reference" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class="div-table-button--delete" |
|
|
|
style="margin-left: 10px" |
|
|
|
>删除</el-button |
|
|
|
> |
|
|
|
<el-button v-if="scope.row.processable" |
|
|
|
@click="handleEdit(scope.$index)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class="div-table-button--edit">处理</el-button> |
|
|
|
|
|
|
|
<el-button v-else |
|
|
|
@click="handleWatch(scope.$index)" |
|
|
|
type="text" |
|
|
|
size="small">查看</el-button> |
|
|
|
|
|
|
|
<el-popconfirm v-if="false" |
|
|
|
title="删除之后无法回复,确认删除?" |
|
|
|
@onConfirm="handleDel(scope.row, scope.$index)" |
|
|
|
@confirm="handleDel(scope.row, scope.$index)"> |
|
|
|
<el-button slot="reference" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class="div-table-button--delete" |
|
|
|
style="margin-left: 10px">删除</el-button> |
|
|
|
</el-popconfirm> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
<div> |
|
|
|
<el-pagination |
|
|
|
@size-change="handleSizeChange" |
|
|
|
@current-change="handleCurrentChange" |
|
|
|
:current-page.sync="pageNo" |
|
|
|
:page-sizes="[20, 50, 100, 200]" |
|
|
|
:page-size="parseInt(pageSize)" |
|
|
|
layout="sizes, prev, pager, next, total" |
|
|
|
:total="total" |
|
|
|
> |
|
|
|
<el-pagination @size-change="handleSizeChange" |
|
|
|
@current-change="handleCurrentChange" |
|
|
|
:current-page.sync="pageNo" |
|
|
|
:page-sizes="[20, 50, 100, 200]" |
|
|
|
:page-size="parseInt(pageSize)" |
|
|
|
layout="sizes, prev, pager, next, total" |
|
|
|
:total="total"> |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="g-page" v-if="pageType == 'edit' || pageType == 'info'"> |
|
|
|
<project-info |
|
|
|
ref="eleEditForm" |
|
|
|
:type="pageType" |
|
|
|
:projectId="currentProject.projectId" |
|
|
|
@close="handleClose" |
|
|
|
@afterEdit="handleEditSuccess" |
|
|
|
/> |
|
|
|
<div class="g-page" |
|
|
|
v-if="pageType == 'edit' || pageType == 'info'"> |
|
|
|
<project-info ref="eleEditForm" |
|
|
|
:type="pageType" |
|
|
|
:projectId="currentProject.projectId" |
|
|
|
@close="handleClose" |
|
|
|
@afterEdit="handleEditSuccess" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -399,7 +374,7 @@ const _form = { |
|
|
|
export default { |
|
|
|
components: { projectInfo }, |
|
|
|
|
|
|
|
data() { |
|
|
|
data () { |
|
|
|
let endDisabledDate = (time) => {//这个关键属性我们一定要写在data的里面并且return的外面,这是动态改变区间的关键 |
|
|
|
let nowData = Date.now() |
|
|
|
if (this.fmData.startTime) { |
|
|
|
@ -423,6 +398,16 @@ export default { |
|
|
|
|
|
|
|
tableData: [], |
|
|
|
|
|
|
|
resolvedStatus: [ |
|
|
|
{ |
|
|
|
value: "resolved", |
|
|
|
label: "已解决", |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: "unresolved", |
|
|
|
label: "无需解决", |
|
|
|
}, |
|
|
|
], |
|
|
|
optionsStatus: [ |
|
|
|
{ |
|
|
|
value: "pending", |
|
|
|
@ -474,7 +459,7 @@ export default { |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
maxTableHeight() { |
|
|
|
maxTableHeight () { |
|
|
|
return this.$store.state.inIframe |
|
|
|
? this.clientHeight - 410 + this.iframeHeigh |
|
|
|
: this.clientHeight - 410; |
|
|
|
@ -492,13 +477,13 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted () { |
|
|
|
this.getTableData(); |
|
|
|
this.getGridList() |
|
|
|
this.getCateOptions() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
async handleExportModule() { |
|
|
|
async handleExportModule () { |
|
|
|
let url = "/heart/iccommunityselforganization/import-template-download"; |
|
|
|
|
|
|
|
let params = {}; |
|
|
|
@ -535,18 +520,18 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 上传大图标成功 |
|
|
|
handleExcelSuccess(res, file) { |
|
|
|
handleExcelSuccess (res, file) { |
|
|
|
if (res.code === 0 && res.msg === "success") { |
|
|
|
console.log("resss---ppp", res); |
|
|
|
} else { |
|
|
|
this.$message.error(res.msg); |
|
|
|
} |
|
|
|
}, |
|
|
|
handleProgress(event, file, fileList) { |
|
|
|
handleProgress (event, file, fileList) { |
|
|
|
console.log("percentage", file.percentage); |
|
|
|
}, |
|
|
|
|
|
|
|
beforeExcelUpload(file) { |
|
|
|
beforeExcelUpload (file) { |
|
|
|
console.log("file", file); |
|
|
|
const isType = file.type === "application/vnd.ms-excel"; |
|
|
|
const isTypeComputer = |
|
|
|
@ -563,7 +548,7 @@ export default { |
|
|
|
} |
|
|
|
return fileType && isLt1M; |
|
|
|
}, |
|
|
|
async uploadHttpRequest(file) { |
|
|
|
async uploadHttpRequest (file) { |
|
|
|
this.importLoading = true; |
|
|
|
this.importBtnTitle = "正在上传中..."; |
|
|
|
this.$message({ |
|
|
|
@ -617,19 +602,19 @@ export default { |
|
|
|
this.importBtnTitle = "导入"; |
|
|
|
this.$refs.upload.clearFiles(); |
|
|
|
}, |
|
|
|
handleCalscChange(val) { |
|
|
|
handleCalscChange (val) { |
|
|
|
console.log('val-----', val) |
|
|
|
const arr = val.split('-') |
|
|
|
this.fmData.orgId = arr[0] |
|
|
|
this.fmData.orgType = arr[1] === 'grid' ? 'grid' : 'agency' |
|
|
|
}, |
|
|
|
handleCheckbox(val) { |
|
|
|
handleCheckbox (val) { |
|
|
|
const { user } = this.$store.state |
|
|
|
console.log('val---', val) |
|
|
|
if (val) this.fmData.staffId = user.id |
|
|
|
else this.fmData.staffId = '' |
|
|
|
}, |
|
|
|
handleEventType(val) { |
|
|
|
handleEventType (val) { |
|
|
|
// console.log('val-----eee', val) |
|
|
|
console.log('nodes---', this.$refs.cascaderEvent.getCheckedNodes()) |
|
|
|
const nodes = this.$refs.cascaderEvent.getCheckedNodes() |
|
|
|
@ -659,24 +644,24 @@ export default { |
|
|
|
// this.$refs.cascaderUnit.toggleDropDownVisible(false); |
|
|
|
|
|
|
|
}, |
|
|
|
handleSizeChange(val) { |
|
|
|
handleSizeChange (val) { |
|
|
|
console.log(`每页 ${val} 条`); |
|
|
|
this.pageSize = val; |
|
|
|
window.localStorage.setItem("pageSize", val); |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
handleCurrentChange(val) { |
|
|
|
handleCurrentChange (val) { |
|
|
|
console.log(`当前页: ${val}`); |
|
|
|
this.pageNo = val; |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
|
|
|
|
handleSearch(val) { |
|
|
|
handleSearch (val) { |
|
|
|
console.log(JSON.stringify(this.fmData)); |
|
|
|
this.pageNo = 1; |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
resetForm(formName) { |
|
|
|
resetForm (formName) { |
|
|
|
this.$refs[formName].resetFields(); |
|
|
|
this.fmData = { |
|
|
|
..._form |
|
|
|
@ -687,7 +672,7 @@ export default { |
|
|
|
this.handleSearch(); |
|
|
|
}, |
|
|
|
|
|
|
|
async handleChu() { |
|
|
|
async handleChu () { |
|
|
|
// const url = "/gov/project/project/project-list-export"; |
|
|
|
const url = '/gov/project/project/orgprojectexport' |
|
|
|
const { pageSize, pageNo, fmData } = this; |
|
|
|
@ -726,8 +711,8 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
async handleAdd() {}, |
|
|
|
async handleWatch(rowIndex) { |
|
|
|
async handleAdd () { }, |
|
|
|
async handleWatch (rowIndex) { |
|
|
|
let item = this.tableData[rowIndex]; |
|
|
|
this.currentProject = { |
|
|
|
projectId: item.projectId, |
|
|
|
@ -735,7 +720,7 @@ export default { |
|
|
|
this.pageType = "info"; |
|
|
|
}, |
|
|
|
|
|
|
|
async handleEdit(rowIndex) { |
|
|
|
async handleEdit (rowIndex) { |
|
|
|
let item = this.tableData[rowIndex]; |
|
|
|
this.currentProject = { |
|
|
|
projectId: item.projectId, |
|
|
|
@ -743,19 +728,19 @@ export default { |
|
|
|
this.pageType = "edit"; |
|
|
|
}, |
|
|
|
|
|
|
|
handleClose() { |
|
|
|
handleClose () { |
|
|
|
this.pageType = "list"; |
|
|
|
this.currentProject = { |
|
|
|
projectId: "", |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
handleEditSuccess() { |
|
|
|
handleEditSuccess () { |
|
|
|
this.handleClose(); |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
|
|
|
|
async handleDel(rowData, rowIndex) { |
|
|
|
async handleDel (rowData, rowIndex) { |
|
|
|
console.log(rowData, rowIndex); |
|
|
|
const url = |
|
|
|
"/heart/iccommunityselforganization/delcommunityselforganization"; |
|
|
|
@ -773,10 +758,10 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async getTableData() { |
|
|
|
async getTableData () { |
|
|
|
// const url = "http://yapi.elinkservice.cn/mock/245/gov/project/project/project-list"; |
|
|
|
// const url = "/gov/project/project/project-list"; |
|
|
|
const url ='/gov/project/project/orgprojectlist' |
|
|
|
const url = '/gov/project/project/orgprojectlist' |
|
|
|
const { pageSize, pageNo, fmData } = this; |
|
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
|
pageSize, |
|
|
|
@ -788,16 +773,16 @@ export default { |
|
|
|
this.total = data.total || 0; |
|
|
|
this.tableData = data.list |
|
|
|
? data.list.map((item) => { |
|
|
|
return { |
|
|
|
...item, |
|
|
|
urlList: item.urlList && item.urlList.map(n => n.url) |
|
|
|
}; |
|
|
|
}) |
|
|
|
return { |
|
|
|
...item, |
|
|
|
urlList: item.urlList && item.urlList.map(n => n.url) |
|
|
|
}; |
|
|
|
}) |
|
|
|
: []; |
|
|
|
} else { |
|
|
|
} |
|
|
|
}, |
|
|
|
async getCateOptions() { |
|
|
|
async getCateOptions () { |
|
|
|
const url = "/gov/issue/issueprojectcategorydict/list"; |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, {}); |
|
|
|
@ -814,7 +799,7 @@ export default { |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
}, |
|
|
|
getGridList() { |
|
|
|
getGridList () { |
|
|
|
const { user } = this.$store.state |
|
|
|
this.dataListLoading = true |
|
|
|
const params = { |
|
|
|
@ -842,7 +827,7 @@ export default { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
}, |
|
|
|
deepTree(arr, child) { |
|
|
|
deepTree (arr, child) { |
|
|
|
if (Array.isArray(arr) && arr.length > 0) { |
|
|
|
return arr.map(item => { |
|
|
|
// if (child === 'subAgencyList') item.value = item.orgType + '-' + item.orgId |
|
|
|
|