refactor: 统一 setup 格式

This commit is contained in:
xingyu 2023-06-21 19:35:11 +08:00
parent 9ac17b3ce2
commit c1a4edf7b1
128 changed files with 128 additions and 128 deletions

View File

@ -14,7 +14,7 @@
@current-change="handleCurrentChange"
/>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { computed } from 'vue'
defineOptions({ name: 'Pagination' })

View File

@ -19,7 +19,7 @@
</ElDialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
const router = useRouter() //
const showSearch = ref(false) //
const value: Ref = ref('') //

View File

@ -32,7 +32,7 @@
</el-upload>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { PropType } from 'vue'
import { propTypes } from '@/utils/propTypes'

View File

@ -50,7 +50,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { UploadProps } from 'element-plus'
import { generateUUID } from '@/utils'

View File

@ -206,7 +206,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// import 'bpmn-js/dist/assets/diagram-js.css' //
// import 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css'
// import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css'

View File

@ -6,7 +6,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import BpmnViewer from 'bpmn-js/lib/Viewer'
import DefaultEmptyXML from './plugins/defaultEmpty'
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'

View File

@ -5,7 +5,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { assign } from 'min-dash'
defineOptions({ name: 'MyProcessPalette' })

View File

@ -62,7 +62,7 @@
</el-collapse>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import ElementBaseInfo from './base/ElementBaseInfo.vue'
import ElementOtherConfig from './other/ElementOtherConfig.vue'
import ElementTask from './task/ElementTask.vue'

View File

@ -38,7 +38,7 @@
</el-form>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'ElementBaseInfo' })
const props = defineProps({

View File

@ -62,7 +62,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'FlowCondition' })
const props = defineProps({

View File

@ -222,7 +222,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'ElementForm' })
const props = defineProps({

View File

@ -241,7 +241,7 @@
</el-dialog>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { ElMessageBox } from 'element-plus'
import { createListenerObject, updateElementExtensions } from '../../utils'
import { initListenerType, initListenerForm, listenerType, fieldType } from './utilSelf'

View File

@ -287,7 +287,7 @@
</el-dialog>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { ElMessageBox } from 'element-plus'
import { createListenerObject, updateElementExtensions } from '../../utils'
import { initListenerForm, initListenerType, eventType, listenerType, fieldType } from './utilSelf'

View File

@ -66,7 +66,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'ElementMultiInstance' })
const props = defineProps({

View File

@ -16,7 +16,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'ElementOtherConfig' })
const props = defineProps({
id: String

View File

@ -53,7 +53,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { ElMessageBox } from 'element-plus'
defineOptions({ name: 'ElementProperties' })
const props = defineProps({

View File

@ -45,7 +45,7 @@
</el-dialog>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'SignalAndMassage' })
const message = useMessage()

View File

@ -20,7 +20,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import UserTask from './task-components/UserTask.vue'
import ScriptTask from './task-components/ScriptTask.vue'
import ReceiveTask from './task-components/ReceiveTask.vue'

View File

@ -48,7 +48,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'ReceiveTask' })
const props = defineProps({
id: String,

View File

@ -44,7 +44,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'ScriptTask' })
const props = defineProps({
id: String,

View File

@ -37,7 +37,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'UserTask' })
const props = defineProps({
id: String,

View File

@ -160,7 +160,7 @@
</el-col>
</el-row>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { set } from 'lodash-es'
import { EChartsOption } from 'echarts'
import { formatTime } from '@/utils'

View File

@ -1,7 +1,7 @@
<template>
<div></div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'Redirect' })
const { currentRoute, replace } = useRouter()

View File

@ -94,7 +94,7 @@
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import { MyProcessViewer } from '@/components/bpmnProcessDesigner/package'

View File

@ -111,7 +111,7 @@
<UserGroupForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import * as UserGroupApi from '@/api/bpm/userGroup'

View File

@ -24,7 +24,7 @@
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { MyProcessDesigner, MyProcessPenal } from '@/components/bpmnProcessDesigner/package'
//
import CustomContentPadProvider from '@/components/bpmnProcessDesigner/package/designer/plugins/content-pad'

View File

@ -226,7 +226,7 @@
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter, formatDate } from '@/utils/formatTime'
import { MyProcessViewer } from '@/components/bpmnProcessDesigner/package'

View File

@ -42,7 +42,7 @@
</el-form-item>
</el-form>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import * as LeaveApi from '@/api/bpm/leave'
import { useTagsViewStore } from '@/store/modules/tagsView'

View File

@ -138,7 +138,7 @@
/>
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import * as LeaveApi from '@/api/bpm/leave'

