Browse Source

fix: check eslint warnings

master
wangxiang 2 years ago
parent
commit
63971e0aa5
  1. 66
      src/components/AMap/src/AMapDesigner/index.vue
  2. 20
      src/components/AMap/src/components/MapPointModal.vue
  3. 77
      src/components/AMap/src/components/MapTaskModal.vue
  4. 57
      src/components/AMap/src/components/MapTaskPresetModal.vue
  5. 54
      src/components/AMap/src/components/Toolbar.vue
  6. 2
      src/components/Application/src/AppLocalePicker.vue
  7. 9
      src/components/CountDown/src/CountButton.vue
  8. 18
      src/components/CountDown/src/CountdownInput.vue
  9. 2
      src/components/Cropper/src/CropperAvatar.vue
  10. 9
      src/components/Drawer/src/BasicDrawer.vue
  11. 9
      src/components/Drawer/src/components/DrawerFooter.vue
  12. 9
      src/components/Scrollbar/src/Scrollbar.vue
  13. 27
      src/components/Upload/src/BasicUpload.vue
  14. 9
      src/layouts/default/header/components/lock/LockModal.vue
  15. 9
      src/layouts/default/setting/components/SettingFooter.vue
  16. 49
      src/layouts/default/setting/components/TenantSelect.vue
  17. 4
      src/store/modules/permission.ts
  18. 9
      src/views/common/doctor/DoctorModal.vue
  19. 49
      src/views/common/doctor/index.vue
  20. 9
      src/views/common/hospital/HospitalModal.vue
  21. 49
      src/views/common/hospital/index.vue
  22. 24
      src/views/common/mapLogistic/MapLogisticModal.vue
  23. 30
      src/views/common/mapLogistic/index.vue
  24. 9
      src/views/common/office/OfficeModal.vue
  25. 49
      src/views/common/office/index.vue
  26. 9
      src/views/common/org/OrgModal.vue
  27. 49
      src/views/common/org/index.vue
  28. 9
      src/views/common/project/ProjectModal.vue
  29. 51
      src/views/common/project/index.vue
  30. 9
      src/views/common/push/pushApplication/ApplicationModal.vue
  31. 9
      src/views/common/push/pushApplication/SendMessageModal.vue
  32. 59
      src/views/common/push/pushApplication/index.vue
  33. 27
      src/views/common/push/pushBlacklist/index.vue
  34. 9
      src/views/common/push/pushCustomType/CustomTypeModal.vue
  35. 49
      src/views/common/push/pushCustomType/index.vue
  36. 64
      src/views/common/push/pushFile/index.vue
  37. 27
      src/views/common/push/pushMessage/index.vue
  38. 9
      src/views/common/push/pushThirdParty/ThirdPartyModal.vue
  39. 74
      src/views/common/push/pushThirdParty/index.vue
  40. 13
      src/views/common/push/pushTodoThirdParty/ThirdPartyModal.vue
  41. 37
      src/views/common/push/pushTodoThirdParty/index.vue
  42. 13
      src/views/common/push/pushTodoUserManage/UserManageModal.vue
  43. 37
      src/views/common/push/pushTodoUserManage/index.vue
  44. 9
      src/views/common/push/pushUserManage/UserManageModal.vue
  45. 44
      src/views/common/push/pushUserManage/index.vue
  46. 9
      src/views/common/push/pushWhitelist/PassListModal.vue
  47. 27
      src/views/common/push/pushWhitelist/index.vue
  48. 54
      src/views/core/lock/LockPage.vue
  49. 50
      src/views/core/login/ForgetPasswordForm.vue
  50. 19
      src/views/core/login/Login.vue
  51. 51
      src/views/core/login/LoginForm.vue
  52. 47
      src/views/core/login/MobileForm.vue
  53. 16
      src/views/core/login/QrCodeForm.vue
  54. 74
      src/views/core/login/RegisterForm.vue
  55. 2
      src/views/demo/feat/download/imgBase64.ts
  56. 38
      src/views/monitor/operLog/index.vue
  57. 17
      src/views/monitor/token/index.vue
  58. 9
      src/views/system/client/ClientModal.vue
  59. 59
      src/views/system/client/index.vue
  60. 56
      src/views/system/config/ConfigModal.vue
  61. 116
      src/views/system/config/index.vue
  62. 9
      src/views/system/dept/DeptModal.vue
  63. 9
      src/views/system/dict/DictDataModal.vue
  64. 75
      src/views/system/dict/DictDataTable.vue
  65. 9
      src/views/system/dict/DictModal.vue
  66. 72
      src/views/system/dict/index.vue
  67. 64
      src/views/system/file/index.vue
  68. 9
      src/views/system/menu/MenuModal.vue
  69. 64
      src/views/system/menu/index.vue
  70. 13
      src/views/system/region/RegionModal.vue
  71. 51
      src/views/system/region/index.vue
  72. 28
      src/views/system/role/RoleDrawer.vue
  73. 59
      src/views/system/role/index.vue
  74. 9
      src/views/system/tenant/TenantModal.vue
  75. 59
      src/views/system/tenant/index.vue
  76. 15
      src/views/system/user/DeptTree.vue
  77. 13
      src/views/system/user/ResetPwdModal.vue
  78. 9
      src/views/system/user/UserModal.vue
  79. 16
      src/views/system/user/account/center/Application.vue
  80. 7
      src/views/system/user/account/setting/UserInfo.vue
  81. 5
      src/views/system/user/account/setting/entCertification/Step2.vue
  82. 7
      src/views/system/user/account/setting/entCertification/index.vue
  83. 4
      src/views/system/user/account/setting/index.vue
  84. 41
      src/views/system/user/index.vue

66
src/components/AMap/src/AMapDesigner/index.vue

@ -1,15 +1,16 @@ @@ -1,15 +1,16 @@
<template>
<div class="amap-designer">
<Toolbar v-show="toolbarControl"
class="headToolbar"
:default-zoom="mapState.defaultZoom"
:toolbar="toolbar"
@save="handleMapSave"
@addTask="handleOpenMapTask"
@point="handleOpenMapPoint"
@zoomIn="handleMapZoomIn"
@zoomOut="handleMapZoomOut"
@reset="mapReset"
<Toolbar
v-show="toolbarControl"
class="headToolbar"
:default-zoom="mapState.defaultZoom"
:toolbar="toolbar"
@save="handleMapSave"
@add-task="handleOpenMapTask"
@point="handleOpenMapPoint"
@zoom-in="handleMapZoomIn"
@zoom-out="handleMapZoomOut"
@reset="mapReset"
/>
<div id="mapview" ref="mapview">
<div v-show="navigatePanel" id="mapPanel" ref="mapPanel"/>
@ -20,38 +21,43 @@ @@ -20,38 +21,43 @@
<p title="隐藏"></p>
</div>
<div class="operatePanel-form">
<AForm ref="formElRef"
:labelCol="{ style: { width: '80px' } }"
:wrapperCol="{ style: { width: '100%', 'margin-right': '10px' } }"
:model="mapState.mapData"
:rules="mapState.rulesRef"
:scrollToFirstError="true"
<AForm
ref="formElRef"
:labelCol="{ style: { width: '80px' } }"
:wrapperCol="{ style: { width: '100%', 'margin-right': '10px' } }"
:model="mapState.mapData"
:rules="mapState.rulesRef"
:scrollToFirstError="true"
>
<AFormItem label="名称" name="name">
<a-input v-model:value="mapState.mapData.name"
placeholder="请输入地图名称"
allowClear
<a-input
v-model:value="mapState.mapData.name"
placeholder="请输入地图名称"
allowClear
/>
</AFormItem>
<AFormItem label="发单" name="sendOrderId">
<ASelect v-model:value="mapState.mapData.sendOrderId"
style="width: 70%"
:options="mapState.hospitalList"
@select="handleCourierUserSearch"
<ASelect
v-model:value="mapState.mapData.sendOrderId"
style="width: 70%"
:options="mapState.hospitalList"
@select="handleCourierUserSearch"
/>
<ASelect v-model:value="mapState.mapData.sendOrderTaskType"
style="width: 30%"
@change="mapState.mapData.sendOrderTaskType && formClearValidate('sendOrderId')"
<ASelect
v-model:value="mapState.mapData.sendOrderTaskType"
style="width: 30%"
@change="mapState.mapData.sendOrderTaskType && formClearValidate('sendOrderId')"
>
<ASelectOption key="0">普通任务</ASelectOption>
<ASelectOption key="1">交接任务</ASelectOption>
</ASelect>
</AFormItem>
<AFormItem label="起点" name="courierUserId">
<ASelect v-model:value="mapState.mapData.courierUserId"
:disabled="isEdit"
:options="mapState.courierUserList"
@select="handleCourierUserData"
<ASelect
v-model:value="mapState.mapData.courierUserId"
:disabled="isEdit"
:options="mapState.courierUserList"
@select="handleCourierUserData"
/>
</AFormItem>
</AForm>

20
src/components/AMap/src/components/MapPointModal.vue

@ -1,16 +1,18 @@ @@ -1,16 +1,18 @@
<template>
<BasicModal v-bind="$attrs"
defaultFullscreen
:canFullscreen="false"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
defaultFullscreen
:canFullscreen="false"
@register="registerModal"
@ok="handleSubmit"
>
<div :class="[prefixCls ,'pointBody']">
<div class="leftLayout">
<AMapDesigner ref="AMapDesignerEl"
:options="state.mapData"
:sidebarControl="false"
:toolbarControl="false"
<AMapDesigner
ref="AMapDesignerEl"
:options="state.mapData"
:sidebarControl="false"
:toolbarControl="false"
/>
</div>
<div class="rightTopLayout">

