|
@@ -591,14 +591,14 @@ export default {
|
|
|
this.$router.push({
|
|
|
path: '/addWebsite',
|
|
|
});
|
|
|
- //先获取所有网系
|
|
|
- this.getwebsiteColumn()
|
|
|
- //显示网系到弹出窗口
|
|
|
- this.openWindow()
|
|
|
- //修改添加和编辑窗口的文字提示
|
|
|
- this.editId = 0;
|
|
|
- //显示提交按钮
|
|
|
- this.editBtn = false;
|
|
|
+ // //先获取所有网系
|
|
|
+ // this.getwebsiteColumn()
|
|
|
+ // //显示网系到弹出窗口
|
|
|
+ // this.openWindow()
|
|
|
+ // //修改添加和编辑窗口的文字提示
|
|
|
+ // this.editId = 0;
|
|
|
+ // //显示提交按钮
|
|
|
+ // this.editBtn = false;
|
|
|
//清除错误状态
|
|
|
this.$refs.form.clearValidate();
|
|
|
},
|
|
@@ -803,49 +803,49 @@ export default {
|
|
|
//先清空窗口
|
|
|
this.clearToServe()
|
|
|
//打开输入窗口
|
|
|
- this.openWindow();
|
|
|
+ // this.openWindow();
|
|
|
//添加修改id
|
|
|
- this.editId = id;
|
|
|
+ // this.editId = id;
|
|
|
|
|
|
//获取网站详情
|
|
|
- this.$store.dispatch('pool/getWebsiteInfo', { id: id }).then(res => {
|
|
|
- //清除错误状态
|
|
|
- this.$refs.form.clearValidate();
|
|
|
- console.log(res)
|
|
|
- //回显网站名称
|
|
|
- this.form.website_name = res.data.website_name;
|
|
|
- //回显星系
|
|
|
- this.form.website_column_arr_id = res.data.website_column_arr_id;
|
|
|
- //回显logo
|
|
|
- this.form.logo = res.data.logo;
|
|
|
- this.logoUrl = res.data.logo;
|
|
|
- //回显url
|
|
|
- let that = this;
|
|
|
- if (res.data.website_url == null) {
|
|
|
- //为null什么都不执行
|
|
|
- } else {
|
|
|
- for (let index in res.data.website_url) {
|
|
|
- this.form.website_url[index].url = res.data.website_url[index];
|
|
|
- this.form.website_url[index].show = true;
|
|
|
- }
|
|
|
- }
|
|
|
- //回显id
|
|
|
- //存放城市id
|
|
|
- //this.form.city_arr_id = res.data.city_arr_id;
|
|
|
- //当cascaderKey的值改变的时候 级联选择器会重置里面的内容
|
|
|
- //this.cascaderKey += 1;
|
|
|
- //回显网站标题,描述,关键词
|
|
|
- console.log(res.data.title, res.data.keywords, res.data.description)
|
|
|
- this.form.title = res.data.title;
|
|
|
- this.form.keywords = res.data.keywords;
|
|
|
- this.tags = res.data.keywords ? res.data.keywords.split(',') : [];
|
|
|
- this.form.description = res.data.description;
|
|
|
- this.form.suffix = res.data.suffix;
|
|
|
- //回显模板信息
|
|
|
- // this.form.template_id = res.data.template_id;
|
|
|
- // this.TemplateName = res.data.template_name;
|
|
|
- // this.TemplateImg = JSON.parse(res.data.template_img)[0];
|
|
|
- })
|
|
|
+ // this.$store.dispatch('pool/getWebsiteInfo', { id: id }).then(res => {
|
|
|
+ // //清除错误状态
|
|
|
+ // this.$refs.form.clearValidate();
|
|
|
+ // console.log(res)
|
|
|
+ // //回显网站名称
|
|
|
+ // this.form.website_name = res.data.website_name;
|
|
|
+ // //回显星系
|
|
|
+ // this.form.website_column_arr_id = res.data.website_column_arr_id;
|
|
|
+ // //回显logo
|
|
|
+ // this.form.logo = res.data.logo;
|
|
|
+ // this.logoUrl = res.data.logo;
|
|
|
+ // //回显url
|
|
|
+ // let that = this;
|
|
|
+ // if (res.data.website_url == null) {
|
|
|
+ // //为null什么都不执行
|
|
|
+ // } else {
|
|
|
+ // for (let index in res.data.website_url) {
|
|
|
+ // this.form.website_url[index].url = res.data.website_url[index];
|
|
|
+ // this.form.website_url[index].show = true;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // //回显id
|
|
|
+ // //存放城市id
|
|
|
+ // //this.form.city_arr_id = res.data.city_arr_id;
|
|
|
+ // //当cascaderKey的值改变的时候 级联选择器会重置里面的内容
|
|
|
+ // //this.cascaderKey += 1;
|
|
|
+ // //回显网站标题,描述,关键词
|
|
|
+ // console.log(res.data.title, res.data.keywords, res.data.description)
|
|
|
+ // this.form.title = res.data.title;
|
|
|
+ // this.form.keywords = res.data.keywords;
|
|
|
+ // this.tags = res.data.keywords ? res.data.keywords.split(',') : [];
|
|
|
+ // this.form.description = res.data.description;
|
|
|
+ // this.form.suffix = res.data.suffix;
|
|
|
+ // //回显模板信息
|
|
|
+ // // 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;//显示编辑按钮
|
|
|
},
|