Commit 8cadba95 by 前端

Merge branch 'v3.5.0' into 'master'

V3.5.0

See merge request !88
2 parents 09d3748f b2e88cbe
......@@ -49,5 +49,31 @@ const taskApi = {
data.method = 'merchants.api.mission.staticMission'
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
)
},
// 获取企业接口
findEntmicroList(data) {
data.method = 'merchants.api.mission.findEntmicroList'
return request(data, 'post')
},
}
export { taskApi }
import Vue from 'vue'
export const Util = {
getExplorer: function() {
getExplorer: function () {
var ua = navigator.userAgent.toLocaleLowerCase()
var browserType = null
if (ua.match(/msie/) != null || ua.match(/trident/) != null) {
......@@ -29,7 +29,7 @@ export const Util = {
return browserType
},
exportFn: function(url) {
exportFn: function (url) {
console.log(url)
let browserType = getExplorer()
if (browserType == 'QQ') {
......@@ -42,8 +42,48 @@ export const Util = {
iframe.src = url
document.body.appendChild(iframe)
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 exportFn = Util.exportFn
export const deepClone = Util.deepClone
export const timeTransfer = Util.timeTransfer
......@@ -438,6 +438,7 @@ export default {
watch: {
previewList: {
handler(val) {
console.log(val)
this.$emit('shareMatrial', val)
this.$emit('getEditor')
},
......
......@@ -7,6 +7,7 @@ base.getConfig().then((data) => {
Vue.prototype.otherUrl = config.axios.otherURL
Vue.prototype.fileUploadURL = config.axios.fileUploadURL
Vue.prototype.businessURL = config.axios.businessURL
Vue.prototype.entmicroURL = config.axios.entmicroURL
vue.use(GlsxVueCommon, config)
base.render(App)
})
......@@ -37,6 +37,20 @@
</template>
<div class="taskAward">
<div class="showInfoForm">
<span v-if="item.autoReminderFlag"
>自动提醒:{{
item.autoReminderFlag && item.autoReminderFlag == 1
? '无提醒'
: '自动提醒'
}}</span
>
<span v-if="item.autoReminderFlag && item.autoReminderFlag != 1"
>提醒时间:{{ item.autoReminderTime }}</span
><span v-if="item.autoReminderFlag && item.autoReminderFlag != 1"
>企微机器人:{{ item.enterMicroRobotName }}</span
><span v-if="item.autoReminderFlag && item.autoReminderFlag != 1"
>目标群聊:{{ item.groupChatName }}</span
>
<span v-if="item.rewardTypeName"
>奖励模式:{{ item.rewardTypeName }}</span
>
......
......@@ -48,6 +48,30 @@
</div>
</template>
<div class="showInfoForm">
<span v-if="displayList.autoReminderFlag"
>自动提醒:{{
displayList.autoReminderFlag == 1 ? '无提醒' : '自动提醒'
}}</span
>
<span
v-if="
displayList.autoReminderFlag &&
displayList.autoReminderFlag != 1
"
>提醒时间:{{ displayList.autoReminderTime }}</span
><span
v-if="
displayList.autoReminderFlag &&
displayList.autoReminderFlag != 1
"
>企微机器人:{{ displayList.enterMicroRobotName }}</span
><span
v-if="
displayList.autoReminderFlag &&
displayList.autoReminderFlag != 1
"
>目标群聊:{{ displayList.groupChatName }}</span
>
<span v-if="displayList.rewardTypeName"
>奖励模式:{{ displayList.rewardTypeName }}</span
>
......
......@@ -81,6 +81,7 @@
<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 == 3">1.3众筹活动</span>
<span v-if="scope.scope.businessScene == 4">5.2私域用户代运营</span>
</div>
<div slot="activityStatus" slot-scope="scope">
<span v-if="scope.scope.activityStatus == statusNum.UNPUBLISH"
......@@ -125,7 +126,10 @@
@click="handleInactive(scope.scope)"
>结束</el-button
>
<el-button type="text" @click="handleClone(scope.scope)"
<el-button
type="text"
@click="handleClone(scope.scope)"
v-if="scope.scope.businessScene != 4"
>复制</el-button
>
<el-button
......@@ -161,6 +165,10 @@ const sceneOption = [
label: '1.3众筹活动',
value: '3',
},
{
label: '5.2私域用户代运营',
value: '4',
},
]
const statusNum = {
ALL: '',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!