Browse Source

fix: check eslint warnings

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

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

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

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

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

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

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

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

@ -1,44 +1,49 @@
<template> <template>
<BasicModal v-bind="$attrs" <BasicModal
:width="1050" v-bind="$attrs"
:minHeight="400" :width="1050"
@visible-change="handleModalVisibleChange" :minHeight="400"
@register="registerModal" @visible-change="handleModalVisibleChange"
@ok="handleSubmit" @register="registerModal"
@ok="handleSubmit"
> >
<AForm ref="formElRef" <AForm
:labelCol="{ style: { width: '80px' } }" ref="formElRef"
:wrapperCol="{ style: { width: '100%', 'margin-right': '10px' } }" :labelCol="{ style: { width: '80px' } }"
:model="state.modelRef" :wrapperCol="{ style: { width: '100%', 'margin-right': '10px' } }"
:model="state.modelRef"
> >
<AFormItem v-show="false" label="终点行key" name="destinationPresetRowKeyRef"> <AFormItem v-show="false" label="终点行key" name="destinationPresetRowKeyRef">
<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
:options="state.options.orgList" v-model:value="state.modelRef.destinationPresetId"
:style="{ width:'30%' }" :options="state.options.orgList"
allowClear :style="{ width:'30%' }"
allowClear
/> />
</AFormItem> </AFormItem>
</AForm> </AForm>
<BasicTable @register="registerTable"> <BasicTable @register="registerTable">
<template #toolbar> <template #toolbar>
<a-button type="primary" <a-button
:disabled="!!state.currentEditRowRef" type="primary"
@click="handleTaskTurnToDoAdd" :disabled="!!state.currentEditRowRef"
@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: '删除', {
icon: 'ant-design:delete-outlined', label: '删除',
color: 'error', icon: 'ant-design:delete-outlined',
disabled: !!state.currentEditRowRef, color: 'error',
onClick: handleTaskTurnToDoDelete.bind(null, record) disabled: !!state.currentEditRowRef,
} onClick: handleTaskTurnToDoDelete.bind(null, record)
])" }
])"
/> />
</template> </template>
</BasicTable> </BasicTable>

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

@ -1,36 +1,40 @@
<template> <template>
<div class="headToolbar"> <div class="headToolbar">
<ATooltip v-if="toolbar.includes('save')" <ATooltip
title="保存并发布" v-if="toolbar.includes('save')"
placement="bottom" title="保存并发布"
:arrowPointAtCenter="true" placement="bottom"
:arrowPointAtCenter="true"
> >
<a-button type="primary" @click="emit('save')"> <a-button type="primary" @click="emit('save')">
<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
title="新增任务" v-if="toolbar.includes('addTask')"
placement="bottom" title="新增任务"
:arrowPointAtCenter="true" placement="bottom"
:arrowPointAtCenter="true"
> >
<a-button type="primary" @click="emit('addTask')"> <a-button type="primary" @click="emit('addTask')">
<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
title="调整标记点" v-if="toolbar.includes('point')"
placement="bottom" title="调整标记点"
:arrowPointAtCenter="true" placement="bottom"
:arrowPointAtCenter="true"
> >
<a-button type="primary" @click="emit('point')"> <a-button type="primary" @click="emit('point')">
<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
title="放大" v-if="toolbar.includes('zoomIn')"
placement="bottom" title="放大"
:arrowPointAtCenter="true" placement="bottom"
:arrowPointAtCenter="true"
> >
<a-button :disabled="defaultZoom >= 9" @click="emit('zoomIn')"> <a-button :disabled="defaultZoom >= 9" @click="emit('zoomIn')">
<Icon icon="fa6-solid:magnifying-glass-plus" size="13"/> <Icon icon="fa6-solid:magnifying-glass-plus" size="13"/>
@ -39,19 +43,21 @@
<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
title="缩小" v-if="toolbar.includes('zoomOut')"
placement="bottom" title="缩小"
:arrowPointAtCenter="true" placement="bottom"
:arrowPointAtCenter="true"
> >
<a-button :disabled="defaultZoom <= 0" @click="emit('zoomOut')"> <a-button :disabled="defaultZoom <= 0" @click="emit('zoomOut')">
<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
title="重置" v-if="toolbar.includes('reset')"
placement="bottom" title="重置"
:arrowPointAtCenter="true" placement="bottom"
:arrowPointAtCenter="true"
> >
<a-button @click="emit('reset')"> <a-button @click="emit('reset')">
<Icon icon="fa-solid:broom" size="13"/> <Icon icon="fa-solid:broom" size="13"/>

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

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

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

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

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

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

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

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

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

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