77
src/components/AMap/src/components/MapTaskModal.vue

@ -1,56 +1,61 @@ @@ -1,56 +1,61 @@
<template>
<BasicModal v-bind="$attrs"
:width="1050"
:minHeight="500"
@visible-change="handleModalVisibleChange"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
:width="1050"
:minHeight="500"
@visible-change="handleModalVisibleChange"
@register="registerModal"
@ok="handleSubmit"
>
<!--普通任务表格-->
<BasicTable @register="taskOrdinaryRegisterTable">
<template #toolbar>
<a-button type="primary"
:disabled="!!state.taskOrdinaryCurrentEditRowRef"
@click="handleTaskOrdinaryAdd"
<a-button
type="primary"
:disabled="!!state.taskOrdinaryCurrentEditRowRef"
@click="handleTaskOrdinaryAdd"
>新增</a-button>
</template>
<template #action="{ record, column }">
<TableAction :actions="createTaskOrdinaryActions(record, column).concat([
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
disabled: !!state.taskOrdinaryCurrentEditRowRef || !~~state.mapData.sendOrderTaskType && record.sort == 1,
onClick: handleTaskOrdinaryDelete.bind(null, record)
}
])"
<TableAction
:actions="createTaskOrdinaryActions(record, column).concat([
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
disabled: !!state.taskOrdinaryCurrentEditRowRef || !~~state.mapData.sendOrderTaskType && record.sort == 1,
onClick: handleTaskOrdinaryDelete.bind(null, record)
}
])"
/>
</template>
</BasicTable>
<!--交接任务表格-->
<BasicTable @register="taskPresetRegisterTable">
<template #toolbar>
<a-button type="primary"
:disabled="!!state.taskPresetCurrentEditRowRef"
@click="handleTaskPresetAdd"
<a-button
type="primary"
:disabled="!!state.taskPresetCurrentEditRowRef"
@click="handleTaskPresetAdd"
>新增</a-button>
</template>
<template #action="{ record, column }">
<TableAction :actions="createTaskPresetActions(record, column).concat([
{
label: '转办',
icon: 'fa6-regular:pen-to-square',
disabled: !!state.taskPresetCurrentEditRowRef,
onClick: handleOpenTaskPreset.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
disabled: !!state.taskPresetCurrentEditRowRef || ~~state.mapData.sendOrderTaskType && record.sort == 1,
onClick: handleTaskPresetDelete.bind(null, record)
}
])"
<TableAction
:actions="createTaskPresetActions(record, column).concat([
{
label: '转办',
icon: 'fa6-regular:pen-to-square',
disabled: !!state.taskPresetCurrentEditRowRef,
onClick: handleOpenTaskPreset.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
disabled: !!state.taskPresetCurrentEditRowRef || ~~state.mapData.sendOrderTaskType && record.sort == 1,
onClick: handleTaskPresetDelete.bind(null, record)
}
])"
/>
</template>
</BasicTable>

57
src/components/AMap/src/components/MapTaskPresetModal.vue

@ -1,44 +1,49 @@ @@ -1,44 +1,49 @@
<template>
<BasicModal v-bind="$attrs"
:width="1050"
:minHeight="400"
@visible-change="handleModalVisibleChange"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
:width="1050"
:minHeight="400"
@visible-change="handleModalVisibleChange"
@register="registerModal"
@ok="handleSubmit"
>
<AForm ref="formElRef"
:labelCol="{ style: { width: '80px' } }"
:wrapperCol="{ style: { width: '100%', 'margin-right': '10px' } }"
:model="state.modelRef"
<AForm
ref="formElRef"
:labelCol="{ style: { width: '80px' } }"
:wrapperCol="{ style: { width: '100%', 'margin-right': '10px' } }"
:model="state.modelRef"
>
<AFormItem v-show="false" label="终点行key" name="destinationPresetRowKeyRef">
<Input v-model:value="state.modelRef.destinationPresetRowKeyRef" :disabled="true"/>
</AFormItem>
<AFormItem label="终点" name="destinationPresetId" :rules="{ required: true, whitespace: true, message: '医检不能为空', validateTrigger: 'blur' }">
<ASelect v-model:value="state.modelRef.destinationPresetId"
:options="state.options.orgList"
:style="{ width:'30%' }"
allowClear
<ASelect
v-model:value="state.modelRef.destinationPresetId"
:options="state.options.orgList"
:style="{ width:'30%' }"
allowClear
/>
</AFormItem>
</AForm>
<BasicTable @register="registerTable">
<template #toolbar>
<a-button type="primary"
:disabled="!!state.currentEditRowRef"
@click="handleTaskTurnToDoAdd"
<a-button
type="primary"
:disabled="!!state.currentEditRowRef"
@click="handleTaskTurnToDoAdd"
>新增</a-button>
</template>
<template #action="{ record, column }">
<TableAction :actions="createTaskTurnToDoActions(record, column).concat([
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
disabled: !!state.currentEditRowRef,
onClick: handleTaskTurnToDoDelete.bind(null, record)
}
])"
<TableAction
:actions="createTaskTurnToDoActions(record, column).concat([
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
disabled: !!state.currentEditRowRef,
onClick: handleTaskTurnToDoDelete.bind(null, record)
}
])"
/>
</template>
</BasicTable>

54
src/components/AMap/src/components/Toolbar.vue

@ -1,36 +1,40 @@ @@ -1,36 +1,40 @@
<template>
<div class="headToolbar">
<ATooltip v-if="toolbar.includes('save')"
title="保存并发布"
placement="bottom"
:arrowPointAtCenter="true"
<ATooltip
v-if="toolbar.includes('save')"
title="保存并发布"
placement="bottom"
:arrowPointAtCenter="true"
>
<a-button type="primary" @click="emit('save')">
<Icon icon="fa6-regular:floppy-disk" size="13"/>保存
</a-button>
</ATooltip>
<ATooltip v-if="toolbar.includes('addTask')"
title="新增任务"
placement="bottom"
:arrowPointAtCenter="true"
<ATooltip
v-if="toolbar.includes('addTask')"
title="新增任务"
placement="bottom"
:arrowPointAtCenter="true"
>
<a-button type="primary" @click="emit('addTask')">
<Icon icon="fa6-regular:window-restore" size="13"/>任务
</a-button>
</ATooltip>
<ATooltip v-if="toolbar.includes('point')"
title="调整标记点"
placement="bottom"
:arrowPointAtCenter="true"
<ATooltip
v-if="toolbar.includes('point')"
title="调整标记点"
placement="bottom"
:arrowPointAtCenter="true"
>
<a-button type="primary" @click="emit('point')">
<Icon icon="fa6-solid:location-dot" size="13"/>标记点
</a-button>
</ATooltip>
<ATooltip v-if="toolbar.includes('zoomIn')"
title="放大"
placement="bottom"
:arrowPointAtCenter="true"
<ATooltip
v-if="toolbar.includes('zoomIn')"
title="放大"
placement="bottom"
:arrowPointAtCenter="true"
>
<a-button :disabled="defaultZoom >= 9" @click="emit('zoomIn')">
<Icon icon="fa6-solid:magnifying-glass-plus" size="13"/>
@ -39,19 +43,21 @@ @@ -39,19 +43,21 @@
<a-button>
{{ Math.ceil(defaultZoom * 10 * 1.1) + "%" }}
</a-button>
<ATooltip v-if="toolbar.includes('zoomOut')"
title="缩小"
placement="bottom"
:arrowPointAtCenter="true"
<ATooltip
v-if="toolbar.includes('zoomOut')"
title="缩小"
placement="bottom"
:arrowPointAtCenter="true"
>
<a-button :disabled="defaultZoom <= 0" @click="emit('zoomOut')">
<Icon icon="fa6-solid:magnifying-glass-minus" size="13"/>
</a-button>
</ATooltip>
<ATooltip v-if="toolbar.includes('reset')"
title="重置"
placement="bottom"
:arrowPointAtCenter="true"
<ATooltip
v-if="toolbar.includes('reset')"
title="重置"
placement="bottom"
:arrowPointAtCenter="true"
>
<a-button @click="emit('reset')">
<Icon icon="fa-solid:broom" size="13"/>

2
src/components/Application/src/AppLocalePicker.vue

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
:dropMenuList="localeList"
:selectedKeys="selectedKeys"
overlayClassName="app-locale-picker-overlay"
@menuEvent="handleMenuEvent"
@menu-event="handleMenuEvent"
>
<span class="cursor-pointer flex items-center">
<Icon icon="ion:language"/>

9
src/components/CountDown/src/CountButton.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<Button v-bind="$attrs"
:disabled="isStart"
:loading="loading"
@click="handleStart"
<Button
v-bind="$attrs"
:disabled="isStart"
:loading="loading"
@click="handleStart"
>
{{ getButtonText }}
</Button>

18
src/components/CountDown/src/CountdownInput.vue

@ -1,14 +1,16 @@ @@ -1,14 +1,16 @@
<template>
<a-input v-bind="$attrs"
:class="prefixCls"
:size="size"
:value="state"
<a-input
v-bind="$attrs"
:class="prefixCls"
:size="size"
:value="state"
>
<template #addonAfter>
<CountButton :size="size"
:count="count"
:value="state"
:beforeStartFunc="sendCodeApi"
<CountButton
:size="size"
:count="count"
:value="state"
:beforeStartFunc="sendCodeApi"
/>
</template>
<template v-for="item in Object.keys($slots).filter((k) => k !== 'addonAfter')" #[item]="data">

