13 changed files with 3771 additions and 2803 deletions
File diff suppressed because it is too large
@ -1,283 +1,496 @@ |
|||||
<template> |
<template> |
||||
<div class=""> |
<div class=""> |
||||
<el-card :style="containerStyle" :class="{ 'box-card': source === 'visiual' }" v-if="showType == ''"> |
<el-card |
||||
<h3 v-if="source === 'manage'" class="h3-title"> |
:style="containerStyle" |
||||
<img src="../../../../../assets/images/index/title-icon-sqzl.png" width="30px" height="30px" alt="" /> |
:class="{ 'box-card': source === 'visiual' }" |
||||
事件详情 |
v-if="showType == ''" |
||||
</h3> |
> |
||||
<div class="m-detail-main"> |
<h3 v-if="source === 'manage'" class="h3-title"> |
||||
<div class="m-info"> |
<img |
||||
<div :class="['m-info-prop', { 'm-info-prop-vis': source === 'visiual' },]"> |
src="../../../../../assets/images/index/title-icon-sqzl.png" |
||||
<span class="u-info-title-2">所属组织:</span> |
width="30px" |
||||
<span>{{ info.gridName }}</span> |
height="30px" |
||||
</div> |
alt="" |
||||
<div :class="['m-info-prop', { 'm-info-prop-vis': source === 'visiual' },]"> |
/> |
||||
<span class="u-info-title-2">接收时间:</span> |
事件详情 |
||||
<span>{{ info.happenTime }}</span> |
</h3> |
||||
</div> |
<div class="m-detail-main"> |
||||
<div :class="['m-info-prop', { 'm-info-prop-vis': source === 'visiual' },]"> |
<div class="m-info"> |
||||
<span class="u-info-title-2">工单号:</span> |
<div |
||||
<span>{{ info.workOrderNum }}</span> |
:class="[ |
||||
</div> |
'm-info-prop', |
||||
<div :class="['m-info-prop', { 'm-info-prop-vis': source === 'visiual' },]"> |
{ 'm-info-prop-vis': source === 'visiual' }, |
||||
<span class="u-info-title-2">事件内容:</span> |
]" |
||||
<span>{{ info.eventContent }}</span> |
> |
||||
</div> |
<span class="u-info-title-2">所属网格:</span> |
||||
|
<span>{{ info.gridName }}</span> |
||||
<div v-if="info.imageList && info.imageList.length > 0" |
</div> |
||||
:class="['m-info-prop', { 'm-info-prop-vis': source === 'visiual' },]"> |
<div |
||||
<span class="u-info-title-2">图片:</span> |
:class="[ |
||||
<img :src="src" :key="src" style="width: 150px; height: 150px; padding-right: 10px" |
'm-info-prop', |
||||
v-for="src in info.imageList" @click="watchImg(src)" /> |
{ 'm-info-prop-vis': source === 'visiual' }, |
||||
</div> |
]" |
||||
<div v-if="info.voiceList && info.voiceList.length > 0" |
> |
||||
:class="['m-info-prop', { 'm-info-prop-vis': source === 'visiual' },]"> |
<span class="u-info-title-2">上报时间:</span> |
||||
<span class="u-info-title-2">语音:</span> |
<span>{{ info.happenTime }}</span> |
||||
<audio controls> |
</div> |
||||
<source :src="item.url" type="" :key="item.url" v-for="item in info.voiceList" /> |
<div |
||||
</audio> |
:class="[ |
||||
</div> |
'm-info-prop', |
||||
|
{ 'm-info-prop-vis': source === 'visiual' }, |
||||
<div :class="['m-info-prop', { 'm-info-prop-vis': source === 'visiual' },]"> |
]" |
||||
<span class="u-info-title-2">上报渠道:</span> |
> |
||||
<span>{{ info.sourceTypeName }}</span> |
<span class="u-info-title-2">事件内容:</span> |
||||
</div> |
<span>{{ info.eventContent }}</span> |
||||
<div :class="['m-info-prop', { 'm-info-prop-vis': source === 'visiual' },]"> |
</div> |
||||
<span class="u-info-title-2">详细地址</span> |
|
||||
<span>{{ info.address }}</span> |
<div |
||||
</div> |
v-if="info.imageList && info.imageList.length > 0" |
||||
<div :class="['m-info-prop', { 'm-info-prop-vis': source === 'visiual' },]"> |
:class="[ |
||||
<span class="u-info-title-2">联系人:</span> |
'm-info-prop', |
||||
<span>{{ info.name }}</span> |
{ 'm-info-prop-vis': source === 'visiual' }, |
||||
</div> |
]" |
||||
<div :class="['m-info-prop', { 'm-info-prop-vis': source === 'visiual' },]"> |
> |
||||
<span class="u-info-title-2">联系电话:</span> |
<span class="u-info-title-2">图片:</span> |
||||
<span>{{ info.mobile }}</span> |
<img |
||||
</div> |
:src="src" |
||||
<div :class="['m-info-prop', { 'm-info-prop-vis': source === 'visiual' },]"> |
:key="src" |
||||
<span class="u-info-title-2">标记:</span> |
style="width: 150px; height: 150px; padding-right: 10px" |
||||
<span>{{ info.markTypeName || "--" }}</span> |
v-for="src in info.imageList" |
||||
</div> |
@click="watchImg(src)" |
||||
<div v-if="info.satisfactionName" |
/> |
||||
:class="['m-info-prop', { 'm-info-prop-vis': source === 'visiual' },]"> |
</div> |
||||
<span class="u-info-title-2">满意度:</span> |
<div |
||||
<div>{{ info.satisfactionName }}</div> |
v-if="info.voiceList && info.voiceList.length > 0" |
||||
</div> |
:class="[ |
||||
</div> |
'm-info-prop', |
||||
</div> |
{ 'm-info-prop-vis': source === 'visiual' }, |
||||
<!-- |
]" |
||||
显示关闭: |
> |
||||
1、状态=完成 (已评价)||(没评价&&不是本人) |
<span class="u-info-title-2">语音:</span> |
||||
2、状态=未完成 (有操作id) |
<audio controls> |
||||
--> |
<source |
||||
<div v-if="(info.status === 'processing' && info.operationId) || (info.status === 'closed_case' && |
:src="item.url" |
||||
(info.satisfactionName || (!info.satisfactionName && user.id != info.createdUserId)))" |
type="" |
||||
class="div-btn-info"> |
:key="item.url" |
||||
<el-button size="small" @click="handleCloseEvent">关闭</el-button> |
v-for="item in info.voiceList" |
||||
|
/> |
||||
|
</audio> |
||||
|
</div> |
||||
|
|
||||
|
<div |
||||
|
:class="[ |
||||
|
'm-info-prop', |
||||
|
{ 'm-info-prop-vis': source === 'visiual' }, |
||||
|
]" |
||||
|
> |
||||
|
<span class="u-info-title-2">反映渠道:</span> |
||||
|
<span>{{ info.sourceTypeName }}</span> |
||||
|
</div> |
||||
|
<div |
||||
|
:class="[ |
||||
|
'm-info-prop', |
||||
|
{ 'm-info-prop-vis': source === 'visiual' }, |
||||
|
]" |
||||
|
> |
||||
|
<span class="u-info-title-2">地址:</span> |
||||
|
<span>{{ info.address }}</span> |
||||
|
</div> |
||||
|
<div |
||||
|
:class="[ |
||||
|
'm-info-prop', |
||||
|
{ 'm-info-prop-vis': source === 'visiual' }, |
||||
|
]" |
||||
|
> |
||||
|
<span class="u-info-title-2">上报人:</span> |
||||
|
<span>{{ info.name }}</span> |
||||
|
</div> |
||||
|
<div |
||||
|
:class="[ |
||||
|
'm-info-prop', |
||||
|
{ 'm-info-prop-vis': source === 'visiual' }, |
||||
|
]" |
||||
|
> |
||||
|
<span class="u-info-title-2">联系电话:</span> |
||||
|
<span>{{ info.mobile }}</span> |
||||
|
</div> |
||||
|
<div |
||||
|
:class="[ |
||||
|
'm-info-prop', |
||||
|
{ 'm-info-prop-vis': source === 'visiual' }, |
||||
|
]" |
||||
|
> |
||||
|
<span class="u-info-title-2">证件号:</span> |
||||
|
<span>{{ info.idCard ? info.idCard : "--" }}</span> |
||||
|
</div> |
||||
|
<div |
||||
|
:class="[ |
||||
|
'm-info-prop', |
||||
|
{ 'm-info-prop-vis': source === 'visiual' }, |
||||
|
]" |
||||
|
> |
||||
|
<span class="u-info-title-2">标记:</span> |
||||
|
<span>{{ info.markTypeName || "--" }}</span> |
||||
|
</div> |
||||
|
<div |
||||
|
v-if="info.operationType === '1'" |
||||
|
:class="[ |
||||
|
'm-info-prop', |
||||
|
{ 'm-info-prop-vis': source === 'visiual' }, |
||||
|
]" |
||||
|
> |
||||
|
<span class="u-info-title-2">已立项:</span> |
||||
|
<div class="line" @click="handleToProject"><i class="el-icon-view"></i> 查看项目</div> |
||||
|
</div> |
||||
|
<div |
||||
|
v-if="info.operationType === '2'" |
||||
|
:class="[ |
||||
|
'm-info-prop', |
||||
|
{ 'm-info-prop-vis': source === 'visiual' }, |
||||
|
]" |
||||
|
> |
||||
|
<span class="u-info-title-2">已转需求:</span> |
||||
|
<div class="line" @click="handleToDemand"><i class="el-icon-view"></i>查看需求</div> |
||||
|
</div> |
||||
|
<div |
||||
|
v-if="info.operationType === '3'" |
||||
|
:class="[ |
||||
|
'm-info-prop', |
||||
|
{ 'm-info-prop-vis': source === 'visiual' }, |
||||
|
]" |
||||
|
> |
||||
|
<span class="u-info-title-2">已转议题:</span> |
||||
|
<div class="line" @click="handleToIssue"> |
||||
|
<i class="el-icon-view"></i> 查看议题 |
||||
</div> |
</div> |
||||
</el-card> |
</div> |
||||
<el-card :class="{ 'box-card': source === 'visiual' }" v-if="info.status === 'closed_case' && !info.satisfactionName |
<div |
||||
&& user.id === info.createdUserId" style="width: 184%;"> |
v-if="info.satisfactionName" |
||||
<h3>满意度评价</h3> |
:class="[ |
||||
<div class="m-detail-main"> |
'm-info-prop', |
||||
<div class="m-info"> |
{ 'm-info-prop-vis': source === 'visiual' }, |
||||
<div class="div-satisfy"> |
]" |
||||
<el-radio-group :class="{ 'form-item': source === 'visiual' }" v-model="satisfyLevel" |
> |
||||
@change="clickSatisfy"> |
<span class="u-info-title-2">满意度:</span> |
||||
<el-radio label="good">满意</el-radio> |
<div>{{ info.satisfactionName }}</div> |
||||
<el-radio label="perfect">基本满意</el-radio> |
</div> |
||||
<el-radio label="bad">不满意</el-radio> |
</div> |
||||
</el-radio-group> |
</div> |
||||
</div> |
<!-- |
||||
</div> |
显示关闭: |
||||
|
1、状态=完成 (已评价)||(没评价&&不是本人) |
||||
|
|
||||
|
2、状态=未完成 (有操作id) --> |
||||
|
<div |
||||
|
v-if=" |
||||
|
(info.status === 'processing' && info.operationId) || |
||||
|
(info.status === 'closed_case' && |
||||
|
(info.satisfactionName || |
||||
|
(!info.satisfactionName && user.id != info.createdUserId))) |
||||
|
" |
||||
|
class="div-btn-info" |
||||
|
> |
||||
|
<el-button size="small" @click="handleCloseEvent">关闭</el-button> |
||||
|
</div> |
||||
|
</el-card> |
||||
|
|
||||
|
<el-card |
||||
|
:class="{ 'box-card': source === 'visiual' }" |
||||
|
v-if=" |
||||
|
info.status === 'closed_case' && |
||||
|
!info.satisfactionName && |
||||
|
user.id === info.createdUserId |
||||
|
" |
||||
|
> |
||||
|
<h3>满意度评价</h3> |
||||
|
<div class="m-detail-main"> |
||||
|
<div class="m-info"> |
||||
|
<div class="div-satisfy"> |
||||
|
<div> |
||||
|
<img |
||||
|
:src="selBad ? badurl_light : badurl" |
||||
|
@click="clickSatisfy('bad')" |
||||
|
/> |
||||
|
<div class="tip-satisfy">不满意</div> |
||||
</div> |
</div> |
||||
<div class="div-btn"> |
<div> |
||||
<el-button size="small" @click="handleCloseEvent">关闭</el-button> |
<img |
||||
<el-button style="margin-left: 20px" type="primary" size="small" |
:src="selGood ? goodurl_light : goodurl" |
||||
@click="handleComfirmSatisfy">确定</el-button> |
@click="clickSatisfy('good')" |
||||
|
/> |
||||
|
<div class="tip-satisfy">满意</div> |
||||
</div> |
</div> |
||||
</el-card> |
<div> |
||||
<el-dialog :visible.sync="showSatisfy" :close-on-click-modal="false" :close-on-press-escape="false" title="满意度评价" |
<img |
||||
width="550px" top="15vh" class="dialog-h" @closed="showSatisfy = false"> |
:src="selPerfect ? perfecturl_light : perfecturl" |
||||
<div class="div-btn"> |
@click="clickSatisfy('perfect')" |
||||
<el-button size="small" @click="showSatisfy = false">关闭</el-button> |
/> |
||||
<el-button style="margin-left: 20px" type="primary" size="small" |
<div class="tip-satisfy">非常满意</div> |
||||
@click="handleComfirmSatisfy">确定</el-button> |
|
||||
</div> |
</div> |
||||
</el-dialog> |
</div> |
||||
</div> |
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="div-btn"> |
||||
|
<el-button size="small" @click="handleCloseEvent">关闭</el-button> |
||||
|
<el-button |
||||
|
style="margin-left: 20px" |
||||
|
type="primary" |
||||
|
size="small" |
||||
|
@click="handleComfirmSatisfy" |
||||
|
>确定</el-button |
||||
|
> |
||||
|
</div> |
||||
|
</el-card> |
||||
|
<el-dialog |
||||
|
:visible.sync="showSatisfy" |
||||
|
:close-on-click-modal="false" |
||||
|
:close-on-press-escape="false" |
||||
|
title="满意度评价" |
||||
|
width="550px" |
||||
|
top="15vh" |
||||
|
class="dialog-h" |
||||
|
@closed="showSatisfy = false" |
||||
|
> |
||||
|
<div class="div-btn"> |
||||
|
<el-button size="small" @click="showSatisfy = false">关闭</el-button> |
||||
|
<el-button |
||||
|
style="margin-left: 20px" |
||||
|
type="primary" |
||||
|
size="small" |
||||
|
@click="handleComfirmSatisfy" |
||||
|
>确定</el-button |
||||
|
> |
||||
|
</div> |
||||
|
</el-dialog> |
||||
|
</div> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
import { requestPost } from "@/js/dai/request"; |
import { requestPost } from "@/js/dai/request"; |
||||
import foldText from "@/views/components/foldText"; |
import foldText from "@/views/components/foldText"; |
||||
import projectInfo from "../../xiangmu/cpts/project-info"; |
import projectInfo from "../../xiangmu/cpts/project-info"; |
||||
|
import dateFormat from "dai-js/tools/dateFormat"; |
||||
|
|
||||
function iniData() { |
function iniData() { |
||||
return { |
return { |
||||
user: {}, |
user: {}, |
||||
projectPageType: "info", |
projectPageType: "info", |
||||
info: {}, |
|
||||
eventDetailCopy: {}, |
info: {}, |
||||
showType: "", |
eventDetailCopy: {}, |
||||
projectId: "", |
showType: "", |
||||
demandForm: { |
|
||||
gridId: "", |
projectId: "", |
||||
categoryCode: "", |
|
||||
parentCode: "", |
demandForm: { |
||||
content: "", |
gridId: "", |
||||
reportType: "", |
categoryCode: "", |
||||
reportUserName: "", |
parentCode: "", |
||||
reportUserMobile: "", |
content: "", |
||||
reportTime: "", |
reportType: "", |
||||
wantServiceTime: "", |
reportUserName: "", |
||||
demandUserId: "", |
reportUserMobile: "", |
||||
demandUserName: "", |
reportTime: "", |
||||
demandUserMobile: "", |
wantServiceTime: "", |
||||
}, |
demandUserId: "", |
||||
satisfyLevel: "", |
demandUserName: "", |
||||
//满意度评价 |
demandUserMobile: "", |
||||
showSatisfy: false, |
}, |
||||
}; |
|
||||
|
//满意度评价 |
||||
|
showSatisfy: false, |
||||
|
selBad: false, |
||||
|
selGood: false, |
||||
|
selPerfect: false, |
||||
|
badurl: require("@/assets/img/satisfy-images/face1.png"), |
||||
|
badurl_light: require("@/assets/img/satisfy-images/face1_light.png"), |
||||
|
goodurl: require("@/assets/img/satisfy-images/face2.png"), |
||||
|
goodurl_light: require("@/assets/img/satisfy-images/face2_light.png"), |
||||
|
perfecturl: require("@/assets/img/satisfy-images/face3.png"), |
||||
|
perfecturl_light: require("@/assets/img/satisfy-images/face3_light.png"), |
||||
|
}; |
||||
} |
} |
||||
|
|
||||
export default { |
export default { |
||||
name: "issueInfo", |
name: "issueInfo", |
||||
props: { |
props: { |
||||
eventId: { |
eventId: { |
||||
type: String, |
type: String, |
||||
default: "", |
default: "", |
||||
}, |
}, |
||||
type: { |
type: { |
||||
type: String, |
type: String, |
||||
default: "info", |
default: "info", |
||||
}, |
|
||||
|
|
||||
eventDetailData: { |
|
||||
type: Object, |
|
||||
default() { |
|
||||
return {}; |
|
||||
}, |
|
||||
}, |
|
||||
source: { |
|
||||
//展示来源:manage 管理平台 visiual 可视化平台 |
|
||||
type: String, |
|
||||
default: "manage", |
|
||||
}, |
|
||||
}, |
}, |
||||
|
|
||||
components: { |
eventDetailData: { |
||||
foldText, |
type: Object, |
||||
projectInfo, |
default() { |
||||
|
return {}; |
||||
|
}, |
||||
|
}, |
||||
|
source: { |
||||
|
//展示来源:manage 管理平台 visiual 可视化平台 |
||||
|
type: String, |
||||
|
default: "manage", |
||||
}, |
}, |
||||
|
}, |
||||
|
|
||||
data: iniData, |
components: { |
||||
|
foldText, |
||||
|
projectInfo, |
||||
watch: {}, |
}, |
||||
created() { }, |
|
||||
computed: { |
data: iniData, |
||||
containerStyle() { |
|
||||
if (this.type === 'info') { |
|
||||
return { |
watch: {}, |
||||
minHeight: 'calc(88vh - 50px)', |
created() {}, |
||||
overflow: 'auto', |
computed: { |
||||
position: 'relative' |
containerStyle() { |
||||
} |
if (this.type === 'info') { |
||||
} else { |
return { |
||||
return {} |
minHeight: 'calc(88vh - 50px)', |
||||
} |
overflow: 'auto', |
||||
} |
position: 'relative' |
||||
|
} |
||||
|
} else { |
||||
|
return {} |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
mounted() { |
||||
|
this.user = this.$store.state.user; |
||||
|
if (this.eventId) { |
||||
|
this.info = JSON.parse(JSON.stringify(this.eventDetailData)); |
||||
|
|
||||
|
//如果已经评价过,进行回显 |
||||
|
// if (this.info.status === 'closed_case' && this.info.satisfactionName) { |
||||
|
// this.changeSatisfyType(this.info.satisfaction) |
||||
|
// } |
||||
|
} |
||||
|
// this.getApiData(); |
||||
|
}, |
||||
|
|
||||
|
methods: { |
||||
|
watchImg(src) { |
||||
|
window.open(src); |
||||
}, |
}, |
||||
mounted() { |
|
||||
this.user = this.$store.state.user; |
handleClose() { |
||||
if (this.eventId) { |
this.showType = ""; |
||||
this.info = JSON.parse(JSON.stringify(this.eventDetailData)); |
}, |
||||
|
|
||||
//如果已经评价过,进行回显 |
handleCloseEvent() { |
||||
// if (this.info.status === 'closed_case' && this.info.satisfactionName) { |
this.$emit("handleClose"); |
||||
// this.changeSatisfyType(this.info.satisfaction) |
}, |
||||
// } |
|
||||
} |
async getApiData() {}, |
||||
// this.getApiData(); |
|
||||
|
handleToProject() { |
||||
|
this.$emit("handleToProject"); |
||||
|
// if (this.info.status === 'processing') { |
||||
|
// this.projectPageType = 'edit' |
||||
|
// } else { |
||||
|
// this.projectPageType = 'info' |
||||
|
// } |
||||
|
|
||||
|
// this.showType = 'project' |
||||
|
}, |
||||
|
handleToDemand() { |
||||
|
this.$emit("handleToDemand"); |
||||
|
}, |
||||
|
handleToIssue() { |
||||
|
this.$emit("handleToIssue"); |
||||
|
}, |
||||
|
|
||||
|
//满意度评价 |
||||
|
handleSatisfy() { |
||||
|
this.showSatisfy = true; |
||||
}, |
}, |
||||
|
|
||||
methods: { |
clickSatisfy(type) { |
||||
watchImg(src) { |
if (this.info.satisfactionName) { |
||||
window.open(src); |
return false; |
||||
}, |
} |
||||
|
|
||||
handleClose() { |
this.changeSatisfyType(type); |
||||
this.showType = ""; |
}, |
||||
}, |
changeSatisfyType(type) { |
||||
|
if (type === "bad") { |
||||
handleCloseEvent() { |
this.selGood = false; |
||||
this.$emit("handleClose"); |
this.selPerfect = false; |
||||
}, |
this.selBad = true; |
||||
|
} else if (type === "good") { |
||||
async getApiData() { }, |
this.selGood = true; |
||||
|
this.selPerfect = false; |
||||
//满意度评价 |
this.selBad = false; |
||||
handleSatisfy() { |
} else if (type === "perfect") { |
||||
this.showSatisfy = true; |
this.selGood = false; |
||||
}, |
this.selPerfect = true; |
||||
|
this.selBad = false; |
||||
clickSatisfy(type) { |
} |
||||
if (this.info.satisfactionName) { |
|
||||
return false; |
|
||||
} |
|
||||
this.satisfyLevel = type; |
|
||||
}, |
|
||||
|
|
||||
async handleComfirmSatisfy() { |
|
||||
if (!this.satisfyLevel) { |
|
||||
this.$message.info("请选择评价级别"); |
|
||||
} |
|
||||
const url = "/governance/icEvent/comment"; |
|
||||
let params = { |
|
||||
icEventId: this.eventId, |
|
||||
satisfaction: this.satisfyLevel, |
|
||||
}; |
|
||||
const { data, code, msg } = await requestPost(url, params); |
|
||||
if (code === 0) { |
|
||||
this.$message.success("评价成功"); |
|
||||
this.info.satisfactionName = |
|
||||
this.satisfyLevel == "bad" |
|
||||
? "不满意" |
|
||||
: this.satisfyLevel == "good" |
|
||||
? "满意" |
|
||||
: "非常满意"; |
|
||||
this.showSatisfy = false; |
|
||||
} else { |
|
||||
this.$message.error(msg); |
|
||||
} |
|
||||
}, |
|
||||
}, |
}, |
||||
|
|
||||
|
async handleComfirmSatisfy() { |
||||
|
let satisfyLevel = ""; |
||||
|
if (!this.selBad && !this.selGood && !this.selPerfect) { |
||||
|
this.$message.info("请选择评价级别"); |
||||
|
} else { |
||||
|
if (this.selBad) { |
||||
|
satisfyLevel = "bad"; |
||||
|
} else if (this.selGood) { |
||||
|
satisfyLevel = "good"; |
||||
|
} else if (this.selPerfect) { |
||||
|
satisfyLevel = "perfect"; |
||||
|
} |
||||
|
} |
||||
|
const url = "/governance/icEvent/comment"; |
||||
|
|
||||
|
let params = { |
||||
|
icEventId: this.eventId, |
||||
|
satisfaction: satisfyLevel, |
||||
|
}; |
||||
|
|
||||
|
const { data, code, msg } = await requestPost(url, params); |
||||
|
|
||||
|
if (code === 0) { |
||||
|
this.$message.success("评价成功"); |
||||
|
this.info.satisfactionName = |
||||
|
satisfyLevel == "bad" |
||||
|
? "不满意" |
||||
|
: satisfyLevel == "good" |
||||
|
? "满意" |
||||
|
: "非常满意"; |
||||
|
this.showSatisfy = false; |
||||
|
} else { |
||||
|
this.$message.error(msg); |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
}; |
}; |
||||
</script> |
</script> |
||||
<style lang="scss" scoped> |
<style lang="scss" scoped> |
||||
@import "@/assets/scss/modules/shequzhili/event-info.scss"; |
@import "@/assets/scss/modules/shequzhili/event-info.scss"; |
||||
|
|
||||
.m-info { |
.m-info { |
||||
padding-left: 0px !important; |
padding-left: 0px !important; |
||||
} |
} |
||||
|
|
||||
.m-info-prop { |
.m-info-prop { |
||||
margin: 25px 0 !important; |
margin: 25px 0 !important; |
||||
padding-left: 0px !important; |
padding-left: 0px !important; |
||||
|
&::before { |
||||
&::before { |
content: ""; |
||||
content: ""; |
display: block; |
||||
display: block; |
position: absolute; |
||||
position: absolute; |
top: 9px; |
||||
top: 9px; |
left: 0; |
||||
left: 0; |
width: 7px; |
||||
width: 7px; |
height: 7px; |
||||
height: 7px; |
background: none !important; |
||||
background: none !important; |
border-radius: 3px; |
||||
border-radius: 3px; |
margin-right: 10px; |
||||
margin-right: 10px; |
} |
||||
} |
|
||||
} |
} |
||||
</style> |
</style> |
||||
|
|
||||
|
|||||
File diff suppressed because it is too large
@ -1,215 +1,263 @@ |
|||||
|
<!-- |
||||
|
* @Author: mk 2403457699@qq.com |
||||
|
* @Date: 2023-07-26 16:23:24 |
||||
|
* @LastEditors: mk 2403457699@qq.com |
||||
|
* @LastEditTime: 2023-08-09 10:21:34 |
||||
|
* @Description: 事件分类回填 |
||||
|
* |
||||
|
* |
||||
|
--> |
||||
<template> |
<template> |
||||
<div class="search"> |
<div class="search"> |
||||
<el-form ref="ref_form1" :inline="false" :model="formData" :rules="dataRule"> |
<el-form |
||||
<el-form-item label="事件分类" label-width="150px" :class="{ 'form-item': source === 'visiual' }" |
ref="ref_form1" |
||||
prop="categoryList"> |
:inline="false" |
||||
<div :class="{ 'visiual-form': source === 'visiual' }"> |
:model="formData" |
||||
<el-cascader class="cell-width-2" ref="myCascader" v-model="selCategoryArray" :key="iscascaderShow" |
:rules="dataRule" |
||||
:options="casOptions" :props="optionProps" :show-all-levels="false" |
> |
||||
@change="handleChangeCate"></el-cascader> |
<el-form-item |
||||
</div> |
label="事件分类" |
||||
</el-form-item> |
label-width="150px" |
||||
<el-form-item label="回复内容" prop="content" label-width="150px" :class="{ 'form-item': source === 'visiual' }" |
:class="{ 'form-item': source === 'visiual' }" |
||||
style="display: block"> |
prop="categoryList" |
||||
<div :class="{ 'visiual-form': source === 'visiual' }"> |
> |
||||
<el-input class="cell-width-area" type="textarea" maxlength="500" show-word-limit :rows="5" |
<div :class="{ 'visiual-form': source === 'visiual' }"> |
||||
placeholder="请输入回复内容,不超过500字" v-model="formData.content"></el-input> |
<el-cascader class="cell-width-2" |
||||
</div> |
ref="myCascader" |
||||
</el-form-item> |
v-model="selCategoryArray" |
||||
<el-form-item label="办结时限" prop="timeLimit" label-width="150px" :class="{ 'form-item': source === 'visiual' }" |
:key="iscascaderShow" |
||||
style="display: block"> |
:options="casOptions" |
||||
<div :class="{ 'visiual-form': source === 'visiual' }"> |
:props="optionProps" |
||||
<el-date-picker v-model="formData.timeLimit" class="cell-width-1" type="datetime" placeholder="办结时限" |
:show-all-levels="false" |
||||
value-format="yyyy-MM-dd HH:mm:ss"> |
@change="handleChangeCate"></el-cascader> |
||||
</el-date-picker> |
</div> |
||||
</div> |
</el-form-item> |
||||
</el-form-item> |
<el-form-item |
||||
</el-form> |
label="回复内容" |
||||
|
prop="content" |
||||
|
label-width="150px" |
||||
|
:class="{ 'form-item': source === 'visiual' }" |
||||
|
style="display: block" |
||||
|
> |
||||
|
<div :class="{ 'visiual-form': source === 'visiual' }"> |
||||
|
<el-input |
||||
|
class="cell-width-area" |
||||
|
type="textarea" |
||||
|
maxlength="500" |
||||
|
show-word-limit |
||||
|
:rows="5" |
||||
|
placeholder="请输入回复内容,不超过500字" |
||||
|
v-model="formData.content" |
||||
|
></el-input> |
||||
|
</div> |
||||
|
</el-form-item> |
||||
|
<el-form-item |
||||
|
label="" |
||||
|
label-width="150px" |
||||
|
:class="{ 'form-item': source === 'visiual' }" |
||||
|
style="display: block" |
||||
|
> |
||||
|
<el-checkbox |
||||
|
:class="{ 'form-item': source === 'visiual' }" |
||||
|
v-model="status" |
||||
|
@change="handleChangeStatus" |
||||
|
>已完成</el-checkbox |
||||
|
> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
</div> |
</div> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
import { Loading } from "element-ui"; // 引入Loading服务 |
import { Loading } from "element-ui"; // 引入Loading服务 |
||||
import { requestPost } from "@/js/dai/request"; |
import { requestPost } from "@/js/dai/request"; |
||||
let loading; // 加载动画 |
import formVltHelper from "dai-js/tools/formVltHelper"; |
||||
|
|
||||
export default { |
import { isCard } from "@/utils/validate"; |
||||
|
let loading; // 加载动画 |
||||
|
|
||||
|
export default { |
||||
data() { |
data() { |
||||
return { |
return { |
||||
btnDisable: false, |
btnDisable: false, |
||||
formData: { |
formData: { |
||||
operationType: '0', //处理方式[0:已回复 5、指派 6、完成并回复] |
operationType: "0", //处理方式[0:已回复 1:已转项目 2:已转需求] |
||||
content: '', |
content: "", |
||||
status: 'processing', |
status: "", |
||||
timeLimit: '',//办结时限 |
categoryList: [], |
||||
categoryList: [], |
}, |
||||
}, |
|
||||
status: false, |
status: false, |
||||
okflag: false, |
okflag: false, |
||||
eventDetailCopy: {}, |
|
||||
selCategoryArray: [], |
eventDetailCopy: {}, |
||||
casOptions: [], |
selCategoryArray:[], |
||||
iscascaderShow: 0, |
casOptions: [], |
||||
optionProps: { |
iscascaderShow: 0, |
||||
multiple: false, |
optionProps: { |
||||
value: "id", |
multiple: false, |
||||
label: "categoryName", |
value: "id", |
||||
children: "children", |
label: "name", |
||||
level: 'categoryType' |
children: "subCategory", |
||||
}, |
}, |
||||
dataRule: { |
dataRule:{ |
||||
content: [ |
content: [ |
||||
{ required: true, message: '回复内容不能为空', trigger: 'blur' }, |
{ required: true, message: "回复内容不能为空", trigger: "blur" }, |
||||
], |
], |
||||
categoryList: [ |
categoryList: [ |
||||
// { required: true, message: '事件分类不能为空', trigger: 'blur' }, |
// { required: true, message: "事件分类不能为空", trigger: "blur" }, |
||||
], |
], |
||||
timeLimit: [ |
} |
||||
{ required: true, message: "办结时限不能为空", trigger: "blur" }, |
}; |
||||
] |
|
||||
} |
|
||||
}; |
|
||||
}, |
}, |
||||
components: {}, |
components: { }, |
||||
computed: {}, |
computed: {}, |
||||
props: { |
props: { |
||||
eventId: { |
eventId: { |
||||
type: String, |
type: String, |
||||
default: '', |
default: "", |
||||
}, |
}, |
||||
eventDetailData: { |
eventDetailData: { |
||||
type: Object, |
type: Object, |
||||
default() { |
default() { |
||||
return {}; |
return {}; |
||||
}, |
|
||||
}, |
|
||||
source: { |
|
||||
//展示来源:manage 管理平台 visiual 可视化平台 |
|
||||
type: String, |
|
||||
default: 'manage', |
|
||||
}, |
}, |
||||
|
}, |
||||
|
source: { |
||||
|
//展示来源:manage 管理平台 visiual 可视化平台 |
||||
|
type: String, |
||||
|
default: "manage", |
||||
|
}, |
||||
}, |
}, |
||||
watch: { |
watch: {}, |
||||
|
|
||||
}, |
|
||||
|
|
||||
created() { |
created() { |
||||
|
console.log(this.source); |
||||
}, |
}, |
||||
|
|
||||
async mounted() { |
async mounted() { |
||||
this.getCategoryList(); |
this.getCategoryList(); |
||||
if (this.eventId) { |
if (this.eventId) { |
||||
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); |
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); |
||||
console.log('this.eventDetailCopy', this.eventDetailCopy); |
// 这一步接收到eventDetailCopy在这里回填 |
||||
let value = this.eventDetailCopy.parentCategoryId.split(","); |
if ( |
||||
value.push(this.eventDetailCopy.categoryId); |
this.eventDetailCopy.parentCategoryId && |
||||
this.handleChangeCate(value) |
this.eventDetailCopy.categoryId |
||||
|
) { |
||||
|
this.selCategoryArray.push( this.eventDetailCopy.parentCategoryId,this.eventDetailCopy.categoryId) |
||||
} |
} |
||||
|
|
||||
|
} |
||||
}, |
}, |
||||
|
|
||||
methods: { |
methods: { |
||||
async getCategoryList() { |
async getCategoryList() { |
||||
const url = '/governance/icEvent/getCategoryTree'; |
const url = "/governance/issueprojectcategorydict/list"; |
||||
let params = {}; |
|
||||
const { data, code, msg } = await requestPost(url, params); |
let params = {}; |
||||
if (code === 0) { |
|
||||
let treeDataNew = this.deepTree(data, "children"); |
const { data, code, msg } = await requestPost(url, params); |
||||
//组织级联数据 |
|
||||
++this.iscascaderShow; |
if (code === 0) { |
||||
this.casOptions = []; |
let treeDataNew = this.filterTree(data); |
||||
this.casOptions = treeDataNew; |
|
||||
|
//组织级联数据 |
||||
|
++this.iscascaderShow; |
||||
|
this.casOptions = []; |
||||
|
|
||||
|
this.casOptions = treeDataNew; |
||||
|
} else { |
||||
|
this.$message.error(msg); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
handleChangeCate() { |
||||
|
if(this.selCateObj = this.$refs["myCascader"].getCheckedNodes()[0]){ |
||||
|
this.selCateObj = this.$refs["myCascader"].getCheckedNodes()[0].data |
||||
|
}else{ |
||||
|
this.selCateObj = {} |
||||
|
} |
||||
|
console.log(this.selCateObj); |
||||
|
}, |
||||
|
|
||||
|
//重构树,去除网格 |
||||
|
filterTree(arr) { |
||||
|
let childs = arr; |
||||
|
for (let i = childs.length; i--; i > 0) { |
||||
|
if (childs[i].subCategory) { |
||||
|
if (childs[i].subCategory.length) { |
||||
|
this.filterTree(childs[i].subCategory); |
||||
} else { |
} else { |
||||
this.$message.error(msg); |
delete childs[i].subCategory; |
||||
} |
|
||||
if (this.eventDetailCopy.parentCategoryId) { |
|
||||
let pids = this.eventDetailCopy.parentCategoryId.split(','); |
|
||||
pids.push(this.eventDetailCopy.categoryId) |
|
||||
pids.forEach(id => { |
|
||||
let node = this.buildTree(this.casOptions, toString(id)); |
|
||||
this.selCategoryArray.push(node) |
|
||||
}); |
|
||||
let node = this.buildTree(this.casOptions, this.eventDetailCopy.categoryId); |
|
||||
this.selCategoryArray.push(node); |
|
||||
console.log(this.selCategoryArray); |
|
||||
} |
} |
||||
}, |
} |
||||
buildTree(nodes, treeId) { |
} |
||||
nodes.forEach(item => { |
return arr; |
||||
if (treeId === item.id) { |
}, |
||||
return item; |
async getReplayInfo() { |
||||
} else { |
this.okflag = false; |
||||
this.buildTree(item.children, treeId) |
this.$refs["ref_form1"].validate((valid, messageObj) => { |
||||
} |
if (!valid) { |
||||
}) |
app.util.validateRule(messageObj); |
||||
}, |
} else { |
||||
handleChangeCate(value) { |
if (this.status) { |
||||
if (this.selCateObj = this.$refs['myCascader'].getCheckedNodes()[0]) { |
console.log(this.selCateObj); |
||||
this.selCateObj = this.$refs['myCascader'].getCheckedNodes()[0].data |
if (!this.selCateObj || !this.selCateObj.id) { |
||||
|
this.$message.error("请选择事件分类"); |
||||
|
return false; |
||||
|
} |
||||
|
this.formData.status = "closed_case"; |
||||
} else { |
} else { |
||||
this.selCateObj = {} |
this.formData.status = "processing"; |
||||
} |
|
||||
if(!value) return |
|
||||
this.selCategoryArray = value |
|
||||
}, |
|
||||
//重构树,去除网格 |
|
||||
deepTree(arr, children) { |
|
||||
if (Array.isArray(arr) && arr.length > 0) { |
|
||||
return arr.map((item) => { |
|
||||
return { |
|
||||
...item, |
|
||||
[children]: |
|
||||
(item[children] && |
|
||||
item[children].length > 0 && |
|
||||
this.deepTree(item[children], children)) || |
|
||||
null, |
|
||||
}; |
|
||||
}); |
|
||||
} |
|
||||
}, |
|
||||
async getReplayInfo() { |
|
||||
this.okflag = false; |
|
||||
this.$refs['ref_form1'].validate((valid, messageObj) => { |
|
||||
if (!valid) { |
|
||||
app.util.validateRule(messageObj); |
|
||||
} else { |
|
||||
if (this.status) { |
|
||||
if (!this.selCateObj || !this.selCateObj.id) { |
|
||||
this.$message.error('请选择事件分类'); |
|
||||
return false; |
|
||||
} |
|
||||
} |
|
||||
this.formData.categoryList = []; |
|
||||
this.formData.categoryList.push(this.selCateObj); |
|
||||
this.okflag = true; |
|
||||
} |
|
||||
}); |
|
||||
}, |
|
||||
resetData() { }, |
|
||||
// 开启加载动画 |
|
||||
startLoading() { |
|
||||
loading = Loading.service({ |
|
||||
lock: true, // 是否锁定 |
|
||||
text: '正在加载……', // 加载中需要显示的文字 |
|
||||
background: 'rgba(0,0,0,.7)', // 背景颜色 |
|
||||
}); |
|
||||
}, |
|
||||
// 结束加载动画 |
|
||||
endLoading() { |
|
||||
// clearTimeout(timer); |
|
||||
if (loading) { |
|
||||
loading.close(); |
|
||||
} |
} |
||||
}, |
this.formData.categoryId = this.selCateObj.id; |
||||
|
this.formData.categoryList = []; |
||||
|
this.formData.categoryList.push(this.selCateObj); |
||||
|
|
||||
|
this.okflag = true; |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
handleChangeStatus(val){ |
||||
|
console.log(val); |
||||
|
if(!val){ |
||||
|
this.$set(this.dataRule,'categoryList',[]) |
||||
|
}else{ |
||||
|
this.$set(this.dataRule,'categoryList',[{ required: true, message: "事件分类不能为空", trigger: "blur" }]) |
||||
|
} |
||||
|
console.log(this.dataRule); |
||||
|
}, |
||||
|
resetData() {}, |
||||
|
// 开启加载动画 |
||||
|
startLoading() { |
||||
|
loading = Loading.service({ |
||||
|
lock: true, // 是否锁定 |
||||
|
text: "正在加载……", // 加载中需要显示的文字 |
||||
|
background: "rgba(0,0,0,.7)", // 背景颜色 |
||||
|
}); |
||||
|
}, |
||||
|
// 结束加载动画 |
||||
|
endLoading() { |
||||
|
// clearTimeout(timer); |
||||
|
if (loading) { |
||||
|
loading.close(); |
||||
|
} |
||||
|
}, |
||||
}, |
}, |
||||
}; |
}; |
||||
</script> |
</script> |
||||
|
|
||||
<style lang='scss' scoped> |
|
||||
@import '@/assets/scss/modules/visual/a_customize.scss'; |
<style lang='scss' scoped> |
||||
@import '@/assets/scss/modules/shequzhili/event-info.scss'; |
@import "@/assets/scss/modules/visual/a_customize.scss"; |
||||
|
@import "@/assets/scss/modules/shequzhili/event-info.scss"; |
||||
.el-dialog__body { |
</style> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<style scoped> |
||||
|
.el-dialog__body { |
||||
padding: 0 10px 20px !important; |
padding: 0 10px 20px !important; |
||||
} |
} |
||||
</style> |
</style> |
||||
|
|
||||
@ -0,0 +1,175 @@ |
|||||
|
<template> |
||||
|
<div class="search"> |
||||
|
|
||||
|
<el-form ref="ref_form1" |
||||
|
:inline="false" |
||||
|
:model="formData" |
||||
|
:rules="dataRule"> |
||||
|
<el-form-item label="处理意见" |
||||
|
prop="suggestion" |
||||
|
label-width="150px" |
||||
|
:class="{'form-item':source==='visiual'}" |
||||
|
style="display: block"> |
||||
|
<div :class="{'visiual-form':source==='visiual'}"> |
||||
|
<el-input class="cell-width-area" |
||||
|
type="textarea" |
||||
|
maxlength="500" |
||||
|
show-word-limit |
||||
|
:rows="5" |
||||
|
placeholder="请输入处理意见,不超过500字" |
||||
|
v-model="formData.suggestion"></el-input> |
||||
|
</div> |
||||
|
|
||||
|
</el-form-item> |
||||
|
|
||||
|
</el-form> |
||||
|
|
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { Loading } from "element-ui"; // 引入Loading服务 |
||||
|
import { requestPost } from "@/js/dai/request"; |
||||
|
import formVltHelper from "dai-js/tools/formVltHelper"; |
||||
|
|
||||
|
import { isCard } from "@/utils/validate"; |
||||
|
|
||||
|
let loading; // 加载动画 |
||||
|
|
||||
|
|
||||
|
export default { |
||||
|
data () { |
||||
|
return { |
||||
|
btnDisable: false, |
||||
|
formData: { |
||||
|
operationType: '4',//处理方式[0:已回复 1:已转项目 2:已转需求 3:转议题,4上报城管] |
||||
|
suggestion: '', |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
|
||||
|
okflag: false, |
||||
|
|
||||
|
eventDetailCopy: {}, |
||||
|
|
||||
|
casOptions: [], |
||||
|
iscascaderShow: 0, |
||||
|
selCateObj: {}, |
||||
|
optionProps: { |
||||
|
multiple: false, |
||||
|
value: 'id', |
||||
|
label: 'name', |
||||
|
children: 'subCategory', |
||||
|
}, |
||||
|
|
||||
|
}; |
||||
|
}, |
||||
|
components: {}, |
||||
|
computed: { |
||||
|
dataRule () { |
||||
|
|
||||
|
return { |
||||
|
suggestion: [ |
||||
|
{ required: true, message: "处理建议不能为空", trigger: "blur" }, |
||||
|
], |
||||
|
|
||||
|
}; |
||||
|
}, |
||||
|
|
||||
|
|
||||
|
}, |
||||
|
props: { |
||||
|
eventId: { |
||||
|
type: String, |
||||
|
default: "", |
||||
|
}, |
||||
|
eventDetailData: { |
||||
|
type: Object, |
||||
|
default () { |
||||
|
return {} |
||||
|
} |
||||
|
}, |
||||
|
source: {//展示来源:manage 管理平台 visiual 可视化平台 |
||||
|
type: String, |
||||
|
default: 'manage' |
||||
|
} |
||||
|
}, |
||||
|
watch: {}, |
||||
|
|
||||
|
created () { |
||||
|
|
||||
|
console.log(this.source) |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
async mounted () { |
||||
|
|
||||
|
if (this.eventId) { |
||||
|
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); |
||||
|
|
||||
|
if (this.eventDetailCopy.parentCategoryId && this.eventDetailCopy.categoryId) { |
||||
|
|
||||
|
this.selCateObj = { |
||||
|
name: this.eventDetailCopy.categoryName, |
||||
|
id: this.eventDetailCopy.categoryId |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
methods: { |
||||
|
|
||||
|
handleChangeCate () { |
||||
|
console.log(this.$refs["myCascader"].getCheckedNodes()[0].data) |
||||
|
this.selCateObj = this.$refs["myCascader"].getCheckedNodes()[0].data |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
async getUrbanInfo () { |
||||
|
this.okflag = false |
||||
|
this.$refs["ref_form1"].validate((valid, messageObj) => { |
||||
|
if (!valid) { |
||||
|
app.util.validateRule(messageObj); |
||||
|
|
||||
|
} else { |
||||
|
this.okflag = true |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
|
||||
|
resetData () { |
||||
|
|
||||
|
}, |
||||
|
// 开启加载动画 |
||||
|
startLoading () { |
||||
|
loading = Loading.service({ |
||||
|
lock: true, // 是否锁定 |
||||
|
text: "正在加载……", // 加载中需要显示的文字 |
||||
|
background: "rgba(0,0,0,.7)", // 背景颜色 |
||||
|
}); |
||||
|
}, |
||||
|
// 结束加载动画 |
||||
|
endLoading () { |
||||
|
// clearTimeout(timer); |
||||
|
if (loading) { |
||||
|
loading.close(); |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
|
||||
|
<style lang='scss' scoped> |
||||
|
@import "@/assets/scss/modules/visual/a_customize.scss"; |
||||
|
@import "@/assets/scss/modules/shequzhili/event-info.scss"; |
||||
|
</style> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<style> |
||||
|
.el-dialog__body { |
||||
|
padding: 0 10px 20px !important; |
||||
|
} |
||||
|
</style> |
||||
|
|
||||
@ -1,201 +1,281 @@ |
|||||
<template> |
<template> |
||||
<div class=""> |
<div class=""> |
||||
<div> |
<div> |
||||
<el-form ref="ref_form1" :inline="false" :rules="dataRule" class="form"> |
|
||||
<el-form-item label="处理方式" label-width="150px" :class="{ 'form-item': source === 'visiual' }" |
<el-form ref="ref_form1" |
||||
prop="operationType"> |
:inline="false" |
||||
<el-radio-group :class="{ 'form-item': source === 'visiual' }" v-model="operationType" |
:rules="dataRule" |
||||
@change="handleChangeOperationType"> |
class="form"> |
||||
<el-radio v-if="!eventId" label="4">暂不处理</el-radio> |
|
||||
<el-radio label="0">回复</el-radio> |
<el-form-item label="处理方式" |
||||
<el-radio label="5">指派</el-radio> |
label-width="150px" |
||||
<el-radio label="6">完成并回复</el-radio> |
:class="{'form-item':source==='visiual'}" |
||||
</el-radio-group> |
prop="operationType"> |
||||
</el-form-item> |
<el-radio-group :class="{'form-item':source==='visiual'}" |
||||
</el-form> |
v-model="operationType" |
||||
<div v-if="operationType === '0'"> |
@change="handleChangeOperationType"> |
||||
<process-form-replay ref="ref_process_form_replay" :source="source" :eventDetailData="eventDetailData" |
<el-radio v-if="!eventId" |
||||
:eventId="eventId"></process-form-replay> |
label="4">暂不处理</el-radio> |
||||
</div> |
<el-radio label="0">回复</el-radio> |
||||
<div v-if="operationType === '6'"> |
<el-radio label="1">立项</el-radio> |
||||
<process-form-replay-end ref="ref_process_form_replay_end" :source="source" |
<el-radio label="2">转服务</el-radio> |
||||
:eventDetailData="eventDetailData" :eventId="eventId"></process-form-replay-end> |
<el-radio label="3">转议题</el-radio> |
||||
</div> |
|
||||
<div v-if="operationType === '5'"> |
</el-radio-group> |
||||
<process-form-designate ref="ref_process_form_designate" :source="source" :eventDetailData="eventDetailData" |
</el-form-item> |
||||
:eventId="eventId"></process-form-designate> |
|
||||
</div> |
</el-form> |
||||
</div> |
|
||||
|
<div v-if="operationType==='0'"> |
||||
|
<process-form-replay ref="ref_process_form_replay" |
||||
|
:source="source" |
||||
|
:eventDetailData="eventDetailData" |
||||
|
:eventId="eventId"></process-form-replay> |
||||
|
</div> |
||||
|
|
||||
|
<div v-if="operationType==='1'"> |
||||
|
<process-form-project ref="ref_process_form_project" |
||||
|
:source="source" |
||||
|
:eventDetailData="eventDetailData" |
||||
|
:gridId="gridId" |
||||
|
:eventId="eventId"></process-form-project> |
||||
|
</div> |
||||
|
|
||||
|
<div v-if="operationType==='2'"> |
||||
|
<process-form-demand ref="ref_process_form_demond" |
||||
|
:source="source" |
||||
|
:eventId="eventId" |
||||
|
:transferObj="transferObj" |
||||
|
:demandUserId="demandUserId" |
||||
|
:demandUserName="demandUserName" |
||||
|
:demandUserMobile="demandUserMobile" |
||||
|
:eventDetailData="eventDetailData"></process-form-demand> |
||||
|
|
||||
|
</div> |
||||
|
<div v-if="operationType==='3'"> |
||||
|
<process-form-issue ref="ref_process_form_issue" |
||||
|
:source="source" |
||||
|
:eventDetailData="eventDetailData" |
||||
|
:eventId="eventId"></process-form-issue> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
</div> |
</div> |
||||
|
|
||||
|
</div> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
import { Loading } from "element-ui"; // 引入Loading服务 |
import { Loading } from "element-ui"; // 引入Loading服务 |
||||
import { requestPost } from "@/js/dai/request"; |
import { requestPost } from "@/js/dai/request"; |
||||
import processFormReplay from "./process-form-replay"; |
import processFormReplay from "./process-form-replay"; |
||||
import processFormReplayEnd from "./process-form-replay-end"; |
|
||||
import processFormProject from "./process-form-project"; |
import processFormProject from "./process-form-project"; |
||||
import processFormDemand from "./process-form-demand"; |
import processFormDemand from "./process-form-demand"; |
||||
import processFormIssue from "./process-form-issue"; |
import processFormIssue from "./process-form-issue"; |
||||
import processFormDesignate from "./process-form-designate"; |
|
||||
|
|
||||
|
|
||||
let loading; // 加载动画 |
let loading; // 加载动画 |
||||
|
|
||||
export default { |
export default { |
||||
data() { |
data () { |
||||
return { |
return { |
||||
casOptions: [], |
|
||||
iscascaderShow: 0, |
casOptions: [], |
||||
selCategoryArray: [], |
iscascaderShow: 0, |
||||
selCateObj: {}, |
selCategoryArray: [], |
||||
optionProps: { |
selCateObj: {}, |
||||
multiple: false, |
optionProps: { |
||||
value: 'id', |
multiple: false, |
||||
label: 'name', |
value: 'id', |
||||
children: 'subCategory', |
label: 'name', |
||||
}, |
children: 'subCategory', |
||||
operationType: '', |
}, |
||||
replayInfo: {}, |
|
||||
demand: {}, |
operationType: '', |
||||
project: {}, |
|
||||
issueInfo: {}, |
|
||||
okflag: false, |
replayInfo: {}, |
||||
eventDetailCopy: {}, |
demand: {}, |
||||
transferObj: { |
project: {}, |
||||
latitude: "", |
issueInfo: {}, |
||||
longitude: "" |
okflag: false, |
||||
} |
|
||||
}; |
eventDetailCopy: {}, |
||||
|
transferObj:{ |
||||
|
latitude :"", |
||||
|
longitude :"" |
||||
|
} |
||||
|
}; |
||||
|
}, |
||||
|
components: { |
||||
|
processFormReplay, |
||||
|
processFormProject, |
||||
|
processFormDemand, |
||||
|
processFormIssue |
||||
|
}, |
||||
|
computed: { |
||||
|
dataRule () { |
||||
|
return { |
||||
|
|
||||
|
operationType: [ |
||||
|
{ required: true, message: "处理方式不能为空", trigger: "blur" }, |
||||
|
], |
||||
|
|
||||
|
}; |
||||
}, |
}, |
||||
components: { |
|
||||
processFormReplay, |
|
||||
processFormProject, |
}, |
||||
processFormDemand, |
props: { |
||||
processFormIssue, |
demandUserId: { |
||||
processFormDesignate, |
type: String, |
||||
processFormReplayEnd |
default: "", |
||||
}, |
}, |
||||
computed: { |
demandUserName: { |
||||
dataRule() { |
type: String, |
||||
return { |
default: "", |
||||
operationType: [ |
|
||||
{ required: true, message: "处理方式不能为空", trigger: "blur" }, |
|
||||
], |
|
||||
}; |
|
||||
}, |
|
||||
}, |
}, |
||||
props: { |
demandUserMobile: { |
||||
demandUserId: { |
type: String, |
||||
type: String, |
default: "", |
||||
default: "", |
}, |
||||
}, |
gridId: { |
||||
demandUserName: { |
type: String, |
||||
type: String, |
default: "", |
||||
default: "", |
}, |
||||
}, |
eventId: { |
||||
demandUserMobile: { |
type: String, |
||||
type: String, |
default: "", |
||||
default: "", |
}, |
||||
}, |
eventDetailData: { |
||||
gridId: { |
type: Object, |
||||
type: String, |
default () { |
||||
default: "", |
return {} |
||||
}, |
} |
||||
eventId: { |
}, |
||||
type: String, |
source: {//展示来源:manage 管理平台 visiual 可视化平台 |
||||
default: "", |
type: String, |
||||
}, |
default: 'manage' |
||||
eventDetailData: { |
} |
||||
type: Object, |
}, |
||||
default() { |
|
||||
return {} |
watch: { |
||||
} |
|
||||
}, |
}, |
||||
source: {//展示来源:manage 管理平台 visiual 可视化平台 |
|
||||
type: String, |
created () { |
||||
default: 'manage' |
|
||||
} |
console.log(this.source) |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
async mounted () { |
||||
|
const { user } = this.$store.state |
||||
|
this.agencyId = user.agencyId |
||||
|
|
||||
|
if (this.eventId) { |
||||
|
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); |
||||
|
|
||||
|
} |
||||
|
if(this.eventDetailData.operationType){ |
||||
|
this.operationType = this.eventDetailCopy.operationType |
||||
|
// this.getProcessInfo() |
||||
|
} |
||||
|
this.$EventBus.$on('map',(val)=>{ |
||||
|
this.transferObj.latitude = val.lat |
||||
|
this.transferObj.longitude = val.lng |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
methods: { |
||||
|
handleChangeOperationType (val) { |
||||
|
|
||||
}, |
}, |
||||
|
async getProcessInfo () { |
||||
|
this.okflag = false |
||||
|
if (this.operationType === '0') { |
||||
|
this.$refs.ref_process_form_replay.getReplayInfo() |
||||
|
if (this.$refs.ref_process_form_replay.okflag) { |
||||
|
this.replayInfo = this.$refs.ref_process_form_replay.formData |
||||
|
|
||||
|
this.okflag = true |
||||
|
|
||||
|
} else { |
||||
|
return false |
||||
|
} |
||||
|
|
||||
watch: {}, |
} else if (this.operationType === '1') { |
||||
|
this.$refs.ref_process_form_project.getProjectInfo() |
||||
|
if (this.$refs.ref_process_form_project.okflag) { |
||||
|
|
||||
created() { }, |
this.project = this.$refs.ref_process_form_project.formData |
||||
|
|
||||
async mounted() { |
//赋值分类信息 |
||||
const { user } = this.$store.state |
this.okflag = true |
||||
this.agencyId = user.agencyId |
|
||||
if (this.eventId) { |
} else { |
||||
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); |
return false |
||||
} |
} |
||||
if (this.eventDetailData.operationType) { |
} else if (this.operationType === '2') { |
||||
this.operationType = this.eventDetailCopy.operationType |
this.$refs.ref_process_form_demond.getDemandInfo() |
||||
|
if (this.$refs.ref_process_form_demond.okflag) { |
||||
|
this.demand = this.$refs.ref_process_form_demond.formData |
||||
|
|
||||
|
this.okflag = true |
||||
|
|
||||
|
} else { |
||||
|
return false |
||||
} |
} |
||||
this.$EventBus.$on('map', (val) => { |
} else if (this.operationType === '3') { |
||||
this.transferObj.latitude = val.lat |
this.$refs.ref_process_form_issue.getIssueInfo() |
||||
this.transferObj.longitude = val.lng |
if (this.$refs.ref_process_form_issue.okflag) { |
||||
}) |
this.issueInfo = this.$refs.ref_process_form_issue.formData |
||||
|
|
||||
|
this.okflag = true |
||||
|
|
||||
|
} else { |
||||
|
return false |
||||
|
} |
||||
|
} |
||||
|
|
||||
}, |
}, |
||||
|
|
||||
methods: { |
|
||||
handleChangeOperationType(val) { |
handleCancle () { |
||||
this.operationType = val; |
this.resetData(); |
||||
}, |
|
||||
async getProcessInfo() { |
|
||||
this.okflag = false |
|
||||
if (this.operationType === '0') { |
|
||||
this.$refs.ref_process_form_replay.getReplayInfo() |
|
||||
if (this.$refs.ref_process_form_replay.okflag) { |
|
||||
this.replayInfo = this.$refs.ref_process_form_replay.formData; |
|
||||
this.okflag = true; |
|
||||
} |
|
||||
} else if (this.operationType === '5') { |
|
||||
this.$refs.ref_process_form_designate.getReplayInfo() |
|
||||
this.replayInfo = this.$refs.ref_process_form_designate.formData |
|
||||
if (this.$refs.ref_process_form_designate.okflag) { |
|
||||
this.replayInfo = this.$refs.ref_process_form_designate.formData |
|
||||
this.okflag = true |
|
||||
} |
|
||||
} else if (this.operationType === '6') { |
|
||||
this.$refs.ref_process_form_replay_end.getReplayInfo() |
|
||||
this.replayInfo = this.$refs.ref_process_form_replay_end.formData |
|
||||
if (this.$refs.ref_process_form_replay_end.okflag) { |
|
||||
this.replayInfo = this.$refs.ref_process_form_replay_end.formData |
|
||||
this.okflag = true |
|
||||
} |
|
||||
}else { |
|
||||
return false |
|
||||
} |
|
||||
}, |
|
||||
handleCancle() { |
|
||||
this.resetData(); |
|
||||
}, |
|
||||
// 开启加载动画 |
|
||||
startLoading() { |
|
||||
loading = Loading.service({ |
|
||||
lock: true, // 是否锁定 |
|
||||
text: "正在加载……", // 加载中需要显示的文字 |
|
||||
background: "rgba(0,0,0,.7)", // 背景颜色 |
|
||||
}); |
|
||||
}, |
|
||||
resetData() { |
|
||||
|
|
||||
}, |
|
||||
// 结束加载动画 |
|
||||
endLoading() { |
|
||||
if (loading) { |
|
||||
loading.close(); |
|
||||
} |
|
||||
}, |
|
||||
}, |
}, |
||||
|
resetData () { |
||||
|
|
||||
|
}, |
||||
|
// 开启加载动画 |
||||
|
startLoading () { |
||||
|
loading = Loading.service({ |
||||
|
lock: true, // 是否锁定 |
||||
|
text: "正在加载……", // 加载中需要显示的文字 |
||||
|
background: "rgba(0,0,0,.7)", // 背景颜色 |
||||
|
}); |
||||
|
}, |
||||
|
// 结束加载动画 |
||||
|
endLoading () { |
||||
|
// clearTimeout(timer); |
||||
|
if (loading) { |
||||
|
loading.close(); |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
}; |
}; |
||||
</script> |
</script> |
||||
|
|
||||
|
|
||||
<style lang="scss" scoped> |
<style lang="scss" scoped> |
||||
@import "@/assets/scss/modules/shequzhili/event-info.scss"; |
@import "@/assets/scss/modules/shequzhili/event-info.scss"; |
||||
|
</style> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<style scoped> |
||||
.el-dialog__body { |
.el-dialog__body { |
||||
padding: 0 10px 20px !important; |
padding: 0 10px 20px !important; |
||||
} |
} |
||||
</style> |
</style> |
||||
|
|||||
File diff suppressed because it is too large
Loading…
Reference in new issue