diff --git a/src/api/index.js b/src/api/index.js index 61f1ae9..e841d7f 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -42,6 +42,8 @@ export default { sameLevelJudgment: `/iasf/sysColumn/sameLevelJudgment`, sortByColumn: `/iasf/sysColumn/sortByColumn`, controlDisplayNavigationMenu: `/iasf/sysColumn/controlDisplayNavigationMenu`, + cacheField: `/iasf/sysColumn/cacheField`, + getCacheField: `/iasf/sysColumn/getCacheField`, checkIfTheTitleIsRepeat: `/iasf/sysContent/checkIfTheTitleIsRepeat`, deleteArticle: `/iasf/sysContent/batchDeletion`, findArticle: `/iasf/sysContent/findById`, @@ -50,6 +52,8 @@ export default { saveArticle: `/iasf/sysContent/save`, updateArticle: `/iasf/sysContent/update`, modifiedSort: `/iasf/sysContent/modifiedSort`, + cacheFieldContent: `/iasf/sysContent/cacheField`, + getCacheFieldContent: `/iasf/sysContent/getCacheField`, longPageColumnList: `/iasf/pageManagement/longPageColumnList`, searchAllBySite: `/iasf/sysNavigationStyle/searchAllBySite`, updateStyle: `/iasf/sysNavigationStyle/update`, @@ -90,4 +94,12 @@ export default { saveFloating: `/iasf/SysFloatingColumnSchemeService/SysFloatingColumnScheme/saveOrUpdate`, checkEnableOrDisable: `/iasf/SysFloatingColumnSchemeService/SysFloatingColumnScheme/checkEnableOrDisable`, enableOrDisableScheme: `/iasf/SysFloatingColumnSchemeService/SysFloatingColumnScheme/enableOrDisableScheme`, + enableOrDisableScheme: `/iasf/SysFloatingColumnSchemeService/SysFloatingColumnScheme/enableOrDisableScheme`, + + batchDeletionFooter: `/iasf/SysFooterSetupService/SysFooterSetup/batchDeletion`, + findFooter: `/iasf/SysFooterSetupService/SysFooterSetup/findById`, + footerList: `/iasf/SysFooterSetupService/SysFooterSetup/footerList`, + saveFooter: `/iasf/SysFooterSetupService/SysFooterSetup/saveOrUpdate`, + checkEnableOrDisableFooter: `/iasf/SysFooterSetupService/SysFooterSetup/checkEnableOrDisable`, + enableOrDisableSchemeFooter: `/iasf/SysFooterSetupService/SysFooterSetup/enableOrDisableScheme`, } \ No newline at end of file diff --git a/src/assets/images/footer-bg.png b/src/assets/images/footer-bg.png new file mode 100644 index 0000000..b23d3f3 Binary files /dev/null and b/src/assets/images/footer-bg.png differ diff --git a/src/const/modules.js b/src/const/modules.js index 65c2e57..4ae05d2 100644 --- a/src/const/modules.js +++ b/src/const/modules.js @@ -807,110 +807,6 @@ export default { }, ] }, - - { - type: 'form', - forms: [ - { - type: 'input', - prop: 'title', - label: '标题', - }, - { - type: 'input', - prop: 'des', - label: '描述' - } - ], - form: { - title: '联系我们', - des: `CONTACT US` - } - }, - { - type: 'form', - forms: [ - { - type: 'upload', - prop: 'pic', - label: 'logo', - width: 185, - height: 44 - }, - { - type: 'input', - prop: 'siteName', - label: '公司官网', - }, - { - type: 'input', - prop: 'address', - label: '地址' - }, - { - type: 'input', - prop: 'phone', - label: '合作咨询', - }, - { - type: 'input', - prop: 'mail', - label: '客户建议' - }, - ], - form: { - pic: 'https://huorantech.com/images/about/logo.png', - siteName: '公司官网:www.huorantech.com', - address: `地址:广东省深圳市南山区粤海街道海天二路盈峰中心2101`, - phone: `合作咨询:郭经理 17671782660`, - mail: `客户建议:service@huorantech.cn`, - }, - labelWidth: '100px' - }, - { - type: 'form', - forms: [ - { - type: 'upload', - prop: 'pic', - label: '公众号二维码', - width: 103, - height: 103 - }, - { - type: 'input', - prop: 'title', - label: '公众号文案' - }, - ], - form: { - pic: 'https://huorantech.com/images/about/qrcode.jpg', - title: `扫一扫,关注公众号`, - }, - labelWidth: '100px' - }, - { - type: 'form', - forms: [ - { - type: 'upload', - prop: 'pic', - label: '小程序二维码', - width: 103, - height: 103 - }, - { - type: 'input', - prop: 'title', - label: '小程序文案' - }, - ], - form: { - pic: 'https://huorantech.com/images/about/mini-program-sm.jpg', - title: `扫一扫,登录职站商城`, - }, - labelWidth: '100px' - }, ], about: [ @@ -12618,4 +12514,236 @@ export default { ], }, ], + footer: [ + [ + { + type: 'form', + forms: [ + { + type: 'input', + prop: 'title', + label: '标题', + }, + { + type: 'input', + prop: 'des', + label: '描述' + }, + { + type: 'input', + prop: 'area', + label: '地区', + }, + ], + form: { + title: '联系我们', + des: `CONTACT US`, + area: '深圳', + } + }, + { + type: 'form', + forms: [ + { + type: 'upload', + prop: 'pic', + label: 'logo', + width: 185, + height: 44 + }, + { + type: 'input', + prop: 'siteName', + label: '公司官网', + }, + { + type: 'input', + prop: 'address', + label: '地址' + }, + { + type: 'input', + prop: 'phone', + label: '合作咨询', + }, + { + type: 'input', + prop: 'mail', + label: '客户建议' + }, + ], + form: { + pic: 'https://huorantech.com/images/about/logo.png', + siteName: '公司官网:www.huorantech.com', + address: `地址:广东省深圳市南山区粤海街道海天二路盈峰中心2101`, + phone: `合作咨询:郭经理 17671782660`, + mail: `客户建议:service@huorantech.cn`, + }, + labelWidth: '100px' + }, + { + type: 'form', + forms: [ + { + type: 'upload', + prop: 'pic', + label: '公众号二维码', + width: 103, + height: 103 + }, + { + type: 'input', + prop: 'title', + label: '公众号文案' + }, + ], + form: { + pic: 'https://huorantech.com/images/about/qrcode.jpg', + title: `扫一扫,关注公众号`, + }, + labelWidth: '100px' + }, + { + type: 'form', + forms: [ + { + type: 'upload', + prop: 'pic', + label: '小程序二维码', + width: 103, + height: 103 + }, + { + type: 'input', + prop: 'title', + label: '小程序文案' + }, + ], + form: { + pic: 'https://huorantech.com/images/about/mini-program-sm.jpg', + title: `扫一扫,登录职站商城`, + }, + labelWidth: '100px' + }, + ], + [ + { + type: 'form', + forms: [ + { + type: 'upload', + prop: 'pic', + label: 'logo', + }, + { + type: 'editor', + prop: 'info', + label: '信息', + }, + ], + form: { + pic: `https://huorantech.com/images/about/logo.png`, + info: `
+

广东省深圳市龙华区民治街道红山社区龙光玖钻商务中心南期A座2311

+ 粤ICP备20072679号 +
`, + } + }, + ], + [ + { + type: 'form', + forms: [ + { + type: 'editor', + prop: 'info', + label: '信息', + }, + ], + form: { + pic: `https://huorantech.com/images/about/logo.png`, + info: `
+ +

一站式数字经济实训软件采购商城

+

公司官网:www.huorantech.com

+

合作咨询:15218726836

+

客户建议:service@huorantech.cn

+

地址:广东省深圳市龙华区民治街道红山社区龙光玖钻商务中心南期A座2311

+
`, + } + }, + { + type: 'form', + forms: [ + { + type: 'input', + prop: 'title', + label: '标题' + }, + { + type: 'upload', + prop: 'pic', + label: '公众号二维码', + width: 103, + height: 103 + }, + { + type: 'input', + prop: 'des', + label: '公众号文案' + }, + ], + form: { + pic: 'https://huorantech.com/images/about/qrcode.jpg', + title: `公众号`, + des: `扫一扫,关注公众号`, + }, + labelWidth: '100px' + }, + { + type: 'form', + forms: [ + { + type: 'input', + prop: 'title', + label: '标题' + }, + { + type: 'upload', + prop: 'pic', + label: '小程序二维码', + width: 103, + height: 103 + }, + { + type: 'input', + prop: 'des', + label: '小程序文案' + }, + ], + form: { + pic: 'https://huorantech.com/images/about/mini-program-sm.jpg', + title: `微信小程序`, + des: `扫一扫,登录职站商城`, + }, + labelWidth: '100px' + }, + { + type: 'form', + forms: [ + { + type: 'editor', + prop: 'info', + label: '信息', + }, + ], + form: { + info: ` + + 粤ICP备20072679号 + `, + } + }, + ] + ] } \ No newline at end of file diff --git a/src/mixins/page/index.js b/src/mixins/page/index.js index 6a41bd5..e7b4bc0 100644 --- a/src/mixins/page/index.js +++ b/src/mixins/page/index.js @@ -84,6 +84,8 @@ export default { console.log("🚀 ~ file: index.js:85 ~ this.$post ~ list:", this.modules) } }).catch(err => { }) + } else { + this.pass = true } }, // 展开模块设置 diff --git a/src/pages/article/list/index.vue b/src/pages/article/list/index.vue index ee2aa88..04243e0 100644 --- a/src/pages/article/list/index.vue +++ b/src/pages/article/list/index.vue @@ -29,7 +29,7 @@ 列重置 - {{ column.name }} + {{ column.name }} @@ -67,7 +67,7 @@ sortable="custom"> - + @@ -112,7 +112,9 @@ export default { return { last: this.$route.query.last, // 是否直接跳到最后一页的文章(编辑文章的时候改了所属栏目,返回到列表后则需要跳到最后一页文章) types: ColumnConst.types, + siteId: this.$store.state.content.site.id, siteName: this.$store.state.content.site.siteName, + userId: +this.$store.state.user.userId, columns: [], defaultProps: { value: 'id', @@ -149,50 +151,62 @@ export default { originSettings: [], settings: [ { + field: 'checkbox', name: '选择框', show: true }, { + field: 'title', name: '标题', show: true }, { + field: 'columnName', name: '栏目', show: true }, { + field: 'classificationName', name: '所属分类', show: false }, { + field: 'typeId', name: '栏目类型', show: true }, { + field: 'founderName', name: '录入人', show: true }, { + field: 'editorName', name: '修改人', show: true }, { + field: 'updateTime', name: '修改日期', show: true }, { + field: 'releaseTime', name: '发布日期', show: true }, { + field: 'totalBrowsing', name: '总浏览', show: true }, { + field: 'isRelease', name: '状态', show: true }, { + field: 'action', name: '操作', show: true } @@ -222,6 +236,7 @@ export default { } ]) this.originSettings = JSON.parse(JSON.stringify(this.settings)) + this.getField() this.getColumn() }, methods: { @@ -280,6 +295,23 @@ export default { } }).catch(err => { }) }, + // 获取表格字段缓存 + async getField () { + const { data } = await this.$get(this.api.getCacheFieldContent, { + userId: this.userId, + siteId: this.siteId, + }) + if (data) { + this.settings.map(e => { + const cur = data.find(n => e.field === n) + e.show = cur ? true : false + }) + } + }, + // 表格字段缓存 + async fieldChange () { + await this.$post(`${this.api.cacheFieldContent}?userId=${this.userId}&siteId=${this.siteId}&fields=${this.settings.filter(e => e.show).map(e => e.field).join()}`) + }, // 重置栏位筛选 resetColumns () { this.settings = JSON.parse(JSON.stringify(this.originSettings)) diff --git a/src/pages/column/list/index.vue b/src/pages/column/list/index.vue index 2aa7995..8c42599 100644 --- a/src/pages/column/list/index.vue +++ b/src/pages/column/list/index.vue @@ -12,7 +12,7 @@ 列重置 - {{ column.name }} + {{ column.name }} @@ -140,6 +140,7 @@ export default { return { siteId: this.$store.state.content.site.id, siteName: this.$store.state.content.site.siteName, + userId: +this.$store.state.user.userId, types: ColumnConst.types, templates: [], listStyle: [], @@ -166,36 +167,44 @@ export default { originSettings: [], settings: [ { + field: 'checkbox', name: '选择框', - show: true + show: true, }, { + field: 'typeId', name: '栏目类型', - show: true + show: true, }, { + field: 'templateName', name: '栏目模板', - show: true + show: true, }, { + field: 'listStyle', name: '列表/长页样式', - show: true + show: true, }, { + field: 'detailStyle', name: '详情样式', - show: true + show: true, }, { + field: 'menuVisible', name: '导航菜单', - show: true + show: true, }, { + field: 'id', name: 'ID', - show: true + show: true, }, { + field: 'action', name: '操作', - show: true + show: true, } ], sortVisible: false, @@ -225,6 +234,7 @@ export default { } ]) this.originSettings = JSON.parse(JSON.stringify(this.settings)) + this.getField() this.getData() }, methods: { @@ -242,6 +252,23 @@ export default { this.listLoading = false }) }, + // 获取表格字段缓存 + async getField () { + const { data } = await this.$get(this.api.getCacheField, { + userId: this.userId, + siteId: this.siteId, + }) + if (data) { + this.settings.map(e => { + const cur = data.find(n => e.field === n) + e.show = cur ? true : false + }) + } + }, + // 表格字段缓存 + async fieldChange () { + await this.$post(`${this.api.cacheField}?userId=${this.userId}&siteId=${this.siteId}&fields=${this.settings.filter(e => e.show).map(e => e.field).join()}`) + }, // 根据模板id获取样式 getStyle () { this.$post(`${this.api.theTemplateIdGetsTheStyle}?templateId=${this.form.templateId}`).then(({ data }) => { diff --git a/src/pages/footer/index.vue b/src/pages/footer/index.vue index e3b4855..7a89d27 100644 --- a/src/pages/footer/index.vue +++ b/src/pages/footer/index.vue @@ -13,9 +13,11 @@ - + - + + + @@ -39,84 +41,139 @@ layout="total, prev, pager, next" :total="total"> - +
- - + - +
- +
+
+
+
{{ modules[0].form.title }}
+

