Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-ai-manager
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 a761938a
authored
Feb 22, 2019
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/glsx-web/glsx-oss-ai-manager
2 parents
dd6c1d63
2c045c6d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
src/views/customer/brand/Edit.vue
src/views/customer/voice/Edit.vue
src/views/customer/brand/Edit.vue
View file @
a761938
...
@@ -429,12 +429,12 @@ export default {
...
@@ -429,12 +429,12 @@ export default {
// },
// },
// 限制用户上传的表情包文件格式和大小
// 限制用户上传的表情包文件格式和大小
beforeUpload_expression(file) {
beforeUpload_expression(file) {
const fileType = ['application/x-zip-compressed
']
// const fileType = ['zip
']
const isFileType = file
Type.includes(file.type
)
const isFileType = file
.type.includes('zip'
)
const isSize = file.size / 1024 / 1024 < 1
//
const isSize = file.size / 1024 / 1024 < 1
!isFileType && this.$message.error('上传表情包文件只能是 zip 格式!')
!isFileType && this.$message.error('上传表情包文件只能是 zip 格式!')
!isSize && this.$message.error('上传表情包文件大小不能超过1MB')
//
!isSize && this.$message.error('上传表情包文件大小不能超过1MB')
return isFileType
&& isSize
return isFileType
},
},
// 表情包上传成功
// 表情包上传成功
success_expression(res) {
success_expression(res) {
...
...
src/views/customer/voice/Edit.vue
View file @
a761938
...
@@ -345,6 +345,8 @@ export default {
...
@@ -345,6 +345,8 @@ export default {
})
})
this
.
eventBus
.
$on
(
'edit_event_data'
,
data
=>
{
this
.
eventBus
.
$on
(
'edit_event_data'
,
data
=>
{
this
.
title
=
data
?
'编辑活动'
:
'新增活动'
this
.
title
=
data
?
'编辑活动'
:
'新增活动'
this
.
hasGift
=
false
this
.
hasDynamicEffect
=
false
let
checked_gift
=
{}
let
checked_gift
=
{}
this
.
eventBus
.
$emit
(
'reset'
)
// 广播 ---- 清空 组件 数据
this
.
eventBus
.
$emit
(
'reset'
)
// 广播 ---- 清空 组件 数据
if
(
!
data
)
{
if
(
!
data
)
{
...
@@ -357,6 +359,7 @@ export default {
...
@@ -357,6 +359,7 @@ export default {
this
.
editForm
=
__clone
this
.
editForm
=
__clone
console
.
log
(
this
.
editForm
)
console
.
log
(
this
.
editForm
)
const
{
const
{
manufacturerName
,
manufacturerId
,
manufacturerId
,
merchantId
,
merchantId
,
influenceScope
,
influenceScope
,
...
@@ -367,6 +370,7 @@ export default {
...
@@ -367,6 +370,7 @@ export default {
}
=
__clone
}
=
__clone
this
.
default_value
=
{
this
.
default_value
=
{
// 设置组件默认值
// 设置组件默认值
manufacturerName
,
manufacturerId
,
manufacturerId
,
merchantId
,
merchantId
,
influenceScope
,
influenceScope
,
...
...
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