This commit is contained in:
parent
4e65fff14b
commit
93d1aebcea
|
|
@ -22,7 +22,7 @@
|
|||
<div class="card top-content" :class="{ 'is-expanded': isExpanded }">
|
||||
<div class="card-header">
|
||||
<div class="title">
|
||||
任务信息 <span style="color: #8c8c8c">已选:{{ selectCodeList.length }}</span>
|
||||
<span class="title-line"></span> 任务信息 <span style="color: #8c8c8c">已选:{{ selectCodeList.length }}</span>
|
||||
</div>
|
||||
<button class="submit-btn" @click="submitCode">确 定</button>
|
||||
<uni-icons
|
||||
|
|
@ -1003,7 +1003,7 @@ onLoad((options) => {
|
|||
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;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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}` })
|
||||
}
|
||||
// 判断数据是否加载完毕
|
||||
|
|
|
|||
Loading…
Reference in New Issue