|
@ -73,32 +73,18 @@ |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div v-if="info.operationId||info.status==='closed_case'" |
|
|
|
|
|
|
|
|
<div v-if="info.operationId&&info.status!=='closed_case'" |
|
|
class="div-btn "> |
|
|
class="div-btn "> |
|
|
<el-button v-if=" info.status==='closed_case'&&!info.satisfactionName && user.id===info.createdUserId" |
|
|
|
|
|
size="small" |
|
|
|
|
|
class="diy-button--reset" |
|
|
|
|
|
@click="handleSatisfy">满意度评价</el-button> |
|
|
|
|
|
<el-button size="small" |
|
|
<el-button size="small" |
|
|
@click="handleCloseEvent">关闭</el-button> |
|
|
@click="handleCloseEvent">关闭</el-button> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</el-card> |
|
|
</el-card> |
|
|
<!-- <div v-if="showType=='project'"> |
|
|
<el-card v-if=" info.status==='closed_case'"> |
|
|
<project-info ref="eleEditForm" |
|
|
<h3>满意度评价</h3> |
|
|
:type="projectPageType" |
|
|
<div class="m-row"> |
|
|
:projectId="info.operationId" |
|
|
<div class="m-info"> |
|
|
@close="handleClose" |
|
|
|
|
|
@afterEdit="handleClose" /> |
|
|
|
|
|
</div> --> |
|
|
|
|
|
<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-satisfy"> |
|
|
<div class="div-satisfy"> |
|
|
<div> |
|
|
<div> |
|
@ -117,6 +103,30 @@ |
|
|
<div class="tip-satisfy">非常满意</div> |
|
|
<div class="tip-satisfy">非常满意</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
<div v-if="info.operationId||info.status==='closed_case'" |
|
|
|
|
|
class="div-btn "> |
|
|
|
|
|
|
|
|
|
|
|
<el-button size="small" |
|
|
|
|
|
@click="handleCloseEvent">关闭</el-button> |
|
|
|
|
|
<el-button v-if="info.status==='closed_case'&&!info.satisfactionName && user.id===info.createdUserId" |
|
|
|
|
|
size="small" |
|
|
|
|
|
type="primary" |
|
|
|
|
|
@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"> |
|
|
<div class="div-btn"> |
|
|
<el-button size="small" |
|
|
<el-button size="small" |
|
|
@click="showSatisfy=false">关闭</el-button> |
|
|
@click="showSatisfy=false">关闭</el-button> |
|
@ -213,6 +223,11 @@ export default { |
|
|
this.user = this.$store.state.user |
|
|
this.user = this.$store.state.user |
|
|
if (this.eventId) { |
|
|
if (this.eventId) { |
|
|
this.info = JSON.parse(JSON.stringify(this.eventDetailData)); |
|
|
this.info = JSON.parse(JSON.stringify(this.eventDetailData)); |
|
|
|
|
|
|
|
|
|
|
|
//如果已经评价过,进行回显 |
|
|
|
|
|
if (this.info.status === 'closed_case' && this.info.satisfactionName) { |
|
|
|
|
|
this.changeSatisfyType(this.info.satisfaction) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
// this.getApiData(); |
|
|
// this.getApiData(); |
|
|
|
|
|
|
|
@ -255,6 +270,14 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
clickSatisfy (type) { |
|
|
clickSatisfy (type) { |
|
|
|
|
|
if (this.info.satisfactionName) { |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.changeSatisfyType(type) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
changeSatisfyType (type) { |
|
|
if (type === 'bad') { |
|
|
if (type === 'bad') { |
|
|
this.selGood = false |
|
|
this.selGood = false |
|
|
this.selPerfect = false |
|
|
this.selPerfect = false |
|
|