|
@ -252,11 +252,11 @@ |
|
|
size="small" |
|
|
size="small" |
|
|
class="div-table-button--edit">处理</el-button> |
|
|
class="div-table-button--edit">处理</el-button> |
|
|
|
|
|
|
|
|
<el-button v-else-if="scope.row.status==='closed_case' && !scope.row.satisfactionName && user.id===scope.row.createdUserId" |
|
|
<!-- <el-button v-else-if="scope.row.status==='closed_case' && !scope.row.satisfactionName && user.id===scope.row.createdUserId" |
|
|
@click="handleSatisfy(scope.row)" |
|
|
@click="handleSatisfy(scope.row)" |
|
|
type="text" |
|
|
type="text" |
|
|
size="small" |
|
|
size="small" |
|
|
class="div-table-button--edit">评价</el-button> |
|
|
class="div-table-button--edit">评价</el-button> --> |
|
|
<el-button v-else |
|
|
<el-button v-else |
|
|
@click="handleWatch(scope.row)" |
|
|
@click="handleWatch(scope.row)" |
|
|
type="text" |
|
|
type="text" |
|
@ -290,42 +290,6 @@ |
|
|
@dialogOk="handleEditSuccess" /> |
|
|
@dialogOk="handleEditSuccess" /> |
|
|
</div> |
|
|
</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> |
|
|
|
|
|
<img :src="selBad?badurl_light:badurl" |
|
|
|
|
|
@click="clickSatisfy('bad')" /> |
|
|
|
|
|
<div class="tip-satisfy">不满意</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<img :src="selGood?goodurl_light:goodurl" |
|
|
|
|
|
@click="clickSatisfy('good')" /> |
|
|
|
|
|
<div class="tip-satisfy">满意</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<img :src="selPerfect?perfecturl_light:perfecturl" |
|
|
|
|
|
@click="clickSatisfy('perfect')" /> |
|
|
|
|
|
<div class="tip-satisfy">非常满意</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<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> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -419,17 +383,7 @@ export default { |
|
|
|
|
|
|
|
|
eventDetailData: {}, |
|
|
eventDetailData: {}, |
|
|
|
|
|
|
|
|
//满意度评价 |
|
|
|
|
|
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'), |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
@ -470,7 +424,8 @@ export default { |
|
|
const url = "/gov/org/customergrid/gridoption" |
|
|
const url = "/gov/org/customergrid/gridoption" |
|
|
|
|
|
|
|
|
let params = { |
|
|
let params = { |
|
|
agencyId: this.agencyId |
|
|
agencyId: this.agencyId, |
|
|
|
|
|
purpose: "query" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
const { data, code, msg } = await requestPost(url, params) |
|
@ -485,7 +440,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async handleExport () { |
|
|
async handleExport () { |
|
|
const url = "/epmetuser/icBirthRecord/export"; |
|
|
const url = "/gov/project/icEvent/export"; |
|
|
const { pageSize, pageNo, formData } = this; |
|
|
const { pageSize, pageNo, formData } = this; |
|
|
axios({ |
|
|
axios({ |
|
|
url: window.SITE_CONFIG["apiURL"] + url, |
|
|
url: window.SITE_CONFIG["apiURL"] + url, |
|
@ -563,72 +518,20 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//满意度评价 |
|
|
|
|
|
handleSatisfy (row) { |
|
|
|
|
|
this.eventId = row.icEventId |
|
|
|
|
|
this.showSatisfy = true |
|
|
|
|
|
}, |
|
|
|
|
|
clickSatisfy (type) { |
|
|
|
|
|
if (type === 'bad') { |
|
|
|
|
|
this.selGood = false |
|
|
|
|
|
this.selPerfect = false |
|
|
|
|
|
this.selBad = true |
|
|
|
|
|
} else if (type === 'good') { |
|
|
|
|
|
this.selGood = true |
|
|
|
|
|
this.selPerfect = false |
|
|
|
|
|
this.selBad = false |
|
|
|
|
|
} else if (type === 'perfect') { |
|
|
|
|
|
this.selGood = false |
|
|
|
|
|
this.selPerfect = true |
|
|
|
|
|
this.selBad = false |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
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 = "/gov/project/icEvent/comment" |
|
|
|
|
|
|
|
|
|
|
|
let params = { |
|
|
|
|
|
icEventId: this.eventId, |
|
|
|
|
|
satisfaction: satisfyLevel |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
|
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
|
|
this.$message.success("评价成功"); |
|
|
|
|
|
this.showSatisfy = false |
|
|
|
|
|
this.getTableData() |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(msg) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleClose () { |
|
|
handleClose () { |
|
|
this.pageType = "list"; |
|
|
this.pageType = "list"; |
|
|
|
|
|
|
|
|
this.eventId = "" |
|
|
this.eventId = "" |
|
|
|
|
|
this.getTableData() |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
handleOk () { |
|
|
handleOk () { |
|
|
this.pageType = "list"; |
|
|
this.pageType = "list"; |
|
|
|
|
|
|
|
|
this.eventId = "" |
|
|
this.eventId = "" |
|
|
|
|
|
this.pageNo = 1 |
|
|
this.getTableData() |
|
|
this.getTableData() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
handleEditSuccess () { |
|
|
handleEditSuccess () { |
|
|