Commit 537b4092 authored by 罗林杰's avatar 罗林杰

修改意见反馈

parent f9d43c5e
......@@ -31,6 +31,22 @@
style="width: 150px"
/>
</el-form-item>
<el-form-item label="处理状态" prop="status">
<el-select
v-model="queryParams.status"
placeholder="请选择处理状态"
clearable
size="small"
style="width: 150px"
>
<el-option
v-for="dict in statusOptions"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
:class="commonField.queryClass"
......@@ -84,6 +100,11 @@
{{ scope.row.content || '-' }}
</template>
</el-table-column>
<el-table-column label="处理状态" prop="status" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.status == '1' ? '已处理' : '未处理' }}
</template>
</el-table-column>
<el-table-column label="备注" prop="remarks" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.remarks || '-' }}
......@@ -101,7 +122,7 @@
:type="commonField.typeParent"
:size="commonField.size"
@click="handleUpdate(scope.row)"
>修改</el-button>
>处理</el-button>
</template>
</el-table-column>
</el-table>
......@@ -115,29 +136,14 @@
/>
<!-- 添加或修改意见反馈配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="90px">
<el-form-item label="反馈类型" prop="feedbackType">
<el-input v-model.trim="form.feedbackType" show-word-limit :maxlength="64" placeholder="请输入反馈类型" />
</el-form-item>
<el-form-item label="标题" prop="title">
<el-input v-model.trim="form.title" show-word-limit :maxlength="255" placeholder="请输入标题" />
</el-form-item>
<el-form-item label="内容" prop="content">
<el-input v-model.trim="form.content" show-word-limit :maxlength="255" placeholder="请输入内容" />
</el-form-item>
<el-form-item label="状态">
<el-radio-group v-model="form.flag">
<el-radio label="1">启用</el-radio>
<el-radio label="0">停用</el-radio>
</el-radio-group>
</el-form-item>
<el-form ref="form" :model="form" :rules="rules" size="small" >
<el-form-item label="备注" prop="remarks">
<el-input v-model.trim="form.remarks" maxlength="200" show-word-limit type="textarea" placeholder="请输入内容" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button class="cancelBtn" @click="cancel">取 消</el-button>
<el-button class="submitBtn" type="primary" @click="submitForm">确 定</el-button>
<el-button class="submitBtn" type="primary" @click="submitForm">处 理</el-button>
</div>
</el-dialog>
</div>
......@@ -169,11 +175,11 @@ export default {
// 状态菜单
statusOptions: [
{
dictLabel: '启用',
dictLabel: '已处理',
dictValue: '1'
},
{
dictLabel: '停用',
dictLabel: '未处理',
dictValue: '0'
}
],
......@@ -259,7 +265,7 @@ export default {
getMemFeedback(id).then(response => {
this.form = response.data
this.open = true
this.title = '修改意见反馈'
this.title = '处理意见反馈'
})
},
// 改变状态
......@@ -285,8 +291,9 @@ export default {
this.$refs['form'].validate(valid => {
if (valid) {
if (this.form.businessId !== undefined) {
this.form.status = '1'
updateMemFeedback(this.form).then(response => {
this.msgSuccess('修改成功')
this.msgSuccess('处理成功')
this.open = false
this.getList()
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment