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)