|
|
@ -6,10 +6,10 @@ |
|
|
|
</view> |
|
|
|
<scroll-view scroll-y="true" class="scroll-Y"> |
|
|
|
<u-checkbox-group class="item" @change="checkChange"> |
|
|
|
<u-checkbox class="dec" v-model="item.checked" v-for="(item, index) in list" :key="index" :name="item.personName">{{ item.personName }}</u-checkbox> |
|
|
|
<u-checkbox class="dec" v-model="item.checked" v-for="(item, index) in list" :key="index" :name="item">{{ item.personName }}</u-checkbox> |
|
|
|
</u-checkbox-group> |
|
|
|
</scroll-view> |
|
|
|
|
|
|
|
<u-button form-type="button" style="color:#ffffff;backgroundColor:#3C9CFF;" @click="onSubmit">确认选择</u-button> |
|
|
|
|
|
|
|
<!-- <view class="item" v-for="(item, index) in list" :key="index" @click="openDetail(item)">--> |
|
|
|
<!-- <view class="dec">--> |
|
|
@ -42,7 +42,7 @@ const data = ref({ |
|
|
|
searchValue: '' |
|
|
|
}) |
|
|
|
let show = false |
|
|
|
|
|
|
|
let checked = [] |
|
|
|
/* 是否显示"没有更多了" */ |
|
|
|
const status = ref('loadmore') |
|
|
|
/* 列表数据集 */ |
|
|
@ -51,6 +51,7 @@ function checkChange(checkedArray: string | any[]) { |
|
|
|
if (checkedArray.length == 0){ |
|
|
|
show = true |
|
|
|
} |
|
|
|
checked = checkedArray |
|
|
|
} |
|
|
|
/* 列表调用API方法 */ |
|
|
|
async function getList() { |
|
|
@ -58,21 +59,19 @@ async function getList() { |
|
|
|
status.value = 'loading' |
|
|
|
proxy.$modal.loading('加载中') |
|
|
|
await workSchedulingApi.getConfigProcessWorker({ |
|
|
|
planDayCode: "PO20240426-0022", |
|
|
|
processCode: "FF-CY-002", |
|
|
|
planDayCode: "PO20240429-0008", |
|
|
|
processCode: "DLJ_CY_01", |
|
|
|
teamCode: "T01" |
|
|
|
}).then((res) => { |
|
|
|
// if(res.data.leader){ |
|
|
|
// list.value = res.data.list |
|
|
|
// }else{ |
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
title: 'test' |
|
|
|
}) |
|
|
|
uni.setStorageSync('processReportList', res.data.list); |
|
|
|
uni.setStorageSync("isLeader", res.data.leader) |
|
|
|
if (res.data.leader) { |
|
|
|
list.value = res.data.list |
|
|
|
} else { |
|
|
|
uni.setStorageSync("processReportList", res.data.list) |
|
|
|
uni.redirectTo({ |
|
|
|
url: './processReportForm' |
|
|
|
}); |
|
|
|
// } |
|
|
|
url: "./processReportForm" |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
proxy.$modal.closeLoading() |
|
|
|
} |
|
|
@ -88,6 +87,12 @@ onShow(() => { |
|
|
|
list.value = [] |
|
|
|
getList() |
|
|
|
}) |
|
|
|
function onSubmit() { |
|
|
|
uni.setStorageSync("processReportList", checked) |
|
|
|
uni.redirectTo({ |
|
|
|
url: "./processReportForm" |
|
|
|
}) |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|