View File

@ -46,7 +46,7 @@
<ProcessInstanceBpmnViewer :bpmn-xml="bpmnXML as any" />
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE } from '@/utils/dict'
import * as DefinitionApi from '@/api/bpm/definition'
import * as ProcessInstanceApi from '@/api/bpm/processInstance'

View File

@ -159,7 +159,7 @@
/>
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import { ElMessageBox } from 'element-plus'

View File

@ -32,7 +32,7 @@
<!-- 添加/修改弹窗 -->
<TaskAssignRuleForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import * as TaskAssignRuleApi from '@/api/bpm/taskAssignRule'
import * as RoleApi from '@/api/system/role'

View File

@ -139,7 +139,7 @@
<!-- 表单弹窗详情 -->
<ApiAccessLogDetail ref="detailRef" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import download from '@/utils/download'
import { formatDate } from '@/utils/formatTime'

View File

@ -158,7 +158,7 @@
<ApiErrorLogDetail ref="detailRef" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'

View File

@ -29,7 +29,7 @@
</div>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import FcDesigner from '@form-create/designer'
import { useClipboard } from '@vueuse/core'
import { isString } from '@/utils/is'

View File

@ -137,7 +137,7 @@
<!-- 表单弹窗添加/修改 -->
<ConfigForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'

View File

@ -57,7 +57,7 @@
<!-- 表单弹窗添加/修改 -->
<DataSourceConfigForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { dateFormatter } from '@/utils/formatTime'
import * as DataSourceConfigApi from '@/api/infra/dataSourceConfig'
import DataSourceConfigForm from './DataSourceConfigForm.vue'

View File

@ -16,7 +16,7 @@
<IFrame v-if="!loading" v-loading="loading" :src="src" />
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import download from '@/utils/download'
import * as DbDocApi from '@/api/infra/dbDoc'

View File

@ -6,7 +6,7 @@
<IFrame v-if="!loading" :src="url" />
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as ConfigApi from '@/api/infra/config'
defineOptions({ name: 'InfraDruid' })

View File

@ -91,7 +91,7 @@
<!-- 表单弹窗添加/修改 -->
<FileForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { fileSizeFormatter } from '@/utils'
import { dateFormatter } from '@/utils/formatTime'
import * as FileApi from '@/api/infra/file'

View File

@ -126,7 +126,7 @@
<!-- 表单弹窗添加/修改 -->
<FileConfigForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as FileConfigApi from '@/api/infra/fileConfig'
import FileConfigForm from './FileConfigForm.vue'
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'

View File

@ -45,7 +45,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as JobApi from '@/api/infra/job'
defineOptions({ name: 'JobForm' })

View File

@ -147,7 +147,7 @@
<!-- 表单弹窗查看 -->
<JobDetail ref="detailRef" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { checkPermi } from '@/utils/permission'
import JobForm from './JobForm.vue'

View File

@ -121,7 +121,7 @@
<!-- 表单弹窗查看 -->
<JobLogDetail ref="detailRef" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { formatDate } from '@/utils/formatTime'
import download from '@/utils/download'

View File

@ -62,7 +62,7 @@
</el-row>
</el-scrollbar>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as RedisApi from '@/api/infra/redis'
import { RedisMonitorInfoVO } from '@/api/infra/redis/types'
const cache = ref<RedisMonitorInfoVO>()

View File

@ -5,7 +5,7 @@
<IFrame v-if="!loading" v-loading="loading" :src="src" />
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as ConfigApi from '@/api/infra/config'
defineOptions({ name: 'InfraAdminServer' })

View File

@ -5,7 +5,7 @@
<IFrame v-if="!loading" v-loading="loading" :src="src" />
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as ConfigApi from '@/api/infra/config'
defineOptions({ name: 'InfraSkyWalking' })

View File

@ -5,7 +5,7 @@
<IFrame :src="src" />
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as ConfigApi from '@/api/infra/config'
defineOptions({ name: 'InfraSwagger' })

View File

@ -1,4 +1,4 @@
<template>
<div>index</div>
</template>
<script setup lang="ts"></script>
<script lang="ts" setup></script>

View File

@ -37,7 +37,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { CommonStatusEnum } from '@/utils/constants'
import * as ProductBrandApi from '@/api/mall/product/brand'

View File

@ -108,7 +108,7 @@
<!-- 表单弹窗添加/修改 -->
<BrandForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import * as ProductBrandApi from '@/api/mall/product/brand'

View File

@ -50,7 +50,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { CommonStatusEnum } from '@/utils/constants'
import * as ProductCategoryApi from '@/api/mall/product/category'

