update table 的距离问题
This commit is contained in:
		@@ -27,18 +27,18 @@ const PriorityComponent = {
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  methods: {},
 | 
			
		||||
  render: function(h) {
 | 
			
		||||
    return h('span', { style: { display: 'inline-block', borderRadius: '2px', padding: '2px 8px', color: '#fff', opacity: '0.6', backgroundColor: this.bgColor }}, this.priorityText)
 | 
			
		||||
  render: function (h) {
 | 
			
		||||
    return h('span', { style: { display: 'inline-block', borderRadius: '2px', padding: '2px 8px', color: '#fff', opacity: '0.6', backgroundColor: this.bgColor } }, this.priorityText)
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export const equipmentExceptionProps = [
 | 
			
		||||
  { label: '设备名称', prop: 'eqName' },
 | 
			
		||||
  { label: '所属产线', prop: 'pl' },
 | 
			
		||||
  { label: '报修/异常内容', prop: 'content' },
 | 
			
		||||
  { label: '报修/发现人', prop: 'creator' },
 | 
			
		||||
  { label: '时间', prop: 'time' },
 | 
			
		||||
  { label: '优先级', prop: 'priority', align: 'center', subcomponent: PriorityComponent }
 | 
			
		||||
  { label: '设备名称', prop: 'eqName', align: 'center' },
 | 
			
		||||
  { label: '所属产线', prop: 'pl', align: 'center', width: 80 },
 | 
			
		||||
  { label: '报修/异常内容', prop: 'content', align: 'center' },
 | 
			
		||||
  { label: '报修/发现人', prop: 'creator', align: 'center', width: 100 },
 | 
			
		||||
  { label: '时间', prop: 'time', align: 'center' },
 | 
			
		||||
  { label: '优先级', prop: 'priority', align: 'center', subcomponent: PriorityComponent, width: 80 }
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
export const equipmentExceptionDatalist = [
 | 
			
		||||
@@ -70,21 +70,21 @@ const LifeRemainComponent = {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
  },
 | 
			
		||||
  render: function(h) {
 | 
			
		||||
  render: function (h) {
 | 
			
		||||
    return h('span', {
 | 
			
		||||
      style:
 | 
			
		||||
        { position: 'absolute', top: 0, left: 0, right: 0, bottom: 0, width: '100%', height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center', opacity: '0.8', backgroundColor: this.statusColor, color: '#fff' }
 | 
			
		||||
    },
 | 
			
		||||
    this.injectData.remain)
 | 
			
		||||
      this.injectData.remain)
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export const equipmentAlarmProps = [
 | 
			
		||||
  { label: '设备名称', prop: 'eqName' },
 | 
			
		||||
  { label: '设备编码', prop: 'eqCode' },
 | 
			
		||||
  { label: '所属产线', prop: 'pl' },
 | 
			
		||||
  { label: '报警级别', prop: 'priority', align: 'center', subcomponent: PriorityComponent },
 | 
			
		||||
  { label: '报警内容', prop: 'content' }
 | 
			
		||||
  { label: '设备名称', prop: 'eqName', align: 'center' },
 | 
			
		||||
  { label: '设备编码', prop: 'eqCode', align: 'center' },
 | 
			
		||||
  { label: '所属产线', prop: 'pl', align: 'center' },
 | 
			
		||||
  { label: '报警级别', prop: 'priority', align: 'center', width: 80, subcomponent: PriorityComponent },
 | 
			
		||||
  { label: '报警内容', prop: 'content', align: 'center' }
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
export const equipmentAlarmDatalist = [
 | 
			
		||||
@@ -122,13 +122,13 @@ export const equipmentAnalysisData = [
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
export const sparepartsProps = [
 | 
			
		||||
  { prop: 'name', label: '部件名称' },
 | 
			
		||||
  { prop: 'eq', label: '所属设备' },
 | 
			
		||||
  { prop: 'pl', label: '所属产线' },
 | 
			
		||||
  { prop: 'update_time', label: '更换时间' },
 | 
			
		||||
  { prop: 'remain', label: '剩余寿命', subcomponent: LifeRemainComponent },
 | 
			
		||||
  { prop: 'stock', label: '备件库存量' },
 | 
			
		||||
  { prop: 'location', label: '库位' }
 | 
			
		||||
  { prop: 'name', label: '部件名称', align: 'center' },
 | 
			
		||||
  { prop: 'eq', label: '所属设备', align: 'center' },
 | 
			
		||||
  { prop: 'pl', label: '所属产线', align: 'center' },
 | 
			
		||||
  { prop: 'update_time', label: '更换时间', align: 'center' },
 | 
			
		||||
  { prop: 'remain', label: '剩余寿命', align: 'center', subcomponent: LifeRemainComponent },
 | 
			
		||||
  { prop: 'stock', label: '备件库存量', align: 'center' },
 | 
			
		||||
  { prop: 'location', label: '库位', align: 'center' }
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
export const sparepartsDatalist = [
 | 
			
		||||
@@ -172,9 +172,9 @@ const StatusComponent = {
 | 
			
		||||
      ][this.injectData.status - 1]
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  render: function(h) {
 | 
			
		||||
    return h('span', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', color: '#fff' }}, [
 | 
			
		||||
      h('span', { style: { width: '6px', height: '6px', borderRadius: '50%', backgroundColor: this.statusColor, boxShadow: '0 0 2px 2px ' + this.statusColor, marginRight: '8px' }}, ''),
 | 
			
		||||
  render: function (h) {
 | 
			
		||||
    return h('span', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', color: '#fff' } }, [
 | 
			
		||||
      h('span', { style: { width: '6px', height: '6px', borderRadius: '50%', backgroundColor: this.statusColor, boxShadow: '0 0 2px 2px ' + this.statusColor, marginRight: '8px' } }, ''),
 | 
			
		||||
      h('span', this.statusText)
 | 
			
		||||
    ])
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user