Commit f656aadf by 前端

新建任务接口联调

1 parent 09d3748f
...@@ -49,5 +49,26 @@ const taskApi = { ...@@ -49,5 +49,26 @@ const taskApi = {
data.method = 'merchants.api.mission.staticMission' data.method = 'merchants.api.mission.staticMission'
return request(data, 'post') return request(data, 'post')
}, },
// 获取机器人列表
getlistDepartmentTree(data) {
data.method = 'entmicro.api.department.listDepartmentTreeNoSession'
return request(
data,
'entmicro.api.department.listDepartmentTreeNoSession',
[],
Vue.prototype.entmicroURL
)
},
// 获取群聊列表
getGroupList(data) {
data.method =
'entmicro.api.wechatcloudcontrol.batchmessaging.group.list.nosession'
return request(
data,
'entmicro.api.wechatcloudcontrol.batchmessaging.group.list.nosession',
[],
Vue.prototype.entmicroURL
)
},
} }
export { taskApi } export { taskApi }
import Vue from 'vue' import Vue from 'vue'
export const Util = { export const Util = {
getExplorer: function() { getExplorer: function () {
var ua = navigator.userAgent.toLocaleLowerCase() var ua = navigator.userAgent.toLocaleLowerCase()
var browserType = null var browserType = null
if (ua.match(/msie/) != null || ua.match(/trident/) != null) { if (ua.match(/msie/) != null || ua.match(/trident/) != null) {
...@@ -29,7 +29,7 @@ export const Util = { ...@@ -29,7 +29,7 @@ export const Util = {
return browserType return browserType
}, },
exportFn: function(url) { exportFn: function (url) {
console.log(url) console.log(url)
let browserType = getExplorer() let browserType = getExplorer()
if (browserType == 'QQ') { if (browserType == 'QQ') {
...@@ -42,8 +42,48 @@ export const Util = { ...@@ -42,8 +42,48 @@ export const Util = {
iframe.src = url iframe.src = url
document.body.appendChild(iframe) document.body.appendChild(iframe)
console.log(document.body) console.log(document.body)
},
deepClone: function (obj) {
// Handle the 3 simple types, and null or undefined or function
if (obj == null || typeof obj !== 'object') return obj
// Handle Date
if (obj instanceof Date) {
const copy = new Date()
copy.setTime(obj.getTime())
return copy
}
// Handle Array or Object
if ((obj instanceof Array) | (obj instanceof Object)) {
const copy = obj instanceof Array ? [] : {}
for (var attr in obj) {
if (obj.hasOwnProperty(attr)) {
copy[attr] = Util.deepClone(obj[attr])
}
} }
return copy
}
throw new Error("Unable to clone obj! Its type isn't supported.")
},
timeTransfer: function (time) {
const date = new Date(time)
const y = date.getFullYear()
let m = date.getMonth() + 1
m = m < 10 ? '0' + m : m
let d = date.getDate()
d = d < 10 ? '0' + d : d
let h = date.getHours()
h = h < 10 ? '0' + h : h
let minute = date.getMinutes()
minute = minute < 10 ? '0' + minute : minute
let s = date.getSeconds()
s = s < 10 ? '0' + s : s
return y + '-' + m + '-' + d + ' ' + h + ':' + minute + ':' + s
},
} }
export const getExplorer = Util.getExplorer export const getExplorer = Util.getExplorer
export const exportFn = Util.exportFn export const exportFn = Util.exportFn
export const deepClone = Util.deepClone
export const timeTransfer = Util.timeTransfer
...@@ -438,6 +438,7 @@ export default { ...@@ -438,6 +438,7 @@ export default {
watch: { watch: {
previewList: { previewList: {
handler(val) { handler(val) {
console.log(val)
this.$emit('shareMatrial', val) this.$emit('shareMatrial', val)
this.$emit('getEditor') this.$emit('getEditor')
}, },
......
...@@ -7,6 +7,7 @@ base.getConfig().then((data) => { ...@@ -7,6 +7,7 @@ base.getConfig().then((data) => {
Vue.prototype.otherUrl = config.axios.otherURL Vue.prototype.otherUrl = config.axios.otherURL
Vue.prototype.fileUploadURL = config.axios.fileUploadURL Vue.prototype.fileUploadURL = config.axios.fileUploadURL
Vue.prototype.businessURL = config.axios.businessURL Vue.prototype.businessURL = config.axios.businessURL
Vue.prototype.entmicroURL = config.axios.entmicroURL
vue.use(GlsxVueCommon, config) vue.use(GlsxVueCommon, config)
base.render(App) base.render(App)
}) })
...@@ -37,6 +37,18 @@ ...@@ -37,6 +37,18 @@
</template> </template>
<div class="taskAward"> <div class="taskAward">
<div class="showInfoForm"> <div class="showInfoForm">
<span
>自动提醒:{{
item.autoReminderFlag == 1 ? '无提醒' : '自动提醒'
}}</span
>
<span v-if="item.autoReminderFlag != 1"
>提醒时间:{{ item.autoReminderTime }}</span
><span v-if="item.autoReminderFlag != 1"
>企微机器人:{{ item.enterMicroRobotName }}</span
><span v-if="item.autoReminderFlag != 1"
>目标群聊:{{ item.groupChatName }}</span
>
<span v-if="item.rewardTypeName" <span v-if="item.rewardTypeName"
>奖励模式:{{ item.rewardTypeName }}</span >奖励模式:{{ item.rewardTypeName }}</span
> >
......
...@@ -48,6 +48,18 @@ ...@@ -48,6 +48,18 @@
</div> </div>
</template> </template>
<div class="showInfoForm"> <div class="showInfoForm">
<span
>自动提醒:{{
displayList.autoReminderFlag == 1 ? '无提醒' : '自动提醒'
}}</span
>
<span v-if="displayList.autoReminderFlag != 1"
>提醒时间:{{ displayList.autoReminderTime }}</span
><span v-if="displayList.autoReminderFlag != 1"
>企微机器人:{{ displayList.enterMicroRobotName }}</span
><span v-if="displayList.autoReminderFlag != 1"
>目标群聊:{{ displayList.groupChatName }}</span
>
<span v-if="displayList.rewardTypeName" <span v-if="displayList.rewardTypeName"
>奖励模式:{{ displayList.rewardTypeName }}</span >奖励模式:{{ displayList.rewardTypeName }}</span
> >
......
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
<span v-if="scope.scope.businessScene == 1">1.1精品升级</span> <span v-if="scope.scope.businessScene == 1">1.1精品升级</span>
<span v-if="scope.scope.businessScene == 2">1.2膨胀金活动</span> <span v-if="scope.scope.businessScene == 2">1.2膨胀金活动</span>
<span v-if="scope.scope.businessScene == 3">1.3众筹活动</span> <span v-if="scope.scope.businessScene == 3">1.3众筹活动</span>
<span v-if="scope.scope.businessScene == 4">5.2私域用户代运营</span>
</div> </div>
<div slot="activityStatus" slot-scope="scope"> <div slot="activityStatus" slot-scope="scope">
<span v-if="scope.scope.activityStatus == statusNum.UNPUBLISH" <span v-if="scope.scope.activityStatus == statusNum.UNPUBLISH"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!