From 684a71888842924e8e954a12f10ee364f627e8a0 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期二, 26 九月 2023 16:07:18 +0800 Subject: [PATCH] # --- pages/basics/matQuery.vue | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue index 78150b2..c54b193 100644 --- a/pages/basics/matQuery.vue +++ b/pages/basics/matQuery.vue @@ -28,7 +28,9 @@ </view> <view class="text-box"> <view class="text-title text-desc"><text>瀹㈡埛淇℃伅</text></view> - <view class="text-title"><input type="text" v-model="matData.cstmr"></view> + <uni-combox :candidates="owners" placeholder="璇烽�夋嫨瀹㈡埛绫诲埆" + v-model="matData.owner"></uni-combox> + <!-- <view class="text-title"><input type="text" v-model="matData.cstmr"></view> --> </view> <view class="text-box"> <view class="text-title text-desc"><text>鏁伴噺</text></view> @@ -57,9 +59,13 @@ maktx: null, batch: null, anfme: null, + owner: null }, + owners: [], + owner: '', baseIP:'', basePORT:'', + commonUrl: '' } }, onLoad(option) { @@ -77,9 +83,30 @@ that.matData.anfme = 0 }) + eventChannel.on('url', function(data) { + that.commonUrl = data.data + }) + this.locOwner() }, methods: { + locOwner() { + let _this = this + uni.request({ + url: _this.commonUrl + '/locOwner/list/auth', + data:{curr:1,limit:15}, + header: { 'token':uni.getStorageSync('token') }, + success(res) { + res = res.data + if (res.code === 200) { + _this.owner = res.data.records + for (let k of res.data.records) { + _this.owners.push(k.owner) + } + } + } + }) + }, blur() { }, @@ -95,6 +122,7 @@ return; } this.getOpenerEventChannel().emit('matList', {data: this.matData}); + this.getOpenerEventChannel().emit('owner', {data: this.owner}); uni.vibrateShort(); uni.navigateBack({ -- Gitblit v1.9.1