显示问题
This commit is contained in:
@@ -456,27 +456,27 @@ export default {
|
||||
'id'
|
||||
])
|
||||
},
|
||||
watch: {
|
||||
// 如果路由有变化,会再次执行该方法
|
||||
'$route'(to) {
|
||||
const _this = this
|
||||
console.log(to, 2222)
|
||||
if (to.name === 'InitialProduction') {
|
||||
_this.typeChange()
|
||||
}
|
||||
}
|
||||
// '$route': {
|
||||
// handler(route) {
|
||||
// const _this = this
|
||||
// console.log(route.name)
|
||||
// if (route.name === 'InitialProduction') {
|
||||
// _this.typeChange()
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
},
|
||||
// watch: {
|
||||
// // 如果路由有变化,会再次执行该方法
|
||||
// '$route'(to) {
|
||||
// const _this = this
|
||||
// console.log(to, 2222)
|
||||
// if (to.name === 'InitialProduction') {
|
||||
// _this.typeChange()
|
||||
// }
|
||||
// }
|
||||
// // '$route': {
|
||||
// // handler(route) {
|
||||
// // const _this = this
|
||||
// // console.log(route.name)
|
||||
// // if (route.name === 'InitialProduction') {
|
||||
// // _this.typeChange()
|
||||
// // }
|
||||
// // }
|
||||
// // }
|
||||
// },
|
||||
created() {
|
||||
// this.typeChange()
|
||||
this.typeChange()
|
||||
this.getCurrentTime()
|
||||
this.getNowTime()
|
||||
},
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
height="750"
|
||||
highlight-current-row
|
||||
border
|
||||
stripe
|
||||
@selection-change="handleSelectionChange">
|
||||
<el-table-column align="center" type="selection"/>
|
||||
<el-table-column align="center" label="零件号" prop="零件号" width="160">
|
||||
|
||||
@@ -245,7 +245,7 @@
|
||||
<el-button
|
||||
:disabled="Number(id)!==0"
|
||||
size="mini"
|
||||
plsin
|
||||
plain
|
||||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)">删除</el-button>
|
||||
@@ -290,7 +290,7 @@
|
||||
<el-input v-model="form.零件名称" placeholder="零件名称" size="small" style="width:200px" clearable/>
|
||||
</el-form-item>
|
||||
<el-form-item label="零件数量" prop="零件数量" style="margin-left: 70px">
|
||||
<el-input v-model="form.零件数量" placeholder="零件数量" size="small" style="width:200px" clearable/>
|
||||
<el-input-number v-model="form.零件数量" :step="1" :min="0" size="mini" style="width:200px"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="零件备注" prop="零件备注" style="margin-left: 70px">
|
||||
<el-input v-model="form.零件备注" placeholder="零件备注" size="small" style="width:200px" clearable/>
|
||||
|
||||
Reference in New Issue
Block a user