Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manage
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vanke
manage
Commits
fa621264
Commit
fa621264
authored
Sep 01, 2020
by
wangyalan-git
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
history模式,配置管理修改
parent
e6c1a5d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
6 deletions
+54
-6
index.js
src/router/index.js
+1
-1
setting.vue
src/views/set/setting.vue
+53
-5
No files found.
src/router/index.js
View file @
fa621264
...
@@ -241,7 +241,7 @@ export const asyncRouterMap = [
...
@@ -241,7 +241,7 @@ export const asyncRouterMap = [
]
]
export
default
new
Router
({
export
default
new
Router
({
//
mode: 'history', //后端支持可开
mode
:
'history'
,
//后端支持可开
scrollBehavior
:
()
=>
({
y
:
0
}),
scrollBehavior
:
()
=>
({
y
:
0
}),
routes
:
constantRouterMap
routes
:
constantRouterMap
})
})
...
...
src/views/set/setting.vue
View file @
fa621264
<
template
>
<
template
>
<el-card
class=
"form-container"
shadow=
"never"
>
<el-card
class=
"form-container
no-form
"
shadow=
"never"
>
<el-form
:model=
"setting"
<el-form
:model=
"setting"
class=
"my-form"
ref=
"orderSettingForm"
ref=
"orderSettingForm"
:rules=
"rules"
>
:rules=
"rules"
>
<el-form-item
prop=
"stockWarning"
>
<el-form-item
prop=
"stockWarning"
>
...
@@ -13,10 +14,36 @@
...
@@ -13,10 +14,36 @@
<el-input
v-model=
"setting.receiveInterval"
class=
"input-width"
>
<el-input
v-model=
"setting.receiveInterval"
class=
"input-width"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"appid"
>
<div>
轻应用id:
</div>
<el-input
v-model=
"setting.appid"
class=
"input-width"
>
</el-input>
</el-form-item>
<el-form-item
prop=
"secret"
>
<div>
轻应用secret:
</div>
<el-input
v-model=
"setting.secret"
class=
"input-width"
>
</el-input>
</el-form-item>
<el-form-item
prop=
"scope"
>
<div>
授权级别:
</div>
<el-input
v-model=
"setting.scope"
class=
"input-width"
>
</el-input>
</el-form-item>
<el-form-item
prop=
"eid"
>
<div>
企业id:
</div>
<el-input
v-model=
"setting.eid"
class=
"input-width"
>
</el-input>
</el-form-item>
<el-form-item
prop=
"host"
>
<div>
接口域名:
</div>
<el-input
v-model=
"setting.host"
class=
"input-width"
>
</el-input>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
<el-button
style=
"margin-top: 20px;"
@
click=
"confirm('orderSettingForm')"
@
click=
"confirm('orderSettingForm')"
type=
"primary"
>
提交
</el-button>
type=
"primary"
>
保存
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-card>
</el-card>
...
@@ -26,7 +53,12 @@ import {getSetting,editSetting} from '@/api/setting';
...
@@ -26,7 +53,12 @@ import {getSetting,editSetting} from '@/api/setting';
const
defaultOrderSetting
=
{
const
defaultOrderSetting
=
{
id
:
null
,
id
:
null
,
stockWarning
:
0
,
stockWarning
:
0
,
receiveInterval
:
0
receiveInterval
:
0
,
appid
:
null
,
secret
:
null
,
scope
:
null
,
eid
:
null
,
host
:
null
};
};
const
checkTime
=
(
rule
,
value
,
callback
)
=>
{
const
checkTime
=
(
rule
,
value
,
callback
)
=>
{
if
(
value
===
''
)
{
if
(
value
===
''
)
{
...
@@ -96,7 +128,12 @@ export default {
...
@@ -96,7 +128,12 @@ export default {
this
.
setting
=
{
this
.
setting
=
{
id
:
res
.
data
.
id
,
id
:
res
.
data
.
id
,
receiveInterval
:
res
.
data
.
receiveInterval
,
receiveInterval
:
res
.
data
.
receiveInterval
,
stockWarning
:
res
.
data
.
stockWarning
stockWarning
:
res
.
data
.
stockWarning
,
appid
:
res
.
data
.
appid
,
secret
:
res
.
data
.
secret
,
scope
:
res
.
data
.
scope
,
eid
:
res
.
data
.
eid
,
host
:
res
.
data
.
host
}
}
}
}
})
})
...
@@ -105,13 +142,24 @@ export default {
...
@@ -105,13 +142,24 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.form-container
{
padding-top
:
10px
;
}
.input-width
{
.input-width
{
width
:
5
0%
;
width
:
10
0%
;
}
}
.note-margin
{
.note-margin
{
margin-left
:
15px
;
margin-left
:
15px
;
}
}
.no-form
.my-form
{
width
:
50%
;
margin
:
0
auto
;
}
.no-form
.el-form-item
{
margin-bottom
:
0
;
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment