|
@ -235,6 +235,7 @@ |
|
|
>评价</el-button |
|
|
>评价</el-button |
|
|
> |
|
|
> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<template v-if="scope.row.reportType != 'self_help'"> |
|
|
<template v-if="scope.row.reportType != 'self_help'"> |
|
|
<el-button |
|
|
<el-button |
|
|
v-if="scope.row.status === 'pending'" |
|
|
v-if="scope.row.status === 'pending'" |
|
@ -553,13 +554,13 @@ |
|
|
<el-radio |
|
|
<el-radio |
|
|
v-model.trim="form.finishResult" |
|
|
v-model.trim="form.finishResult" |
|
|
label="resolved" |
|
|
label="resolved" |
|
|
:disabled="disabled && addType != 'finish'" |
|
|
:disabled="disabled && addType != 'finish' && addType != 'finishNoEvaluate'" |
|
|
>已解决</el-radio |
|
|
>已解决</el-radio |
|
|
> |
|
|
> |
|
|
<el-radio |
|
|
<el-radio |
|
|
v-model.trim="form.finishResult" |
|
|
v-model.trim="form.finishResult" |
|
|
label="unresolved" |
|
|
label="unresolved" |
|
|
:disabled="disabled && addType != 'finish'" |
|
|
:disabled="disabled && addType != 'finish' && addType != 'finishNoEvaluate'" |
|
|
>未解决</el-radio |
|
|
>未解决</el-radio |
|
|
> |
|
|
> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -573,16 +574,16 @@ |
|
|
label="上传图片" |
|
|
label="上传图片" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
style="display: block" |
|
|
style="display: block" |
|
|
prop="attachments" |
|
|
prop="finishAttachments" |
|
|
v-if="addType != 'finishNoEvaluate'" |
|
|
v-if="addType != 'finishNoEvaluate'" |
|
|
> |
|
|
> |
|
|
<UploadImages :fileList="form.attachments" @change="(val) => form.attachments = val" :limit="3"/> |
|
|
<UploadImages :fileList="form.finishAttachments" @change="(val) => form.finishAttachments = val" :limit="3"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item |
|
|
<el-form-item |
|
|
label="上传图片" |
|
|
label="上传图片" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
style="display: block" |
|
|
style="display: block" |
|
|
prop="attachments" |
|
|
prop="finishAttachments" |
|
|
v-else |
|
|
v-else |
|
|
> |
|
|
> |
|
|
<el-image :src="item.url" v-for="(item,index) in form.finishAttachments" :key="index" ></el-image> |
|
|
<el-image :src="item.url" v-for="(item,index) in form.finishAttachments" :key="index" ></el-image> |
|
@ -591,7 +592,7 @@ |
|
|
<el-input |
|
|
<el-input |
|
|
v-model.trim="form.finishDesc" |
|
|
v-model.trim="form.finishDesc" |
|
|
:autosize="{ minRows: 2, maxRows: 10 }" |
|
|
:autosize="{ minRows: 2, maxRows: 10 }" |
|
|
:disabled="disabled && addType != 'finish'" |
|
|
:disabled="disabled && addType != 'finish' && addType != 'finishNoEvaluate'" |
|
|
type="textarea" |
|
|
type="textarea" |
|
|
clearable |
|
|
clearable |
|
|
class="input-width-textarea" |
|
|
class="input-width-textarea" |
|
@ -857,7 +858,7 @@ export default { |
|
|
demandUserId: "", |
|
|
demandUserId: "", |
|
|
demandUserName: "", |
|
|
demandUserName: "", |
|
|
demandUserMobile: "", |
|
|
demandUserMobile: "", |
|
|
attachments:[] |
|
|
finishAttachments:[] |
|
|
}, |
|
|
}, |
|
|
rules: { |
|
|
rules: { |
|
|
gridId: [ |
|
|
gridId: [ |
|
@ -1131,7 +1132,7 @@ export default { |
|
|
...this.form, |
|
|
...this.form, |
|
|
}; |
|
|
}; |
|
|
// 需求上去掉了图片,但是我又不会改代码,先赋值为[] |
|
|
// 需求上去掉了图片,但是我又不会改代码,先赋值为[] |
|
|
_form.attachments = []; |
|
|
_form.finishAttachments = []; |
|
|
await this.$http |
|
|
await this.$http |
|
|
.post("/governance/userdemand/add", _form) |
|
|
.post("/governance/userdemand/add", _form) |
|
|
.then(({ data: res }) => { |
|
|
.then(({ data: res }) => { |
|
@ -1178,7 +1179,7 @@ export default { |
|
|
finishDesc: reportType == "self_help" ? "" : this.form.finishDesc, |
|
|
finishDesc: reportType == "self_help" ? "" : this.form.finishDesc, |
|
|
serviceId: this.form.serviceId, |
|
|
serviceId: this.form.serviceId, |
|
|
score: reportType == "self_help" ? 0 : this.form.score, |
|
|
score: reportType == "self_help" ? 0 : this.form.score, |
|
|
attachments: this.form.attachments |
|
|
finishAttachments: this.form.finishAttachments |
|
|
}; |
|
|
}; |
|
|
// console.log(_form,'_form') |
|
|
// console.log(_form,'_form') |
|
|
// return |
|
|
// return |
|
@ -1230,6 +1231,7 @@ export default { |
|
|
else if (this.addType == "edit") this.editCate(); |
|
|
else if (this.addType == "edit") this.editCate(); |
|
|
else if (this.addType == "appoint") this.appointAjax(); |
|
|
else if (this.addType == "appoint") this.appointAjax(); |
|
|
else if (this.addType == "finish") this.finishAjax(); |
|
|
else if (this.addType == "finish") this.finishAjax(); |
|
|
|
|
|
else if (this.addType == "finishNoEvaluate") this.finishAjax(); |
|
|
} else { |
|
|
} else { |
|
|
console.log("error submit!!"); |
|
|
console.log("error submit!!"); |
|
|
return false; |
|
|
return false; |
|
|