修改
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-primary" @tap="seachList">查询</button>
|
||||
<button class="zd-col-16 button-primary" :class="{'button-info': !pkId}" @tap="_materialConfirm">确认</button>
|
||||
<button class="zd-col-16 button-primary" :class="{'button-info': !dataList.length}" @tap="_materialConfirm">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -106,7 +106,7 @@
|
||||
methods: {
|
||||
async _getSect () {
|
||||
try {
|
||||
let res = await getSect()
|
||||
let res = await getSect('XB')
|
||||
if (res) {
|
||||
this.options = res
|
||||
} else {
|
||||
@@ -168,7 +168,7 @@
|
||||
},
|
||||
async _materialConfirm () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2 || !this.pkId) {
|
||||
if (!this.dataList.length) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user