2
src/components/Cropper/src/CropperAvatar.vue

@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
:uploadApi="uploadApi"
:src="sourceValue"
@register="register"
@uploadSuccess="handleUploadSuccess"
@upload-success="handleUploadSuccess"
/>
</div>
</template>

9
src/components/Drawer/src/BasicDrawer.vue

@ -23,10 +23,11 @@ @@ -23,10 +23,11 @@
>
<slot/>
</ScrollContainer>
<DrawerFooter v-bind="getProps"
:height="getFooterHeight"
@close="onClose"
@ok="handleOk"
<DrawerFooter
v-bind="getProps"
:height="getFooterHeight"
@close="onClose"
@ok="handleOk"
>
<template v-for="item in Object.keys($slots)" #[item]="data">
<slot :name="item" v-bind="data || {}"/>

9
src/components/Drawer/src/components/DrawerFooter.vue

@ -2,10 +2,11 @@ @@ -2,10 +2,11 @@
<div v-if="showFooter || $slots.footer" :class="prefixCls" :style="getStyle">
<template v-if="!$slots.footer">
<slot name="insertFooter"/>
<a-button v-if="showCancelBtn"
v-bind="cancelButtonProps"
class="mr-2"
@click="handleClose"
<a-button
v-if="showCancelBtn"
v-bind="cancelButtonProps"
class="mr-2"
@click="handleClose"
>
{{ cancelText }}
</a-button>

9
src/components/Scrollbar/src/Scrollbar.vue

@ -6,10 +6,11 @@ @@ -6,10 +6,11 @@
:style="style"
@scroll="handleScroll"
>
<component :is="tag"
ref="resize"
:class="['scrollbar__view', viewClass]"
:style="viewStyle"
<component
:is="tag"
ref="resize"
:class="['scrollbar__view', viewClass]"
:style="viewStyle"
>
<slot/>
</component>

27
src/components/Upload/src/BasicUpload.vue

@ -1,9 +1,10 @@ @@ -1,9 +1,10 @@
<template>
<div>
<Space>
<a-button type="primary"
preIcon="carbon:cloud-upload"
@click="openUploadModal"
<a-button
type="primary"
preIcon="carbon:cloud-upload"
@click="openUploadModal"
>{{ t('component.upload.upload') }}
</a-button>
<Tooltip v-if="showPreview" placement="bottom">
@ -21,16 +22,18 @@ @@ -21,16 +22,18 @@
</a-button>
</Tooltip>
</Space>
<UploadModal v-bind="bindValue"
:previewFileList="fileList"
@register="registerUploadModal"
@change="handleChange"
@delete="handleDelete"
<UploadModal
v-bind="bindValue"
:previewFileList="fileList"
@register="registerUploadModal"
@change="handleChange"
@delete="handleDelete"
/>
<UploadPreviewModal :value="fileList"
@register="registerPreviewModal"
@list-change="handlePreviewChange"
@delete="handlePreviewDelete"
<UploadPreviewModal
:value="fileList"
@register="registerPreviewModal"
@list-change="handlePreviewChange"
@delete="handlePreviewDelete"
/>
</div>
</template>

9
src/layouts/default/header/components/lock/LockModal.vue

@ -17,10 +17,11 @@ @@ -17,10 +17,11 @@
<BasicForm @register="registerForm"/>
<div :class="`${prefixCls}__footer`">
<a-button type="primary"
block
class="mt-2"
@click="handleLock"
<a-button
type="primary"
block
class="mt-2"
@click="handleLock"
>
{{ t('layout.header.lockScreenBtn') }}
</a-button>

9
src/layouts/default/setting/components/SettingFooter.vue

@ -5,10 +5,11 @@ @@ -5,10 +5,11 @@
{{ t('layout.setting.copyBtn') }}
</a-button>
<a-button color="warning"
block
class="my-3"
@click="handleResetSetting"
<a-button
color="warning"
block
class="my-3"
@click="handleResetSetting"
>
<RedoOutlined class="mr-2"/>
{{ t('common.resetText') }}

49
src/layouts/default/setting/components/TenantSelect.vue

@ -1,38 +1,43 @@ @@ -1,38 +1,43 @@
<template>
<AForm ref="formElRef"
:model="state.modelRef"
:scrollToFirstError="true"
<AForm
ref="formElRef"
:model="state.modelRef"
:scrollToFirstError="true"
>
<AFormItem name="tenantIds"
style="margin-bottom:0px"
:rules="[{ required: true, message: '请至少选择一个多租户,否则会产生无租户数据!'}]"
<AFormItem
name="tenantIds"
style="margin-bottom:0px"
:rules="[{ required: true, message: '请至少选择一个多租户,否则会产生无租户数据!'}]"
>
<ApiSelect v-model:value="state.modelRef.tenantIds"
:api="currentUserTenantList"
:filterOption="filterOption"
resultField="data"
labelField="name"
valueField="code"
mode="multiple"
:maxTagCount="4"
:maxTagTextLength="10"
placeholder="请选择多租户"
<ApiSelect
v-model:value="state.modelRef.tenantIds"
:api="currentUserTenantList"
:filterOption="filterOption"
resultField="data"
labelField="name"
valueField="code"
mode="multiple"
:maxTagCount="4"
:maxTagTextLength="10"
placeholder="请选择多租户"
/>
</AFormItem>
<AFormItem style="margin-bottom:0px">
<ARow>
<ACol :span="12">
<a-button type="primary"
block
@click="handleChangeTenant"
<a-button
type="primary"
block
@click="handleChangeTenant"
>
<Icon icon="fa-regular:save"/>保存
</a-button>
</ACol>
<ACol :span="12">
<a-button color="warning"
block
@click="handleResetTenantEnv"
<a-button
color="warning"
block
@click="handleResetTenantEnv"
>
<Icon icon="ant-design:redo-outlined"/>重置
</a-button>

4
src/store/modules/permission.ts

@ -19,8 +19,8 @@ import { useMessage } from '/@/hooks/web/useMessage'; @@ -19,8 +19,8 @@ import { useMessage } from '/@/hooks/web/useMessage';
import { PageEnum } from '/@/enums/pageEnum';
import { routeModuleList } from '/@/router/routes';
import { unionWith } from 'lodash-es';
import {isUrl} from "/@/utils/is";
import {openWindow} from "/@/utils";
import {isUrl} from '/@/utils/is';
import {openWindow} from '/@/utils';
interface PermissionState {
// 路由是否动态添加

9
src/views/common/doctor/DoctorModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
>
<BasicForm @register="registerForm"/>
</BasicModal>

49
src/views/common/doctor/index.vue

@ -1,34 +1,39 @@ @@ -1,34 +1,39 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<a-button type="primary"
@click="handleAdd()"
<a-button
type="primary"
@click="handleAdd()"
>新增医生</a-button>
<a-button type="primary"
:disabled="state.single"
@click="handleEdit()"
<a-button
type="primary"
:disabled="state.single"
@click="handleEdit()"
>修改医生</a-button>
<a-button type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除医生</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

9
src/views/common/hospital/HospitalModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
>
<BasicForm @register="registerForm"/>
</BasicModal>

49
src/views/common/hospital/index.vue

@ -1,34 +1,39 @@ @@ -1,34 +1,39 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<a-button type="primary"
@click="handleAdd()"
<a-button
type="primary"
@click="handleAdd()"
>新增医院</a-button>
<a-button type="primary"
:disabled="state.single"
@click="handleEdit()"
<a-button
type="primary"
:disabled="state.single"
@click="handleEdit()"
>修改医院</a-button>
<a-button type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除医院</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

24
src/views/common/mapLogistic/MapLogisticModal.vue

@ -1,16 +1,18 @@ @@ -1,16 +1,18 @@
<template>
<BasicModal v-bind="$attrs"
defaultFullscreen
:canFullscreen="false"
:showOkBtn="false"
:showCancelBtn="false"
@register="registerModal"
<BasicModal
v-bind="$attrs"
defaultFullscreen
:canFullscreen="false"
:showOkBtn="false"
:showCancelBtn="false"
@register="registerModal"
>
<AMapDesigner ref="aMapDesigner"
:options="state.mapData"
:isEdit="state.isEdit"
:toolbar="state.toolbar"
@success="handleSubmit"
<AMapDesigner
ref="aMapDesigner"
:options="state.mapData"
:isEdit="state.isEdit"
:toolbar="state.toolbar"
@success="handleSubmit"
/>
</BasicModal>
</template>

30
src/views/common/mapLogistic/index.vue

@ -5,23 +5,25 @@ @@ -5,23 +5,25 @@
<!--<a-button type="primary"
@click="() => {}"
>预览</a-button>-->
<a-button type="primary"
@click="handleAdd"
<a-button
type="primary"
@click="handleAdd"
>新增</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '设计',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
color: 'error',
icon: 'ant-design:delete-outlined',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '设计',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
color: 'error',
icon: 'ant-design:delete-outlined',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

9
src/views/common/office/OfficeModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
>
<BasicForm @register="registerForm"/>
</BasicModal>

49
src/views/common/office/index.vue

@ -1,34 +1,39 @@ @@ -1,34 +1,39 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<a-button type="primary"
@click="handleAdd()"
<a-button
type="primary"
@click="handleAdd()"
>新增科室</a-button>
<a-button type="primary"
:disabled="state.single"
@click="handleEdit()"
<a-button
type="primary"
:disabled="state.single"
@click="handleEdit()"
>修改科室</a-button>
<a-button type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除科室</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

9
src/views/common/org/OrgModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
>
<BasicForm @register="registerForm"/>
</BasicModal>

49
src/views/common/org/index.vue

@ -1,34 +1,39 @@ @@ -1,34 +1,39 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<a-button type="primary"
@click="handleAdd()"
<a-button
type="primary"
@click="handleAdd()"
>新增机构</a-button>
<a-button type="primary"
:disabled="state.single"
@click="handleEdit()"
<a-button
type="primary"
:disabled="state.single"
@click="handleEdit()"
>修改机构</a-button>
<a-button type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除机构</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

9
src/views/common/project/ProjectModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@ok="handleSubmit"
@register="registerModal"
<BasicModal
v-bind="$attrs"
width="720px"
@ok="handleSubmit"
@register="registerModal"
>
<BasicForm @register="registerForm"/>
</BasicModal>

51
src/views/common/project/index.vue

@ -6,37 +6,40 @@ @@ -6,37 +6,40 @@
type="primary"
@click="handleAdd()"
>新增项目</a-button>
<a-button type="default"
@click="expandAll"
<a-button
type="default"
@click="expandAll"
>展开全部</a-button>
<a-button type="default"
@click="collapseAll"
<a-button
type="default"
@click="collapseAll"
>折叠全部</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
<TableAction
:actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '新增',
icon: 'ant-design:plus-circle-outlined',
onClick: handleEdit.bind(null, record)
},
{
label: '新增',
icon: 'ant-design:plus-circle-outlined',
onClick: handleAdd.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
onClick: handleAdd.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
popConfirm: {
title: '是否确认删除',
confirm: handleDel.bind(null, record)
}
}]"
color: 'error',
popConfirm: {
title: '是否确认删除',
confirm: handleDel.bind(null, record)
}
}]"
/>
</template>
</BasicTable>

