增加操作loading

This commit is contained in:
BianLzhaoMin 2024-11-07 11:25:10 +08:00
parent ea5f66b190
commit 4d36f9769f
24 changed files with 327 additions and 93 deletions

View File

@ -142,7 +142,7 @@
<view style="width: 48%"> <view style="width: 48%">
<u--input type="text" placeholder="请填写" v-model="detailsParams.remark" clearable /> <u--input type="text" placeholder="请填写" v-model="detailsParams.remark" clearable />
</view> </view>
<view style="width: 13%" @tap="getMySceneListData">搜索</view> <view class="search-img" @tap="getMySceneListData"></view>
</view> </view>
</view> </view>
<view class="my-data-container" v-if="detailsList.length > 0"> <view class="my-data-container" v-if="detailsList.length > 0">
@ -730,6 +730,15 @@ export default {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
.search-img {
width: 68rpx;
height: 68rpx;
margin-right: 10rpx;
// margin-left: 30rpx;
background: url('../../../static/images/workPlan/search.png') no-repeat;
background-size: 100% 100%;
}
} }
.my-data-content { .my-data-content {

View File

@ -1159,7 +1159,8 @@ export default {
} }
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({ uni.showLoading({
title: '正在提交,请勿重复点击' title: '正在提交,请勿重复点击',
mask: true
}) })
const result = await setMonthPlanApi(saveParams) const result = await setMonthPlanApi(saveParams)
uni.hideLoading() uni.hideLoading()
@ -1554,7 +1555,8 @@ export default {
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({ uni.showLoading({
title: '正在提交,请勿重复点击' title: '正在提交,请勿重复点击',
mask: true
}) })
const result = await setMonthPlanApi(saveParams) const result = await setMonthPlanApi(saveParams)
uni.hideLoading() uni.hideLoading()
@ -1766,6 +1768,7 @@ export default {
} }
}, },
onAddSubUserInfoNew(name, index) { onAddSubUserInfoNew(name, index) {
if (this.currentTime != this.$moment().format('YYYY-MM-DD')) return
new Promise((resolve, reject) => { new Promise((resolve, reject) => {
// //
let promises = [] let promises = []
@ -2018,7 +2021,8 @@ export default {
console.log('保存参数', params) console.log('保存参数', params)
uni.showLoading({ uni.showLoading({
title: '正在提交,请勿重复点击' title: '正在提交,请勿重复点击',
mask: true
}) })
const result = await addContentJobTicketApi({ list: JSON.stringify(params) }) const result = await addContentJobTicketApi({ list: JSON.stringify(params) })
uni.hideLoading() uni.hideLoading()

View File

@ -773,7 +773,7 @@ export default {
currentSwiper: 0, currentSwiper: 0,
projectQueryParams: { projectQueryParams: {
planTime: this.$moment().format('YYYY-MM-DD'), planTime: this.$moment().format('YYYY-MM-DD'),
type: 6, type: '6',
state: '' state: ''
}, },
projectRange: [ projectRange: [
@ -1072,8 +1072,12 @@ export default {
state: '' state: ''
} }
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanProApi(saveParams) const result = await setMonthPlanProApi(saveParams)
uni.hideLoading()
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
setTimeout(() => { setTimeout(() => {
@ -1451,8 +1455,12 @@ export default {
state: '2' state: '2'
} }
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanProApi(saveParams) const result = await setMonthPlanProApi(saveParams)
uni.hideLoading()
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
this.$refs.popupAuditing.close() this.$refs.popupAuditing.close()

View File

@ -20,7 +20,7 @@
v-model="subQueryParams.keyWord" v-model="subQueryParams.keyWord"
/> />
</view> </view>
<view style="width: 15%" @tap="onOpenPopup()">搜索</view> <view @tap="onOpenPopup()" class="search-img"></view>
</view> </view>
<view class="select-btn"> <view class="select-btn">
@ -530,6 +530,15 @@ export default {
align-items: center; align-items: center;
} }
.search-img {
width: 48rpx;
height: 40rpx;
margin-right: 30rpx;
// margin-left: 30rpx;
background: url('../../../../static/realName/screen.png') no-repeat;
background-size: 100% 100%;
}
.select-btn { .select-btn {
margin: 40rpx auto; margin: 40rpx auto;
} }

View File

@ -131,8 +131,9 @@
</swiper> </swiper>
</view> </view>
<view class="revoke" v-show="!isView || isView == 'false'"> <view class="revoke" v-show="!isView || isView == 'false'" @tap="onAuditingComplete">
<view @tap="onAuditingComplete" class="auditing-complete">审核完成</view> 审核完成
<!-- <view @tap="onAuditingComplete" class="auditing-complete">审核完成</view> -->
<!-- <view <!-- <view
@tap="showModalFun(item.id)" @tap="showModalFun(item.id)"
v-for="item in btnList" v-for="item in btnList"
@ -539,7 +540,12 @@ export default {
this.getAUditingUserInfoData() this.getAUditingUserInfoData()
this.$refs.popupAuditing.open('center') this.$refs.popupAuditing.open('center')
} else { } else {
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await API(type === 1 ? params : this.params) const result = await API(type === 1 ? params : this.params)
uni.hideLoading()
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' }) uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' })
setTimeout(() => { setTimeout(() => {
@ -686,8 +692,13 @@ export default {
} }
console.log('saveParams保存参数', params) console.log('saveParams保存参数', params)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await submitPlanApi(params) const result = await submitPlanApi(params)
uni.hideLoading()
console.log(result, 'results上报人提交结果') console.log(result, 'results上报人提交结果')
if (result.res == 1) { if (result.res == 1) {
@ -725,7 +736,12 @@ export default {
user: '' user: ''
// state: '2' // state: '2'
} }
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await submitPlanApi(params) const result = await submitPlanApi(params)
uni.hideLoading()
console.log(result, 'results上报人提交结果') console.log(result, 'results上报人提交结果')
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ title: `审核成功`, icon: 'none' }) uni.showToast({ title: `审核成功`, icon: 'none' })
@ -842,7 +858,7 @@ export default {
titleH titleH
.boundingClientRect(data => { .boundingClientRect(data => {
let pH = that._data.pH let pH = that._data.pH
that._data.navHeight = pH - data.top - bottomHeight - 48 that._data.navHeight = pH - data.top - bottomHeight - 16
}) })
.exec() .exec()
}) })
@ -867,14 +883,17 @@ export default {
} }
.revoke { .revoke {
width: 100%; width: 94%;
padding: 12px 0; // padding: 12px 0;
position: fixed; position: fixed;
bottom: 0; bottom: 12px;
left: 0; left: 3%;
display: flex; height: 70rpx;
justify-content: center; border-radius: 16rpx;
align-items: center; text-align: center;
line-height: 70rpx;
color: #fff;
background-color: #00337a;
// background-color: #fff; // background-color: #fff;
.auditing-complete { .auditing-complete {

View File

@ -129,8 +129,9 @@
</swiper> </swiper>
</view> </view>
<view class="revoke" v-show="!isView || isView == 'false'"> <view class="revoke" v-show="!isView || isView == 'false'" @tap="onAuditingComplete">
<view @tap="onAuditingComplete" class="auditing-complete">审核完成</view> 审核完成
<!-- <view @tap="onAuditingComplete" class="auditing-complete">审核完成</view> -->
<!-- <view <!-- <view
@tap="showModalFun(item.id)" @tap="showModalFun(item.id)"
v-for="item in btnList" v-for="item in btnList"
@ -542,7 +543,12 @@ export default {
this.getAUditingUserInfoData() this.getAUditingUserInfoData()
this.$refs.popupAuditing.open('center') this.$refs.popupAuditing.open('center')
} else { } else {
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await API(type === 1 ? params : this.params) const result = await API(type === 1 ? params : this.params)
uni.hideLoading()
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' }) uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' })
setTimeout(() => { setTimeout(() => {
@ -689,8 +695,13 @@ export default {
} }
console.log('saveParams保存参数', params) console.log('saveParams保存参数', params)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await submitPlanProApi(params) const result = await submitPlanProApi(params)
uni.hideLoading()
console.log(result, 'results上报人提交结果') console.log(result, 'results上报人提交结果')
if (result.res == 1) { if (result.res == 1) {
@ -728,7 +739,12 @@ export default {
user: '' user: ''
// state: '2' // state: '2'
} }
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await submitPlanProApi(params) const result = await submitPlanProApi(params)
uni.hideLoading()
console.log(result, 'results上报人提交结果') console.log(result, 'results上报人提交结果')
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ title: `审核成功`, icon: 'none' }) uni.showToast({ title: `审核成功`, icon: 'none' })
@ -833,7 +849,7 @@ export default {
titleH titleH
.boundingClientRect(data => { .boundingClientRect(data => {
let pH = that._data.pH let pH = that._data.pH
that._data.navHeight = pH - data.top - bottomHeight - 48 that._data.navHeight = pH - data.top - bottomHeight - 16
}) })
.exec() .exec()
}) })
@ -858,14 +874,17 @@ export default {
} }
.revoke { .revoke {
width: 100%; width: 94%;
padding: 12px 0; // padding: 12px 0;
position: fixed; position: fixed;
bottom: 0; bottom: 12px;
left: 0; left: 3%;
display: flex; height: 70rpx;
justify-content: center; border-radius: 16rpx;
align-items: center; text-align: center;
line-height: 70rpx;
color: #fff;
background-color: #00337a;
// background-color: #fff; // background-color: #fff;
.auditing-complete { .auditing-complete {

View File

@ -975,7 +975,13 @@ export default {
} }
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanApi(saveParams) const result = await setMonthPlanApi(saveParams)
uni.hideLoading()
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
setTimeout(() => { setTimeout(() => {
@ -1350,8 +1356,13 @@ export default {
state: '2' state: '2'
} }
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanApi(saveParams) const result = await setMonthPlanApi(saveParams)
uni.hideLoading()
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
this.$refs.popupAuditing.close() this.$refs.popupAuditing.close()

View File

@ -750,7 +750,7 @@ export default {
currentSwiper: 0, currentSwiper: 0,
projectQueryParams: { projectQueryParams: {
planTime: this.$moment().format('YYYY-MM-DD'), planTime: this.$moment().format('YYYY-MM-DD'),
type: 6, type: '6',
state: '' state: ''
}, },
projectRange: [ projectRange: [
@ -1016,8 +1016,13 @@ export default {
state: '1' state: '1'
} }
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanProApi(saveParams) const result = await setMonthPlanProApi(saveParams)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
setTimeout(() => { setTimeout(() => {
@ -1385,8 +1390,12 @@ export default {
state: '2' state: '2'
} }
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanProApi(saveParams) const result = await setMonthPlanProApi(saveParams)
uni.hideLoading()
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
this.$refs.popupAuditing.close() this.$refs.popupAuditing.close()

View File

@ -127,8 +127,9 @@
</swiper> </swiper>
</view> </view>
<view class="revoke" v-show="!isView || isView == 'false'"> <view class="revoke" v-show="!isView || isView == 'false'" @tap="onAuditingComplete">
<view @tap="onAuditingComplete" class="auditing-complete">审核完成</view> <!-- <view class="auditing-complete"></view> -->
审核完成
<!-- <view <!-- <view
@tap="showModalFun(item.id)" @tap="showModalFun(item.id)"
v-for="item in btnList" v-for="item in btnList"
@ -545,7 +546,12 @@ export default {
this.getAUditingUserInfoData() this.getAUditingUserInfoData()
this.$refs.popupAuditing.open('center') this.$refs.popupAuditing.open('center')
} else { } else {
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await API(type === 1 ? params : this.params) const result = await API(type === 1 ? params : this.params)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' }) uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' })
setTimeout(() => { setTimeout(() => {
@ -692,8 +698,12 @@ export default {
} }
console.log('saveParams保存参数', params) console.log('saveParams保存参数', params)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await submitPlanApi(params) const result = await submitPlanApi(params)
uni.hideLoading({})
console.log(result, 'results上报人提交结果') console.log(result, 'results上报人提交结果')
if (result.res == 1) { if (result.res == 1) {
@ -834,7 +844,7 @@ export default {
titleH titleH
.boundingClientRect(data => { .boundingClientRect(data => {
let pH = that._data.pH let pH = that._data.pH
that._data.navHeight = pH - data.top - bottomHeight - 48 that._data.navHeight = pH - data.top - bottomHeight - 16
}) })
.exec() .exec()
}) })
@ -859,14 +869,17 @@ export default {
} }
.revoke { .revoke {
width: 100%; width: 94%;
padding: 12px 0; // padding: 12px 0;
position: fixed; position: fixed;
bottom: 0; bottom: 12px;
left: 0; left: 3%;
display: flex; height: 70rpx;
justify-content: center; border-radius: 16rpx;
align-items: center; text-align: center;
line-height: 70rpx;
color: #fff;
background-color: #00337a;
// background-color: #fff; // background-color: #fff;
.auditing-complete { .auditing-complete {

View File

@ -133,8 +133,8 @@
</swiper> </swiper>
</view> </view>
<view class="revoke" v-show="!isView || isView == 'false'"> <view class="revoke" v-show="!isView || isView == 'false'" @tap="onAuditingComplete">
<view @tap="onAuditingComplete" class="auditing-complete">审核完成</view> 审核完成
<!-- <view <!-- <view
@tap="showModalFun(item.id)" @tap="showModalFun(item.id)"
v-for="item in btnList" v-for="item in btnList"
@ -499,7 +499,12 @@ export default {
this.getAUditingUserInfoData() this.getAUditingUserInfoData()
this.$refs.popupAuditing.open('center') this.$refs.popupAuditing.open('center')
} else { } else {
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await API(type === 1 ? params : this.params) const result = await API(type === 1 ? params : this.params)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' }) uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' })
setTimeout(() => { setTimeout(() => {
@ -643,8 +648,12 @@ export default {
} }
console.log('saveParams保存参数', params) console.log('saveParams保存参数', params)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await submitPlanProApi(params) const result = await submitPlanProApi(params)
uni.hideLoading()
console.log(result, 'results上报人提交结果') console.log(result, 'results上报人提交结果')
if (result.res == 1) { if (result.res == 1) {
@ -780,7 +789,7 @@ export default {
titleH titleH
.boundingClientRect(data => { .boundingClientRect(data => {
let pH = that._data.pH let pH = that._data.pH
that._data.navHeight = pH - data.top - bottomHeight - 48 that._data.navHeight = pH - data.top - bottomHeight - 16
}) })
.exec() .exec()
}) })
@ -805,14 +814,17 @@ export default {
} }
.revoke { .revoke {
width: 100%; width: 94%;
padding: 12px 0; // padding: 12px 0;
position: fixed; position: fixed;
bottom: 0; bottom: 12px;
left: 0; left: 3%;
display: flex; height: 70rpx;
justify-content: center; border-radius: 16rpx;
align-items: center; text-align: center;
line-height: 70rpx;
color: #fff;
background-color: #00337a;
// background-color: #fff; // background-color: #fff;
.auditing-complete { .auditing-complete {

View File

@ -883,7 +883,13 @@ export default {
} }
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanApi(saveParams) const result = await setMonthPlanApi(saveParams)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
setTimeout(() => { setTimeout(() => {

View File

@ -635,7 +635,7 @@ export default {
currentSwiper: 0, currentSwiper: 0,
projectQueryParams: { projectQueryParams: {
planTime: this.$moment().format('YYYY-MM-DD'), planTime: this.$moment().format('YYYY-MM-DD'),
type: 3, type: '6',
state: '' state: ''
}, },
projectRange: [ projectRange: [
@ -884,7 +884,13 @@ export default {
} }
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanProApi(saveParams) const result = await setMonthPlanProApi(saveParams)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
setTimeout(() => { setTimeout(() => {

View File

@ -365,7 +365,12 @@ export default {
const params = { const params = {
id: JSON.stringify(this.monthDetailsList) id: JSON.stringify(this.monthDetailsList)
} }
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await API(type === 1 ? params : this.params) const result = await API(type === 1 ? params : this.params)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' }) uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' })

View File

@ -356,7 +356,12 @@ export default {
const params = { const params = {
id: JSON.stringify(this.monthDetailsList) id: JSON.stringify(this.monthDetailsList)
} }
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await API(type === 1 ? params : this.params) const result = await API(type === 1 ? params : this.params)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' }) uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' })

View File

@ -12,12 +12,12 @@
<view class="header-search"> <view class="header-search">
<view style="width: 28%"> <view style="width: 28%">
<uni-data-select :localdata="range" v-model="searchParams.proType"></uni-data-select> <uni-data-select :localdata="range" v-model="searchParams.proType" :clear="false"></uni-data-select>
</view> </view>
<view style="width: 49%"> <view style="width: 49%">
<uni-easyinput placeholder="搜索" v-model="searchParams.remark"></uni-easyinput> <uni-easyinput placeholder="搜索" v-model="searchParams.remark"></uni-easyinput>
</view> </view>
<view style="width: 18%" @tap="getDayRiskData">搜索</view> <view class="search-img" @tap="getDayRiskData"></view>
</view> </view>
<view class="search-radio"> <view class="search-radio">
@ -109,6 +109,15 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.search-img {
width: 68rpx;
height: 68rpx;
margin-right: 10rpx;
// margin-left: 30rpx;
background: url('../../../static/images/workPlan/search.png') no-repeat;
background-size: 100% 100%;
}
.header-search { .header-search {
margin-bottom: 24rpx; margin-bottom: 24rpx;
margin: 12rpx; margin: 12rpx;

View File

@ -1140,8 +1140,12 @@ export default {
state: '' state: ''
} }
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanApi(saveParams) const result = await setMonthPlanApi(saveParams)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
setTimeout(() => { setTimeout(() => {
@ -1516,8 +1520,12 @@ export default {
state: '2' state: '2'
} }
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanApi(saveParams) const result = await setMonthPlanApi(saveParams)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
this.$refs.popupAuditing.close() this.$refs.popupAuditing.close()

View File

@ -868,7 +868,7 @@ export default {
currentSwiper: 0, currentSwiper: 0,
projectQueryParams: { projectQueryParams: {
planTime: this.$moment().format('YYYY-MM-DD'), planTime: this.$moment().format('YYYY-MM-DD'),
type: 3, type: '6',
state: '' state: ''
}, },
projectRange: [ projectRange: [
@ -1188,8 +1188,12 @@ export default {
state: '' state: ''
} }
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanProApi(saveParams) const result = await setMonthPlanProApi(saveParams)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
setTimeout(() => { setTimeout(() => {
@ -1564,8 +1568,12 @@ export default {
state: '2' state: '2'
} }
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanProApi(saveParams) const result = await setMonthPlanProApi(saveParams)
uni.hideLoading()
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
this.$refs.popupAuditing.close() this.$refs.popupAuditing.close()

View File

@ -127,8 +127,9 @@
</swiper> </swiper>
</view> </view>
<view class="revoke" v-show="!isView || isView == 'false'"> <view class="revoke" v-show="!isView || isView == 'false'" @tap="onAuditingComplete">
<view @tap="onAuditingComplete" class="auditing-complete">审核完成</view> 审核完成
<!-- <view class="auditing-complete">/view> -->
<!-- <view <!-- <view
@tap="showModalFun(item.id)" @tap="showModalFun(item.id)"
v-for="item in btnList" v-for="item in btnList"
@ -557,7 +558,12 @@ export default {
this.getAUditingUserInfoData() this.getAUditingUserInfoData()
this.$refs.popupAuditing.open('center') this.$refs.popupAuditing.open('center')
} else { } else {
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await API(type === 1 ? params : this.params) const result = await API(type === 1 ? params : this.params)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' }) uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' })
setTimeout(() => { setTimeout(() => {
@ -704,8 +710,12 @@ export default {
} }
console.log('saveParams保存参数', params) console.log('saveParams保存参数', params)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await submitPlanApi(params) const result = await submitPlanApi(params)
uni.hideLoading()
console.log(result, 'results上报人提交结果') console.log(result, 'results上报人提交结果')
if (result.res == 1) { if (result.res == 1) {
@ -846,7 +856,7 @@ export default {
titleH titleH
.boundingClientRect(data => { .boundingClientRect(data => {
let pH = that._data.pH let pH = that._data.pH
that._data.navHeight = pH - data.top - bottomHeight - 48 that._data.navHeight = pH - data.top - bottomHeight - 16
}) })
.exec() .exec()
}) })
@ -871,19 +881,25 @@ export default {
} }
.revoke { .revoke {
width: 100%; width: 94%;
padding: 12px 0; // padding: 12px 0;
position: fixed; position: fixed;
bottom: 0; bottom: 12px;
left: 0; left: 3%;
display: flex; height: 70rpx;
justify-content: center; border-radius: 16rpx;
align-items: center; text-align: center;
line-height: 70rpx;
color: #fff;
background-color: #00337a;
// display: flex;
// justify-content: center;
// align-items: center;
// background-color: #fff; // background-color: #fff;
.auditing-complete { .auditing-complete {
width: 93%; width: 93%;
height: 70rpx;
margin: 0 auto; margin: 0 auto;
border-radius: 16rpx; border-radius: 16rpx;
text-align: center; text-align: center;

View File

@ -587,7 +587,12 @@ export default {
this.getAUditingUserInfoData() this.getAUditingUserInfoData()
this.$refs.popupAuditing.open('center') this.$refs.popupAuditing.open('center')
} else { } else {
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await API(type === 1 ? params : this.params) const result = await API(type === 1 ? params : this.params)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' }) uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' })
setTimeout(() => { setTimeout(() => {
@ -735,7 +740,13 @@ export default {
console.log('saveParams保存参数', params) console.log('saveParams保存参数', params)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await submitPlanProApi(params) const result = await submitPlanProApi(params)
uni.hideLoading()
console.log(result, 'results上报人提交结果') console.log(result, 'results上报人提交结果')
if (result.res == 1) { if (result.res == 1) {

View File

@ -1148,7 +1148,13 @@ export default {
// if (true) return // if (true) return
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanApi(saveParams) const result = await setMonthPlanApi(saveParams)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
setTimeout(() => { setTimeout(() => {
@ -1539,7 +1545,13 @@ export default {
} }
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanApi(saveParams) const result = await setMonthPlanApi(saveParams)
uni.hideLoading()
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
this.$refs.popupAuditing.close() this.$refs.popupAuditing.close()

View File

@ -1212,8 +1212,12 @@ export default {
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
// if (true) return // if (true) return
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanProApi(saveParams) const result = await setMonthPlanProApi(saveParams)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
setTimeout(() => { setTimeout(() => {
@ -1603,8 +1607,12 @@ export default {
state: '2' state: '2'
} }
console.log('saveParams保存参数', saveParams) console.log('saveParams保存参数', saveParams)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await setMonthPlanProApi(saveParams) const result = await setMonthPlanProApi(saveParams)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ icon: 'none', title: '保存成功!' }) uni.showToast({ icon: 'none', title: '保存成功!' })
this.$refs.popupAuditing.close() this.$refs.popupAuditing.close()

View File

@ -133,8 +133,9 @@
</swiper> </swiper>
</view> </view>
<view class="revoke" v-show="!isView || isView == 'false'"> <view class="revoke" v-show="!isView || isView == 'false'" @tap="onAuditingComplete">
<view @tap="onAuditingComplete" class="auditing-complete">审核完成</view> 审核完成
<!-- <view @tap="onAuditingComplete" class="auditing-complete"></view> -->
<!-- <view <!-- <view
@tap="showModalFun(item.id)" @tap="showModalFun(item.id)"
v-for="item in btnList" v-for="item in btnList"
@ -543,7 +544,12 @@ export default {
this.getAUditingUserInfoData() this.getAUditingUserInfoData()
this.$refs.popupAuditing.open('center') this.$refs.popupAuditing.open('center')
} else { } else {
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await API(type === 1 ? params : this.params) const result = await API(type === 1 ? params : this.params)
uni.hideLoading()
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' }) uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' })
setTimeout(() => { setTimeout(() => {
@ -693,7 +699,12 @@ export default {
uni.showLoading({ uni.showLoading({
title: '正在提交,请稍后...' title: '正在提交,请稍后...'
}) })
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await submitPlanApi(params) const result = await submitPlanApi(params)
uni.hideLoading()
console.log(result, 'results上报人提交结果') console.log(result, 'results上报人提交结果')
if (result.res == 1) { if (result.res == 1) {
@ -879,7 +890,7 @@ export default {
titleH titleH
.boundingClientRect(data => { .boundingClientRect(data => {
let pH = that._data.pH let pH = that._data.pH
that._data.navHeight = pH - data.top - bottomHeight - 48 that._data.navHeight = pH - data.top - bottomHeight - 16
}) })
.exec() .exec()
}) })
@ -905,13 +916,16 @@ export default {
.revoke { .revoke {
width: 94%; width: 94%;
padding: 12px 0; // padding: 12px 0;
position: fixed; position: fixed;
bottom: 0; bottom: 12px;
left: 3%; left: 3%;
display: flex; height: 70rpx;
justify-content: center; border-radius: 16rpx;
align-items: center; text-align: center;
line-height: 70rpx;
color: #fff;
background-color: #00337a;
// background-color: #fff; // background-color: #fff;
.auditing-complete { .auditing-complete {

View File

@ -139,8 +139,9 @@
</swiper> </swiper>
</view> </view>
<view class="revoke" v-show="!isView || isView == 'false'"> <view class="revoke" v-show="!isView || isView == 'false'" @tap="onAuditingComplete">
<view @tap="onAuditingComplete" class="auditing-complete">审核完成</view> 审核完成
<!-- <view @tap="onAuditingComplete" class="auditing-complete"></view> -->
<!-- <view <!-- <view
@tap="showModalFun(item.id)" @tap="showModalFun(item.id)"
v-for="item in btnList" v-for="item in btnList"
@ -640,7 +641,12 @@ export default {
this.getAUditingUserInfoData() this.getAUditingUserInfoData()
this.$refs.popupAuditing.open('center') this.$refs.popupAuditing.open('center')
} else { } else {
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await API(type === 1 ? params : this.params) const result = await API(type === 1 ? params : this.params)
uni.hideLoading({})
if (result.res == 1) { if (result.res == 1) {
uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' }) uni.showToast({ title: `${tipTitle}成功!`, icon: 'none' })
setTimeout(() => { setTimeout(() => {
@ -787,8 +793,12 @@ export default {
} }
console.log('saveParams保存参数', params) console.log('saveParams保存参数', params)
uni.showLoading({
title: '正在提交,请勿重复点击',
mask: true
})
const result = await submitPlanProApi(params) const result = await submitPlanProApi(params)
uni.hideLoading({})
console.log(result, 'results上报人提交结果') console.log(result, 'results上报人提交结果')
if (result.res == 1) { if (result.res == 1) {
@ -970,7 +980,7 @@ export default {
titleH titleH
.boundingClientRect(data => { .boundingClientRect(data => {
let pH = that._data.pH let pH = that._data.pH
that._data.navHeight = pH - data.top - bottomHeight - 48 that._data.navHeight = pH - data.top - bottomHeight - 16
}) })
.exec() .exec()
}) })
@ -995,14 +1005,17 @@ export default {
} }
.revoke { .revoke {
width: 100%; width: 94%;
padding: 12px 0; // padding: 12px 0;
position: fixed; position: fixed;
bottom: 0; bottom: 12px;
left: 0; left: 3%;
display: flex; height: 70rpx;
justify-content: center; border-radius: 16rpx;
align-items: center; text-align: center;
line-height: 70rpx;
color: #fff;
background-color: #00337a;
// background-color: #fff; // background-color: #fff;
.auditing-complete { .auditing-complete {

Binary file not shown.

After

Width:  |  Height:  |  Size: 957 B