feat: 页面调整组件属性升级

This commit is contained in:
TsMask
2024-10-28 11:02:39 +08:00
parent 670225a655
commit da0d49d306
125 changed files with 1775 additions and 3464 deletions

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { Modal } from 'ant-design-vue/lib';
import { Modal } from 'ant-design-vue/es';
import { defineAsyncComponent, onMounted, onUnmounted, reactive } from 'vue';
import { fnRestStepState, stepState } from '../hooks/useStep';
import useI18n from '@/hooks/useI18n';
@@ -13,7 +13,7 @@ const EditModal = defineAsyncComponent(
/**对象信息信息状态类型 */
type StateType = {
/**文件上传 */
visibleByFile: boolean;
openByFile: boolean;
/**授权信息数据 */
from: {
neType: string;
@@ -31,7 +31,7 @@ type StateType = {
/**对象信息状态 */
let state: StateType = reactive({
visibleByFile: false,
openByFile: false,
from: {
neType: '',
neId: '',
@@ -72,7 +72,7 @@ function fnModalOk(e: any) {
/**对话框弹出关闭执行函数*/
function fnModalCancel() {
state.visibleByFile = false;
state.openByFile = false;
state.confirmLoading = false;
}
@@ -131,7 +131,7 @@ onUnmounted(() => {
type="primary"
:disabled="state.from.sn !== ''"
:loading="state.timeCount < 30 || state.confirmLoading"
@click="() => (state.visibleByFile = !state.visibleByFile)"
@click="() => (state.openByFile = !state.openByFile)"
>
{{ t('views.ne.neQuickSetup.licenseUpload') }}
</a-button>
@@ -168,7 +168,7 @@ onUnmounted(() => {
<!-- 许可证上传框 -->
<EditModal
v-model:visible="state.visibleByFile"
v-model:open="state.openByFile"
:ne-type="state.from.neType"
:ne-id="state.from.neId"
:reload="true"