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

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

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

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

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

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

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

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

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

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"/>

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

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

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

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

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>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 {
// 路由是否动态添加

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -1,9 +1,11 @@ @@ -1,9 +1,11 @@
<template>
<div :class="prefixCls"
<div
:class="prefixCls"
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="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)"
@ -33,7 +35,8 @@ @@ -33,7 +35,8 @@
{{ userInfo.nickName }}
</p>
</div>
<InputPassword v-model:value="password"
<InputPassword
v-model:value="password"
:placeholder="t('sys.lock.placeholder')"
class="enter-x"
/>
@ -41,19 +44,22 @@ @@ -41,19 +44,22 @@
{{ t('sys.lock.alert') }}
</span>
<div :class="`${prefixCls}-entry__footer enter-x`">
<a-button type="link"
<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"
<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"
<a-button
type="link"
size="small"
class="mt-2"
:loading="loading"

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

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

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

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
<template>
<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"
:showText="false"
/>
@ -13,7 +14,8 @@ @@ -13,7 +14,8 @@
<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"
<img
:alt="title"
src="../../../assets/images/login-box-bg.svg"
class="w-1/2 -mt-16 -enter-x"
>
@ -28,7 +30,8 @@ @@ -28,7 +30,8 @@
</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`"
<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/>

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

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

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

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

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

@ -2,12 +2,14 @@ @@ -2,12 +2,14 @@
<template v-if="getShow">
<LoginFormTitle class="enter-x"/>
<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"
:width="280"
/>
<Divider class="enter-x">{{ t('sys.login.scanSign') }}</Divider>
<Button size="large"
<Button
size="large"
block
class="mt-4 enter-x"
@click="handleBackLogin"

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

@ -1,40 +1,46 @@ @@ -1,40 +1,46 @@
<template>
<template v-if="getShow">
<LoginFormTitle class="enter-x"/>
<Form ref="formRef"
<Form
ref="formRef"
class="p-4 enter-x"
:model="formData"
:rules="getFormRules"
>
<FormItem name="account" class="enter-x">
<Input v-model:value="formData.account"
<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"
<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"
<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"
<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"
<InputPassword
v-model:value="formData.confirmPassword"
size="large"
visibilityToggle
:placeholder="t('sys.login.confirmPassword')"
@ -46,14 +52,16 @@ @@ -46,14 +52,16 @@
{{ t('sys.login.policy') }}
</Checkbox>
</FormItem>
<Button type="primary"
<Button
type="primary"
class="enter-x"
size="large"
block
:loading="loading"
@click="handleRegister"
>{{ t('sys.login.registerButton') }}</Button>
<Button size="large"
<Button
size="large"
block
class="mt-4 enter-x"
@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 @@ @@ -1,21 +1,25 @@
<template>
<div>
<BasicTable @register="registerTable"
<BasicTable
@register="registerTable"
@selection-change="handleSelectionChange"
>
<template #toolbar>
<a-button v-auth="['role_del']"
<a-button
v-auth="['role_del']"
type="primary"
:disabled="state.multiple"
@click="handleDel()"
>删除日志</a-button>
<a-button v-auth="['operLog_del']"
<a-button
v-auth="['operLog_del']"
type="primary"
@click="handleCleanOperLog()"
>清空日志</a-button>
</template>
<template #action="{ record }">
<TableAction :actions="[
<TableAction
:actions="[
{
label: '删除',
icon: 'ant-design:delete-outlined',

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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"/>

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

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

Loading…
Cancel
Save