优化号源明细和模板

main
yanzai 1 month ago
parent caaec2b931
commit 111d40734a

@ -31,7 +31,7 @@
已勾选<span style="font-size: 26px;font-weight: 700;color: #be8548;">{{selected_count}}</span>
</div>
</div>
<div style="display: flex;justify-content: space-around; flex-wrap: wrap; height:calc(100vh - 200px);overflow: scroll;border: 1px solid #ccc;border-radius: 4px;" v-loading="loading">
<div style="display: flex;justify-content: space-around; flex-wrap: wrap; height:calc(100vh - 200px);overflow: scroll;border: 1px solid #ccc;border-radius: 4px;" v-loading="plan_loading">
<div :class="itemClasses(item)" v-for="(item,index) in list" :key="index" @click="TimeListClick(item,index)">
<div style="text-align: right;">
<el-tag v-if="item.is_vip==1" type="warning">VIP</el-tag>
@ -158,16 +158,18 @@
const route = useRoute()
const router = useRouter()
let loading = ref(false)
let plan_loading=ref(false)
let searchInfo = ref({})
let list = ref([]);
let unused_count=ref(0);
let used_count=ref(0);
const GetList = () => {
loading.value = true
selected_count.value=0
plan_loading.value = true
PlanGetList({
searchInfo: searchInfo.value,
}).then(res => {
loading.value = false
plan_loading.value = false
if (res.status) {
list.value = res.data.list
unused_count.value=res.data.unused_count

@ -403,9 +403,21 @@
return false
}
if (timeList.value[index].class == "timelist_button_selected") {
if(timeList.value[index].plan_type_id !=null){
PlanUseCount.value--
PlanUnuseCount.value++
PlabTypeList.value.forEach((t_v,t_i)=>{
if(timeList.value[index].plan_type_id==t_v.id){
t_v.count--
}
})
}
timeList.value[index].class = ""
timeList.value[index].type_color = null
timeList.value[index].plan_type_id = null
} else {
timeList.value[index].class = "timelist_button_selected"
}

Loading…
Cancel
Save