Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-discover
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 8d9b8156
authored
Aug 03, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
细节优化
1 parent
47566ef2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
src/components/FormatInput/index.vue
src/views/channel/add.vue
src/views/store/add.vue
src/components/FormatInput/index.vue
View file @
8d9b815
...
...
@@ -25,7 +25,7 @@ export default {
inputFn
(
e
){
e
=
e
?
String
(
e
)
:
''
this
.
intDigit
=
this
.
intDigit
||
6
this
.
precise
=
this
.
precise
||
2
this
.
precise
=
this
.
precise
||
this
.
precise
==
0
||
this
.
precise
==
'0'
?
this
.
precise
:
2
let
value
=
e
if
(
this
.
maxVal
){
if
(
+
this
.
maxVal
<=
+
e
)
value
=
this
.
maxVal
//加等号是因为 '500' == '500.' 导致多了点
...
...
@@ -39,6 +39,7 @@ export default {
blurFn
(
e
){
let
value
=
e
.
target
.
value
if
(
this
.
minVal
&&
+
this
.
minVal
>=
value
)
value
=
this
.
minVal
if
(
value
&&
value
.
charAt
(
value
.
length
-
1
)
==
'.'
)
value
=
value
.
substr
(
0
,
value
.
length
-
1
)
this
.
$emit
(
'input'
,
value
)
}
}
...
...
src/views/channel/add.vue
View file @
8d9b815
...
...
@@ -11,7 +11,8 @@
<el-input
v-model=
"channelForm.channelChildName"
maxlength=
"12"
show-word-limit
></el-input>
</el-form-item>
<el-form-item
label=
"频道顺序:"
prop=
"sort"
>
<el-input
v-model=
"channelForm.sort"
maxlength=
"12"
show-word-limit
></el-input>
<!--
<el-input
v-model=
"channelForm.sort"
show-word-limit
></el-input>
-->
<format-input
:intDigit=
"4"
:precise=
"0"
show-word-limit
v-model=
"channelForm.sort"
></format-input>
</el-form-item>
<span
v-if=
"channelForm.channelType == 1"
>
<el-form-item
label=
"频道主题:"
prop=
"channelStyle"
>
...
...
@@ -184,6 +185,8 @@ export default {
message
:
res
.
code
==
'0'
?
'编辑成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
}).
finally
(
end
=>
{
this
.
loading
=
false
})
}
})
...
...
src/views/store/add.vue
View file @
8d9b815
...
...
@@ -170,7 +170,12 @@ export default {
channelIds
:
this
.
editForm
.
channelIds
,
vehicleSeriesRequests
:
this
.
editForm
?.
channelIds
?.
includes
(
5
)
?
this
.
editForm
.
vehicleSeriesRequests
:
[]
}
this
.
loading
=
true
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.3)'
})
this
.
$apis
.
store
.
configMerchant
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
loading
=
false
...
...
@@ -181,6 +186,8 @@ export default {
message
:
res
.
code
==
'0'
?
'编辑成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
}).
finally
(
end
=>
{
loading
.
close
()
})
}
})
...
...
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