@ -2,10 +2,11 @@
<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-bind="cancelButtonProps" v-if="showCancelBtn"
class="mr-2" v-bind="cancelButtonProps"
@click="handleClose" class="mr-2"
@click="handleClose"
> >
{{ cancelText }} {{ cancelText }}
</a-button> </a-button>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

50
src/views/core/login/ForgetPasswordForm.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
:model="formData" ref="formRef"
class="p-4 enter-x" :model="formData"
:rules="getFormRules" class="p-4 enter-x"
:rules="getFormRules"
> >
<FormItem name="account" class="enter-x"> <FormItem name="account" class="enter-x">
<Input v-model:value="formData.account" <Input
size="large" v-model:value="formData.account"
:placeholder="t('sys.login.userName')" size="large"
: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
size="large" v-model:value="formData.mobile"
:placeholder="t('sys.login.mobile')" size="large"
: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
size="large" v-model:value="formData.sms"
:placeholder="t('sys.login.smsCode')" size="large"
:placeholder="t('sys.login.smsCode')"
/> />
</FormItem> </FormItem>
<FormItem class="enter-x"> <FormItem class="enter-x">
<Button type="primary" <Button
size="large" type="primary"
block size="large"
:loading="loading" block
@click="handleReset" :loading="loading"
@click="handleReset"
>{{ t('common.resetText') }}</Button> >{{ t('common.resetText') }}</Button>
<Button size="large" <Button
block size="large"
class="mt-4" block
@click="handleBackLogin" class="mt-4"
@click="handleBackLogin"
>{{ t('sys.login.backSignIn') }}</Button> >{{ t('sys.login.backSignIn') }}</Button>
</FormItem> </FormItem>
</Form> </Form>

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

@ -1,8 +1,9 @@
<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
class="absolute text-white top-4 right-4 enter-x xl:text-gray-600" v-if="showLocale"
:showText="false" class="absolute text-white top-4 right-4 enter-x xl:text-gray-600"
:showText="false"
/> />
<AppDarkModeToggle class="absolute top-3 right-7 enter-x"/> <AppDarkModeToggle class="absolute top-3 right-7 enter-x"/>
<span class="-enter-x xl:hidden"> <span class="-enter-x xl:hidden">
@ -13,9 +14,10 @@
<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
src="../../../assets/images/login-box-bg.svg" :alt="title"
class="w-1/2 -mt-16 -enter-x" src="../../../assets/images/login-box-bg.svg"
class="w-1/2 -mt-16 -enter-x"
> >
<div class="mt-10 font-medium text-white -enter-x"> <div class="mt-10 font-medium text-white -enter-x">
<span class="inline-block mt-4 text-3xl"> <span class="inline-block mt-4 text-3xl">
@ -28,8 +30,9 @@
</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="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="`${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/> <LoginForm/>
<ForgetPasswordForm/> <ForgetPasswordForm/>

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

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

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

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

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

@ -2,15 +2,17 @@
<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
class="enter-x flex justify-center xl:justify-start" :value="qrCodeUrl"
:width="280" class="enter-x flex justify-center xl:justify-start"
:width="280"
/> />
<Divider class="enter-x">{{ t('sys.login.scanSign') }}</Divider> <Divider class="enter-x">{{ t('sys.login.scanSign') }}</Divider>
<Button size="large" <Button
block size="large"
class="mt-4 enter-x" block
@click="handleBackLogin" class="mt-4 enter-x"
@click="handleBackLogin"
>{{ t('sys.login.backSignIn') }}</Button> >{{ t('sys.login.backSignIn') }}</Button>
</div> </div>
</template> </template>

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

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

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

File diff suppressed because one or more lines are too long

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -1,12 +1,13 @@
<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
toolbar title="部门列表"
search toolbar
:clickRowToExpand="false" search
:treeData="treeData" :clickRowToExpand="false"
:fieldNames="{ key: 'deptId', title: 'name' }" :treeData="treeData"
@select="handleSelect" :fieldNames="{ key: 'deptId', title: 'name' }"
@select="handleSelect"
/> />
</div> </div>
</template> </template>

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

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

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

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

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

@ -6,10 +6,11 @@
<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
class="icon" v-if="item.icon"
:icon="item.icon" class="icon"
:color="item.color" :icon="item.icon"
:color="item.color"
/>{{ item.title }} />{{ item.title }}
</div> </div>
<div :class="`${prefixCls}__card-num`"> <div :class="`${prefixCls}__card-num`">
@ -18,9 +19,10 @@
<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
:class="`${prefixCls}__card-download`" v-if="item.download"
:icon="item.download" :class="`${prefixCls}__card-download`"
:icon="item.download"
/> />
</Card> </Card>
</ListItem> </ListItem>

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save