{{ modules[0].form.des }}

+
+
+ +

{{ modules[0].form.area }}

+
+
点击更改标题、描述与地区
- +
- {{ modules[11].form.siteName }} + {{ modules[1].form.siteName }}
- {{ modules[11].form.address }} + {{ modules[1].form.address }}
- {{ modules[11].form.phone }} + {{ modules[1].form.phone }}
- {{ modules[11].form.mail }} + {{ modules[1].form.mail }}
-
点击更改信息
+
点击更改信息
- -

{{ modules[12].form.title }}

-
点击更改信息
+ +

{{ modules[2].form.title }}

+
点击更改信息
- -

{{ modules[13].form.title }}

-
点击更改信息
+ +

{{ modules[3].form.title }}

+
点击更改信息
+
+
+
+
+ + + - --> + + +
+
+
+
+
点击更改页脚信息
+
+
+
+

{{ modules[1].form.title }}

+ +

{{ modules[1].form.des }}

+
点击更改信息
+
+
+

{{ modules[2].form.title }}

+ +

{{ modules[2].form.des }}

+
点击更改信息
+
+
+
+
+
+
点击更改版权信息
+
+
+
- - 网站全局 - 选择栏目 + + 网站全局 + 选择栏目 - +
取消 - 确定 + 确定
@@ -125,16 +182,14 @@ \ No newline at end of file