Browse Source

fix: check eslint warnings

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

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

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

6
src/components/AMap/src/components/MapPointModal.vue

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
defaultFullscreen defaultFullscreen
:canFullscreen="false" :canFullscreen="false"
@register="registerModal" @register="registerModal"
@ -7,7 +8,8 @@
> >
<div :class="[prefixCls ,'pointBody']"> <div :class="[prefixCls ,'pointBody']">
<div class="leftLayout"> <div class="leftLayout">
<AMapDesigner ref="AMapDesignerEl" <AMapDesigner
ref="AMapDesignerEl"
:options="state.mapData" :options="state.mapData"
:sidebarControl="false" :sidebarControl="false"
:toolbarControl="false" :toolbarControl="false"

15
src/components/AMap/src/components/MapTaskModal.vue

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
:width="1050" :width="1050"
:minHeight="500" :minHeight="500"
@visible-change="handleModalVisibleChange" @visible-change="handleModalVisibleChange"
@ -9,13 +10,15 @@
<!--普通任务表格--> <!--普通任务表格-->
<BasicTable @register="taskOrdinaryRegisterTable"> <BasicTable @register="taskOrdinaryRegisterTable">
<template #toolbar> <template #toolbar>
<a-button type="primary" <a-button
type="primary"
:disabled="!!state.taskOrdinaryCurrentEditRowRef" :disabled="!!state.taskOrdinaryCurrentEditRowRef"
@click="handleTaskOrdinaryAdd" @click="handleTaskOrdinaryAdd"
>新增</a-button> >新增</a-button>
</template> </template>
<template #action="{ record, column }"> <template #action="{ record, column }">
<TableAction :actions="createTaskOrdinaryActions(record, column).concat([ <TableAction
:actions="createTaskOrdinaryActions(record, column).concat([
{ {
label: '删除', label: '删除',
icon: 'ant-design:delete-outlined', icon: 'ant-design:delete-outlined',
@ -30,13 +33,15 @@
<!--交接任务表格--> <!--交接任务表格-->
<BasicTable @register="taskPresetRegisterTable"> <BasicTable @register="taskPresetRegisterTable">
<template #toolbar> <template #toolbar>
<a-button type="primary" <a-button
type="primary"
:disabled="!!state.taskPresetCurrentEditRowRef" :disabled="!!state.taskPresetCurrentEditRowRef"
@click="handleTaskPresetAdd" @click="handleTaskPresetAdd"
>新增</a-button> >新增</a-button>
</template> </template>
<template #action="{ record, column }"> <template #action="{ record, column }">
<TableAction :actions="createTaskPresetActions(record, column).concat([ <TableAction
:actions="createTaskPresetActions(record, column).concat([
{ {
label: '转办', label: '转办',
icon: 'fa6-regular:pen-to-square', icon: 'fa6-regular:pen-to-square',

15
src/components/AMap/src/components/MapTaskPresetModal.vue

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

18
src/components/AMap/src/components/Toolbar.vue

@ -1,6 +1,7 @@
<template> <template>
<div class="headToolbar"> <div class="headToolbar">
<ATooltip v-if="toolbar.includes('save')" <ATooltip
v-if="toolbar.includes('save')"
title="保存并发布" title="保存并发布"
placement="bottom" placement="bottom"
:arrowPointAtCenter="true" :arrowPointAtCenter="true"
@ -9,7 +10,8 @@
<Icon icon="fa6-regular:floppy-disk" size="13"/>保存 <Icon icon="fa6-regular:floppy-disk" size="13"/>保存
</a-button> </a-button>
</ATooltip> </ATooltip>
<ATooltip v-if="toolbar.includes('addTask')" <ATooltip
v-if="toolbar.includes('addTask')"
title="新增任务" title="新增任务"
placement="bottom" placement="bottom"
:arrowPointAtCenter="true" :arrowPointAtCenter="true"
@ -18,7 +20,8 @@
<Icon icon="fa6-regular:window-restore" size="13"/>任务 <Icon icon="fa6-regular:window-restore" size="13"/>任务
</a-button> </a-button>
</ATooltip> </ATooltip>
<ATooltip v-if="toolbar.includes('point')" <ATooltip
v-if="toolbar.includes('point')"
title="调整标记点" title="调整标记点"
placement="bottom" placement="bottom"
:arrowPointAtCenter="true" :arrowPointAtCenter="true"
@ -27,7 +30,8 @@
<Icon icon="fa6-solid:location-dot" size="13"/>标记点 <Icon icon="fa6-solid:location-dot" size="13"/>标记点
</a-button> </a-button>
</ATooltip> </ATooltip>
<ATooltip v-if="toolbar.includes('zoomIn')" <ATooltip
v-if="toolbar.includes('zoomIn')"
title="放大" title="放大"
placement="bottom" placement="bottom"
:arrowPointAtCenter="true" :arrowPointAtCenter="true"
@ -39,7 +43,8 @@
<a-button> <a-button>
{{ Math.ceil(defaultZoom * 10 * 1.1) + "%" }} {{ Math.ceil(defaultZoom * 10 * 1.1) + "%" }}
</a-button> </a-button>
<ATooltip v-if="toolbar.includes('zoomOut')" <ATooltip
v-if="toolbar.includes('zoomOut')"
title="缩小" title="缩小"
placement="bottom" placement="bottom"
:arrowPointAtCenter="true" :arrowPointAtCenter="true"
@ -48,7 +53,8 @@
<Icon icon="fa6-solid:magnifying-glass-minus" size="13"/> <Icon icon="fa6-solid:magnifying-glass-minus" size="13"/>
</a-button> </a-button>
</ATooltip> </ATooltip>
<ATooltip v-if="toolbar.includes('reset')" <ATooltip
v-if="toolbar.includes('reset')"
title="重置" title="重置"
placement="bottom" placement="bottom"
:arrowPointAtCenter="true" :arrowPointAtCenter="true"

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

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

3
src/components/CountDown/src/CountButton.vue

@ -1,5 +1,6 @@
<template> <template>
<Button v-bind="$attrs" <Button
v-bind="$attrs"
:disabled="isStart" :disabled="isStart"
:loading="loading" :loading="loading"
@click="handleStart" @click="handleStart"

6
src/components/CountDown/src/CountdownInput.vue

@ -1,11 +1,13 @@
<template> <template>
<a-input v-bind="$attrs" <a-input
v-bind="$attrs"
:class="prefixCls" :class="prefixCls"
:size="size" :size="size"
:value="state" :value="state"
> >
<template #addonAfter> <template #addonAfter>
<CountButton :size="size" <CountButton
:size="size"
:count="count" :count="count"
:value="state" :value="state"
:beforeStartFunc="sendCodeApi" :beforeStartFunc="sendCodeApi"

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

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

3
src/components/Drawer/src/BasicDrawer.vue

@ -23,7 +23,8 @@
> >
<slot/> <slot/>
</ScrollContainer> </ScrollContainer>
<DrawerFooter v-bind="getProps" <DrawerFooter
v-bind="getProps"
:height="getFooterHeight" :height="getFooterHeight"
@close="onClose" @close="onClose"
@ok="handleOk" @ok="handleOk"

3
src/components/Drawer/src/components/DrawerFooter.vue

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

3
src/components/Scrollbar/src/Scrollbar.vue

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

9
src/components/Upload/src/BasicUpload.vue

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

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

@ -17,7 +17,8 @@
<BasicForm @register="registerForm"/> <BasicForm @register="registerForm"/>
<div :class="`${prefixCls}__footer`"> <div :class="`${prefixCls}__footer`">
<a-button type="primary" <a-button
type="primary"
block block
class="mt-2" class="mt-2"
@click="handleLock" @click="handleLock"

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

@ -5,7 +5,8 @@
{{ t('layout.setting.copyBtn') }} {{ t('layout.setting.copyBtn') }}
</a-button> </a-button>
<a-button color="warning" <a-button
color="warning"
block block
class="my-3" class="my-3"
@click="handleResetSetting" @click="handleResetSetting"

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

@ -1,13 +1,16 @@
<template> <template>
<AForm ref="formElRef" <AForm
ref="formElRef"
:model="state.modelRef" :model="state.modelRef"
:scrollToFirstError="true" :scrollToFirstError="true"
> >
<AFormItem name="tenantIds" <AFormItem
name="tenantIds"
style="margin-bottom:0px" style="margin-bottom:0px"
:rules="[{ required: true, message: '请至少选择一个多租户,否则会产生无租户数据!'}]" :rules="[{ required: true, message: '请至少选择一个多租户,否则会产生无租户数据!'}]"
> >
<ApiSelect v-model:value="state.modelRef.tenantIds" <ApiSelect
v-model:value="state.modelRef.tenantIds"
:api="currentUserTenantList" :api="currentUserTenantList"
:filterOption="filterOption" :filterOption="filterOption"
resultField="data" resultField="data"
@ -22,7 +25,8 @@
<AFormItem style="margin-bottom:0px"> <AFormItem style="margin-bottom:0px">
<ARow> <ARow>
<ACol :span="12"> <ACol :span="12">
<a-button type="primary" <a-button
type="primary"
block block
@click="handleChangeTenant" @click="handleChangeTenant"
> >
@ -30,7 +34,8 @@
</a-button> </a-button>
</ACol> </ACol>
<ACol :span="12"> <ACol :span="12">
<a-button color="warning" <a-button
color="warning"
block block
@click="handleResetTenantEnv" @click="handleResetTenantEnv"
> >

4
src/store/modules/permission.ts

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

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@register="registerModal" @register="registerModal"
@ok="handleSubmit" @ok="handleSubmit"

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

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

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@register="registerModal" @register="registerModal"
@ok="handleSubmit" @ok="handleSubmit"

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

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

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

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

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

@ -5,12 +5,14 @@
<!--<a-button type="primary" <!--<a-button type="primary"
@click="() => {}" @click="() => {}"
>预览</a-button>--> >预览</a-button>-->
<a-button type="primary" <a-button
type="primary"
@click="handleAdd" @click="handleAdd"
>新增</a-button> >新增</a-button>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
<TableAction :actions="[ <TableAction
:actions="[
{ {
label: '设计', label: '设计',
icon: 'fa6-regular:pen-to-square', icon: 'fa6-regular:pen-to-square',

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@register="registerModal" @register="registerModal"
@ok="handleSubmit" @ok="handleSubmit"

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

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

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@register="registerModal" @register="registerModal"
@ok="handleSubmit" @ok="handleSubmit"

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

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

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@ok="handleSubmit" @ok="handleSubmit"
@register="registerModal" @register="registerModal"

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

@ -6,15 +6,18 @@
type="primary" type="primary"
@click="handleAdd()" @click="handleAdd()"
>新增项目</a-button> >新增项目</a-button>
<a-button type="default" <a-button
type="default"
@click="expandAll" @click="expandAll"
>展开全部</a-button> >展开全部</a-button>
<a-button type="default" <a-button
type="default"
@click="collapseAll" @click="collapseAll"
>折叠全部</a-button> >折叠全部</a-button>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
<TableAction :actions="[ <TableAction
:actions="[
{ {
label: '编辑', label: '编辑',
icon: 'fa6-regular:pen-to-square', icon: 'fa6-regular:pen-to-square',

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@register="registerModal" @register="registerModal"
@ok="handleSubmit" @ok="handleSubmit"

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@register="registerModal" @register="registerModal"
@ok="handleSubmit" @ok="handleSubmit"

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

@ -1,23 +1,28 @@
<template> <template>
<div> <div>
<BasicTable @register="registerTable" <BasicTable
@register="registerTable"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<template #toolbar> <template #toolbar>
<a-button type="primary" <a-button
type="primary"
@click="handleAdd()" @click="handleAdd()"
>新增应用</a-button> >新增应用</a-button>
<a-button type="primary" <a-button
type="primary"
:disabled="state.single" :disabled="state.single"
@click="handleEdit()" @click="handleEdit()"
>修改应用</a-button> >修改应用</a-button>
<a-button type="primary" <a-button
type="primary"
:disabled="state.multiple" :disabled="state.multiple"
@click="handleDel()" @click="handleDel()"
>删除应用</a-button> >删除应用</a-button>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
<TableAction :actions="[ <TableAction
:actions="[
{ {
label: '发送消息', label: '发送消息',
icon: 'fa6-regular:message', icon: 'fa6-regular:message',

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

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

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@register="registerModal" @register="registerModal"
@ok="handleSubmit" @ok="handleSubmit"

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

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

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

@ -1,10 +1,12 @@
<template> <template>
<div> <div>
<BasicTable @register="registerTable" <BasicTable
@register="registerTable"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<template #toolbar> <template #toolbar>
<BasicUpload v-model:value="state.fileList" <BasicUpload
v-model:value="state.fileList"
v-auth="['file_upload']" v-auth="['file_upload']"
:maxSize="20" :maxSize="20"
:maxNumber="10" :maxNumber="10"
@ -15,14 +17,16 @@
multiple multiple
@change="handleUploadSave" @change="handleUploadSave"
/> />
<a-button v-auth="['file_del']" <a-button
v-auth="['file_del']"
type="primary" type="primary"
:disabled="state.multiple" :disabled="state.multiple"
@click="handleDel()" @click="handleDel()"
>删除</a-button> >删除</a-button>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
<TableAction :actions="[ <TableAction
:actions="[
{ {
label: '文件下载', label: '文件下载',
icon: 'fa6-regular:circle-down', icon: 'fa6-regular:circle-down',

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

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

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@register="registerModal" @register="registerModal"
@ok="handleSubmit" @ok="handleSubmit"

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

@ -1,23 +1,27 @@
<template> <template>
<div> <div>
<BasicTable @register="registerTable" <BasicTable
@register="registerTable"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<template #toolbar> <template #toolbar>
<!--<a-button type="primary" <!--<a-button type="primary"
@click="handleAdd()" @click="handleAdd()"
>新增第三方</a-button>--> >新增第三方</a-button>-->
<a-button type="primary" <a-button
type="primary"
:disabled="state.single" :disabled="state.single"
@click="handleEdit()" @click="handleEdit()"
>修改企业</a-button> >修改企业</a-button>
<a-button type="primary" <a-button
type="primary"
:disabled="state.multiple" :disabled="state.multiple"
@click="handleDel()" @click="handleDel()"
>删除企业</a-button> >删除企业</a-button>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
<TableAction :actions="[ <TableAction
:actions="[
{ {
label: '加入黑名单', label: '加入黑名单',
icon: 'fa6-regular:pen-to-square', icon: 'fa6-regular:pen-to-square',

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
:showCancelBtn="false" :showCancelBtn="false"
okText="通过" okText="通过"

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

@ -1,16 +1,19 @@
<template> <template>
<div> <div>
<BasicTable @register="registerTable" <BasicTable
@register="registerTable"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<template #toolbar> <template #toolbar>
<a-button type="primary" <a-button
type="primary"
:disabled="state.multiple" :disabled="state.multiple"
@click="handleDel()" @click="handleDel()"
>驳回申请</a-button> >驳回申请</a-button>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
<TableAction :actions="[ <TableAction
:actions="[
{ {
label: '审批', label: '审批',
icon: 'fa6-regular:pen-to-square', icon: 'fa6-regular:pen-to-square',

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
:showCancelBtn="false" :showCancelBtn="false"
okText="同意" okText="同意"

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

@ -1,16 +1,19 @@
<template> <template>
<div> <div>
<BasicTable @register="registerTable" <BasicTable
@register="registerTable"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<template #toolbar> <template #toolbar>
<a-button type="primary" <a-button
type="primary"
:disabled="state.multiple" :disabled="state.multiple"
@click="handleDel()" @click="handleDel()"
>拒绝</a-button> >拒绝</a-button>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
<TableAction :actions="[ <TableAction
:actions="[
{ {
label: '审核', label: '审核',
icon: 'fa6-regular:pen-to-square', icon: 'fa6-regular:pen-to-square',

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@register="registerModal" @register="registerModal"
@ok="handleSubmit" @ok="handleSubmit"

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

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

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@register="registerModal" @register="registerModal"
@ok="handleSubmit" @ok="handleSubmit"

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

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

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

@ -1,9 +1,11 @@
<template> <template>
<div :class="prefixCls" <div
:class="prefixCls"
class="fixed inset-0 flex h-screen w-screen bg-black items-center justify-center" class="fixed inset-0 flex h-screen w-screen bg-black items-center justify-center"
> >
<!--解锁区域--> <!--解锁区域-->
<div v-show="showDate" <div
v-show="showDate"
:class="`${prefixCls}__unlock`" :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" 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)" @click="handleShowForm(false)"
@ -33,7 +35,8 @@
{{ userInfo.nickName }} {{ userInfo.nickName }}
</p> </p>
</div> </div>
<InputPassword v-model:value="password" <InputPassword
v-model:value="password"
:placeholder="t('sys.lock.placeholder')" :placeholder="t('sys.lock.placeholder')"
class="enter-x" class="enter-x"
/> />
@ -41,19 +44,22 @@
{{ t('sys.lock.alert') }} {{ t('sys.lock.alert') }}
</span> </span>
<div :class="`${prefixCls}-entry__footer enter-x`"> <div :class="`${prefixCls}-entry__footer enter-x`">
<a-button type="link" <a-button
type="link"
size="small" size="small"
class="mt-2 mr-2 enter-x" class="mt-2 mr-2 enter-x"
:disabled="loading" :disabled="loading"
@click="handleShowForm(true)" @click="handleShowForm(true)"
>{{ t('common.back') }}</a-button> >{{ t('common.back') }}</a-button>
<a-button type="link" <a-button
type="link"
size="small" size="small"
class="mt-2 mr-2 enter-x" class="mt-2 mr-2 enter-x"
:disabled="loading" :disabled="loading"
@click="goLogin" @click="goLogin"
>{{ t('sys.lock.backToLogin') }}</a-button> >{{ t('sys.lock.backToLogin') }}</a-button>
<a-button type="link" <a-button
type="link"
size="small" size="small"
class="mt-2" class="mt-2"
:loading="loading" :loading="loading"

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

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

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

@ -1,6 +1,7 @@
<template> <template>
<div :class="prefixCls" class="relative w-full h-full px-4"> <div :class="prefixCls" class="relative w-full h-full px-4">
<AppLocalePicker v-if="showLocale" <AppLocalePicker
v-if="showLocale"
class="absolute text-white top-4 right-4 enter-x xl:text-gray-600" class="absolute text-white top-4 right-4 enter-x xl:text-gray-600"
:showText="false" :showText="false"
/> />
@ -13,7 +14,8 @@
<div class="hidden min-h-full pl-4 mr-4 xl:flex xl:flex-col xl:w-6/12"> <div class="hidden min-h-full pl-4 mr-4 xl:flex xl:flex-col xl:w-6/12">
<AppLogo class="-enter-x"/> <AppLogo class="-enter-x"/>
<div class="my-auto"> <div class="my-auto">
<img :alt="title" <img
:alt="title"
src="../../../assets/images/login-box-bg.svg" src="../../../assets/images/login-box-bg.svg"
class="w-1/2 -mt-16 -enter-x" class="w-1/2 -mt-16 -enter-x"
> >
@ -28,7 +30,8 @@
</div> </div>
</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="flex w-full h-full py-5 xl:h-auto xl:py-0 xl:my-0 xl:w-6/12">
<div :class="`${prefixCls}-form`" <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" 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/> <LoginForm/>

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

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

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

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

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

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

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

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

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

File diff suppressed because one or more lines are too long

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

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

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

@ -2,7 +2,8 @@
<div> <div>
<BasicTable @register="registerTable"> <BasicTable @register="registerTable">
<template #action="{ record }"> <template #action="{ record }">
<TableAction :actions="[ <TableAction
:actions="[
{ {
label: '删除', label: '删除',
icon: 'ant-design:delete-outlined', icon: 'ant-design:delete-outlined',

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@register="registerModal" @register="registerModal"
@ok="handleSubmit" @ok="handleSubmit"

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

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

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

@ -1,11 +1,13 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
:width="720" :width="720"
:height="500" :height="500"
@register="registerModal" @register="registerModal"
@ok="handleSubmit" @ok="handleSubmit"
> >
<AForm ref="formElRef" <AForm
ref="formElRef"
:labelCol="{ style: { width: '120px' } }" :labelCol="{ style: { width: '120px' } }"
:wrapperCol="{ style: { width: '100%' } }" :wrapperCol="{ style: { width: '100%' } }"
:model="state.modelRef" :model="state.modelRef"
@ -19,7 +21,8 @@
<ARow justify="center"> <ARow justify="center">
<ACol :span="12"> <ACol :span="12">
<AFormItem label="参数名称" name="name"> <AFormItem label="参数名称" name="name">
<a-input v-model:value="state.modelRef.name" <a-input
v-model:value="state.modelRef.name"
placeholder="请输入参数名称" placeholder="请输入参数名称"
allowClear allowClear
/> />
@ -27,7 +30,8 @@
</ACol> </ACol>
<ACol :span="12"> <ACol :span="12">
<AFormItem label="参数键名" name="key"> <AFormItem label="参数键名" name="key">
<a-input v-model:value="state.modelRef.key" <a-input
v-model:value="state.modelRef.key"
placeholder="请输入参数键名" placeholder="请输入参数键名"
allowClear allowClear
/> />
@ -35,7 +39,8 @@
</ACol> </ACol>
<ACol :span="12"> <ACol :span="12">
<AFormItem label="参数键值" name="value"> <AFormItem label="参数键值" name="value">
<a-input v-model:value="state.modelRef.value" <a-input
v-model:value="state.modelRef.value"
placeholder="请输入参数键值" placeholder="请输入参数键值"
allowClear allowClear
/> />
@ -51,7 +56,8 @@
</ACol> </ACol>
<ACol> <ACol>
<AFormItem label="备注" name="remarks"> <AFormItem label="备注" name="remarks">
<ATextarea v-model:value="state.modelRef.remarks" <ATextarea
v-model:value="state.modelRef.remarks"
placeholder="请输入备注" placeholder="请输入备注"
:rows="6" :rows="6"
allowClear allowClear

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

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

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@ok="handleSubmit" @ok="handleSubmit"
@register="registerModal" @register="registerModal"

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@register="registerModal" @register="registerModal"
@ok="handleSubmit" @ok="handleSubmit"

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

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

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@register="registerModal" @register="registerModal"
@ok="handleSubmit" @ok="handleSubmit"

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

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

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

@ -1,10 +1,12 @@
<template> <template>
<div> <div>
<BasicTable @register="registerTable" <BasicTable
@register="registerTable"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<template #toolbar> <template #toolbar>
<BasicUpload v-model:value="state.fileList" <BasicUpload
v-model:value="state.fileList"
v-auth="['file_upload']" v-auth="['file_upload']"
:maxSize="20" :maxSize="20"
:maxNumber="10" :maxNumber="10"
@ -15,14 +17,16 @@
multiple multiple
@change="handleUploadSave" @change="handleUploadSave"
/> />
<a-button v-auth="['file_del']" <a-button
v-auth="['file_del']"
type="primary" type="primary"
:disabled="state.multiple" :disabled="state.multiple"
@click="handleDel()" @click="handleDel()"
>删除</a-button> >删除</a-button>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
<TableAction :actions="[ <TableAction
:actions="[
{ {
label: '文件下载', label: '文件下载',
icon: 'fa6-regular:circle-down', icon: 'fa6-regular:circle-down',

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@ok="handleSubmit" @ok="handleSubmit"
@register="registerModal" @register="registerModal"

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

@ -2,19 +2,23 @@
<div> <div>
<BasicTable @register="registerTable"> <BasicTable @register="registerTable">
<template #toolbar> <template #toolbar>
<a-button v-auth="['menu_add']" <a-button
v-auth="['menu_add']"
type="primary" type="primary"
@click="handleAdd()" @click="handleAdd()"
>新增菜单</a-button> >新增菜单</a-button>
<a-button type="default" <a-button
type="default"
@click="expandAll" @click="expandAll"
>展开全部</a-button> >展开全部</a-button>
<a-button type="default" <a-button
type="default"
@click="collapseAll" @click="collapseAll"
>折叠全部</a-button> >折叠全部</a-button>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
<TableAction :actions="[ <TableAction
:actions="[
{ {
label: '编辑', label: '编辑',
icon: 'fa6-regular:pen-to-square', icon: 'fa6-regular:pen-to-square',

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
:maskClosable="false" :maskClosable="false"
:destroyOnClose="true" :destroyOnClose="true"

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

@ -1,15 +1,18 @@
<template> <template>
<div> <div>
<BasicTable @register="registerTable" <BasicTable
@register="registerTable"
@expand="onExpandClick" @expand="onExpandClick"
> >
<template #toolbar> <template #toolbar>
<a-button type="primary" <a-button
type="primary"
@click="handleAdd()" @click="handleAdd()"
>新增区域</a-button> >新增区域</a-button>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
<TableAction :actions="[ <TableAction
:actions="[
{ {
label: '编辑', label: '编辑',
icon: 'fa6-regular:pen-to-square', icon: 'fa6-regular:pen-to-square',

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

@ -1,5 +1,6 @@
<template> <template>
<BasicDrawer v-bind="$attrs" <BasicDrawer
v-bind="$attrs"
width="500px" width="500px"
showFooter showFooter
@ok="handleSubmit" @ok="handleSubmit"
@ -8,7 +9,8 @@
> >
<BasicForm @register="registerForm"> <BasicForm @register="registerForm">
<template #menu="{ model, field }"> <template #menu="{ model, field }">
<BasicTree v-model:value="model[field]" <BasicTree
v-model:value="model[field]"
title="菜单分配" title="菜单分配"
toolbar toolbar
checkable checkable

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

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

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@register="registerModal" @register="registerModal"
@ok="handleSubmit" @ok="handleSubmit"

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

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

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

@ -1,6 +1,7 @@
<template> <template>
<div class="m-4 mr-0 overflow-hidden bg-white"> <div class="m-4 mr-0 overflow-hidden bg-white">
<BasicTree title="部门列表" <BasicTree
title="部门列表"
toolbar toolbar
search search
:clickRowToExpand="false" :clickRowToExpand="false"

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
centered centered
title="重置密码" title="重置密码"
minHeight="100px" minHeight="100px"

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

@ -1,5 +1,6 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
v-bind="$attrs"
width="720px" width="720px"
@ok="handleSubmit" @ok="handleSubmit"
@register="registerModal" @register="registerModal"

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

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

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

@ -1,5 +1,6 @@
<template> <template>
<div ref="wrapperRef" <div
ref="wrapperRef"
class="user-info" class="user-info"
:style="getContentStyle" :style="getContentStyle"
> >

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

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

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

@ -1,5 +1,6 @@
<template> <template>
<div ref="wrapperRef" <div
ref="wrapperRef"
class="step-form-form" class="step-form-form"
:style="getContentStyle" :style="getContentStyle"
> >

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

@ -1,13 +1,13 @@
<template> <template>
<ScrollContainer> <ScrollContainer>
<div ref="wrapperRef" :class="prefixCls"> <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"> <template v-for="item in settingList" :key="item.key">
<TabPane> <TabPane>
<template #tab> <template #tab>
<span> <span>
<Icon :icon="item.prefixIcon" class="icon-font-color"/> <Icon :icon="item.prefixIcon" class="icon-font-color"/>
{{item.name}} {{ item.name }}
</span> </span>
</template> </template>
<component :is="item.component" v-if="activeKey === item.key"/> <component :is="item.component" v-if="activeKey === item.key"/>

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

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

Loading…
Cancel
Save