9
src/views/common/push/pushApplication/ApplicationModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
>
<BasicForm @register="registerForm"/>
</BasicModal>

9
src/views/common/push/pushApplication/SendMessageModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
>
<BasicForm @register="registerForm"/>
</BasicModal>

59
src/views/common/push/pushApplication/index.vue

@ -1,39 +1,44 @@ @@ -1,39 +1,44 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<a-button type="primary"
@click="handleAdd()"
<a-button
type="primary"
@click="handleAdd()"
>新增应用</a-button>
<a-button type="primary"
:disabled="state.single"
@click="handleEdit()"
<a-button
type="primary"
:disabled="state.single"
@click="handleEdit()"
>修改应用</a-button>
<a-button type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除应用</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '发送消息',
icon: 'fa6-regular:message',
onClick: handleSend.bind(null, record)
},
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '发送消息',
icon: 'fa6-regular:message',
onClick: handleSend.bind(null, record)
},
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

27
src/views/common/push/pushBlacklist/index.vue

@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<!--<a-button type="primary"
@ -11,19 +12,21 @@ @@ -11,19 +12,21 @@
:disabled="state.single"
@click="handleEdit()"
>修改黑名单</a-button>-->
<a-button type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>移除黑名单</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '移除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '移除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

9
src/views/common/push/pushCustomType/CustomTypeModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
>
<BasicForm @register="registerForm"/>
</BasicModal>

49
src/views/common/push/pushCustomType/index.vue

@ -1,34 +1,39 @@ @@ -1,34 +1,39 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<a-button type="primary"
@click="handleAdd()"
<a-button
type="primary"
@click="handleAdd()"
>新增推送类型</a-button>
<a-button type="primary"
:disabled="state.single"
@click="handleEdit()"
<a-button
type="primary"
:disabled="state.single"
@click="handleEdit()"
>修改推送类型</a-button>
<a-button type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除推送类型</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

64
src/views/common/push/pushFile/index.vue

@ -1,41 +1,45 @@ @@ -1,41 +1,45 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<BasicUpload v-model:value="state.fileList"
v-auth="['file_upload']"
:maxSize="20"
:maxNumber="10"
:showPreviewNumber="false"
:emptyHidePreview="true"
:api="commonUpload"
:accept="['audio/*']"
multiple
@change="handleUploadSave"
<BasicUpload
v-model:value="state.fileList"
v-auth="['file_upload']"
:maxSize="20"
:maxNumber="10"
:showPreviewNumber="false"
:emptyHidePreview="true"
:api="commonUpload"
:accept="['audio/*']"
multiple
@change="handleUploadSave"
/>
<a-button v-auth="['file_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
v-auth="['file_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '文件下载',
icon: 'fa6-regular:circle-down',
auth: ['file_download'],
onClick: handleFileDownLoad.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
auth: ['file_del'],
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '文件下载',
icon: 'fa6-regular:circle-down',
auth: ['file_download'],
onClick: handleFileDownLoad.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
auth: ['file_del'],
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

27
src/views/common/push/pushMessage/index.vue

@ -1,22 +1,25 @@ @@ -1,22 +1,25 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<a-button type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除消息</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

9
src/views/common/push/pushThirdParty/ThirdPartyModal.vue vendored

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
>
<BasicForm @register="registerForm"/>
</BasicModal>

74
src/views/common/push/pushThirdParty/index.vue vendored

@ -1,49 +1,53 @@ @@ -1,49 +1,53 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<!--<a-button type="primary"
@click="handleAdd()"
>新增第三方</a-button>-->
<a-button type="primary"
:disabled="state.single"
@click="handleEdit()"
<a-button
type="primary"
:disabled="state.single"
@click="handleEdit()"
>修改企业</a-button>
<a-button type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除企业</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '加入黑名单',
icon: 'fa6-regular:pen-to-square',
onClick: handleBlacklist.bind(null, record)
},
{
label: '加入白名单',
icon: 'fa6-regular:pen-to-square',
onClick: handleWhitelist.bind(null, record)
},
{
label: '推送申请',
icon: 'fa6-regular:pen-to-square',
onClick: handlePushAdd.bind(null, record)
},
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '加入黑名单',
icon: 'fa6-regular:pen-to-square',
onClick: handleBlacklist.bind(null, record)
},
{
label: '加入白名单',
icon: 'fa6-regular:pen-to-square',
onClick: handleWhitelist.bind(null, record)
},
{
label: '推送申请',
icon: 'fa6-regular:pen-to-square',
onClick: handlePushAdd.bind(null, record)
},
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

13
src/views/common/push/pushTodoThirdParty/ThirdPartyModal.vue vendored

@ -1,10 +1,11 @@ @@ -1,10 +1,11 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
:showCancelBtn="false"
okText="通过"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
:showCancelBtn="false"
okText="通过"
@register="registerModal"
@ok="handleSubmit"
>
<template #centerFooter>
<a-button danger type="primary" @click="handleReject">驳回</a-button>

37
src/views/common/push/pushTodoThirdParty/index.vue vendored

@ -1,27 +1,30 @@ @@ -1,27 +1,30 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<a-button type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>驳回申请</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '审批',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '审批',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

13
src/views/common/push/pushTodoUserManage/UserManageModal.vue

@ -1,10 +1,11 @@ @@ -1,10 +1,11 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
:showCancelBtn="false"
okText="同意"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
:showCancelBtn="false"
okText="同意"
@register="registerModal"
@ok="handleSubmit"
>
<template #centerFooter>
<a-button danger type="primary" @click="handleReject">拒绝</a-button>

37
src/views/common/push/pushTodoUserManage/index.vue

@ -1,27 +1,30 @@ @@ -1,27 +1,30 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<a-button type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>拒绝</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '审核',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '审核',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

9
src/views/common/push/pushUserManage/UserManageModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
>
<BasicForm @register="registerForm"/>
</BasicModal>

44
src/views/common/push/pushUserManage/index.vue

@ -1,34 +1,38 @@ @@ -1,34 +1,38 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<!--<a-button type="primary"
@click="handleAdd()"
>新增推送</a-button>-->
<a-button type="primary"
:disabled="state.single"
@click="handleEdit()"
<a-button
type="primary"
:disabled="state.single"
@click="handleEdit()"
>修改推送</a-button>
<a-button type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>移除推送</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '移除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '移除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

9
src/views/common/push/pushWhitelist/PassListModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
>
<BasicForm @register="registerForm"/>
</BasicModal>

27
src/views/common/push/pushWhitelist/index.vue

@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<!--<a-button type="primary"
@ -11,19 +12,21 @@ @@ -11,19 +12,21 @@
:disabled="state.single"
@click="handleEdit()"
>修改白名单</a-button>-->
<a-button type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>移除白名单</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '移除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '移除',
icon: 'ant-design:delete-outlined',
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

54
src/views/core/lock/LockPage.vue

