|
@@ -86,6 +86,7 @@
|
|
|
import { ref } from 'vue'
|
|
|
import { arrToKey, deepClone, getObjValue } from 'js-fast-way'
|
|
|
import HcUserModal from './hc-tasks-user/user-modal.vue'
|
|
|
+import { useAppStore } from '~src/store'
|
|
|
const isShow = defineModel('modelValue', {
|
|
|
default: false,
|
|
|
})
|
|
@@ -95,7 +96,9 @@ const excelHtmlData = ref('')
|
|
|
const loading = ref(false)
|
|
|
const excelIdVal = ref('')
|
|
|
const isTableForm = ref(false)
|
|
|
-
|
|
|
+const useAppState = useAppStore()
|
|
|
+const projectId = ref(useAppState.getProjectId)
|
|
|
+const contractId = ref(useAppState.getContractId)
|
|
|
//渲染表单完成
|
|
|
const tableFormRender = (form) => {
|
|
|
isTableForm.value = form.isRenderForm
|
|
@@ -109,9 +112,13 @@ const sendPlan = ()=>{
|
|
|
}
|
|
|
const isUserModalShow = ref(false)
|
|
|
const userData = ref([])
|
|
|
-const dataInfo = ref({})
|
|
|
+const dataInfo = ref({
|
|
|
+ projectId:projectId.value,
|
|
|
+ contractId:contractId.value,
|
|
|
+})
|
|
|
const fixedUserFinish = (data) => {
|
|
|
const res = deepClone(data)
|
|
|
+ console.log(res, 'res')
|
|
|
userData.value = res
|
|
|
const userIds = arrToKey(res, 'userId', ',')
|
|
|
let userIdsArr = userIds.split(',')
|