二次sure
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<uni-data-select v-model="index2" :placeholder="$t('uni.dataSelect.placeholder')" :localdata="options2" @change="selectChange2"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_item is-required">
|
||||
<!-- <view class="filter_label">设备</view> -->
|
||||
<view class="filter_label_wraper">
|
||||
<span class="filter_label">{{$t('filter.device')}}</span>
|
||||
@@ -63,7 +63,7 @@
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-6 btn-submit btn-default" @tap="clearUp">{{$t('button.clear')}}</button>
|
||||
<button class="zd-col-15 btn-submit btn-success" :class="{'btn-info': !index || !dataList.length}" :disabled="disabled" @tap="_downShafts">{{$t('button.confirmlowershaft')}}</button>
|
||||
<button class="zd-col-15 btn-submit btn-success" :class="{'btn-info': !index || !dataList.length}" :disabled="disabled" @tap="handleConfirm">{{$t('button.confirmlowershaft')}}</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -71,6 +71,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import { confirmAction } from '@/utils/utils.js'
|
||||
import {queryProductArea} from '@/utils/getData2.js'
|
||||
import {slitterDevices} from '@/utils/getData3.js'
|
||||
import {downShafts} from '@/utils/getData4.js'
|
||||
@@ -135,12 +136,17 @@
|
||||
handleDelete (index) {
|
||||
this.dataList.splice(index, 1)
|
||||
},
|
||||
async _downShafts () {
|
||||
this.disabled = true
|
||||
async handleConfirm() {
|
||||
if (!this.index || !this.dataList.length) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
const isConfirmed = await confirmAction("确认操作", "确定要执行此操作吗?")
|
||||
if (isConfirmed) {
|
||||
this._downShafts()
|
||||
}
|
||||
},
|
||||
async _downShafts () {
|
||||
this.disabled = true
|
||||
try {
|
||||
let res = await downShafts(this.index, this.dataList)
|
||||
if (res) {
|
||||
|
||||
Reference in New Issue
Block a user