@ -1,12 +1,14 @@ @@ -1,12 +1,14 @@
<template>
<div :class="prefixCls"
class="fixed inset-0 flex h-screen w-screen bg-black items-center justify-center"
<div
:class="prefixCls"
class="fixed inset-0 flex h-screen w-screen bg-black items-center justify-center"
>
<!--解锁区域-->
<div v-show="showDate"
:class="`${prefixCls}__unlock`"
class="absolute top-0 left-1/2 flex pt-5 h-16 items-center justify-center sm:text-md xl:text-xl text-white flex-col cursor-pointer transform translate-x-1/2"
@click="handleShowForm(false)"
<div
v-show="showDate"
:class="`${prefixCls}__unlock`"
class="absolute top-0 left-1/2 flex pt-5 h-16 items-center justify-center sm:text-md xl:text-xl text-white flex-col cursor-pointer transform translate-x-1/2"
@click="handleShowForm(false)"
>
<LockOutlined/>
<span>{{ t('sys.lock.unlock') }}</span>
@ -33,31 +35,35 @@ @@ -33,31 +35,35 @@
{{ userInfo.nickName }}
</p>
</div>
<InputPassword v-model:value="password"
:placeholder="t('sys.lock.placeholder')"
class="enter-x"
<InputPassword
v-model:value="password"
:placeholder="t('sys.lock.placeholder')"
class="enter-x"
/>
<span v-if="errMsg" :class="`${prefixCls}-entry__err-msg enter-x`">
{{ t('sys.lock.alert') }}
</span>
<div :class="`${prefixCls}-entry__footer enter-x`">
<a-button type="link"
size="small"
class="mt-2 mr-2 enter-x"
:disabled="loading"
@click="handleShowForm(true)"
<a-button
type="link"
size="small"
class="mt-2 mr-2 enter-x"
:disabled="loading"
@click="handleShowForm(true)"
>{{ t('common.back') }}</a-button>
<a-button type="link"
size="small"
class="mt-2 mr-2 enter-x"
:disabled="loading"
@click="goLogin"
<a-button
type="link"
size="small"
class="mt-2 mr-2 enter-x"
:disabled="loading"
@click="goLogin"
>{{ t('sys.lock.backToLogin') }}</a-button>
<a-button type="link"
size="small"
class="mt-2"
:loading="loading"
@click="unLock()"
<a-button
type="link"
size="small"
class="mt-2"
:loading="loading"
@click="unLock()"
>{{ t('sys.lock.entry') }}</a-button>
</div>
</div>

50
src/views/core/login/ForgetPasswordForm.vue

@ -1,40 +1,46 @@ @@ -1,40 +1,46 @@
<template>
<template v-if="getShow">
<LoginFormTitle class="enter-x"/>
<Form ref="formRef"
:model="formData"
class="p-4 enter-x"
:rules="getFormRules"
<Form
ref="formRef"
:model="formData"
class="p-4 enter-x"
:rules="getFormRules"
>
<FormItem name="account" class="enter-x">
<Input v-model:value="formData.account"
size="large"
:placeholder="t('sys.login.userName')"
<Input
v-model:value="formData.account"
size="large"
:placeholder="t('sys.login.userName')"
/>
</FormItem>
<FormItem name="mobile" class="enter-x">
<Input v-model:value="formData.mobile"
size="large"
:placeholder="t('sys.login.mobile')"
<Input
v-model:value="formData.mobile"
size="large"
:placeholder="t('sys.login.mobile')"
/>
</FormItem>
<FormItem name="sms" class="enter-x">
<CountdownInput v-model:value="formData.sms"
size="large"
:placeholder="t('sys.login.smsCode')"
<CountdownInput
v-model:value="formData.sms"
size="large"
:placeholder="t('sys.login.smsCode')"
/>
</FormItem>
<FormItem class="enter-x">
<Button type="primary"
size="large"
block
:loading="loading"
@click="handleReset"
<Button
type="primary"
size="large"
block
:loading="loading"
@click="handleReset"
>{{ t('common.resetText') }}</Button>
<Button size="large"
block
class="mt-4"
@click="handleBackLogin"
<Button
size="large"
block
class="mt-4"
@click="handleBackLogin"
>{{ t('sys.login.backSignIn') }}</Button>
</FormItem>
</Form>

19
src/views/core/login/Login.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<div :class="prefixCls" class="relative w-full h-full px-4">
<AppLocalePicker v-if="showLocale"
class="absolute text-white top-4 right-4 enter-x xl:text-gray-600"
:showText="false"
<AppLocalePicker
v-if="showLocale"
class="absolute text-white top-4 right-4 enter-x xl:text-gray-600"
:showText="false"
/>
<AppDarkModeToggle class="absolute top-3 right-7 enter-x"/>
<span class="-enter-x xl:hidden">
@ -13,9 +14,10 @@ @@ -13,9 +14,10 @@
<div class="hidden min-h-full pl-4 mr-4 xl:flex xl:flex-col xl:w-6/12">
<AppLogo class="-enter-x"/>
<div class="my-auto">
<img :alt="title"
src="../../../assets/images/login-box-bg.svg"
class="w-1/2 -mt-16 -enter-x"
<img
:alt="title"
src="../../../assets/images/login-box-bg.svg"
class="w-1/2 -mt-16 -enter-x"
>
<div class="mt-10 font-medium text-white -enter-x">
<span class="inline-block mt-4 text-3xl">
@ -28,8 +30,9 @@ @@ -28,8 +30,9 @@
</div>
</div>
<div class="flex w-full h-full py-5 xl:h-auto xl:py-0 xl:my-0 xl:w-6/12">
<div :class="`${prefixCls}-form`"
class="relative w-full px-5 py-8 mx-auto my-auto rounded-md shadow-md xl:ml-16 xl:bg-transparent sm:px-8 xl:p-4 xl:shadow-none sm:w-3/4 lg:w-2/4 xl:w-auto enter-x"
<div
:class="`${prefixCls}-form`"
class="relative w-full px-5 py-8 mx-auto my-auto rounded-md shadow-md xl:ml-16 xl:bg-transparent sm:px-8 xl:p-4 xl:shadow-none sm:w-3/4 lg:w-2/4 xl:w-auto enter-x"
>
<LoginForm/>
<ForgetPasswordForm/>

51
src/views/core/login/LoginForm.vue

@ -1,36 +1,40 @@ @@ -1,36 +1,40 @@
<template>
<LoginFormTitle v-show="getShow" class="enter-x"/>
<Form v-show="getShow"
ref="formRef"
:model="formData"
class="p-4 enter-x"
:rules="getFormRules"
@keypress.enter="handleLogin"
<Form
v-show="getShow"
ref="formRef"
:model="formData"
class="p-4 enter-x"
:rules="getFormRules"
@keypress.enter="handleLogin"
>
<FormItem name="realKey">
<Input v-model:value="formData.realKey" size="large" :hidden="true"/>
</FormItem>
<FormItem name="account" class="enter-x">
<Input v-model:value="formData.account"
class="fix-auto-fill"
size="large"
:placeholder="t('sys.login.userName')"
<Input
v-model:value="formData.account"
class="fix-auto-fill"
size="large"
:placeholder="t('sys.login.userName')"
/>
</FormItem>
<FormItem name="password" class="enter-x">
<InputPassword v-model:value="formData.password"
size="large"
visibilityToggle
:placeholder="t('sys.login.password')"
<InputPassword
v-model:value="formData.password"
size="large"
visibilityToggle
:placeholder="t('sys.login.password')"
/>
</FormItem>
<ARow class="enter-x">
<ACol :span="16">
<FormItem name="code">
<Input v-model:value="formData.code"
size="large"
:placeholder="t('sys.login.captcha')"
style="min-width: 100px"
<Input
v-model:value="formData.code"
size="large"
:placeholder="t('sys.login.captcha')"
style="min-width: 100px"
/>
</FormItem>
</ACol>
@ -59,11 +63,12 @@ @@ -59,11 +63,12 @@
</ACol>
</ARow>
<FormItem class="enter-x">
<Button type="primary"
size="large"
block
:loading="loading"
@click="handleLogin"
<Button
type="primary"
size="large"
block
:loading="loading"
@click="handleLogin"
>{{
t('sys.login.loginButton')
}}</Button>

47
src/views/core/login/MobileForm.vue

@ -1,38 +1,43 @@ @@ -1,38 +1,43 @@
<template>
<template v-if="getShow">
<LoginFormTitle class="enter-x"/>
<Form ref="formRef"
class="p-4 enter-x"
:model="formData"
:rules="getFormRules"
<Form
ref="formRef"
class="p-4 enter-x"
:model="formData"
:rules="getFormRules"
>
<FormItem name="mobile" class="enter-x">
<Input v-model:value="formData.mobile"
size="large"
:placeholder="t('sys.login.mobile')"
class="fix-auto-fill"
<Input
v-model:value="formData.mobile"
size="large"
:placeholder="t('sys.login.mobile')"
class="fix-auto-fill"
/>
</FormItem>
<FormItem name="sms" class="enter-x">
<CountdownInput v-model:value="formData.sms"
size="large"
class="fix-auto-fill"
:placeholder="t('sys.login.smsCode')"
<CountdownInput
v-model:value="formData.sms"
size="large"
class="fix-auto-fill"
:placeholder="t('sys.login.smsCode')"
/>
</FormItem>
<FormItem class="enter-x">
<Button type="primary"
size="large"
block
:loading="loading"
@click="handleLogin"
<Button
type="primary"
size="large"
block
:loading="loading"
@click="handleLogin"
>
{{ t('sys.login.loginButton') }}
</Button>
<Button size="large"
block
class="mt-4"
@click="handleBackLogin"
<Button
size="large"
block
class="mt-4"
@click="handleBackLogin"
>
{{ t('sys.login.backSignIn') }}
</Button>

16
src/views/core/login/QrCodeForm.vue

