bill 1 yıl önce
ebeveyn
işleme
eae2931ed2

+ 1 - 1
package.json

@@ -55,4 +55,4 @@
     "vue-eslint-parser": "^9.1.0",
     "vue-tsc": "^0.40.4"
   }
-}
+}

Dosya farkı çok büyük olduğundan ihmal edildi
+ 3106 - 0
pnpm-lock.yaml


+ 0 - 19
src/components.d.ts

@@ -8,48 +8,29 @@ export {}
 declare module '@vue/runtime-core' {
   export interface GlobalComponents {
     AAvatar: typeof import('ant-design-vue/es')['Avatar']
-    ABadge: typeof import('ant-design-vue/es')['Badge']
     AButton: typeof import('ant-design-vue/es')['Button']
-    ACheckbox: typeof import('ant-design-vue/es')['Checkbox']
     AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider']
     ADatePicker: typeof import('ant-design-vue/es')['DatePicker']
     ADropdown: typeof import('ant-design-vue/es')['Dropdown']
     AForm: typeof import('ant-design-vue/es')['Form']
     AFormItem: typeof import('ant-design-vue/es')['FormItem']
     AInput: typeof import('ant-design-vue/es')['Input']
-    AInputPassword: typeof import('ant-design-vue/es')['InputPassword']
-    AInputSearch: typeof import('ant-design-vue/es')['InputSearch']
     ALayout: typeof import('ant-design-vue/es')['Layout']
     ALayoutContent: typeof import('ant-design-vue/es')['LayoutContent']
     ALayoutHeader: typeof import('ant-design-vue/es')['LayoutHeader']
-    ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider']
     AMenu: typeof import('ant-design-vue/es')['Menu']
     AMenuItem: typeof import('ant-design-vue/es')['MenuItem']
-    AModal: typeof import('ant-design-vue/es')['Modal']
-    APopover: typeof import('ant-design-vue/es')['Popover']
-    ARadio: typeof import('ant-design-vue/es')['Radio']
-    ARadioButton: typeof import('ant-design-vue/es')['RadioButton']
-    ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup']
     ASelect: typeof import('ant-design-vue/es')['Select']
     ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
     ATable: typeof import('ant-design-vue/es')['Table']
-    ATabPane: typeof import('ant-design-vue/es')['TabPane']
-    ATabs: typeof import('ant-design-vue/es')['Tabs']
-    ATextarea: typeof import('ant-design-vue/es')['Textarea']
-    ATooltip: typeof import('ant-design-vue/es')['Tooltip']
-    ATree: typeof import('ant-design-vue/es')['Tree']
-    AUpload: typeof import('ant-design-vue/es')['Upload']
     DataList: typeof import('./components/data-list/index.vue')['default']
-    DeleteOutlined: typeof import('@ant-design/icons-vue')['DeleteOutlined']
     DownOutlined: typeof import('@ant-design/icons-vue')['DownOutlined']
     EasyText: typeof import('./components/easyText/index.vue')['default']
     Loading: typeof import('./components/loading/index.vue')['default']
     LocaleEnv: typeof import('./components/locale-env/index.vue')['default']
-    QuestionOutlined: typeof import('@ant-design/icons-vue')['QuestionOutlined']
     RouterLink: typeof import('vue-router')['RouterLink']
     RouterView: typeof import('vue-router')['RouterView']
     Simples: typeof import('./components/simples/index.vue')['default']
     Upload: typeof import('./components/upload/index.vue')['default']
-    UploadOutlined: typeof import('@ant-design/icons-vue')['UploadOutlined']
   }
 }

+ 2 - 0
src/lang-editer/app.vue

@@ -13,6 +13,8 @@
       <div v-if="name === currentLang" :key="name">
         <Upload
           :file-list="[]"
+          :max-size="100000000"
+          :extnames="undefined"
           :multiple="false"
           :before-upload="file => onBeforeUpload(name, file)"
           accept=".xls"

