Commit bd67d3d3 by 郑艺斌

修复已知BUG

parent a37623f1
......@@ -84,8 +84,8 @@
<Col span="20">
<FormItem label="标签分类" prop="problem">
<RadioGroup v-model="addForm.label">
<Radio label="常见问题"></Radio>
<Radio label="解决办法"></Radio>
<Radio label="0">常见问题</Radio>
<Radio label="1">解决方案</Radio>
</RadioGroup>
</FormItem>
</Col>
......@@ -299,7 +299,7 @@ export default {
} else if (params.row.label == '1') {
return h(
'span',
'解决问题'
'解决方案'
)
} else {
return h(
......@@ -310,7 +310,7 @@ export default {
}
},
{
title: "常见问题",
title: "题",
key: "problem",
width: 200,
align: "center"
......@@ -339,7 +339,7 @@ export default {
tabsList: [
{ label: '全部', value: '' },
{ label: '常见问题', value: '0' },
{ label: '解决办法', value: '1' },
{ label: '解决方案', value: '1' },
],
tabActive: ''
};
......
......@@ -1493,13 +1493,24 @@ export default {
let headers = { headers: { "Content-Type": "multipart/form-data" } }; //修改成文件上传的请求头
axios.post("/api/emaint/repairProblem/save", data, headers).then(
resdata => {
this.isok = false;
this.modal_loading = false;
this.$Message.success("修改成功!");
this.$Spin.hide();
setTimeout(() => {
this.$router.push({ name: "order_list" });
}, 1000);
if (resdata.data.statusCode === 200) {
this.isok = false;
this.modal_loading = false;
this.$Message.success("修改成功!");
this.$Spin.hide();
setTimeout(() => {
this.$router.push({ name: "order_list" });
}, 1000);
} else {
console.log(resdata);
this.isok = false;
this.modal_loading = false;
this.$Modal.error({
title: "提示信息",
content: resdata.data.responseResult
});
this.$Spin.hide();
}
},
err => {
this.modal_loading = false;
......
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 sign in to comment