update
This commit is contained in:
		@@ -56,8 +56,10 @@ const tableConfigs = [
 | 
			
		||||
		name: i18n.t('inspect.det')
 | 
			
		||||
	},
 | 
			
		||||
	{ prop: 'checkTime', name: i18n.t('inspect.time'), filter: timeFilter },
 | 
			
		||||
	{ prop: 'productionId', name: i18n.t('pl.id') },
 | 
			
		||||
	{ prop: 'sectionId', name: i18n.t('ws.id') },
 | 
			
		||||
	{ prop: 'productionName', name: i18n.t('pl.title') },
 | 
			
		||||
	{ prop: 'sectionName', name: i18n.t('ws.title') },
 | 
			
		||||
	// { prop: 'productionId', name: i18n.t('pl.id') },
 | 
			
		||||
	// { prop: 'sectionId', name: i18n.t('ws.id') },
 | 
			
		||||
	{ prop: 'checkPerson', name: i18n.t('inspect.people') },
 | 
			
		||||
	{ prop: 'source', name: i18n.t('source'), filter: val => ({ 1: i18n.t('manual'), 2: i18n.t('auto') }[val]) },
 | 
			
		||||
	{ prop: 'explainText', name: i18n.t('desc') },
 | 
			
		||||
 
 | 
			
		||||
@@ -113,9 +113,9 @@ export default {
 | 
			
		||||
								children: [
 | 
			
		||||
									{ prop: obj.recordTime + '-inputNum', label: i18n.t('realtime.in') },
 | 
			
		||||
									{ prop: obj.recordTime + '-outputNum', label: i18n.t('realtime.out') },
 | 
			
		||||
									{ prop: obj.recordTime + '-passArea', label: i18n.t('realtime.goodrate') },
 | 
			
		||||
									{ prop: obj.recordTime + '-scrapNum', label: i18n.t('realtime.num') },
 | 
			
		||||
									{ prop: obj.recordTime + '-scrapRate', label: i18n.t('realtime.rate') }
 | 
			
		||||
									// { prop: obj.recordTime + '-passArea', label: i18n.t('realtime.goodrate') },
 | 
			
		||||
									// { prop: obj.recordTime + '-scrapNum', label: i18n.t('realtime.num') },
 | 
			
		||||
									// { prop: obj.recordTime + '-scrapRate', label: i18n.t('realtime.rate') }
 | 
			
		||||
								]
 | 
			
		||||
							})
 | 
			
		||||
						}
 | 
			
		||||
 
 | 
			
		||||
@@ -131,7 +131,8 @@ export default {
 | 
			
		||||
 | 
			
		||||
			// 保存为 props
 | 
			
		||||
			for (const key of sortedTime) {
 | 
			
		||||
				const prop = { label: key, children: [] }
 | 
			
		||||
				// const prop = { label: key, children: [] }
 | 
			
		||||
				const prop = { label: moment(key).format('YYYY-MM-DD HH:mm:ss'), children: [] }
 | 
			
		||||
				for (const subKey in timeMap[key]) {
 | 
			
		||||
					prop.children.push({ label: subKey, prop: key + subKey })
 | 
			
		||||
				}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user