View File

@ -80,7 +80,7 @@
<!-- 表单弹窗添加/修改 -->
<CategoryForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE } from '@/utils/dict'
import { handleTree } from '@/utils/tree'
import { dateFormatter } from '@/utils/formatTime'

View File

@ -88,7 +88,7 @@
<!-- 表单弹窗添加/修改 -->
<ValueForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { dateFormatter } from '@/utils/formatTime'
import * as PropertyApi from '@/api/mall/product/property'
import ValueForm from './ValueForm.vue'

View File

@ -38,7 +38,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { CommonStatusEnum } from '@/utils/constants'
import * as DeliveryExpressApi from '@/api/mall/trade/delivery/express'

View File

@ -99,7 +99,7 @@
<!-- 表单弹窗添加/修改 -->
<ExpressForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'

View File

@ -137,7 +137,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import * as DeliveryExpressTemplateApi from '@/api/mall/trade/delivery/expressTemplate'
import { defaultProps } from '@/utils/tree'

View File

@ -92,7 +92,7 @@
<!-- 表单弹窗添加/修改 -->
<ExpressTemplateForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import * as DeliveryExpressTemplateApi from '@/api/mall/trade/delivery/expressTemplate'

View File

@ -100,7 +100,7 @@
<!-- 对话框(添加 / 修改) -->
<AccountForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as AccountApi from '@/api/mp/account'
import AccountForm from './AccountForm.vue'

View File

@ -32,7 +32,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxReplySelect, { type Reply } from '@/views/mp/components/wx-reply'
import type { FormInstance } from 'element-plus'
import { MsgType } from './types'

View File

@ -93,7 +93,7 @@
</el-table-column>
</el-table>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxVideoPlayer from '@/views/mp/components/wx-video-play'
import WxVoicePlayer from '@/views/mp/components/wx-voice-play'
import WxMusic from '@/views/mp/components/wx-music'

View File

@ -67,7 +67,7 @@
</el-dialog>
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import ReplyForm from '@/views/mp/autoReply/components/ReplyForm.vue'
import { type Reply, ReplyType } from '@/views/mp/components/wx-reply'
import WxAccountSelect from '@/views/mp/components/wx-account-select'

View File

