Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 23a12e05
authored
Oct 15, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
联调修改
1 parent
d93d101d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
src/components/Upload/index.vue
src/views/config/addConfig.vue
src/components/Upload/index.vue
View file @
23a12e0
...
@@ -79,7 +79,7 @@ export default {
...
@@ -79,7 +79,7 @@ export default {
if
(
AllImgExt
.
indexOf
(
extName
)
===
-
1
)
{
if
(
AllImgExt
.
indexOf
(
extName
)
===
-
1
)
{
return
this
.
$message
.
error
(
'上传格式不正确'
)
return
this
.
$message
.
error
(
'上传格式不正确'
)
}
}
const
size
=
e
.
size
/
1024
/
1024
const
size
=
fil
e
.
size
/
1024
/
1024
const
maxSize
=
this
.
checkObj
.
maxSize
const
maxSize
=
this
.
checkObj
.
maxSize
if
(
size
>
maxSize
)
{
if
(
size
>
maxSize
)
{
return
this
.
$message
.
error
(
`上传文件不可超过
${
maxSize
}
M`
)
return
this
.
$message
.
error
(
`上传文件不可超过
${
maxSize
}
M`
)
...
...
src/views/config/addConfig.vue
View file @
23a12e0
...
@@ -240,7 +240,7 @@ export default {
...
@@ -240,7 +240,7 @@ export default {
contractSubjectType
:
''
,
contractSubjectType
:
''
,
typeData
:
[]
typeData
:
[]
},
},
check
o
bj
:
{
check
O
bj
:
{
fileTypes
:
'.png|.jpg|.jpeg'
,
fileTypes
:
'.png|.jpg|.jpeg'
,
maxSize
:
10
maxSize
:
10
}
}
...
@@ -253,16 +253,16 @@ export default {
...
@@ -253,16 +253,16 @@ export default {
},
},
watch
:
{
watch
:
{
saleMode
:
{
//
saleMode: {
deep
:
true
,
//
deep: true,
handler
(
val
)
{
//
handler(val) {
if
(
val
==
1
)
{
//
if (val == 1) {
this
.
$set
(
this
.
contractObj
,
'contractSubjectType'
,
1
)
//
this.$set(this.contractObj, 'contractSubjectType', 1)
}
else
if
(
val
==
2
)
{
//
} else if (val == 2) {
this
.
$set
(
this
.
contractObj
,
'contractSubjectType'
,
2
)
//
this.$set(this.contractObj, 'contractSubjectType', 2)
}
//
}
}
//
}
},
//
},
'contractObj.contractSubjectType'
:
{
'contractObj.contractSubjectType'
:
{
deep
:
true
,
deep
:
true
,
handler
(
val
)
{
handler
(
val
)
{
...
...
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