|
@@ -73,6 +73,13 @@ import { getLoginStatusEnumItemName } from '@/common/constants/enumsName';
|
|
|
import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
|
import BtnList from '@/common/components/btnList/index.vue';
|
|
import BtnList from '@/common/components/btnList/index.vue';
|
|
|
|
|
|
|
|
|
|
+import { ErmcpLoginUserEx } from '@/services/go/ermcp/account/interface';
|
|
|
|
|
+import { getUserName } from '@/services/bus/user';
|
|
|
|
|
+import { _handleTableList } from '../setup';
|
|
|
|
|
+import { ref } from 'vue';
|
|
|
|
|
+import { handleModalComponent } from '@/common/setup/asyncComponent';
|
|
|
|
|
+import { getBtnList_ } from '@/common/setup/table/button';
|
|
|
|
|
+
|
|
|
const Add = defineAsyncComponent(() => import('../../compoments/add-business/index.vue'));
|
|
const Add = defineAsyncComponent(() => import('../../compoments/add-business/index.vue'));
|
|
|
const Modify = defineAsyncComponent(() => import('../../compoments/modify-business/index.vue'));
|
|
const Modify = defineAsyncComponent(() => import('../../compoments/modify-business/index.vue'));
|
|
|
const Reset = defineAsyncComponent(() => import('../../compoments/reset-business/index.vue'));
|
|
const Reset = defineAsyncComponent(() => import('../../compoments/reset-business/index.vue'));
|
|
@@ -81,13 +88,6 @@ const Cancel = defineAsyncComponent(() => import('../../compoments/cancel-busine
|
|
|
const Detail = defineAsyncComponent(() => import('../../compoments/detail-business/index.vue'));
|
|
const Detail = defineAsyncComponent(() => import('../../compoments/detail-business/index.vue'));
|
|
|
const Unlocked = defineAsyncComponent(() => import('../../compoments/unlocked-business/index.vue'));
|
|
const Unlocked = defineAsyncComponent(() => import('../../compoments/unlocked-business/index.vue'));
|
|
|
|
|
|
|
|
-import { ErmcpLoginUser, ErmcpLoginUserEx } from '@/services/go/ermcp/account/interface';
|
|
|
|
|
-import { getUserName } from '@/services/bus/user';
|
|
|
|
|
-import { handleModalData, handleTableList } from '../setup';
|
|
|
|
|
-import { ref } from 'vue';
|
|
|
|
|
-import { handleModalComponent } from '@/common/setup/asyncComponent';
|
|
|
|
|
-import { getBtnList_ } from '@/common/setup/table/button';
|
|
|
|
|
-
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'account_info_business',
|
|
name: 'account_info_business',
|
|
|
components: {
|
|
components: {
|
|
@@ -108,13 +108,9 @@ export default defineComponent({
|
|
|
const { tableList, queryTable } = handlerManagerList(loading, 1);
|
|
const { tableList, queryTable } = handlerManagerList(loading, 1);
|
|
|
const [firstBtn, secondBtn] = getBtnList_('account_info_business', true).value;
|
|
const [firstBtn, secondBtn] = getBtnList_('account_info_business', true).value;
|
|
|
|
|
|
|
|
- // 新增弹窗 角色类型
|
|
|
|
|
- const { selectedData: addModelData, openAction } = handleModalData<ErmcpLoginUserEx>();
|
|
|
|
|
- // 修改 重置密码、详情等弹窗
|
|
|
|
|
- const { selectedData: moreModelData, openAction: moreOptenAction } = handleModalData<ErmcpLoginUser>();
|
|
|
|
|
// 处理根据状态显示对应按钮
|
|
// 处理根据状态显示对应按钮
|
|
|
function handleBtnAction() {
|
|
function handleBtnAction() {
|
|
|
- handleTableList(queryTable, tableList, secondBtn);
|
|
|
|
|
|
|
+ _handleTableList(queryTable, tableList, secondBtn);
|
|
|
}
|
|
}
|
|
|
// 弹窗选中的数据
|
|
// 弹窗选中的数据
|
|
|
const selectedData = ref<ErmcpLoginUserEx>();
|
|
const selectedData = ref<ErmcpLoginUserEx>();
|
|
@@ -134,11 +130,7 @@ export default defineComponent({
|
|
|
tableList,
|
|
tableList,
|
|
|
getLoginStatusEnumItemName,
|
|
getLoginStatusEnumItemName,
|
|
|
handleBtnAction,
|
|
handleBtnAction,
|
|
|
- moreModelData,
|
|
|
|
|
getUserName,
|
|
getUserName,
|
|
|
- openAction,
|
|
|
|
|
- addModelData,
|
|
|
|
|
- moreOptenAction,
|
|
|
|
|
componentId,
|
|
componentId,
|
|
|
closeComponent,
|
|
closeComponent,
|
|
|
openComponent,
|
|
openComponent,
|