Commit d6ae7d3b authored by 郭志伟's avatar 郭志伟

Merge branch 'master' into feature/tenant

# Conflicts:
#	app/web/page/store/modules/editor/state.ts
parents 9c0ba79d b0b378f5
registry=http://npmprivate.quantgroups.com/
\ No newline at end of file
......@@ -34,8 +34,8 @@ export default class DynamicForm extends Vue {
@Watch('pageData', { immediate: true })
onPageDataChange(newVal) {
const { pageName, pageDescribe, pageKeywords, coverImage, isPublish, isTemplate, shareCoverImage, shareOpenMethod } = this.pageInfo;
this.formCustom = { pageName, pageDescribe, pageKeywords, coverImage, isPublish: !!isPublish, isTemplate: !!isTemplate, shareCoverImage, shareOpenMethod };
const { pageName, pageDescribe, pageKeywords, coverImage, isPublish, isTemplate, shareCoverImage, shareOpenMethod, diversion } = this.pageInfo;
this.formCustom = { pageName, pageDescribe, pageKeywords, coverImage, isPublish: !!isPublish, isTemplate: !!isTemplate, shareCoverImage, shareOpenMethod, diversion };
}
@Watch('value')
......
......@@ -24,6 +24,9 @@
<FormItem label="是否发布" prop="isPublish">
<i-switch v-model="formCustom.isPublish"></i-switch>
</FormItem>
<FormItem label="导流url" prop="diversion">
<Input v-model="formCustom.diversion" placeholder="可选,具体url请联系对应导流项目的产品或开发" :rows="3"></Input>
</FormItem>
<FormItem label="设为模板" prop="isTemplate" v-if="formCustom.isPublish">
<i-switch v-model="formCustom.isTemplate"></i-switch>
</FormItem>
......
......@@ -87,8 +87,8 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin,
let pageData = this.handleTabsRepaetCom();
pageData = this.handleComAchorScrollEnable();
pageData = this.handleGoodsTabs();
const { pageName, pageDescribe, pageKeywords, coverImage, isPublish, isTemplate, shareCoverImage, shareOpenMethod } = pageConfig;
const pageInfo = { page: JSON.stringify(pageData), author: user?.account, isPublish, pageName, pageDescribe, pageKeywords, coverImage, isTemplate, shareCoverImage, shareOpenMethod } as pageInfo;
const { pageName, pageDescribe, pageKeywords, coverImage, isPublish, isTemplate, shareCoverImage, shareOpenMethod, diversion } = pageConfig;
const pageInfo = { diversion, page: JSON.stringify(pageData), author: user?.account, isPublish, pageName, pageDescribe, pageKeywords, coverImage, isTemplate, shareCoverImage, shareOpenMethod } as pageInfo;
if (this.uuid) { pageInfo.uuid = this.uuid; }
await this.savePageData({ pageInfo, pageData: this.pageData });
if (this.uuid) { await this.getPageDate({ pageId: this.uuid }); }
......
......@@ -58,6 +58,7 @@ export interface PageInfo {
pageKeywords?: string;
uuid?: string;
tenantId?: number;
diversion?: string;
}
export default interface EditorState {
......
// This file is created by egg-ts-helper@1.25.9
// This file is created by egg-ts-helper@1.26.0
// Do not modify this file!!!!!!!!!
import 'egg';
......
// This file is created by egg-ts-helper@1.25.9
// This file is created by egg-ts-helper@1.26.0
// Do not modify this file!!!!!!!!!
import 'egg';
......
// This file is created by egg-ts-helper@1.25.9
// This file is created by egg-ts-helper@1.26.0
// Do not modify this file!!!!!!!!!
import 'egg';
......
// This file is created by egg-ts-helper@1.25.9
// This file is created by egg-ts-helper@1.26.0
// Do not modify this file!!!!!!!!!
import 'egg';
......
// This file is created by egg-ts-helper@1.25.9
// This file is created by egg-ts-helper@1.26.0
// Do not modify this file!!!!!!!!!
import 'egg';
......
// This file is created by egg-ts-helper@1.25.9
// This file is created by egg-ts-helper@1.26.0
// Do not modify this file!!!!!!!!!
import 'egg';
......
// This file is created by egg-ts-helper@1.25.9
// This file is created by egg-ts-helper@1.26.0
// Do not modify this file!!!!!!!!!
import 'egg';
......
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