球磨上料

This commit is contained in:
2023-04-26 14:54:25 +08:00
parent 34b22f416c
commit 0f3aefbd35
2 changed files with 21 additions and 6 deletions

View File

@@ -2,7 +2,14 @@
<section>
<nav-bar :inner="true" title="球磨上料"></nav-bar>
<section class="content mgt186">
<div class="filter-wraper">
<div v-if="$route.query.type === '1'" class="filter-wraper">
<search-box
label="设备"
v-model="val1"
@handleChange="handleChange1"
></search-box>
</div>
<div v-else class="filter-wraper">
<search-box
label="设备"
:keyShow="false"
@@ -70,16 +77,23 @@ export default {
}
},
created () {
this._QMload()
if (this.$route.query.type !== '1') {
this._QMload()
}
},
methods: {
handleChange1 (e, type) {
if (type) {
this._QMload(e)
}
},
toCheck (e) {
this.pkId = this.pkId === e.storagevehicle_code ? '' : e.storagevehicle_code
this.pkObj = this.pkId === e.storagevehicle_code ? e : {}
},
async _QMload () {
async _QMload (e) {
let code = this.$route.query.type === '1' ? '' : '1'
let res = await QMload(code)
let res = await QMload(code, e)
if (res.code === '1') {
this.dataList = [...res.content]
} else {