Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
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 3917b2fc
authored
Dec 01, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.22.0' into 'master'
V3.22.0 See merge request
!182
2 parents
6e29f66b
1193225d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
19 deletions
src/config/index.js
src/views/clientGroupManage/components/addMaterial.vue
src/config/index.js
View file @
3917b2f
...
...
@@ -3,8 +3,8 @@
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors:
limi
n
* @LastEditTime: 202
1-09-07 14:38:52
* @LastEditors:
yangming yangming@didihu.com.c
n
* @LastEditTime: 202
3-11-29 15:22:11
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
...
...
@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) {
return
Promise
.
resolve
(
cfg
)
}
return
new
Http
({
request
:
{
timeout
:
3000
}
}).
get
(
'https://oss-config.
dev.
glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2'
)
return
new
Http
({
request
:
{
timeout
:
3000
}
}).
get
(
'https://oss-config.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2'
)
//开发环境mock
// return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2')
}
...
...
src/views/clientGroupManage/components/addMaterial.vue
View file @
3917b2f
...
...
@@ -5,17 +5,15 @@
基本信息
</div>
<div
class=
"container"
>
<glsx-combi-form
:isInline=
"false"
class=
"glsx-combi-form"
ref=
"baseInfoRef"
labelWidth=
"154px"
defaultWidth=
"432px"
:formObj=
"formObj"
:formData=
"formData"
:formRules=
"myRule"
>
<glsx-combi-form
:isInline=
"false"
class=
"glsx-combi-form"
ref=
"baseInfoRef"
labelWidth=
"154px"
defaultWidth=
"432px"
:formObj=
"formObj"
:formData=
"formData"
:formRules=
"myRule"
>
<div
slot=
"welcomeWordMaterial"
>
<GLEditor
ref=
"welcome"
:form=
"'customer'"
style=
"line-height: 12px;"
:btnList=
"btnList"
></GLEditor>
<div
v-if=
"!haveActivity"
class=
"is_error"
>
请选择活动
</div>
</div>
</glsx-combi-form>
</div>
</div>
<GLFooter>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSave"
>
确定
</el-button>
</GLFooter>
</div>
...
...
@@ -23,10 +21,10 @@
<
script
>
import
glsxCombiForm
from
'@/components/glsx-combi-form'
import
{
addWelcomeGroup
}
from
'@/api/modules/clientGroupManage'
import
{
addWelcomeGroup
}
from
'@/api/modules/clientGroupManage'
export
default
{
name
:
"addMaterial"
,
name
:
'addMaterial'
,
components
:
{
glsxCombiForm
},
...
...
@@ -35,9 +33,11 @@ export default {
haveActivity
:
true
,
formObj
:
{
attachName
:
''
,
notify
:
0
},
myRule
:
{
attachName
:
[{
required
:
true
,
message
:
'请输入资料名称'
,
trigger
:
'change'
}],
attachName
:
[{
required
:
true
,
message
:
'请输入资料名称'
,
trigger
:
'change'
}],
notify
:
[{
required
:
true
,
message
:
'消息通知'
,
trigger
:
'change'
}]
// attachmentList: [{ required: true, message: '请选择视频', trigger: 'change' }],
},
formData
:
[
...
...
@@ -53,6 +53,23 @@ export default {
label
:
'群聊欢迎语素材'
,
name
:
'attachmentList'
,
addHtml
:
'welcomeWordMaterial'
},
{
label
:
'消息通知'
,
name
:
'notify'
,
type
:
'radio'
,
optionId
:
'optionId'
,
optionLabel
:
'optionLabel'
,
optionList
:
[
{
optionId
:
0
,
optionLabel
:
'不通知'
},
{
optionId
:
1
,
optionLabel
:
'通知'
}
]
}
],
btnList
:
[
...
...
@@ -103,7 +120,7 @@ export default {
validType
:
'valid'
,
status
:
2
}
}
,
}
// {
// itemName: '秒杀活动',
// itemValue: 5,
...
...
@@ -140,7 +157,7 @@ export default {
// }
// }
]
}
,
}
// {
// name: '素材',
// type: 'material',
...
...
@@ -164,12 +181,12 @@ export default {
// merchant: this.$globalState.session.merchantId
// }
// }
]
,
]
}
},
methods
:
{
handleCancel
(){
this
.
$emit
(
'changeTab'
,
1
)
handleCancel
()
{
this
.
$emit
(
'changeTab'
,
1
)
},
handleSave
()
{
this
.
$refs
.
baseInfoRef
.
$refs
.
formRef
.
validate
(
valid
=>
{
...
...
@@ -178,8 +195,8 @@ export default {
const
previewList
=
this
.
$common
?
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
:
this
.
$refs
.
welcome
.
previewList
// 校验是否有填活动
this
.
haveActivity
=
previewList
.
find
(
item
=>
item
.
attType
==
7
)
if
(
!
this
.
haveActivity
)
return
;
//
this.haveActivity = previewList.find(item => item.attType == 7)
// if (!this.haveActivity) return
const
attachmentList
=
previewList
.
map
(
item
=>
{
if
(
item
&&
item
.
attType
==
7
)
{
...
...
@@ -195,11 +212,10 @@ export default {
}
else
{
this
.
$message
.
error
(
res
.
message
||
'新增素材失败'
)
}
})
}
})
}
,
}
}
}
</
script
>
...
...
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