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