@ -2,15 +2,17 @@ @@ -2,15 +2,17 @@
<template v-if="getShow">
<LoginFormTitle class="enter-x"/>
<div class="enter-x min-w-64 min-h-64">
<QrCode :value="qrCodeUrl"
class="enter-x flex justify-center xl:justify-start"
:width="280"
<QrCode
:value="qrCodeUrl"
class="enter-x flex justify-center xl:justify-start"
:width="280"
/>
<Divider class="enter-x">{{ t('sys.login.scanSign') }}</Divider>
<Button size="large"
block
class="mt-4 enter-x"
@click="handleBackLogin"
<Button
size="large"
block
class="mt-4 enter-x"
@click="handleBackLogin"
>{{ t('sys.login.backSignIn') }}</Button>
</div>
</template>

74
src/views/core/login/RegisterForm.vue

@ -1,43 +1,49 @@ @@ -1,43 +1,49 @@
<template>
<template v-if="getShow">
<LoginFormTitle class="enter-x"/>
<Form ref="formRef"
class="p-4 enter-x"
:model="formData"
:rules="getFormRules"
<Form
ref="formRef"
class="p-4 enter-x"
:model="formData"
:rules="getFormRules"
>
<FormItem name="account" class="enter-x">
<Input v-model:value="formData.account"
class="fix-auto-fill"
size="large"
:placeholder="t('sys.login.userName')"
<Input
v-model:value="formData.account"
class="fix-auto-fill"
size="large"
:placeholder="t('sys.login.userName')"
/>
</FormItem>
<FormItem name="mobile" class="enter-x">
<Input v-model:value="formData.mobile"
size="large"
:placeholder="t('sys.login.mobile')"
class="fix-auto-fill"
<Input
v-model:value="formData.mobile"
size="large"
:placeholder="t('sys.login.mobile')"
class="fix-auto-fill"
/>
</FormItem>
<FormItem name="sms" class="enter-x">
<CountdownInput v-model:value="formData.sms"
size="large"
class="fix-auto-fill"
:placeholder="t('sys.login.smsCode')"
<CountdownInput
v-model:value="formData.sms"
size="large"
class="fix-auto-fill"
:placeholder="t('sys.login.smsCode')"
/>
</FormItem>
<FormItem name="password" class="enter-x">
<StrengthMeter v-model:value="formData.password"
size="large"
:placeholder="t('sys.login.password')"
<StrengthMeter
v-model:value="formData.password"
size="large"
:placeholder="t('sys.login.password')"
/>
</FormItem>
<FormItem name="confirmPassword" class="enter-x">
<InputPassword v-model:value="formData.confirmPassword"
size="large"
visibilityToggle
:placeholder="t('sys.login.confirmPassword')"
<InputPassword
v-model:value="formData.confirmPassword"
size="large"
visibilityToggle
:placeholder="t('sys.login.confirmPassword')"
/>
</FormItem>
<FormItem class="enter-x" name="policy">
@ -46,17 +52,19 @@ @@ -46,17 +52,19 @@
{{ t('sys.login.policy') }}
</Checkbox>
</FormItem>
<Button type="primary"
class="enter-x"
size="large"
block
:loading="loading"
@click="handleRegister"
<Button
type="primary"
class="enter-x"
size="large"
block
:loading="loading"
@click="handleRegister"
>{{ t('sys.login.registerButton') }}</Button>
<Button size="large"
block
class="mt-4 enter-x"
@click="handleBackLogin"
<Button
size="large"
block
class="mt-4 enter-x"
@click="handleBackLogin"
>{{ t('sys.login.backSignIn') }}</Button>
</Form>
</template>

2
src/views/demo/feat/download/imgBase64.ts

File diff suppressed because one or more lines are too long

38
src/views/monitor/operLog/index.vue

@ -1,28 +1,32 @@ @@ -1,28 +1,32 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<a-button v-auth="['role_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
v-auth="['role_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除日志</a-button>
<a-button v-auth="['operLog_del']"
type="primary"
@click="handleCleanOperLog()"
<a-button
v-auth="['operLog_del']"
type="primary"
@click="handleCleanOperLog()"
>清空日志</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
auth: ['client_del'],
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
auth: ['client_del'],
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

17
src/views/monitor/token/index.vue

@ -2,14 +2,15 @@ @@ -2,14 +2,15 @@
<div>
<BasicTable @register="registerTable">
<template #action="{ record }">
<TableAction :actions="[
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
auth: ['client_del'],
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
auth: ['client_del'],
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

9
src/views/system/client/ClientModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
>
<BasicForm @register="registerForm"/>
</BasicModal>

59
src/views/system/client/index.vue

@ -1,39 +1,44 @@ @@ -1,39 +1,44 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<a-button v-auth="['client_add']"
type="primary"
@click="handleAdd()"
<a-button
v-auth="['client_add']"
type="primary"
@click="handleAdd()"
>新增客户端</a-button>
<a-button v-auth="['client_edit']"
type="primary"
:disabled="state.single"
@click="handleEdit()"
<a-button
v-auth="['client_edit']"
type="primary"
:disabled="state.single"
@click="handleEdit()"
>修改客户端</a-button>
<a-button v-auth="['client_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
v-auth="['client_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除客户端</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
auth: ['client_edit'],
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
auth: ['client_del'],
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
auth: ['client_edit'],
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
auth: ['client_del'],
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

56
src/views/system/config/ConfigModal.vue

@ -1,17 +1,19 @@ @@ -1,17 +1,19 @@
<template>
<BasicModal v-bind="$attrs"
:width="720"
:height="500"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
:width="720"
:height="500"
@register="registerModal"
@ok="handleSubmit"
>
<AForm ref="formElRef"
:labelCol="{ style: { width: '120px' } }"
:wrapperCol="{ style: { width: '100%' } }"
:model="state.modelRef"
:rules="state.rulesRef"
:scrollToFirstError="true"
@keypress.enter="handleSubmit"
<AForm
ref="formElRef"
:labelCol="{ style: { width: '120px' } }"
:wrapperCol="{ style: { width: '100%' } }"
:model="state.modelRef"
:rules="state.rulesRef"
:scrollToFirstError="true"
@keypress.enter="handleSubmit"
>
<AFormItem v-show="false" name="id">
<Input v-model:value="state.modelRef.id"/>
@ -19,25 +21,28 @@ @@ -19,25 +21,28 @@
<ARow justify="center">
<ACol :span="12">
<AFormItem label="参数名称" name="name">
<a-input v-model:value="state.modelRef.name"
placeholder="请输入参数名称"
allowClear
<a-input
v-model:value="state.modelRef.name"
placeholder="请输入参数名称"
allowClear
/>
</AFormItem>
</ACol>
<ACol :span="12">
<AFormItem label="参数键名" name="key">
<a-input v-model:value="state.modelRef.key"
placeholder="请输入参数键名"
allowClear
<a-input
v-model:value="state.modelRef.key"
placeholder="请输入参数键名"
allowClear
/>
</AFormItem>
</ACol>
<ACol :span="12">
<AFormItem label="参数键值" name="value">
<a-input v-model:value="state.modelRef.value"
placeholder="请输入参数键值"
allowClear
<a-input
v-model:value="state.modelRef.value"
placeholder="请输入参数键值"
allowClear
/>
</AFormItem>
</ACol>
@ -51,10 +56,11 @@ @@ -51,10 +56,11 @@
</ACol>
<ACol>
<AFormItem label="备注" name="remarks">
<ATextarea v-model:value="state.modelRef.remarks"
placeholder="请输入备注"
:rows="6"
allowClear
<ATextarea
v-model:value="state.modelRef.remarks"
placeholder="请输入备注"
:rows="6"
allowClear
/>
</AFormItem>
</ACol>

116
src/views/system/config/index.vue

