|
@@ -631,7 +631,7 @@ export default {
|
|
this.closeWindow();
|
|
this.closeWindow();
|
|
}else{
|
|
}else{
|
|
this.$message({
|
|
this.$message({
|
|
- type: 'success',
|
|
|
|
|
|
+ type: 'error',
|
|
message: '添加失败!请检查网络!'
|
|
message: '添加失败!请检查网络!'
|
|
});
|
|
});
|
|
//清空并退出
|
|
//清空并退出
|
|
@@ -784,9 +784,9 @@ export default {
|
|
this.form.keywords = res.data.keywords;
|
|
this.form.keywords = res.data.keywords;
|
|
this.form.description = res.data.description;
|
|
this.form.description = res.data.description;
|
|
//回显模板信息
|
|
//回显模板信息
|
|
- this.form.template_id = res.data.template_id;
|
|
|
|
- this.TemplateName = res.data.template_name;
|
|
|
|
- this.TemplateImg = JSON.parse(res.data.template_img)[0];
|
|
|
|
|
|
+ // this.form.template_id = res.data.template_id;
|
|
|
|
+ // this.TemplateName = res.data.template_name;
|
|
|
|
+ // this.TemplateImg = JSON.parse(res.data.template_img)[0];
|
|
})
|
|
})
|
|
|
|
|
|
this.editBtn = true;//显示编辑按钮
|
|
this.editBtn = true;//显示编辑按钮
|
|
@@ -808,15 +808,23 @@ export default {
|
|
this.form.id = this.editId;
|
|
this.form.id = this.editId;
|
|
//提交表单
|
|
//提交表单
|
|
this.$store.dispatch('pool/updateWebsite',this.form).then(res=> {
|
|
this.$store.dispatch('pool/updateWebsite',this.form).then(res=> {
|
|
- //汇报结果
|
|
|
|
- this.$message({
|
|
|
|
- type: 'success',
|
|
|
|
- message: '已成功修改网站信息!'
|
|
|
|
- });
|
|
|
|
- //清空并退出
|
|
|
|
- this.closeWindow();
|
|
|
|
- //重新请求列表
|
|
|
|
- this.getData();
|
|
|
|
|
|
+ console.log(res.code)
|
|
|
|
+ if(res.code==200){
|
|
|
|
+ //汇报结果
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: '已成功修改网站信息!'
|
|
|
|
+ });
|
|
|
|
+ //清空并退出
|
|
|
|
+ this.closeWindow();
|
|
|
|
+ //重新请求列表
|
|
|
|
+ this.getData();
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error('修改失败!')
|
|
|
|
+ //清空并退出
|
|
|
|
+ this.closeWindow();
|
|
|
|
+ }
|
|
|
|
+
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
this.$message({
|
|
this.$message({
|
|
type: 'warning',
|
|
type: 'warning',
|