mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-08-12 17:11:53 +08:00
refactor: vue3.3 defineOptions
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
</template>
|
||||
</Dialog>
|
||||
</template>
|
||||
<script lang="ts" name="SystemTenantPackageForm" setup>
|
||||
<script lang="ts" setup>
|
||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
||||
import { CommonStatusEnum } from '@/utils/constants'
|
||||
import { defaultProps, handleTree } from '@/utils/tree'
|
||||
@@ -69,6 +69,8 @@ import * as TenantPackageApi from '@/api/system/tenantPackage'
|
||||
import * as MenuApi from '@/api/system/menu'
|
||||
import { ElTree } from 'element-plus'
|
||||
|
||||
defineOptions({ name: 'SystemTenantPackageForm' })
|
||||
|
||||
const { t } = useI18n() // 国际化
|
||||
const message = useMessage() // 消息弹窗
|
||||
|
||||
|
@@ -106,11 +106,14 @@
|
||||
<!-- 表单弹窗:添加/修改 -->
|
||||
<TenantPackageForm ref="formRef" @success="getList" />
|
||||
</template>
|
||||
<script setup lang="ts" name="SystemTenantPackage">
|
||||
<script setup lang="ts">
|
||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
||||
import { dateFormatter } from '@/utils/formatTime'
|
||||
import * as TenantPackageApi from '@/api/system/tenantPackage'
|
||||
import TenantPackageForm from './TenantPackageForm.vue'
|
||||
|
||||
defineOptions({ name: 'SystemTenantPackage' })
|
||||
|
||||
const message = useMessage() // 消息弹窗
|
||||
const { t } = useI18n() // 国际化
|
||||
|
||||
|
Reference in New Issue
Block a user