|  |  |  | 
|---|
|  |  |  | import ColumnSelect from './components/column-select' | 
|---|
|  |  |  | import ZtEquipmentConfig from './components/zt-equipment-config' | 
|---|
|  |  |  | import ZtEquipmentSelect from './components/zt-equipment-select' | 
|---|
|  |  |  | import TableUploader from './components/table-uploader' | 
|---|
|  |  |  | import scroll from 'vue-seamless-scroll' | 
|---|
|  |  |  | import adaptive from './directive/el-table' | 
|---|
|  |  |  | import './directive/dialogDrag' | 
|---|
|  |  |  | 
|---|
|  |  |  | Vue.use(ColumnSelect) | 
|---|
|  |  |  | Vue.use(ZtEquipmentConfig) | 
|---|
|  |  |  | Vue.use(ZtEquipmentSelect) | 
|---|
|  |  |  | Vue.use(TableUploader) | 
|---|
|  |  |  | Vue.config.productionTip = false | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Vue.directive('loadmore', { | 
|---|
|  |  |  | 
|---|
|  |  |  | let hours = '  ' | 
|---|
|  |  |  | let minutes = '  ' | 
|---|
|  |  |  | let seconds = '  ' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (data != null) { | 
|---|
|  |  |  | year = data.getFullYear() | 
|---|
|  |  |  | months = (data.getMonth() + 1).toString().padStart(2, '0') | 
|---|
|  |  |  | days = data.getDate() | 
|---|
|  |  |  | hours = (data.getHours() + 1).toString().padStart(2, '0') | 
|---|
|  |  |  | minutes = (data.getMinutes() + 1).toString().padStart(2, '0') | 
|---|
|  |  |  | seconds = (data.getSeconds() + 1).toString().padStart(2, '0') | 
|---|
|  |  |  | const dateObject = new Date(data); | 
|---|
|  |  |  | year = dateObject.getFullYear() | 
|---|
|  |  |  | months = (dateObject.getMonth() + 1).toString().padStart(2, '0') | 
|---|
|  |  |  | days = dateObject.getDate() | 
|---|
|  |  |  | hours = (dateObject.getHours() + 1).toString().padStart(2, '0') | 
|---|
|  |  |  | 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); | 
|---|
|  |  |  | }) | 
|---|