Commit e7a86b04 authored by Mac's avatar Mac

新增用户标签

parent be4ca40a
......@@ -123,4 +123,12 @@ export function getContributeInfoPublishLogList(data) {
})
}
// 获取公众号用户标签
export function getGZHUserTagList(data) {
return request({
url: '/QYContribute/GetGZHUserTagList',
method: 'post',
data
})
}
......@@ -218,6 +218,8 @@
:options="platTypeList" label="发布平台" :dense="false" emit-value map-options />
<q-input v-if='IsPreview==1' clearable filled v-model="TagId" label="输入微信号" maxlength="30"
style="margin-top: 20px;" />
<q-select v-if='IsPreview==2' clearable filled stack-label option-value="id" option-label="name" v-model="TagId" style="margin-top: 20px;"
:options="tagList" label="用户标签" :dense="false" emit-value map-options />
</q-card-section>
<q-separator />
<q-card-actions align="right" class="bg-white">
......@@ -240,7 +242,8 @@
setContributeInfo,
getContributeInfo,
setContributeInfoPublish,
setAdminContributeInfo
setAdminContributeInfo,
getGZHUserTagList
} from '../../../api/teacher/contribution';
import {
GetContributePlatfrom,//获取平台
......@@ -301,6 +304,7 @@
IsOpenComment: '0',//是否打开评论,0不打开,1打开(图文 + 图片)
IsFansCanComment: '0',//是否粉丝才可评论,0所有人可评论,1粉丝才
platTypeList: [],//平台列表
tagList:[],//用户标签列表
}
},
created() {
......@@ -339,6 +343,8 @@
}
},
mounted() {
this.getGZHUserTagList()//获取公众号的用户标签
},
methods: {
//获取已开放平台
......@@ -349,6 +355,13 @@
}
})
},
getGZHUserTagList() {
getGZHUserTagList({}).then(res => {
if (res.Code == 1) {
this.tagList = res.Data;
}
})
},
getdetails() {
getContributeInfo({ ContributeId: this.addMsg.Id }).then(res => {
if (res.Code == 1) {
......@@ -515,6 +528,7 @@
})
} else {//预览 和 群发
this.TagId = ''
this.releasedialog = true
this.IsPreview = type
}
......
......@@ -82,8 +82,8 @@
<div style="display: flex;align-items: center;margin: 10px 0 ;">
展示方式:
<q-radio v-model="publishMsg.IsPreview" val="0" label="上传不发布" />
<q-radio v-model="publishMsg.IsPreview" val="1" label="预览" />
<q-radio v-model="publishMsg.IsPreview" val="2" label="群发" />
<q-radio v-model="publishMsg.IsPreview" val="1" label="预览" @input="publishMsg.TagId=''"/>
<q-radio v-model="publishMsg.IsPreview" val="2" label="群发" @input="publishMsg.TagId=''"/>
</div>
<div style="color: red;font-size: 12px;margin: 5px 0 10px;">
<span v-if='publishMsg.IsPreview==0'>注:只上传到公众号平台不发布</span>
......@@ -92,6 +92,8 @@
</div>
<q-input v-if='publishMsg.IsPreview==1' clearable filled v-model="publishMsg.TagId" label="输入微信号"
maxlength="30" />
<q-select v-if='publishMsg.IsPreview==2' clearable filled stack-label option-value="id" option-label="name" v-model="publishMsg.TagId"
:options="tagList" label="用户标签" :dense="false" emit-value map-options />
</q-card-section>
<q-separator />
<q-card-actions align="right" class="bg-white">
......@@ -112,7 +114,8 @@
getContributeInfoAuditedPageList,
setContributeInfoState,
setContributeInfoPublish,
getContributeInfoPublishLogList
getContributeInfoPublishLogList,
getGZHUserTagList
} from '../../../api/teacher/contribution';
import {
GetContributePlatfrom,//获取平台
......@@ -196,6 +199,7 @@
TagId: ''
},
recordDate:[],
tagList:[],
}
},
......@@ -204,6 +208,7 @@
this.getPlatForm()
this.getStateList()
this.getList()
this.getGZHUserTagList()//获取公众号的用户标签
},
methods: {
//获取已开放平台
......@@ -215,6 +220,13 @@
}
})
},
getGZHUserTagList() {
getGZHUserTagList({}).then(res => {
if (res.Code == 1) {
this.tagList = res.Data;
}
})
},
getTypeList() {
getContributeInfoTypeEnumList({}).then(res => {
if (res.Code == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment