判断
This commit is contained in:
@@ -56,12 +56,12 @@
|
||||
return {
|
||||
title: '',
|
||||
val1: '',
|
||||
// dataList: [],
|
||||
dataList: [
|
||||
{material_code: 'code1', material_name: 'name1', measure_unit_id: '千克'},
|
||||
{material_code: 'code2', material_name: 'name2', measure_unit_id: '千克'},
|
||||
{material_code: 'code3', material_name: 'name3', measure_unit_id: '千克'},
|
||||
],
|
||||
dataList: [],
|
||||
// dataList: [
|
||||
// {material_code: 'code1', material_name: 'name1', measure_unit_id: '千克'},
|
||||
// {material_code: 'code2', material_name: 'name2', measure_unit_id: '千克'},
|
||||
// {material_code: 'code3', material_name: 'name3', measure_unit_id: '千克'},
|
||||
// ],
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
reload: false,
|
||||
@@ -78,7 +78,7 @@
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
this.searchList()
|
||||
// this.searchList()
|
||||
},
|
||||
methods: {
|
||||
searchList () {
|
||||
@@ -87,7 +87,7 @@
|
||||
this._selectMaterials()
|
||||
},
|
||||
async _selectMaterials () {
|
||||
let res = await selectMaterials( this.val1)
|
||||
let res = await selectMaterials(this.val1)
|
||||
this.dataList = res.data
|
||||
// this.totalCount = res.totalElements
|
||||
// if (res.totalElements > 0) {
|
||||
|
||||
Reference in New Issue
Block a user