refactor: 统一 setup 格式

pull/177/head
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" @current-change="handleCurrentChange"
/> />
</template> </template>
<script setup lang="ts"> <script lang="ts" setup>
import { computed } from 'vue' import { computed } from 'vue'
defineOptions({ name: 'Pagination' }) defineOptions({ name: 'Pagination' })

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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