diff --git a/src/api/hr/org/index.ts b/src/api/hr/org/index.ts
index a07b062..5125b67 100644
--- a/src/api/hr/org/index.ts
+++ b/src/api/hr/org/index.ts
@@ -1,6 +1,6 @@
import request from '@/utils/axios/index'
import { AxiosPromise } from 'axios';
-import { searchFormTitle,orgClassListCont,addOrgTypesCont,orgClassCont,editOrgTypeEditOrDel,searchOrgCont,orgInfo,addOrgInfo,editOrgDel,searchTeamList,orgTeamListCont,orgFormTree,archivesList,getContId,dimissionRateQuery,orgAndPeople,sendOrgCont,eduStruCont,outputOrgAndUser,orgId,targetCanShu,dlTargetTbHbfenxi,dlTargetTbHbfenxis,orgGardes,attributePage } from './type';
+import { searchFormTitle,orgClassListCont,addOrgTypesCont,orgClassCont,editOrgTypeEditOrDel,searchOrgCont,orgInfo,addOrgInfo,editOrgDel,searchTeamList,orgTeamListCont,orgFormTree,archivesList,getContId,dimissionRateQuery,orgAndPeople,sendOrgCont,eduStruCont,outputOrgAndUser,orgId,targetCanShu,dlTargetTbHbfenxi,dlTargetTbHbfenxis,orgGardes,attributePage,searchUserListForm } from './type';
import { pageId } from "@/api/common/type"
@@ -418,3 +418,12 @@ export function getpositioncont(data: getContId){
data: data
});
}
+
+//自定义表单搜索人员
+export function searchUserList(data: searchUserListForm){
+ return request({
+ url: '/systemapi/task_flow/searchUserList',
+ method: 'post',
+ data: data
+ });
+}
\ No newline at end of file
diff --git a/src/api/hr/org/type.ts b/src/api/hr/org/type.ts
index 93d7995..74826ba 100644
--- a/src/api/hr/org/type.ts
+++ b/src/api/hr/org/type.ts
@@ -291,3 +291,8 @@ export interface attributePage extends pageTurning{
}
+
+export interface searchUserListForm extends orgFormSeachUsers{
+ name?: string;
+ department?:number;
+}
\ No newline at end of file
diff --git a/src/components/lowCode/assistant/departmentOrg copy.vue b/src/components/lowCode/assistant/departmentOrg copy.vue
new file mode 100644
index 0000000..6c34a6f
--- /dev/null
+++ b/src/components/lowCode/assistant/departmentOrg copy.vue
@@ -0,0 +1,309 @@
+
+
+
+
+ {{ myconfig }}
+
+
+ {{valPrint(value,orgPeople)}}
+
+
\ No newline at end of file
diff --git a/src/components/lowCode/assistant/departmentOrg.vue b/src/components/lowCode/assistant/departmentOrg.vue
index 9844706..6c80f45 100644
--- a/src/components/lowCode/assistant/departmentOrg.vue
+++ b/src/components/lowCode/assistant/departmentOrg.vue
@@ -155,30 +155,66 @@ const updateModel = (val: any) => {
attribute: controlAttribute
})
}
+const myOrg = ref("")
const peopleLoading = ref(false)
+const selectList = ref([]);
onMounted(()=>{
peopleLoading.value = true
getUserCont()
.then((data:any)=>{
+ // myconfig.value = data.data
+ selectList.value=[];
+ if(data.data.organization != "" && data.data.organizationgname != ""){
+ selectList.value.push({
+ value: data.data.organization*1,
+ label: data.data.organizationgname,
+ })
+ value.value = data.data.organization
+ myOrg.value = data.data.organizationgname
+ }else if(data.data.department != "" && data.data.departmentname != ""){
+ selectList.value.push({
+ value: data.data.department*1,
+ label: data.data.departmentname,
+ })
+ value.value = data.data.department
+ myOrg.value = data.data.department
+ }else if(data.data.company != "" && data.data.companyname != ""){
+ selectList.value.push({
+ value: data.data.company*1,
+ label: data.data.companyname,
+ })
+ value.value = data.data.company
+ myOrg.value = data.data.companyname
+ }else{
+ selectList.value.push({
+ value: 309,
+ label: "恒信高科",
+ })
+ value.value = "309"
+ myOrg.value = "恒信高科"
+ }
+
let orgId = data.data.company
let userId = data.data.organization*1
if(orgId == null || orgId == ""){
orgId = "309"
- }
+ }
+
nextTick(()=>{
- getOrgTreeList({"orgid":orgId*1})
- // getOrgEveryonePeople({"id":orgId.toString()})
- .then(({data})=>{
- orgPeople.value = data
- if(value.value == null || value.value == "" || value.value == undefined){
- nextTick(()=>{
- value.value = userId
- })
- }
- })
- .finally(()=>{
- peopleLoading.value = false
- })
+ // getOrgTreeList({"orgid":orgId*1})
+ // // getOrgEveryonePeople({"id":orgId.toString()})
+ // .then(({data})=>{
+ // orgPeople.value = data
+ // if(value.value == null || value.value == "" || value.value == undefined){
+ // nextTick(()=>{
+ // value.value = userId
+ // })
+ // }
+ // })
+ // .finally(()=>{
+ // peopleLoading.value = false
+ // })
+ // peopleLoading.value = false
});
})
@@ -189,10 +225,11 @@ const orgTreeProps ={
}
interface TreeNodeInfo {
- value: number;
+ value: number|string;
label: string;
}
+
function treeData(node: orgInfo[],title: TreeNodeInfo[]){
// let title = new Array
@@ -258,20 +295,17 @@ const valPrint = (val:any,orgList:orgInfo[]) => {
-
+
+
+
- {{valPrint(value,orgPeople)}}
+ {{ myOrg }}
\ No newline at end of file
diff --git a/src/views/formTable/pageInfo.vue b/src/views/formTable/pageInfo.vue
index 71ceceb..fe80e08 100644
--- a/src/views/formTable/pageInfo.vue
+++ b/src/views/formTable/pageInfo.vue
@@ -137,6 +137,7 @@ watch(() => openPage.value,(val:boolean) => {
if(props.stateForm.type != 1){
formDesign.value.setValue(data.tableData);
}
+
});
})
.finally(() => {
@@ -178,6 +179,13 @@ watch(() => openPage.value,(val:boolean) => {
}
},{deep: true})
+//刷新页面
+const reastSearchPage = () => {
+ console.log("刷新页面------1----------->")
+ emits("searchData")
+ console.log("刷新页面---------2------------->")
+}
+
/**
@ 作者: 秦东
@ 时间: 2024-04-07 10:55:34
@@ -188,27 +196,30 @@ const afterSubmit = (type: string,val?:any) => {
switch (type) {
case "success":
- emits("searchData")
+ reastSearchPage()
handleClose()
break;
case "runFlow":
+ // reastSearchPage()
flowLogPage.value.runWorkFlow(val)
- emits("searchData")
- handleClose()
+ nextTick(()=>{
+
+ handleClose()
+ })
break
case "reapplyFlow":
flowLogPage.value.reapplyWorkFlow(val)
handleClose()
- emits("searchData")
+ reastSearchPage()
break;
case "draftRunFlow":
flowLogPage.value.rundraftWorkFlow(val)
handleClose()
- emits("searchData")
+ reastSearchPage()
break;
case "closePage":
- emits("searchData")
+ reastSearchPage()
handleClose()
break;
default:
@@ -428,7 +439,7 @@ const changeKeyVal = (key: any, val: any, type: any, attribute: any) => {
:after-submit="afterSubmit"
:change-key-val="changeKeyVal"
/>
-
+
")
cardPageRef.value.requeryList();
drawerOpen.value = false;
}
+provide("searchList",chaxunData)
/**
@ 作者: 秦东
@ 时间: 2024-03-28 13:17:46
@@ -650,11 +652,11 @@ const performAction = (val) => {}
-
-
-
-
-
+
+
+
+
+
diff --git a/tsconfig.app.json b/tsconfig.app.json
index c54e602..e013013 100644
--- a/tsconfig.app.json
+++ b/tsconfig.app.json
@@ -1,11 +1,14 @@
{
"compilerOptions": {
- "target": "ES2020",
+ "outDir": "build",
+ "target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
-
+ "paths":{
+ "@/*":["./src/*"]
+ },
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
diff --git a/tsconfig.node.json b/tsconfig.node.json
index a78cc5d..0da4288 100644
--- a/tsconfig.node.json
+++ b/tsconfig.node.json
@@ -1,6 +1,7 @@
{
"compilerOptions": {
- "target": "ES2022",
+ "outDir": "build",
+ "target": "ESNext",
"lib": ["ES2023","DOM","DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,