刘翔宇-旅管家 3 years ago
parent 82dfd0fa3d
commit dca0b373f5

@ -16,6 +16,15 @@ export function del(id) {
id id
} }
}) })
}
export function save(data) {
return request({
url: '/api/admin/tip/save',
method: 'post',
data
})
} }
export function get(id) { export function get(id) {

@ -91,153 +91,156 @@
parames: {} parames: {}
}, },
mobileList: [{ mobileList: [{
mobile: '13913109900' mobile: '18936139616'
}, },
{ {
mobile: '18501505657' mobile: '18936139616'
}, },
{ {
mobile: '18652421281' mobile: '13913553385'
}, },
{ {
mobile: '13270977225' mobile: '15606250566'
}, },
{ {
mobile: '13052801292' mobile: '18936139616'
}, },
{ {
mobile: '18896587663' mobile: '18936139616'
}, },
{ {
mobile: '13951887524' mobile: '18896803717'
}, },
{ {
mobile: '18913575992' mobile: '13862131217'
}, },
{ {
mobile: '15295671438' mobile: '13771928980'
}, },
{ {
mobile: '13915422122' mobile: '13806212507'
}, },
{ {
mobile: '18670287910' mobile: '18012744431'
}, },
{ {
mobile: '15850872937' mobile: '18012744431'
}, },
{ {
mobile: '15962180796' mobile: '18012744431'
}, },
{ {
mobile: '15995892928' mobile: '18051218702'
}, },
{ {
mobile: '18151085929' mobile: '15850056828'
}, },
{ {
mobile: '15962427069' mobile: '15850056828'
}, },
{ {
mobile: '13013869797' mobile: '13915557940'
}, },
{ {
mobile: '13861334007' mobile: '15995808679'
}, },
{ {
mobile: '15370062080' mobile: '18626109888'
}, },
{ {
mobile: '15251680185' mobile: '15250505058'
}, },
{ {
mobile: '18906235118' mobile: '15250505058'
}, },
{ {
mobile: '13063730025' mobile: '13776110523'
}, },
{ {
mobile: '13306176337' mobile: '13776110523'
}, },
{ {
mobile: '18865711856' mobile: '13776034799'
}, },
{ {
mobile: '13032530763' mobile: '15895464925'
}, },
{ {
mobile: '13862735851' mobile: '17715140912'
}, },
{ {
mobile: '18862321502' mobile: '17751654868'
}, },
{ {
mobile: '18896523808' mobile: '13913171771'
}, },
{ {
mobile: '18913183396' mobile: '13913171771'
}, },
{ {
mobile: '17397929991' mobile: '13913171771'
}, },
{ {
mobile: '13771938730' mobile: '13664165211'
}, },
{ {
mobile: '13814897494' mobile: '13915572008'
}, },
{ {
mobile: '13814800749' mobile: '13915572008'
}, },
{ {
mobile: '18896716581' mobile: '15895360418'
}, },
{ {
mobile: '15995808679' mobile: '13861794258'
}, },
{ {
mobile: '18695190691' mobile: '15006195598'
}, },
{ {
mobile: '13664165211' mobile: '13814889016'
}, },
{ {
mobile: '15851467293' mobile: '15995892928'
}, },
{ {
mobile: '13862089260' mobile: '13913516430'
}, },
{ {
mobile: '13906222159' mobile: '15370072868'
}, },
{ {
mobile: '13913553385' mobile: '18852675993'
}, },
{ {
mobile: '15606250566' mobile: '18251371032'
}, },
{ {
mobile: '13961314486' mobile: '15962454958'
}, },
{ {
mobile: '13584837778' mobile: '13915422122'
}, },
{ {
mobile: '18251371032' mobile: '18896716581'
}, },
{ {
mobile: '13222751128' mobile: '15962180796'
}, },
{ {
mobile: '13771767056' mobile: '13913056555'
}, },
{ {
mobile: '18550337240' mobile: '13906222159'
},
{
mobile: '18915580967'
} }
], ],
paramesObj: { paramesObj: {
name: "“乐益大讲堂”第一讲《九如巷张氏与乐益女中", name: "乐益大讲堂”第二讲《中国载人航天》",
time: "4月8日(本周六)14:00-16:00", time: "5月2日(本周二)14:00-16:00",
address: "中共苏州独立支部旧址(体育场路4号)一楼报告厅" address: "中共苏州独立支部旧址(体育场路4号)一楼报告厅"
}, },
rules: { rules: {
@ -245,9 +248,15 @@
}, },
formLabelWidth: '120px', formLabelWidth: '120px',
templateList: [{ templateList: [{
id: "8S8Pq1", id: "8S8Pq1",
value: '活动短信' value: '活动短信0512-65166121'
}] },
{
id: 'L3Ewb3',
value: '活动短信0512-67701925'
}
]
} }
}, },
methods: { methods: {

@ -23,6 +23,8 @@
<div v-if="column.type=='opt'"> <div v-if="column.type=='opt'">
<Button ghost size="small" @click="show(scope.row)" type="primary" <Button ghost size="small" @click="show(scope.row)" type="primary"
style="margin-left: 10px;">查看</Button> style="margin-left: 10px;">查看</Button>
<Button ghost size="small" @click="replyForm(scope.row)" v-if="!scope.row.reply" type="primary"
style="margin-left: 10px;">回复</Button>
<Button ghost size="small" type="error" @click="del(scope.row)" style="margin-left: 10px;">删除</Button> <Button ghost size="small" type="error" @click="del(scope.row)" style="margin-left: 10px;">删除</Button>
</div> </div>
<div v-else>{{scope.row[column.field]}}</div> <div v-else>{{scope.row[column.field]}}</div>
@ -36,16 +38,24 @@
</div> </div>
</div> </div>
</div> </div>
<el-dialog title="内容查看" :visible.sync="dialogFormVisible" > <el-dialog title="内容查看" :visible.sync="dialogFormVisible">
<div class="dialogConcent" > <div class="dialogConcent">
<el-scrollbar style="flex: 1"> <el-scrollbar style="flex: 1">
<el-form :model="form" ref="form" label-position="right" :label-width="formLabelWidth"> <el-form :model="form" ref="form" label-position="right" :label-width="formLabelWidth">
<el-form-item label="联系电话" prop="mobile"> <el-form-item label="联系电话" prop="mobile">
<div>{{form.mobile}} </div> <div>{{form.mobile}} </div>
</el-form-item> </el-form-item>
<el-form-item label="内容" prop="content"> <el-form-item label="反馈内容" prop="content">
<div style="width: 99.9%;" v-html="form.content"> <div style="width: 99.9%;" v-html="form.content">
</div> </div>
</el-form-item>
<el-form-item label="回复时间" prop="reply_time">
<div v-html="form.reply_time">
</div>
</el-form-item>
<el-form-item label="回复内容" prop="reply">
<div style="width: 99.9%;" v-html="form.reply">
</div>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-scrollbar> </el-scrollbar>
@ -54,6 +64,33 @@
<el-button @click="resetForm('form')"> </el-button> <el-button @click="resetForm('form')"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog title="内容回复" :visible.sync="dialogFormEditVisible">
<div class="dialogConcent">
<el-scrollbar style="flex: 1">
<el-form :model="formReply" ref="formReply" label-position="right" :label-width="formLabelWidth">
<el-form-item label="联系电话">
<div>{{form.mobile}} </div>
</el-form-item>
<el-form-item label="反馈内容">
<div style="width: 99.9%;" v-html="form.content">
</div>
</el-form-item>
<el-form-item label="回复内容">
<el-input type="textarea" :rows="4" placeholder="请输入内容" v-model="formReply.reply">
</el-input>
</el-form-item>
</el-form>
</el-scrollbar>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="submitForm('formReply')" type="primary"> </el-button>
<el-button @click="resetForm('formReply')"> </el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
@ -61,7 +98,8 @@
import { import {
listtip, listtip,
get, get,
del del,
save
} from "../../../api/resource/complaint.js"; } from "../../../api/resource/complaint.js";
export default { export default {
components: { components: {
@ -69,6 +107,7 @@
}, },
data() { data() {
return { return {
dialogFormEditVisible: false,
dialogFormVisible: false, dialogFormVisible: false,
formLabelWidth: "120px", formLabelWidth: "120px",
tableHeight: 0, tableHeight: 0,
@ -77,6 +116,10 @@
searchFields: { searchFields: {
keyword: "" keyword: ""
}, },
formReply: {
id: "",
reply: "1"
},
paginations: { paginations: {
page: 1, page: 1,
page_size: 15, page_size: 15,
@ -128,7 +171,7 @@
listtip({ listtip({
page: this.paginations.page, page: this.paginations.page,
page_size: this.paginations.page_size, page_size: this.paginations.page_size,
name: this.searchFields.name, name: this.searchFields.name,
...this.searchFields ...this.searchFields
}).then(res => { }).then(res => {
this.tableData = res.data; this.tableData = res.data;
@ -157,6 +200,34 @@
} }
this.dialogFormVisible = true; this.dialogFormVisible = true;
}, },
replyForm(obj) {
this.formReply = this.$options.data().formReply;
this.formReply.reply = '';
this.clientHeight = document.documentElement.clientHeight - 84 - 110;
if (obj) {
var that = this;
that.info(obj);
this.formReply.id = obj.id;
}
this.dialogFormEditVisible = true;
},
submitForm(formName) {
var that = this;
that.form.tag = "about";
this.$refs[formName].validate((valid) => {
if (valid) {
save(that.formReply).then(response => {
this.$Message.success('操作成功');
that.dialogFormEditVisible = false;
that.load();
}).catch(error => {})
} else {
this.$Message.error('数据校验失败');
return false;
}
});
},
del(obj) { del(obj) {
var that = this; var that = this;
if (obj) { if (obj) {

Loading…
Cancel
Save