强制静置

This commit is contained in:
2023-09-26 10:09:05 +08:00
parent fb8e0e2e54
commit 24c7177ecc
14 changed files with 3911 additions and 2 deletions

View File

@@ -2,6 +2,14 @@
<view class="zd_container">
<nav-bar title="强制静置"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="filter_item">
<view class="filter_label">设备号</view>
<view class="filter_input_wraper">
<uni-datetime-picker type="datetime" v-model="val1" @change="changeLog" />
</view>
</view>
</view>
<view class="zd_wrapper grid-wraper">
<view class="slide_new">
<table>
@@ -32,19 +40,28 @@
<button class="submit-button" @tap="_forcedRestingShow">刷新</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !pkId}" :disabled="disabled" @tap="toSure">确认</button>
</view>
<!-- <view>
<uni-calendar
ref="calendar"
:insert="false"
:date="val1"
@confirm="confirm"
/>
</view> -->
</view>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
import {forcedRestingShow, forcedRestingSubmit} from '@/utils/getData2.js'
import {dateTimeFtt} from '@/utils/utils.js'
export default {
components: {
NavBar
},
data() {
return {
val1: '',
val1: dateTimeFtt(new Date()),
dataList: [],
pkId: '',
pkObj: {},
@@ -55,6 +72,12 @@
this._forcedRestingShow()
},
methods: {
changeLog(e) {
// console.log('----change事件:', e);
if (!e) {
this.val1 = ''
}
},
/** grid查询 */
async _forcedRestingShow () {
let res = await forcedRestingShow()
@@ -72,7 +95,7 @@
this.disabled = false
this.pkId = ''
this.pkObj = {}
this.val1 = ''
this.val1 = dateTimeFtt(new Date())
this._forcedRestingShow()
uni.showToast({
title: res.message,