diff --git a/src/views/configManage/advertisementBanner/index.vue b/src/views/configManage/advertisementBanner/index.vue
index 003383c..93fb026 100644
--- a/src/views/configManage/advertisementBanner/index.vue
+++ b/src/views/configManage/advertisementBanner/index.vue
@@ -9,7 +9,7 @@
-
+
+
+
+
+
+
+
@@ -35,7 +50,7 @@
-
+
- {{ '搜索' }}
+ {{ '搜索' }}
{{ '重置' }}
@@ -59,13 +74,13 @@
-
+
-
+
-
+
+
-
- {{'上移'}}
+ {{ '上移' }}
- {{'下移'}}
+ {{ '下移' }}
- {{'置顶'}}
-
+ {{ '置顶' }}
+ -->
- {{ '查看' }}
+ {{ '编辑' }}
+
+
+
+
+
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',
components: {
@@ -215,8 +250,8 @@ export default {
},
data() {
return {
- modifiedTime:[],
- modifiedTime1:[],
+ modifiedTime: [],
+ modifiedTime1: [],
title: '添加',
forms: '',
rules: {
@@ -236,7 +271,9 @@ export default {
{ required: true, message: '请输入链接', trigger: 'blur' }
]
},
- table: { position: '', picture: '', sort: '', effectiveDate: '', link: '' },
+ table: {
+ ...initForm
+ },
ruleShow: false,
moren: 'advertisementBanner',
topList: [
@@ -260,20 +297,26 @@ export default {
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') {
@@ -332,8 +375,7 @@ export default {
api.getBannerDetails(item.pkId).then((res) => {
if (res.code === 200) {
this.ruleShow = true
- this.table = { position: res.data.position, picture: res.data.picture,
- sort: res.data.sort, effectiveDate: res.data.effectiveDate, link: res.data.link }
+ this.table = res.data
} else {
Message({
message: res.msg,
@@ -381,7 +423,7 @@ export default {
type: 'success'
})
that.ruleShow = false
- that.table = { position: '', picture: '', sort: '', effectiveDate: '', link: '' }
+ that.table = { ...initForm }
that.research()
} else {
Message({
@@ -400,7 +442,7 @@ export default {
type: 'success'
})
that.ruleShow = false
- that.table = { position: '', picture: '', sort: '', effectiveDate: '', link: '' }
+ that.table = { ...initForm }
that.research()
} else {
Message({