@ -39,7 +39,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'WxLocation' })
const props = defineProps({

View File

@ -48,7 +48,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxVideoPlayer from '@/views/mp/components/wx-video-play'
import WxVoicePlayer from '@/views/mp/components/wx-voice-play'
import WxNews from '@/views/mp/components/wx-news'

View File

@ -40,7 +40,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
const props = defineProps<{
item: any
}>()

View File

@ -24,7 +24,7 @@
</div>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import Msg from './Msg.vue'
import { formatDate } from '@/utils/formatTime'
import { User } from '../types'

View File

@ -30,7 +30,7 @@
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxReplySelect, { Reply, ReplyType } from '@/views/mp/components/wx-reply'
import MsgList from './components/MsgList.vue'
import { getMessagePage, sendMessage } from '@/api/mp/message'

View File

@ -25,7 +25,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'WxMusic' })
const props = defineProps({

View File

@ -55,7 +55,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxMaterialSelect from '@/views/mp/components/wx-material-select'
import { UploadType, useBeforeUpload } from '@/views/mp/hooks/useUpload'
import type { UploadRawFile } from 'element-plus'

View File

@ -58,7 +58,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxMaterialSelect from '@/views/mp/components/wx-material-select'
import type { UploadRawFile } from 'element-plus'
import { UploadType, useBeforeUpload } from '@/views/mp/hooks/useUpload'

View File

@ -32,7 +32,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxNews from '@/views/mp/components/wx-news'
import WxMaterialSelect from '@/views/mp/components/wx-material-select'
import { Reply, NewsType } from './types'

View File

@ -2,7 +2,7 @@
<el-input type="textarea" :rows="5" placeholder="请输入内容" v-model="content" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
const props = defineProps<{
modelValue?: string | null
}>()

View File

@ -48,7 +48,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxVideoPlayer from '@/views/mp/components/wx-video-play'
import WxMaterialSelect from '@/views/mp/components/wx-material-select'
import type { UploadRawFile } from 'element-plus'

View File

@ -52,7 +52,7 @@
</el-row>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxMaterialSelect from '@/views/mp/components/wx-material-select'
import WxVoicePlayer from '@/views/mp/components/wx-voice-play'
import { UploadType, useBeforeUpload } from '@/views/mp/hooks/useUpload'

View File

@ -59,7 +59,7 @@
</el-tabs>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { Reply, NewsType, ReplyType, createEmptyReply } from './components/types'
import TabText from './components/TabText.vue'
import TabImage from './components/TabImage.vue'

View File

@ -48,7 +48,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import 'video.js/dist/video-js.css'
import { VideoPlayer } from '@videojs-player/vue'

View File

@ -23,7 +23,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// amr amr https://www.npmjs.com/package/benz-amr-recorder
import BenzAMRRecorder from 'benz-amr-recorder'

View File

@ -59,7 +59,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxMaterialSelect from '@/views/mp/components/wx-material-select'
import { getAccessToken } from '@/utils/auth'
import type { UploadFiles, UploadProps, UploadRawFile } from 'element-plus'

View File

@ -35,7 +35,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxNews from '@/views/mp/components/wx-news'
import { Article } from './types'

View File

@ -125,7 +125,7 @@
</el-container>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { Editor } from '@/components/Editor'
import { createEditorConfig } from '../editor-config'
import CoverSelect from './CoverSelect.vue'

View File

@ -61,7 +61,7 @@
</el-dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxAccountSelect from '@/views/mp/components/wx-account-select'
import * as MpDraftApi from '@/api/mp/draft'
import * as MpFreePublishApi from '@/api/mp/freePublish'

View File

@ -19,7 +19,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
const props = defineProps<{
list: any[]
loading: boolean

View File

@ -18,7 +18,7 @@
</template>
</el-upload>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { UploadProps, UploadUserFile } from 'element-plus'
import {
HEADERS,

View File

@ -47,7 +47,7 @@
</el-dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type {
FormInstance,
FormRules,

View File

@ -38,7 +38,7 @@
</el-table>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxVideoPlayer from '@/views/mp/components/wx-video-play'
import { dateFormatter } from '@/utils/formatTime'

View File

@ -36,7 +36,7 @@
</el-table>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxVoicePlayer from '@/views/mp/components/wx-voice-play'
import { dateFormatter } from '@/utils/formatTime'

View File

@ -112,7 +112,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxReplySelect from '@/views/mp/components/wx-reply'
import WxNews from '@/views/mp/components/wx-news'
import WxMaterialSelect from '@/views/mp/components/wx-material-select'

View File

@ -57,7 +57,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { Menu } from './types'
import draggable from 'vuedraggable'

View File

@ -121,7 +121,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxVideoPlayer from '@/views/mp/components/wx-video-play'
import WxVoicePlayer from '@/views/mp/components/wx-voice-play'
import WxLocation from '@/views/mp/components/wx-location'

View File

@ -79,7 +79,7 @@
<WxMsg :user-id="messageBox.userId" />
</el-dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as MpMessageApi from '@/api/mp/message'
import WxMsg from '@/views/mp/components/wx-msg'
import WxAccountSelect from '@/views/mp/components/wx-account-select'

View File

@ -73,7 +73,7 @@
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { formatDate, addTime, betweenDay, beginOfDay, endOfDay } from '@/utils/formatTime'
import * as StatisticsApi from '@/api/mp/statistics'
import * as MpAccountApi from '@/api/mp/account'

View File

@ -82,7 +82,7 @@
<!-- 表单弹窗添加/修改 -->
<TagForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { dateFormatter } from '@/utils/formatTime'
import * as MpTagApi from '@/api/mp/tag'
import TagForm from './TagForm.vue'

View File

@ -303,7 +303,7 @@
<!-- 表单弹窗添加/修改 -->
<AppForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'

View File

@ -137,7 +137,7 @@
<!-- 表单弹窗添加/修改 -->
<MerchantForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { CommonStatusEnum } from '@/utils/constants'
import { dateFormatter } from '@/utils/formatTime'

View File

@ -228,7 +228,7 @@
<!-- 表单弹窗预览 -->
<OrderDetail ref="detailRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions, getStrDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import * as MerchantApi from '@/api/pay/merchant'

View File

@ -232,7 +232,7 @@
<!-- 表单弹窗预览 -->
<RefundDetail ref="detailRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions, getStrDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import * as MerchantApi from '@/api/pay/merchant'

View File

@ -33,7 +33,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as ConfigApi from '@/api/point/config'
const { t } = useI18n() //

View File

@ -101,7 +101,7 @@
<ConfigForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'
import * as ConfigApi from '@/api/point/config'

View File

@ -82,7 +82,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getStrDictOptions, getIntDictOptions } from '@/utils/dict'
import * as RecordApi from '@/api/point/record'

View File

@ -169,7 +169,7 @@
<RecordForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getStrDictOptions, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'

Some files were not shown because too many files have changed in this diff Show More