@ -1,73 +1,84 @@ @@ -1,73 +1,84 @@
<template>
<div ref="wrapRef" :class="[prefixCls, [`${prefixCls}-form-container`]]">
<AForm ref="queryFormElRef"
:model="state.queryParams"
layout="inline"
:colon="false"
:labelCol="{ span: 6 }"
:wrapperCol="{ style: { width: '260px', 'margin-bottom': '5px' } }"
<AForm
ref="queryFormElRef"
:model="state.queryParams"
layout="inline"
:colon="false"
:labelCol="{ span: 6 }"
:wrapperCol="{ style: { width: '260px', 'margin-bottom': '5px' } }"
>
<AFormItem label="参数名称" name="name">
<a-input v-model:value="state.queryParams.name"
placeholder="请输入参数名称"
allowClear
<a-input
v-model:value="state.queryParams.name"
placeholder="请输入参数名称"
allowClear
/>
</AFormItem>
<AFormItem label="参数键" name="key">
<a-input v-model:value="state.queryParams.key"
placeholder="请输入参数键"
allowClear
<a-input
v-model:value="state.queryParams.key"
placeholder="请输入参数键"
allowClear
/>
</AFormItem>
<AFormItem label="系统内置" name="isSys">
<ASelect v-model:value="state.queryParams.isSys"
placeholder="请选择"
allowClear
<ASelect
v-model:value="state.queryParams.isSys"
placeholder="请选择"
allowClear
>
<ASelectOption key="0"></ASelectOption>
<ASelectOption key="1"></ASelectOption>
</ASelect>
</AFormItem>
<AFormItem label="创建时间">
<ARangePicker v-model:value="state.dateRange"
style="width: 100%"
valueFormat="YYYY-MM-DD"
:placeholder="['开始日期', '结束日期']"
<ARangePicker
v-model:value="state.dateRange"
style="width: 100%"
valueFormat="YYYY-MM-DD"
:placeholder="['开始日期', '结束日期']"
/>
</AFormItem>
<AFormItem>
<a-button type="primary"
class="mr-2"
@click="handleQuery"
<a-button
type="primary"
class="mr-2"
@click="handleQuery"
>搜索</a-button>
<a-button type="default"
class="mr-2"
@click="resetQuery"
<a-button
type="default"
class="mr-2"
@click="resetQuery"
>重置</a-button>
</AFormItem>
</AForm>
<ATable ref="tableElRef"
v-bind="getBindValues"
@change="handleTablePaginationChange"
<ATable
ref="tableElRef"
v-bind="getBindValues"
@change="handleTablePaginationChange"
>
<template #title>
<div style="width: 100%">
<div class="flex items-center">
<BasicTitle>{{ '参数配置列表' }}</BasicTitle>
<div :class="`${prefixCls}__toolbar`">
<a-button v-auth="['config_add']"
type="primary"
@click="handleAdd()"
<a-button
v-auth="['config_add']"
type="primary"
@click="handleAdd()"
>新增参数</a-button>
<a-button v-auth="['config_edit']"
type="primary"
:disabled="state.single"
@click="handleEdit()"
<a-button
v-auth="['config_edit']"
type="primary"
:disabled="state.single"
@click="handleEdit()"
>修改参数</a-button>
<a-button v-auth="['config_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
v-auth="['config_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除参数</a-button>
<ADivider type="vertical"/>
<div :class="`${prefixCls}__settings`">
@ -83,9 +94,10 @@ @@ -83,9 +94,10 @@
<template #title>
<span>{{ t('component.table.settingDens') }}</span>
</template>
<ADropdown :trigger="['click']"
:getPopupContainer="getPopupContainer"
placement="bottom"
<ADropdown
:trigger="['click']"
:getPopupContainer="getPopupContainer"
placement="bottom"
>
<ColumnHeightOutlined/>
<template #overlay>
@ -134,18 +146,20 @@ @@ -134,18 +146,20 @@
</template>
<template #action="{ record }">
<div :class="[`${prefixCls}__action`, 'center']">
<a-button v-auth="['config_edit']"
type="link"
size="small"
@click="handleEdit(record)"
<a-button
v-auth="['config_edit']"
type="link"
size="small"
@click="handleEdit(record)"
><Icon icon="fa6-regular:pen-to-square" :size="14"/>修改
</a-button>
<ADivider type="vertical" class="action-divider"/>
<a-button v-auth="['config_del']"
type="link"
size="small"
color="error"
@click="handleDel(record)"
<a-button
v-auth="['config_del']"
type="link"
size="small"
color="error"
@click="handleDel(record)"
><Icon icon="ant-design:delete-outlined" :size="15"/>删除
</a-button>
</div>

9
src/views/system/dept/DeptModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@ok="handleSubmit"
@register="registerModal"
<BasicModal
v-bind="$attrs"
width="720px"
@ok="handleSubmit"
@register="registerModal"
>
<BasicForm @register="registerForm"/>
</BasicModal>

9
src/views/system/dict/DictDataModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
>
<BasicForm @register="registerForm"/>
</BasicModal>

75
src/views/system/dict/DictDataTable.vue

@ -1,49 +1,56 @@ @@ -1,49 +1,56 @@
<template>
<PageWrapper dense
contentFullHeight
fixedHeight
contentClass="flex"
<PageWrapper
dense
contentFullHeight
fixedHeight
contentClass="flex"
>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #tableTitle>
<ATag color="red"
style="font-size: 14px;font-weight: 700;"
<ATag
color="red"
style="font-size: 14px;font-weight: 700;"
>>>字典数据列表[{{ state.dictType }}]</ATag>
</template>
<template #toolbar>
<a-button v-auth="['dictData_add']"
type="primary"
:disabled="!state.dictType"
@click="handleAdd()"
<a-button
v-auth="['dictData_add']"
type="primary"
:disabled="!state.dictType"
@click="handleAdd()"
>新增字典数据</a-button>
<a-button v-auth="['dictData_edit']"
type="primary"
:disabled="state.single"
@click="handleEdit()"
<a-button
v-auth="['dictData_edit']"
type="primary"
:disabled="state.single"
@click="handleEdit()"
>修改字典数据</a-button>
<a-button v-auth="['dictData_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
v-auth="['dictData_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除字典数据</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
auth: ['dictData_edit'],
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
auth: ['dictData_del'],
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
auth: ['dictData_edit'],
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
auth: ['dictData_del'],
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

9
src/views/system/dict/DictModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
>
<BasicForm @register="registerForm"/>
</BasicModal>

72
src/views/system/dict/index.vue

@ -1,45 +1,51 @@ @@ -1,45 +1,51 @@
<template>
<PageWrapper dense
fixedHeight
contentFullHeight
contentClass="flex"
<PageWrapper
dense
fixedHeight
contentFullHeight
contentClass="flex"
>
<BasicTable class="w-2/4 xl:w-2/4"
@register="registerTable"
@selection-change="handleSelectionChange"
@row-click="handleClickSubTable"
<BasicTable
class="w-2/4 xl:w-2/4"
@register="registerTable"
@selection-change="handleSelectionChange"
@row-click="handleClickSubTable"
>
<template #toolbar>
<a-button v-auth="['dict_add']"
type="primary"
@click="handleAdd()"
<a-button
v-auth="['dict_add']"
type="primary"
@click="handleAdd()"
>新增字典</a-button>
<a-button v-auth="['dict_edit']"
type="primary"
:disabled="state.single"
@click="handleEdit()"
<a-button
v-auth="['dict_edit']"
type="primary"
:disabled="state.single"
@click="handleEdit()"
>修改字典</a-button>
<a-button v-auth="['dict_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
v-auth="['dict_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除字典</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
auth: ['dict_edit'],
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
auth: ['dict_del'],
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
auth: ['dict_edit'],
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
auth: ['dict_del'],
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

64
src/views/system/file/index.vue

@ -1,41 +1,45 @@ @@ -1,41 +1,45 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<BasicUpload v-model:value="state.fileList"
v-auth="['file_upload']"
:maxSize="20"
:maxNumber="10"
:showPreviewNumber="false"
:emptyHidePreview="true"
:api="commonUpload"
:accept="['image/*']"
multiple
@change="handleUploadSave"
<BasicUpload
v-model:value="state.fileList"
v-auth="['file_upload']"
:maxSize="20"
:maxNumber="10"
:showPreviewNumber="false"
:emptyHidePreview="true"
:api="commonUpload"
:accept="['image/*']"
multiple
@change="handleUploadSave"
/>
<a-button v-auth="['file_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
v-auth="['file_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '文件下载',
icon: 'fa6-regular:circle-down',
auth: ['file_download'],
onClick: handleFileDownLoad.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
auth: ['file_del'],
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '文件下载',
icon: 'fa6-regular:circle-down',
auth: ['file_download'],
onClick: handleFileDownLoad.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
auth: ['file_del'],
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

9
src/views/system/menu/MenuModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@ok="handleSubmit"
@register="registerModal"
<BasicModal
v-bind="$attrs"
width="720px"
@ok="handleSubmit"
@register="registerModal"
>
<BasicForm @register="registerForm"/>
</BasicModal>

64
src/views/system/menu/index.vue

@ -2,41 +2,45 @@ @@ -2,41 +2,45 @@
<div>
<BasicTable @register="registerTable">
<template #toolbar>
<a-button v-auth="['menu_add']"
type="primary"
@click="handleAdd()"
<a-button
v-auth="['menu_add']"
type="primary"
@click="handleAdd()"
>新增菜单</a-button>
<a-button type="default"
@click="expandAll"
<a-button
type="default"
@click="expandAll"
>展开全部</a-button>
<a-button type="default"
@click="collapseAll"
<a-button
type="default"
@click="collapseAll"
>折叠全部</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
auth: ['menu_edit'],
onClick: handleEdit.bind(null, record)
},
{
label: '新增',
icon: 'ant-design:plus-circle-outlined',
auth: ['menu_add'],
onClick: handleAdd.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
auth: ['menu_del'],
color: 'error',
popConfirm: {
title: '是否确认删除',
confirm: handleDel.bind(null, record)
}
}]"
<TableAction
:actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
auth: ['menu_edit'],
onClick: handleEdit.bind(null, record)
},
{
label: '新增',
icon: 'ant-design:plus-circle-outlined',
auth: ['menu_add'],
onClick: handleAdd.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
auth: ['menu_del'],
color: 'error',
popConfirm: {
title: '是否确认删除',
confirm: handleDel.bind(null, record)
}
}]"
/>
</template>
</BasicTable>

13
src/views/system/region/RegionModal.vue

@ -1,10 +1,11 @@ @@ -1,10 +1,11 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
:maskClosable="false"
:destroyOnClose="true"
@ok="handleSubmit"
@register="registerModal"
<BasicModal
v-bind="$attrs"
width="720px"
:maskClosable="false"
:destroyOnClose="true"
@ok="handleSubmit"
@register="registerModal"
>
<BasicForm @register="registerForm"/>
</BasicModal>

51
src/views/system/region/index.vue

