diff --git a/src/pages/mes/workScheduling/processReportPeopleCheck.vue b/src/pages/mes/workScheduling/processReportPeopleCheck.vue
index b997156..53fae18 100644
--- a/src/pages/mes/workScheduling/processReportPeopleCheck.vue
+++ b/src/pages/mes/workScheduling/processReportPeopleCheck.vue
@@ -5,8 +5,8 @@
-
- {{ item.personName }}
+
+ {{ item.personName }}
确认选择
@@ -27,8 +27,6 @@ import { onLoad, onShow } from "@dcloudio/uni-app"
import { getCurrentInstance, ref } from "vue"
/* 引入API */
import tags from "@components/tags/index.vue"
-import * as workSchedulingApi from "@/api/mes/workScheduling"
-import * as workSchedulingListApi from "@/api/mes/workScheduling"
import { _toast } from "@/utils/common"
const { proxy } = getCurrentInstance()
@@ -48,20 +46,17 @@ const data = ref({
const status = ref('loadmore')
/* 列表数据集 */
const list = ref([])
-let checked: string | any[] = []
-function checkChange(checkedArray: any[]) {
- checked = checkedArray
-}
+const searchList = ref([])
/* 打开详情页 */
function openDetail(item: any) {
console.log(item)
// proxy.$tab.navigateTo(`/pages/mes/orderDapPlan/detail?obj=${item}`)
}
function filterList(){
- list.value = []
- uni.getStorageSync("processReportList").forEach(person=>{
+ searchList.value = []
+ list.value.forEach(person=>{
if (person.personName.includes(data.value.nickName)){
- list.value.push(person)
+ searchList.value.push(person)
}
})
}
@@ -69,7 +64,15 @@ function filterList(){
onShow(() => {
})
function onSubmit() {
- if (checked.length == 0){
+ let checked = false
+ debugger
+ for(let i=0; i {
list.value = uni.getStorageSync("processReportList")
+ searchList.value = list.value //展示的数据从searchList中取,并不是storage中的完整数据,同时需要改变storage数据的check状态,因此这里需要指针引用
})