diff --git a/src/components/UserSelection/src/UserPicker.vue b/src/components/UserSelection/src/UserPicker.vue
index 5499825d..3265771d 100644
--- a/src/components/UserSelection/src/UserPicker.vue
+++ b/src/components/UserSelection/src/UserPicker.vue
@@ -3,10 +3,11 @@
import { TreeNodeData } from 'element-plus/es/components/tree/src/tree.type'
import { type ElTree } from 'element-plus'
import { reactive, ref, watch } from 'vue'
- import { getList } from '/@/views/baseinfo/clientflowtemplate/api'
+ import { getUsetList } from '/@/views/baseinfo/clientflowtemplate/api'
import { School, Check } from '@element-plus/icons-vue'
import Node from 'element-plus/es/components/tree/src/model/node'
-
+ import { useAppStore } from '/@/store/modules/app'
+ const appStore = useAppStore()
export type ModelValueType = string | string[] | null | undefined
export interface UserDropdownProps {
@@ -91,12 +92,17 @@
dialogVisible.value = true
}
const onOpen = () => {
- getList().then((res) => {
+ getUsetList().then((res) => {
if (res.succeeded) {
+ res.data.forEach((item) => {
+ item.value = item.id
+ item.label = item.userName
+ })
+ appStore.setUserList(res.data)
userOrgOptions.value = res.data.map((e) => {
return {
- id: e.value,
- name: e.label,
+ id: e.id,
+ name: e.userName,
type: 'user',
leaf: true,
avatar: e.avatar,
diff --git a/src/components/UserSelection/src/UserTag.vue b/src/components/UserSelection/src/UserTag.vue
index 0c75ffbc..24055d58 100644
--- a/src/components/UserSelection/src/UserTag.vue
+++ b/src/components/UserSelection/src/UserTag.vue
@@ -1,8 +1,9 @@
diff --git a/src/views/baseinfo/clientflowtemplate/api.ts b/src/views/baseinfo/clientflowtemplate/api.ts
index 2516c157..dfb214d8 100644
--- a/src/views/baseinfo/clientflowtemplate/api.ts
+++ b/src/views/baseinfo/clientflowtemplate/api.ts
@@ -14,6 +14,7 @@ enum Api {
GetTables = '/mainApi/Common/GetTables',
getClientPermissionTreeList = '/mainApi/Common/GetClientPermissionTreeList',
getList = '/mainApi/Common/GetUserList',
+ getUsetList = '/mainApi/User/GetUserList',
downloadXml = '/stage-api/workflow/model/download',
getByUsername = '/stage-api/user/info',
getById = '/stage-api/role/info',
@@ -89,6 +90,15 @@ export function getList() {
method: 'get',
})
}
+// 获取全部用户
+export function getUsetList() {
+ return request({
+ url: Api.getUsetList,
+ method: 'post',
+ data:{queryCondition:"[]",pageCondition:{pageIndex:1,pageSize:9999,sortConditions:[]}}
+ })
+}
+
// 详情
export function getTenantAuditInfo(query: { id: string }) {
return request({
diff --git a/src/views/baseinfo/infoclient/TenantAuditStepModal.vue b/src/views/baseinfo/infoclient/TenantAuditStepModal.vue
index cc22fdbc..d2e58a09 100644
--- a/src/views/baseinfo/infoclient/TenantAuditStepModal.vue
+++ b/src/views/baseinfo/infoclient/TenantAuditStepModal.vue
@@ -491,6 +491,10 @@
})
}
if (type) {
+ console.log(res.data, '??????????????????')
+ if (!res.data.serviceItemCodes) {
+ res.data.serviceItemCodes = []
+ }
await setFieldsValue({
...res.data,
})
diff --git a/src/views/baseinfo/infoclient/columns.tsx b/src/views/baseinfo/infoclient/columns.tsx
index d936d9b5..978cbcbe 100644
--- a/src/views/baseinfo/infoclient/columns.tsx
+++ b/src/views/baseinfo/infoclient/columns.tsx
@@ -19,7 +19,8 @@ import {
} from '/@/views/operation/seaexport/api/BookingLedger'
import { useOptionsStore } from '/@/store/modules/options'
const optionsStore = useOptionsStore()
-
+import { useRoute } from 'vue-router'
+const route = useRoute()
// exports {}
let ClientFrtList = []
const res: API.DataResult = await getClientFrtSelectList()
@@ -949,10 +950,18 @@ export const formSchema: FormSchema[] = [
component: 'ApiSelect',
colProps: { span: 12 },
componentProps: {
- api: GetServiceProjectList,
+ api: () => {
+ return new Promise((resolve) => {
+ GetServiceProjectList({
+ queryType: 0,
+ }).then((res) => {
+ resolve(res.data)
+ })
+ })
+ },
labelField: 'projectName',
valueField: 'projectCode',
- resultField: 'data.ext',
+ resultField: 'ext',
allowClear: true,
mode: 'multiple',
class: 'NoLimitHeight',
@@ -965,7 +974,7 @@ export const formSchema: FormSchema[] = [
colProps: { span: 12 },
componentProps: {
api: getNotifications,
- labelField: 'label',
+ labelField: 'name',
valueField: 'value',
resultField: 'data',
allowClear: true,
diff --git a/src/views/baseinfo/package/columns.tsx b/src/views/baseinfo/package/columns.tsx
index 7810681b..1a468dbc 100644
--- a/src/views/baseinfo/package/columns.tsx
+++ b/src/views/baseinfo/package/columns.tsx
@@ -88,7 +88,6 @@ export const formSchema: FormSchema[] = [
field: 'cnExplain',
label: '中文说明',
component: 'InputTextArea',
- required: true,
colProps: { span: 20 },
componentProps: {
rows: 2,
diff --git a/src/views/system/user/UserPermissionModal.vue b/src/views/system/user/UserPermissionModal.vue
index 85e75cb1..ec4c0e07 100644
--- a/src/views/system/user/UserPermissionModal.vue
+++ b/src/views/system/user/UserPermissionModal.vue
@@ -2,12 +2,12 @@
-
+
-
-
-
-
-
+
+
@@ -59,12 +46,8 @@
import { BasicModal, useModalInner } from '/@/components/Modal'
import { BasicTree, TreeItem } from '/@/components/Tree'
import dataruleIndex from './dataruleIndex.vue'
- import dataruleInfo from './dataruleInfo.vue'
-
import { PopConfirmButton } from '/@/components/Button'
- // import { queryTreeListForRole, queryRolePermission, saveRolePermission } from '../role.api';
import { GetClientUserPermissions } from './api'
- // const emit = defineEmits(['register']);
//树的信息
const treeData = ref([])
//树的实例
@@ -96,30 +79,8 @@
})
if (type) {
permissionId.value = checkedKeys[0]
- InfoId.value = ''
- RefdataruleInfo.value.resetFields()
- RefdataruleInfo.value.setFieldsValue({ permissionId: permissionId.value })
}
}
- const RefdataruleIndex = ref()
- const RefdataruleInfo = ref()
- // 新增
- function Create() {
- console.log(permissionId.value)
-
- RefdataruleIndex.value.clearSelectedRowKeys()
- RefdataruleInfo.value.resetFields()
- RefdataruleInfo.value.setFieldsValue({ permissionId: permissionId.value })
- }
- // 保存成功
- function success() {
- RefdataruleIndex.value.reload()
- }
- const InfoId = ref('')
- // 改变选中
- function ChangeSelect(data) {
- InfoId.value = data[0]
- }
/**
* 数据重置
*/
@@ -133,7 +94,6 @@
* 提交
*/
async function handleSubmit(exit) {
- RefdataruleInfo.value.handleSave()
if (exit) {
closeModal()
}
diff --git a/src/views/system/user/dataruleIndex.vue b/src/views/system/user/dataruleIndex.vue
index 42a11165..dc87719f 100644
--- a/src/views/system/user/dataruleIndex.vue
+++ b/src/views/system/user/dataruleIndex.vue
@@ -9,11 +9,20 @@
-
- {{ record.roleName }}
+
+
+