Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-task
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f656aadf
authored
Feb 15, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新建任务接口联调
1 parent
09d3748f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
91 additions
and
3 deletions
src/api/task.js
src/common/util.js
src/components/GLEditor/index.vue
src/views/task/addTask/app.js
src/views/task/addTask/components/selectMembers.vue
src/views/task/addTask/index.vue
src/views/task/analyseTask/cpns/TaskDetails.vue
src/views/task/observeTask/cpns/taskPlan.vue
src/views/task/taskList/index.vue
src/api/task.js
View file @
f656aad
...
...
@@ -49,5 +49,26 @@ 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
)
},
}
export
{
taskApi
}
src/common/util.js
View file @
f656aad
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
src/components/GLEditor/index.vue
View file @
f656aad
...
...
@@ -438,6 +438,7 @@ export default {
watch
:
{
previewList
:
{
handler
(
val
)
{
console
.
log
(
val
)
this
.
$emit
(
'shareMatrial'
,
val
)
this
.
$emit
(
'getEditor'
)
},
...
...
src/views/task/addTask/app.js
View file @
f656aad
...
...
@@ -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
)
})
src/views/task/addTask/components/selectMembers.vue
0 → 100644
View file @
f656aad
This diff is collapsed.
Click to expand it.
src/views/task/addTask/index.vue
View file @
f656aad
This diff is collapsed.
Click to expand it.
src/views/task/analyseTask/cpns/TaskDetails.vue
View file @
f656aad
...
...
@@ -37,6 +37,18 @@
</template>
<div
class=
"taskAward"
>
<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"
>
奖励模式:{{ item.rewardTypeName }}
</span
>
...
...
src/views/task/observeTask/cpns/taskPlan.vue
View file @
f656aad
...
...
@@ -48,6 +48,18 @@
</div>
</template>
<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"
>
奖励模式:{{ displayList.rewardTypeName }}
</span
>
...
...
src/views/task/taskList/index.vue
View file @
f656aad
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment