From cf965e2cd6c46585624bd1a3d49bc5b74b70f167 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 24 Jul 2024 10:28:31 +0800 Subject: [PATCH] fix --- src/api/index.js | 1 + src/components/modules/content.vue | 2 +- src/components/modules/module.vue | 2 +- src/pages/logo/index.vue | 13 ++--- src/pages/site/list/index.vue | 76 +++++++----------------------- 5 files changed, 28 insertions(+), 66 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 61aef9c..affc7ae 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -35,6 +35,7 @@ export default { groupList: `/iasf/sys/userGroup/list`, groupUpdate: `/iasf/sys/userGroup/update`, site: `/iasf/sys/site/list`, + addSite: `/iasf/sys/site/add`, updateSite: `/iasf/sys/site/update`, delSite: `/iasf/sys/site/delete`, listWithTree: `/iasf/sysColumn/listWithTree`, diff --git a/src/components/modules/content.vue b/src/components/modules/content.vue index 393dbf2..827c5cf 100644 --- a/src/components/modules/content.vue +++ b/src/components/modules/content.vue @@ -53,7 +53,7 @@
- + 设置链接
diff --git a/src/components/modules/module.vue b/src/components/modules/module.vue index 1ddde13..6afab49 100644 --- a/src/components/modules/module.vue +++ b/src/components/modules/module.vue @@ -100,7 +100,7 @@
- + 设置链接
上传logo @@ -43,7 +43,8 @@ export default { title: '', logoUrl: '', siteId: this.$store.state.content.site.id, - } + }, + fileList: [], } }, mounted () { @@ -54,10 +55,10 @@ export default { const res = await this.$post(`${this.api.findLogo}?siteId=${this.siteId}`) if (res.data) { this.form = res.data - this.uploadList.push({ + this.fileList = res.data.logoUrl ? [{ name: 'logo.jpg', url: res.data.logoUrl - }) + }] : [] } }, handleExceed () { // 上传文件 @@ -85,11 +86,11 @@ export default { return this.$confirm(`确定移除 ${file.name}?`); }, handleRemove () { - this.coverUrl = '' + this.form.logoUrl = '' }, async save () { const { form } = this - if (!form.logoUrl) return Util.errorMsg('请上传logo!') + // if (!form.logoUrl) return Util.errorMsg('请上传logo!') await this.$post(this.api.saveLogo, this.form) Util.successMsg('更新成功') this.getData() diff --git a/src/pages/site/list/index.vue b/src/pages/site/list/index.vue index a15536d..577f972 100644 --- a/src/pages/site/list/index.vue +++ b/src/pages/site/list/index.vue @@ -3,63 +3,39 @@

站点列表

- +
- - + + - - + + - +
- \ No newline at end of file + \ No newline at end of file