Commit ea7bfd33 authored by youjj's avatar youjj

修复状态bug

parent dd49cd21
...@@ -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"
......
...@@ -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;
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment