| | |
| | | import ztAdmin from '../packages/index' |
| | | // import 'bpmn-js/dist/assets/diagram-js.css'; |
| | | // import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css'; |
| | | import ProductTree from './components/product-tree' |
| | | import ProductSelector from './components/product-selector' |
| | | import ConfigUploader from './components/config-uploader' |
| | | import SysFileManagement from './components/file-management' |
| | | import experimentUploader from './components/file-experiment' |
| | |
| | | import TeamGroupSelector from './components/team-group-selector' |
| | | import TeamMajorSelector from './components/team-major-selector' |
| | | import LocalShipSelector from './components/local-ship-selector' |
| | | import ProductSelectorCascade from './components/product-selector-cascade' |
| | | import ProjectListSelectDialog from './components/project-list-select-dialog' |
| | | import MenuTreeSelector from './components/menu-tree-selector' |
| | | import SelectTree from './components/select-tree' |
| | | import MajorSelector from './components/major-selector' |
| | | import ZtBoatTree from './components/zt-boat-tree' |
| | | import ColumnSelect from './components/column-select' |
| | | import ZtEquipmentConfig from './components/zt-equipment-config' |
| | | import ZtEquipmentSelect from './components/zt-equipment-select' |
| | |
| | | Vue.use(ztAdmin) |
| | | Vue.use(SysFileManagement) |
| | | Vue.use(experimentUploader) |
| | | Vue.use(ProductTree) |
| | | Vue.use(ProductSelector) |
| | | Vue.use(ConfigUploader) |
| | | Vue.use(RepairerSelector) |
| | | Vue.use(TeamGroupSelector) |
| | | Vue.use(TeamMajorSelector) |
| | | Vue.use(TingteamSelector) |
| | | Vue.use(LocalShipSelector) |
| | | Vue.use(ProductSelectorCascade) |
| | | Vue.use(ProjectListSelectDialog) |
| | | Vue.use(MenuTreeSelector) |
| | | Vue.use(SelectTree) |
| | | Vue.use(MajorSelector) |
| | | Vue.use(ZtBoatTree) |
| | | Vue.use(ColumnSelect) |
| | | Vue.use(ZtEquipmentConfig) |
| | | Vue.use(ZtEquipmentSelect) |
| | |
| | | let minutes = ' ' |
| | | let seconds = ' ' |
| | | if (data != null) { |
| | | const dateObject = new Date(data); |
| | | const dateObject = new Date(data) |
| | | year = dateObject.getFullYear() |
| | | months = (dateObject.getMonth() + 1).toString().padStart(2, '0') |
| | | days = dateObject.getDate() |
| | |
| | | minutes = (dateObject.getMinutes() + 1).toString().padStart(2, '0') |
| | | seconds = (dateObject.getSeconds() + 1).toString().padStart(2, '0') |
| | | } |
| | | return format.replace('YYYY', year).replace('MM', months).replace('DD', days).replace('hh', hours).replace('mm', minutes).replace('ss', seconds); |
| | | return format.replace('YYYY', year).replace('MM', months).replace('DD', days).replace('hh', hours).replace('mm', minutes).replace('ss', seconds) |
| | | }) |
| | | // 默认主题 浅版light 深版hight |
| | | store.state.theme = Cookies.get('systemTheme') || 'light' |
| | |
| | | |
| | | Vue.config.warnHandler = function (msg) { |
| | | if (!msg.includes('Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders.')) { |
| | | return |
| | | // eslint-disable-next-line no-console |
| | | console.error(msg) |
| | | } |
| | | } |
| | | // 拦截request.js里面重新登录 |