Commit ea7bfd33 authored by youjj's avatar youjj

修复状态bug

parent dd49cd21
......@@ -31,22 +31,22 @@ module.exports = {
assetsPublicPath: '/',
proxyTable: {
'/jwt': {
target: 'http://10.5.52.3:8765',
// target: 'http://localhost:8765',
// target: 'http://10.5.52.3:8765',
target: 'http://localhost:8765',
pathRewrite: {
'^/jwt': '/jwt'
},
},
'/api':{
target: 'http://10.5.52.3:8765',
// target: 'http://localhost:8765',
// target: 'http://10.5.52.3:8765',
target: 'http://localhost:8765',
pathRewrite: {
'^/api': '/api'
},
},
'/vehicle': {
target: 'http://10.5.52.3:8765'
// target: 'http://localhost:8765'
// target: 'http://10.5.52.3:8765'
target: 'http://localhost:8765'
},
},
// CSS Sourcemaps off by default because relative paths are "buggy"
......
......@@ -92,7 +92,7 @@
</el-form-item>
<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"
:label="stockStateStr.get(item).label" :value="stockStateStr.get(item).value"></el-option>
</el-select>
......@@ -295,6 +295,7 @@
getObj(row.id)
.then(response => {
this.form = response.data;
this.state = response.data.state;
this.dialogFormVisible = true;
this.dialogStatus = 'update';
});
......@@ -418,6 +419,9 @@
},
change() {
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