diff --git a/src/pages/back/backCode.vue b/src/pages/back/backCode.vue index e574059..c1487c9 100644 --- a/src/pages/back/backCode.vue +++ b/src/pages/back/backCode.vue @@ -22,7 +22,7 @@
- 任务信息 已选:{{ selectCodeList.length }} + 任务信息 已选:{{ selectCodeList.length }}
{ position: relative; padding-left: 24rpx; - &::before { + .title-line { content: ''; position: absolute; left: 0; @@ -1183,7 +1183,8 @@ onLoad((options) => { transition: max-height 0.5s ease-out; &.is-expanded { - height: auto !important; + height: 700px !important; + overflow: visible !important; } } diff --git a/src/pages/back/backCodeDetail.vue b/src/pages/back/backCodeDetail.vue index 10796e7..dd41c20 100644 --- a/src/pages/back/backCodeDetail.vue +++ b/src/pages/back/backCodeDetail.vue @@ -174,8 +174,10 @@ const delRow = (item) => { "maId":item.maId, } console.log(param) + uni.showLoading({ title: '加载中', mask: true }) deleteMaCode(param).then(res => { console.log(res) + uni.hideLoading() if(res.code==200){ uni.showToast({ title: '删除成功', icon: 'none' }) getCodeList() @@ -184,6 +186,7 @@ const delRow = (item) => { } }).catch(error => { console.log(error) + uni.hideLoading() }) } diff --git a/src/pages/back/index.vue b/src/pages/back/index.vue index 4f71ac0..1a4a527 100644 --- a/src/pages/back/index.vue +++ b/src/pages/back/index.vue @@ -155,6 +155,7 @@ const dateArray = ref([ new Date().toISOString().split('T')[0] ]) // 日期范围 const swipeRef = ref() +const isDel = ref(false) // 签字状态选项 const signOptions = ref([ { value: 0, text: "全部" }, @@ -229,6 +230,7 @@ const options2 = ref([ //点击事件 const onClick=(e,item,itemIndex)=> { console.log('🚀 ~ onClick ~ item:', item) + isDel.value = true const { index } = e console.log(index) // if (index === 0) { @@ -280,8 +282,14 @@ const onClick=(e,item,itemIndex)=> { }else{ uni.showToast({ title: '删除失败', icon: 'none' }) } + setTimeout(() => { + isDel.value = false + }, 500); }).catch(error => { console.log(error) + setTimeout(() => { + isDel.value = false + }, 500); }) } swipeRef.value[itemIndex].closeAll() @@ -345,6 +353,7 @@ const goAdd = () => { //点击详情 const handleItem = (item) => { console.log('🚀 ~ handleItem ~ item:', item) + if (isDel.value) return uni.navigateTo({ url: `/pages/back/detail?id=${item.id}&taskId=${item.taskId}&appTaskStatus=${queryParams.value.appTaskStatus}&proId=${item.proId}&unitId=${item.unitId}` }) } // 判断数据是否加载完毕