From 7a2043f37979d99e5ba35ab4e151b277fd54461d Mon Sep 17 00:00:00 2001 From: woody Date: Mon, 28 Jul 2025 15:09:21 +0800 Subject: [PATCH] =?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)