Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform-ui
Commits
ea7bfd33
Commit
ea7bfd33
authored
Apr 30, 2019
by
youjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复状态bug
parent
dd49cd21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
index.js
config/index.js
+6
-6
index.vue
src/views/branchCompany/stock/index.vue
+5
-1
No files found.
config/index.js
View file @
ea7bfd33
...
@@ -31,22 +31,22 @@ module.exports = {
...
@@ -31,22 +31,22 @@ module.exports = {
assetsPublicPath
:
'/'
,
assetsPublicPath
:
'/'
,
proxyTable
:
{
proxyTable
:
{
'/jwt'
:
{
'/jwt'
:
{
target
:
'http://10.5.52.3:8765'
,
//
target: 'http://10.5.52.3:8765',
//
target: 'http://localhost:8765',
target
:
'http://localhost:8765'
,
pathRewrite
:
{
pathRewrite
:
{
'^/jwt'
:
'/jwt'
'^/jwt'
:
'/jwt'
},
},
},
},
'/api'
:{
'/api'
:{
target
:
'http://10.5.52.3:8765'
,
//
target: 'http://10.5.52.3:8765',
//
target: 'http://localhost:8765',
target
:
'http://localhost:8765'
,
pathRewrite
:
{
pathRewrite
:
{
'^/api'
:
'/api'
'^/api'
:
'/api'
},
},
},
},
'/vehicle'
:
{
'/vehicle'
:
{
target
:
'http://10.5.52.3:8765'
//
target: 'http://10.5.52.3:8765'
//
target: 'http://localhost:8765'
target
:
'http://localhost:8765'
},
},
},
},
// CSS Sourcemaps off by default because relative paths are "buggy"
// CSS Sourcemaps off by default because relative paths are "buggy"
...
...
src/views/branchCompany/stock/index.vue
View file @
ea7bfd33
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态"
>
<el-form-item
label=
"状态"
>
<el-select
class=
"filter-item"
v-model
.
number=
"state"
placeholder=
"请选择"
@
change=
"change
()
"
>
<el-select
class=
"filter-item"
v-model
.
number=
"state"
placeholder=
"请选择"
@
change=
"change"
>
<el-option
v-for=
"item in Array.from(stockStateStr.keys())"
:key=
"stockStateStr.get(item).key"
<el-option
v-for=
"item in Array.from(stockStateStr.keys())"
:key=
"stockStateStr.get(item).key"
:label=
"stockStateStr.get(item).label"
:value=
"stockStateStr.get(item).value"
></el-option>
:label=
"stockStateStr.get(item).label"
:value=
"stockStateStr.get(item).value"
></el-option>
</el-select>
</el-select>
...
@@ -295,6 +295,7 @@
...
@@ -295,6 +295,7 @@
getObj
(
row
.
id
)
getObj
(
row
.
id
)
.
then
(
response
=>
{
.
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
this
.
state
=
response
.
data
.
state
;
this
.
dialogFormVisible
=
true
;
this
.
dialogFormVisible
=
true
;
this
.
dialogStatus
=
'update'
;
this
.
dialogStatus
=
'update'
;
});
});
...
@@ -418,6 +419,9 @@
...
@@ -418,6 +419,9 @@
},
},
change
()
{
change
()
{
this
.
form
.
state
=
this
.
state
;
this
.
form
.
state
=
this
.
state
;
if
(
!
this
.
form
.
state
)
{
this
.
form
.
state
=
0
;
}
}
}
}
}
}
}
...
...
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