二次sure

This commit is contained in:
2025-07-01 11:18:01 +08:00
parent f432ec99d9
commit f50619c104
13 changed files with 182 additions and 94 deletions

View File

@@ -4,7 +4,7 @@
<nav-bar :title="title"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="filter_item">
<view class="filter_item is-required">
<view class="filter_label_wraper">
<span class="filter_label">{{$t('filter.point')}}</span>
</view>
@@ -24,7 +24,7 @@
</view>
</view>
<view class="zd-row submitbar">
<button class="zd-col-22 btn-submit btn-success" :class="{'btn-info': !index}" :disabled="disabled" @tap="_doInitShaftPoint">{{$t('button.confirm')}}</button>
<button class="zd-col-22 btn-submit btn-success" :class="{'btn-info': !index}" :disabled="disabled" @tap="handleConfirm">{{$t('button.confirm')}}</button>
</view>
</view>
</template>
@@ -32,6 +32,7 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import { confirmAction } from '@/utils/utils.js'
import {getShaftPoint, doInitShaftPoint} from '@/utils/getData3.js'
export default {
components: {
@@ -64,12 +65,17 @@
selectChange (e) {
this.index = e
},
async _doInitShaftPoint () {
this.disabled = true
async handleConfirm() {
if (!this.index) {
this.disabled = false
return
}
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
if (isConfirmed) {
this._doInitShaftPoint()
}
},
async _doInitShaftPoint () {
this.disabled = true
try {
let res = await doInitShaftPoint(this.index, this.isV)
uni.showToast({