From 7a2043f37979d99e5ba35ab4e151b277fd54461d Mon Sep 17 00:00:00 2001 From: woody Date: Mon, 28 Jul 2025 15:09:21 +0800 Subject: [PATCH 1/6] =?UTF-8?q?feat(banner):=20=E6=A0=B9=E6=8D=AE=E9=9A=B6?= =?UTF-8?q?=E5=B1=9E=E4=BD=93=E7=B3=BB=E9=85=8D=E7=BD=AEbanner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../advertisementBanner/index.vue | 102 +++++++++++++----- 1 file changed, 74 insertions(+), 28 deletions(-) diff --git a/src/views/configManage/advertisementBanner/index.vue b/src/views/configManage/advertisementBanner/index.vue index 003383c..a9f5c49 100644 --- a/src/views/configManage/advertisementBanner/index.vue +++ b/src/views/configManage/advertisementBanner/index.vue @@ -9,7 +9,7 @@
- + + + + + + + - + @@ -59,13 +74,13 @@
- {{'添加'}} + {{ '添加' }}
- + - + + @@ -145,7 +161,7 @@ :before-close="handleClose" > - + + + + + + import topBar from '@/components/topBar' -import { getbdmenuList, getPubenumsList } from '@/api/system' +import { getPubenumsList } from '@/api/system' import { getgradeRanglist, getAwardsListChiose } from '@/api/level' import * as api from '@/api/sms.js' import { Message } from 'element-ui' -import { deleteAgreement } from '@/api/configManage' import ImageUpload from '@/components/ImageUpload' +import { getvertexValue } from '@/api/member' +const initForm = { + position: 1, + picture: '', + sort: '', + effectiveDate: '', + link: '', + pkVertex: '' +} export default { - name: 'Qxpz', + name: 'BannerConfig', components: { topBar, ImageUpload }, data() { return { - modifiedTime:[], - modifiedTime1:[], + modifiedTime: [], + modifiedTime1: [], title: '添加', forms: '', rules: { @@ -236,7 +270,9 @@ export default { { required: true, message: '请输入链接', trigger: 'blur' } ] }, - table: { position: '', picture: '', sort: '', effectiveDate: '', link: '' }, + table: { + ...initForm + }, ruleShow: false, moren: 'advertisementBanner', topList: [ @@ -253,27 +289,35 @@ export default { multipleSelection: [], queryParams: { pageNum: 1, - pageSize: 50 + pageSize: 50, + pkVertex: '' }, gradeRangList: [], awardsList: [], statusList: [{ 'name': '立即发送', 'id': '1' }, { 'name': '定时发送', 'id': '2' }], statusList1: [{ 'name': '未发送', 'id': '0' }, { 'name': '已发送', 'id': '1' }], menuOptions: [], - loading:false, + loading: false, tableData: [], total: 0, types: '', formId: '', - getPostionList: [] + getPostionList: [], + vertexList: [] // 隶属体系 + } }, created() { this.research() this.getPostion() + this.getvertexValue() }, methods: { - // 置顶 + getvertexValue() { + getvertexValue().then((res) => { + this.vertexList = res.data + }) + }, updateTop(item) { api.getPostion({ 'pkId': item.pkId }).then((res) => { if (res.code == '200') { @@ -420,7 +464,9 @@ export default { }, handleClose() { this.ruleShow = false - this.table = { position: '', picture: '', sort: '', effectiveDate: '', link: '' } + this.table = { + ...initForm + } }, changeBox(row) { console.error(row) From 7f7c1bbdc1026b1a03c0ede82f14db3724fb6548 Mon Sep 17 00:00:00 2001 From: woody Date: Tue, 29 Jul 2025 10:39:18 +0800 Subject: [PATCH 2/6] =?UTF-8?q?feat(configManage/level):=20=E7=AD=89?= =?UTF-8?q?=E7=BA=A7=E9=85=8D=E7=BD=AE=E6=B7=BB=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/configManage/level/index.vue | 53 +++++++++++++++++--------- 1 file changed, 35 insertions(+), 18 deletions(-) diff --git a/src/views/configManage/level/index.vue b/src/views/configManage/level/index.vue index d0b83eb..1b68178 100644 --- a/src/views/configManage/level/index.vue +++ b/src/views/configManage/level/index.vue @@ -9,7 +9,6 @@
{{ '添加' }} - {{ '导出' }}
@@ -32,14 +31,6 @@ > - - - + + + - +