Ben Lin
2024-06-14 509366a157059aeaf6daa2492cf32e108a8ca104
src/views/tigerprojects/system/account/AccountModal.vue
@@ -25,12 +25,11 @@
  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[]>([]);
@@ -83,16 +82,16 @@
  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) {