Sfoglia il codice sorgente

新增服务计划发送弹窗修改

duy 1 mese fa
parent
commit
a4d2952e64

+ 9 - 2
src/views/systemService/fromDrawer.vue

@@ -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(',')

+ 1 - 1
src/views/systemService/plan.vue

@@ -56,8 +56,8 @@
         <template #action>
             <HcPages :pages="searchForm" @change="pageChange" />
         </template>
+        <fromDrawer v-model="isShowForm" />
     </hc-card>
-    <fromDrawer v-model="isShowForm" />
 </template>
 
 <script setup>