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 78d4f680
authored
Feb 16, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增获取企业接口
1 parent
cf8a91be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
7 deletions
src/api/task.js
src/views/task/addTask/index.vue
src/api/task.js
View file @
78d4f68
...
...
@@ -70,5 +70,10 @@ const taskApi = {
Vue
.
prototype
.
entmicroURL
)
},
// 获取企业接口
findEntmicroList
(
data
)
{
data
.
method
=
'merchants.api.mission.findEntmicroList'
return
request
(
data
,
'post'
)
},
}
export
{
taskApi
}
src/views/task/addTask/index.vue
View file @
78d4f68
...
...
@@ -306,13 +306,16 @@
</el-form-item>
<el-form-item
label=
"所属企业:"
:prop=
"'missionList.' + index1 + '.
bussiness
'"
:rules=
"taskFormRules.
bussiness
"
:prop=
"'missionList.' + index1 + '.
robotMerchantNo
'"
:rules=
"taskFormRules.
robotMerchantNo
"
v-if=
"itm.autoReminderFlag == 2"
>
<el-radio-group
v-model=
"itm.bussiness"
><el-radio
:label=
"1"
>
广联赛讯
</el-radio>
<el-radio
:label=
"2"
>
滴加智慧云
</el-radio>
<el-radio-group
v-model=
"itm.robotMerchantNo"
>
<template
v-for=
"(item, index) in entmicroList"
>
<el-radio
:key=
"index"
:label=
"item.merchantNo"
>
{{
item
.
entmicroName
}}
</el-radio>
</
template
>
</el-radio-group>
</el-form-item>
<el-form-item
...
...
@@ -798,7 +801,7 @@ export default {
groupChatName
:
''
,
enterMicroRobot
:
[],
enterMicroRobotName
:
''
,
bussiness
:
1
,
robotMerchantNo
:
''
,
},
// 分享指标任务类型
shareObj
:
{
...
...
@@ -970,10 +973,14 @@ export default {
groupChat
:
[
{
required
:
true
,
message
:
'请选择目标群聊'
,
trigger
:
'change'
},
],
robotMerchantNo
:
[
{
required
:
true
,
message
:
'请选择所属企业'
,
trigger
:
'change'
},
],
},
}
},
mounted
()
{
this
.
findEntmicroList
()
this
.
$root
.
eventBus
.
$on
(
'params'
,
(
params
)
=>
{
// 判断是否是编辑
if
(
params
&&
params
.
type
)
{
...
...
@@ -991,6 +998,13 @@ export default {
},
computed
:
{},
methods
:
{
// 查询发送企微
findEntmicroList
()
{
taskApi
.
findEntmicroList
({}).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
0
)
this
.
entmicroList
=
res
.
data
})
},
// 初始化富文本
getTextBox
(
id
,
dateTaskIndex
,
taskIndex
,
textContent
)
{
// 如果找到了相同的id则直接返回
...
...
@@ -1804,7 +1818,7 @@ export default {
this
.
taskEditList
.
missionDateList
.
map
((
item
)
=>
{
item
.
missionList
.
map
((
itm
)
=>
{
// 默认所属企业为广联赛讯
itm
.
bussiness
=
1
//
itm.bussiness = 1
if
(
itm
.
missonType
&&
itm
.
missonType
!=
1
&&
...
...
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