| | |
| | | import { getTreeList } from '/@/api/tigerapi/dept'; |
| | | import { BasicTree, TreeItem } from '/@/components/Tree'; |
| | | import { SaveUser } from '/@/api/tigerapi/account'; |
| | | |
| | | |
| | | type CheckKeys = KeyType[] | { checked: string[] | number[]; halfChecked: string[] | number[] }; |
| | | type _expandAll = KeyType[] | undefined; |
| | | const emits = defineEmits(['success', 'register']); |
| | | |
| | | |
| | | const isUpdate = ref(true); |
| | | const rowId = ref(''); |
| | | const treeDataOrg = ref<TreeItem[]>([]); |
| | |
| | | async function handleSubmit() { |
| | | try { |
| | | const values = await validate(); |
| | | console.log('提交4',values.STATUS_CODE == true?'ENABLE':'DISABLEDS') |
| | | console.log('提交4', values.STATUS_CODE == true ? 'ENABLE' : 'DISABLEDS'); |
| | | |
| | | // return |
| | | |
| | | console.log('提交',values.STATUS_CODE) |
| | | |
| | | console.log('提交', values.STATUS_CODE); |
| | | setModalProps({ confirmLoading: true }); |
| | | // TODO custom api |
| | | //保存用户 |
| | | const apiAction = SaveUser(values, unref(isUpdate)); |
| | | console.log('保存',values) |
| | | console.log('保存', values); |
| | | // values.STATUS_CODE = values.STATUS_CODE == true?'ENABLE':'DISABLEDS' |
| | | apiAction.then((action) => { |
| | | if (action.IsSuccessed) { |