浏览代码

待办任务修改

duy 2 年之前
父节点
当前提交
dbdaae03a3
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/views/tasks/components/TableCard.vue

+ 3 - 2
src/views/tasks/components/TableCard.vue

@@ -184,6 +184,7 @@ const queryTaskStatus = async () => {
 const ContractIdChange = () => {
     searchForm.value.batch = null
     queryBatchList()
+    queryUserStartFlow()
 }
 
 //获取上报批次
@@ -311,8 +312,8 @@ const queryUserStartFlow = async () => {
     //处理数据
     tableLoading.value = false
     if (!error && code === 200) {
-        tableListData.value = getArrValue(data['records'])
-        searchForm.value.total = data.total || 0
+        tableListData.value = getArrValue(data?.records) || []
+        searchForm.value.total = data?.total || 0
     } else {
         tableListData.value = []
         searchForm.value.total = 0