@ -1,34 +1,37 @@ @@ -1,34 +1,37 @@
<template>
<div>
<BasicTable @register="registerTable"
@expand="onExpandClick"
<BasicTable
@register="registerTable"
@expand="onExpandClick"
>
<template #toolbar>
<a-button type="primary"
@click="handleAdd()"
<a-button
type="primary"
@click="handleAdd()"
>新增区域</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '新增',
icon: 'ant-design:plus-circle-outlined',
onClick: handleAdd.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
popConfirm: {
title: '是否确认删除',
confirm: handleDel.bind(null, record)
}
}]"
<TableAction
:actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
onClick: handleEdit.bind(null, record)
},
{
label: '新增',
icon: 'ant-design:plus-circle-outlined',
onClick: handleAdd.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
popConfirm: {
title: '是否确认删除',
confirm: handleDel.bind(null, record)
}
}]"
/>
</template>
</BasicTable>

28
src/views/system/role/RoleDrawer.vue

@ -1,20 +1,22 @@ @@ -1,20 +1,22 @@
<template>
<BasicDrawer v-bind="$attrs"
width="500px"
showFooter
@ok="handleSubmit"
@register="registerDrawer"
@visible-change="state.checkedKeys={}"
<BasicDrawer
v-bind="$attrs"
width="500px"
showFooter
@ok="handleSubmit"
@register="registerDrawer"
@visible-change="state.checkedKeys={}"
>
<BasicForm @register="registerForm">
<template #menu="{ model, field }">
<BasicTree v-model:value="model[field]"
title="菜单分配"
toolbar
checkable
:treeData="state.menuTree"
:fieldNames="{ title: 'name', key: 'id' }"
@check="handleHalfCheckedKeysMerge"
<BasicTree
v-model:value="model[field]"
title="菜单分配"
toolbar
checkable
:treeData="state.menuTree"
:fieldNames="{ title: 'name', key: 'id' }"
@check="handleHalfCheckedKeysMerge"
/>
</template>
</BasicForm>

59
src/views/system/role/index.vue

@ -1,39 +1,44 @@ @@ -1,39 +1,44 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<a-button v-auth="['role_add']"
type="primary"
@click="handleAdd()"
<a-button
v-auth="['role_add']"
type="primary"
@click="handleAdd()"
>新增角色</a-button>
<a-button v-auth="['role_edit']"
type="primary"
:disabled="state.single"
@click="handleEdit()"
<a-button
v-auth="['role_edit']"
type="primary"
:disabled="state.single"
@click="handleEdit()"
>修改角色</a-button>
<a-button v-auth="['role_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
v-auth="['role_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除角色</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
auth: ['role_edit'],
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
auth: ['role_del'],
color: 'error',
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
auth: ['role_edit'],
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
auth: ['role_del'],
color: 'error',
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

9
src/views/system/tenant/TenantModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
<BasicModal
v-bind="$attrs"
width="720px"
@register="registerModal"
@ok="handleSubmit"
>
<BasicForm @register="registerForm"/>
</BasicModal>

59
src/views/system/tenant/index.vue

@ -1,39 +1,44 @@ @@ -1,39 +1,44 @@
<template>
<div>
<BasicTable @register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<a-button v-auth="['tenant_add']"
type="primary"
@click="handleAdd()"
<a-button
v-auth="['tenant_add']"
type="primary"
@click="handleAdd()"
>新增多租户</a-button>
<a-button v-auth="['tenant_edit']"
type="primary"
:disabled="state.single"
@click="handleEdit()"
<a-button
v-auth="['tenant_edit']"
type="primary"
:disabled="state.single"
@click="handleEdit()"
>修改多租户</a-button>
<a-button v-auth="['tenant_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
v-auth="['tenant_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除多租户</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
auth: ['tenant_edit'],
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
auth: ['tenant_del'],
onClick: handleDel.bind(null, record)
}]"
<TableAction
:actions="[
{
label: '编辑',
icon: 'fa6-regular:pen-to-square',
auth: ['tenant_edit'],
onClick: handleEdit.bind(null, record)
},
{
label: '删除',
icon: 'ant-design:delete-outlined',
color: 'error',
auth: ['tenant_del'],
onClick: handleDel.bind(null, record)
}]"
/>
</template>
</BasicTable>

15
src/views/system/user/DeptTree.vue

@ -1,12 +1,13 @@ @@ -1,12 +1,13 @@
<template>
<div class="m-4 mr-0 overflow-hidden bg-white">
<BasicTree title="部门列表"
toolbar
search
:clickRowToExpand="false"
:treeData="treeData"
:fieldNames="{ key: 'deptId', title: 'name' }"
@select="handleSelect"
<BasicTree
title="部门列表"
toolbar
search
:clickRowToExpand="false"
:treeData="treeData"
:fieldNames="{ key: 'deptId', title: 'name' }"
@select="handleSelect"
/>
</div>
</template>

13
src/views/system/user/ResetPwdModal.vue

@ -1,10 +1,11 @@ @@ -1,10 +1,11 @@
<template>
<BasicModal v-bind="$attrs"
centered
title="重置密码"
minHeight="100px"
@ok="handleSubmit"
@register="registerModal"
<BasicModal
v-bind="$attrs"
centered
title="重置密码"
minHeight="100px"
@ok="handleSubmit"
@register="registerModal"
>
<Form :model="modelRef" :rules="rulesRef">
<FormItem name="newPassword" v-bind="validateInfos.newPassword">

9
src/views/system/user/UserModal.vue

@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
<template>
<BasicModal v-bind="$attrs"
width="720px"
@ok="handleSubmit"
@register="registerModal"
<BasicModal
v-bind="$attrs"
width="720px"
@ok="handleSubmit"
@register="registerModal"
>
<BasicForm @register="registerForm"/>
</BasicModal>

16
src/views/system/user/account/center/Application.vue

@ -6,10 +6,11 @@ @@ -6,10 +6,11 @@
<ListItem>
<Card :hoverable="true" :class="`${prefixCls}__card`">
<div :class="`${prefixCls}__card-title`">
<Icon v-if="item.icon"
class="icon"
:icon="item.icon"
:color="item.color"
<Icon
v-if="item.icon"
class="icon"
:icon="item.icon"
:color="item.color"
/>{{ item.title }}
</div>
<div :class="`${prefixCls}__card-num`">
@ -18,9 +19,10 @@ @@ -18,9 +19,10 @@
<div :class="`${prefixCls}__card-num`">
新增用户<span>{{ item.new }}</span>
</div>
<Icon v-if="item.download"
:class="`${prefixCls}__card-download`"
:icon="item.download"
<Icon
v-if="item.download"
:class="`${prefixCls}__card-download`"
:icon="item.download"
/>
</Card>
</ListItem>

7
src/views/system/user/account/setting/UserInfo.vue

@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
<template>
<div ref="wrapperRef"
class="user-info"
:style="getContentStyle"
<div
ref="wrapperRef"
class="user-info"
:style="getContentStyle"
>
<ARow :gutter="24">
<ACol :span="14">

5
src/views/system/user/account/setting/entCertification/Step2.vue

@ -5,8 +5,9 @@ @@ -5,8 +5,9 @@
<SmileOutlined/>
</template>
<template #extra>
<a-button type="primary"
@click="handleSubmit"
<a-button
type="primary"
@click="handleSubmit"
>撤回申请</a-button>
</template>
</AResult>

7
src/views/system/user/account/setting/entCertification/index.vue

@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
<template>
<div ref="wrapperRef"
class="step-form-form"
:style="getContentStyle"
<div
ref="wrapperRef"
class="step-form-form"
:style="getContentStyle"
>
<div>
<ASteps :current="current">

4
src/views/system/user/account/setting/index.vue

@ -1,13 +1,13 @@ @@ -1,13 +1,13 @@
<template>
<ScrollContainer>
<div ref="wrapperRef" :class="prefixCls">
<Tabs tab-position="left" :tabBarStyle="tabBarStyle" @tabClick="componentClick">
<Tabs tab-position="left" :tabBarStyle="tabBarStyle" @tab-click="componentClick">
<template v-for="item in settingList" :key="item.key">
<TabPane>
<template #tab>
<span>
<Icon :icon="item.prefixIcon" class="icon-font-color"/>
{{item.name}}
{{ item.name }}
</span>
</template>
<component :is="item.component" v-if="activeKey === item.key"/>

41
src/views/system/user/index.vue

@ -1,28 +1,33 @@ @@ -1,28 +1,33 @@
<template>
<PageWrapper contentClass="flex"
contentFullHeight
fixedHeight
dense
<PageWrapper
contentClass="flex"
contentFullHeight
fixedHeight
dense
>
<DeptTree class="w-1/4 xl:w-1/5" @select="handleSelect"/>
<BasicTable class="w-3/4 xl:w-4/5"
@register="registerTable"
@selection-change="handleSelectionChange"
<BasicTable
class="w-3/4 xl:w-4/5"
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #tableTitle>
<a-button v-auth="['user_add']"
type="primary"
@click="handleAdd()"
<a-button
v-auth="['user_add']"
type="primary"
@click="handleAdd()"
>新增用户</a-button>
<a-button v-auth="['user_edit']"
type="primary"
:disabled="state.single"
@click="handleEdit()"
<a-button
v-auth="['user_edit']"
type="primary"
:disabled="state.single"
@click="handleEdit()"
>修改用户</a-button>
<a-button v-auth="['user_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
<a-button
v-auth="['user_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除用户</a-button>
</template>
<template #action="{ record }">

Loading…
Cancel
Save