فهرست منبع

待办任务增加入参

duy 1 سال پیش
والد
کامیت
87eb82264b
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      src/views/tasks/components/TableCard.vue

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

@@ -104,7 +104,7 @@
 import { nextTick, ref, watch } from 'vue'
 import { getArrValue } from 'js-fast-way'
 import tasksApi from '~api/tasks/data'
-
+import { useAppStore } from '~src/store'
 //参数
 const props = defineProps({
     projectId: {
@@ -124,13 +124,15 @@ const props = defineProps({
         default: '',
     },
 })
-
 //事件
 const emit = defineEmits(['rowTaskName', 'signRules', 'batchApproval'])
+//初始变量
+const useAppState = useAppStore()
 //变量
 const projectId = ref(props.projectId)
 const contractId = ref(props.contractId)
 const isTableKey = ref(props.tableKey)
+const currentContractId = ref(useAppState.getContractId)
 
 //监听
 watch(() => [
@@ -275,6 +277,7 @@ const queryUserToDoTaskList = async () => {
     const { error, code, data } = await tasksApi.queryUserToDoTaskList({
         ...searchForm.value,
         projectId: projectId.value,
+        currentContractId:currentContractId.value,
     })
     //处理数据
     tableLoading.value = false