no message

This commit is contained in:
2025-07-01 09:42:49 +08:00
parent 20378b1b6e
commit bb36192fe6

View File

@@ -4,7 +4,7 @@
<nav-bar :title="title"></nav-bar> <nav-bar :title="title"></nav-bar>
<view class="zd_content"> <view class="zd_content">
<view class="zd_wrapper"> <view class="zd_wrapper">
<view class="filter_item"> <view class="filter_item is-required">
<view class="filter_label_wraper"> <view class="filter_label_wraper">
<span class="filter_label">{{$t('filter.box-no')}}</span> <span class="filter_label">{{$t('filter.box-no')}}</span>
</view> </view>
@@ -13,7 +13,7 @@
/> />
</view> </view>
</view> </view>
<view class="filter_item"> <view class="filter_item is-required">
<view class="filter_label_wraper"> <view class="filter_label_wraper">
<span class="filter_label">{{$t('grid.point-code')}}</span> <span class="filter_label">{{$t('grid.point-code')}}</span>
</view> </view>
@@ -24,7 +24,7 @@
</view> </view>
</view> </view>
<view class="zd-row submitbar"> <view class="zd-row submitbar">
<button class="zd-col-22 btn-submit btn-success letter-30" :class="{'btn-info': !val1 && !val2}" :disabled="disabled1" @tap="_abnormalOut">解锁</button> <button class="zd-col-22 btn-submit btn-success letter-30" :class="{'btn-info': !val1 && !val2}" :disabled="disabled1" @tap="handleConfirm">解锁</button>
</view> </view>
</view> </view>
</template> </template>
@@ -32,6 +32,7 @@
<script> <script>
import NavBar from '@/components/NavBar.vue' import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue' import SearchBox from '@/components/SearchBox.vue'
import { confirmAction } from '@/utils/utils.js'
import {abnormalOut} from '@/utils/getData1.js' import {abnormalOut} from '@/utils/getData1.js'
export default { export default {
components: { components: {
@@ -57,12 +58,17 @@
}, },
handleChange2 (e) { handleChange2 (e) {
}, },
async _abnormalOut () { async handleConfirm() {
this.disabled1 = true
if (!this.val1 && !this.val2) { if (!this.val1 && !this.val2) {
this.disabled1 = false
return return
} }
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
if (isConfirmed) {
this._abnormalOut()
}
},
async _abnormalOut () {
this.disabled1 = true
try { try {
let res = await abnormalOut(this.val1, this.val2) let res = await abnormalOut(this.val1, this.val2)
this.val1 = '' this.val1 = ''