+ 1 - 1
src/router/index.ts

@@ -6,7 +6,7 @@ import { routesMetas, routeTrees } from './constant'
 import { RoutesName } from './constant'
 
 export const history = createWebHashHistory()
-export const router = createRouter({ history, routes })
+export const router = createRouter({ history, routes: routes as any })
 
 const defaultRouteName = RoutesName.projects
 const enables = ref<RoutesName[]>([])

+ 1 - 1
src/store/roles.ts

@@ -60,7 +60,7 @@ export const useRoleStore = defineStore('role', {
     getRole: state => (name: RoutesName) =>
       findRole(state.list, role => role.path === name)!,
     getName: state => (id: RoleOption['id']) =>
-      findRole(state.list, role => role.id === id)!.path,
+      (findRole(state.list, role => role.id === id)! as any).path,
     getRoles() {
       return (names: RoutesName[]) => names.map(name => this.getRole(name))
     },

+ 1 - 1
src/views/personal/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <HeadPanl class="personal-head">
+  <HeadPanl v-bind="({class: 'personal-head'} as any)">
     <div class="user">
       <img :src="user.avatar" />
       <div class="info">

+ 2 - 2
src/views/project/detailed.vue

@@ -1,5 +1,5 @@
 <template>
-  <HeadPanl class="project-detail-header">
+  <HeadPanl v-bind="({class: 'project-detail-header'} as any)">
     <div class="meta">
       <div class="header">
         <h3>{{ project?.projectName }}</h3>
@@ -158,7 +158,7 @@ const updateProject = async () => {
           ? await uploadFile(projectImg as File)
           : projectImg
 
-      await projectStore.update({ ...data, projectImg: img })
+      await projectStore.update({ ...data, projectImg: img as string })
     }
   })
 }

+ 7 - 3
src/views/scene/insert.vue

@@ -42,8 +42,8 @@
     <a-form name="basic" label-align="left" autocomplete="off">
       <a-form-item v-if="showBim" :label="$t('scene.typeLabel')" required>
         <a-radio-group v-model:value="currentType" name="radioGroup">
-          <a-radio :value="Type.scene">{{ Type.scene }}</a-radio>
-          <a-radio :value="Type.bim">{{ Type.bim }}</a-radio>
+          <a-radio :value="Type.scene">{{ typeDesc[Type.scene] }}</a-radio>
+          <a-radio :value="Type.bim">{{ typeDesc[Type.bim] }}</a-radio>
         </a-radio-group>
       </a-form-item>
       <UploadBim v-if="currentType === Type.bim" v-model:data="bim" />
@@ -89,9 +89,13 @@ const props = defineProps<{
 const sceneList = ref([...props.project.sceneList])
 
 enum Type {
-  scene = ui18n.t('scene.name') as any,
+  scene = 'scene',
   bim = 'BIM'
 }
+const typeDesc = {
+  [Type.scene]: ui18n.t('scene.name'),
+  [Type.bim]: 'BIM'
+}
 const currentType = ref(Type.scene)
 
 const bim = ref<UploadData>({ name: '', file: undefined })

+ 1 - 1
src/views/scene/list.vue

@@ -67,7 +67,7 @@ watch(filterName, () => (pagination.current = 1), { flush: 'sync' })
 const insertScene = () => {
   renderModal(InsertScene, {
     showBim: !projectStore.current!.bimData,
-    project: projectStore.current!,
+    project: projectStore.current! as any,
     async onSave({ type, payload }) {
       if (type === 'bim') {
         await projectStore.addBim(payload)

+ 1 - 0
tsconfig.json

@@ -13,6 +13,7 @@
     "skipLibCheck": true,
     "types": ["unplugin-vue-define-options/macros-global"],
     "baseUrl": "./",
+    "strict": false,
     "paths": {
       "@/*": ["src/*"]
     }