| | |
| | | ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] |
| | | ElMenuItemGroup: typeof import('element-plus/es')['ElMenuItemGroup'] |
| | | ElOption: typeof import('element-plus/es')['ElOption'] |
| | | ElPageHeader: typeof import('element-plus/es')['ElPageHeader'] |
| | | ElPagination: typeof import('element-plus/es')['ElPagination'] |
| | | ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm'] |
| | | ElPopover: typeof import('element-plus/es')['ElPopover'] |
| | |
| | | import { router } from './router'; |
| | | import App from './App.vue'; |
| | | import timeUtil from './utils/time-util'; |
| | | import DeepCopy from './utils/DeepCopy'; |
| | | |
| | | // import 'element-plus/dist/index.css'; |
| | | import './assets/main.css'; |
| | |
| | | const app = createApp(App); |
| | | |
| | | app.config.globalProperties.$fm = timeUtil; |
| | | app.config.globalProperties.$deepCopy = DeepCopy.deepCopy; |
| | | |
| | | for (const [key, component] of Object.entries(ElementPlusIconsVue)) { |
| | | app.component(key, component); |
| | |
| | | { |
| | | //璁惧鍖归厤 |
| | | name: 'fyspDeviceMatch', |
| | | path: '/fysp/config/deviceMatch', |
| | | path: '/fysp/config/fyspDeviceMatch', |
| | | component: () => import('@/views/fysp/config/DeviceMatch.vue') |
| | | }, |
| | | { |
| | |
| | | name: 'fyspEvalutationTask', |
| | | path: '/fysp/evaluation/evalutationTask', |
| | | component: () => import('@/views/fysp/evaluation/EvalutationTask.vue'), |
| | | meta: { keepAlive: false } |
| | | meta: { keepAlive: true } |
| | | }, |
| | | { |
| | | //璇勪及绠$悊 |
对比新文件 |
| | |
| | | export default { |
| | | deepCopy(target) { |
| | | const map = new WeakMap() |
| | | |
| | | function isObject(target) { |
| | | return (typeof target === 'object' && target ) || typeof target === 'function' |
| | | } |
| | | |
| | | function clone(data) { |
| | | if (!isObject(data)) { |
| | | return data |
| | | } |
| | | if ([Date, RegExp].includes(data.constructor)) { |
| | | return new data.constructor(data) |
| | | } |
| | | if (typeof data === 'function') { |
| | | return new Function('return ' + data.toString())() |
| | | } |
| | | const exist = map.get(data) |
| | | if (exist) { |
| | | return exist |
| | | } |
| | | if (data instanceof Map) { |
| | | const result = new Map() |
| | | map.set(data, result) |
| | | data.forEach((val, key) => { |
| | | if (isObject(val)) { |
| | | result.set(key, clone(val)) |
| | | } else { |
| | | result.set(key, val) |
| | | } |
| | | }) |
| | | return result |
| | | } |
| | | if (data instanceof Set) { |
| | | const result = new Set() |
| | | map.set(data, result) |
| | | data.forEach(val => { |
| | | if (isObject(val)) { |
| | | result.add(clone(val)) |
| | | } else { |
| | | result.add(val) |
| | | } |
| | | }) |
| | | return result |
| | | } |
| | | const keys = Reflect.ownKeys(data) |
| | | const allDesc = Object.getOwnPropertyDescriptors(data) |
| | | const result = Object.create(Object.getPrototypeOf(data), allDesc) |
| | | map.set(data, result) |
| | | keys.forEach(key => { |
| | | const val = data[key] |
| | | if (isObject(val)) { |
| | | result[key] = clone(val) |
| | | } else { |
| | | result[key] = val |
| | | } |
| | | }) |
| | | return result |
| | | } |
| | | // clone(target) |
| | | return JSON.parse(JSON.stringify(target)); |
| | | } |
| | | |
| | | } |
| | |
| | | import { enumScene } from '@/enum/scene'; |
| | | import { ElMessage } from 'element-plus'; |
| | | import evaluateApi from '@/api/fysp/evaluateApi'; |
| | | <<<<<<< HEAD |
| | | import { useCloned } from '@vueuse/core'; |
| | | ======= |
| | | >>>>>>> c06a5b40718062cc8b4b971322d7c394018cc972 |
| | | export default { |
| | | props: { |
| | | readonly: { |