This commit is contained in:
2025-06-13 17:59:01 +08:00
3 changed files with 15 additions and 4 deletions

View File

@@ -36,7 +36,7 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {updatePackageInfo} from '@/utils/getData3.js'
import {getControlList, updatePackageInfo} from '@/utils/getData3.js'
export default {
components: {
NavBar,
@@ -48,15 +48,22 @@
val1: '',
options: [{value: '3', text: '合格品'}, {value: '4', text: '管制品'}, {value: '0', text: '空点位'}, {value: '1', text: '有架子'}],
index: '',
options1: [{value: '1', text: '1'}, {value: '2', text: '2'}],
options1: [],
index1: '',
disabled: false
};
},
onLoad (options) {
this.title = options.title
this._getControlList()
},
methods: {
async _getControlList () {
let res = await getControlList()
if (res) {
this.options1 = [...res]
}
},
selectChange (e) {
this.index = e
},