瀏覽代碼

参数增加

duy 1 年之前
父節點
當前提交
a8de36cc0f
共有 2 個文件被更改,包括 30 次插入2 次删除
  1. 1 1
      src/global/components/hc-report-modal/index.vue
  2. 29 1
      src/global/components/hc-tasks-user/index.vue

+ 1 - 1
src/global/components/hc-report-modal/index.vue

@@ -34,7 +34,7 @@
             <el-form-item v-if="diyProcessUser" label="任务人" prop="userTasks">
                 <HcTasksUser
                     :contract-id="contractId" :project-id="projectId" :type="type" :type-data="typeData"
-                    ui="w-full" @change="diyProcessUserChange"
+                    ui="w-full" :classify-type="classifyType" :table-owner="tableOwner" :node-id="formModel.ids" @change="diyProcessUserChange"
                 />
             </el-form-item>
             <el-form-item v-else label="任务人">

+ 29 - 1
src/global/components/hc-tasks-user/index.vue

@@ -180,6 +180,19 @@ const props = defineProps({
         type: [String, Number, Array, Object],
         default: '',
     },
+    classifyType: {
+        type: [String, Number],
+        default: '',
+    },
+    tableOwner: {
+        type: [String, Number],
+        default: '',
+    },
+    nodeId: {
+        type: [String, Number],
+        default: '',
+    },
+
 })
 
 //事件
@@ -193,6 +206,9 @@ const projectId = ref(props.projectId)
 const contractId = ref(props.contractId)
 const isTypes = ref(props.type)
 const typeDatas = ref(props.typeData)
+const classifyType = ref(props.classifyType)
+const tableOwner = ref(props.tableOwner)
+const nodeId = ref(props.nodeId)
 
 //树数据
 const ElTreeProps = { children: 'childRoleList', label: 'roleName' }
@@ -210,12 +226,18 @@ watch(() => [
     props.contractId,
     props.type,
     props.typeData,
-], ([users, pid, cid, type, data]) => {
+    props.classifyType,
+    props.tableOwner,
+    props.nodeId,
+], ([users, pid, cid, type, data, cla, tab, noid]) => {
     projectId.value = pid
     contractId.value = cid
     isTypes.value = type
     typeDatas.value = data
     setUserDataList(users)
+    classifyType.value = cla
+    tableOwner.value = tab
+    nodeId.value = noid
 })
 
 //渲染完成
@@ -367,6 +389,9 @@ const getCheckCustomFlowUserIsEVisaPermissions = async (flowJson, newUser, newUs
         contractId: contractId.value,
         customFlowUserList: newUserId,
         ...flowJson,
+        classifyType:classifyType.value,
+        tableOwner:tableOwner.value,
+
     })
     //处理数据
     sureSignUserLoading.value = false
@@ -384,6 +409,9 @@ const getCheckCustomFlowUserIsEVisaPermissionsquery = async (flowJson, newUser,
         contractId: contractId.value,
         customFlowUserList: newUserId,
         ...flowJson,
+        nodeId:nodeId.value,
+        classifyType:classifyType.value,
+        tableOwner:tableOwner.value,
     })
     //处理数据
     sureSignUserLoading.value = false