| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :md="6" |
| | | :md="6" |
| | | :sm="6" |
| | | > |
| | | <a-form-item |
| | | label="是否关键设备" |
| | | > |
| | | <a-form-item label="是否关键设备"> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="请选择是否关键设备" |
| | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{ x: 'calc(1900px + 50%)', y: 900 }" |
| | | :scroll="{ x: 'calc(1500px + 50%)', y: 900 }" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | |
| | | @change="handleTableChange" |
| | | :customRow="clickThenSelect" |
| | | > |
| | | <span |
| | | <span |
| | | slot="specificEquipment" |
| | | slot-scope="text" |
| | | > |
| | | <a-icon type="check" style="color: chartreuse;" v-if="text==='0'" /> |
| | | <a-icon type="close" v-else style="color:red;"/> |
| | | </span> |
| | | <a-icon |
| | | type="check" |
| | | style="color: chartreuse;" |
| | | v-if="text==='0'" |
| | | /> |
| | | <a-icon |
| | | type="close" |
| | | v-else |
| | | style="color:red;" |
| | | /> |
| | | </span> |
| | | <span |
| | | slot="action" |
| | | slot-scope="text, record" |
| | |
| | | dataIndex: 'statusName', |
| | | }, |
| | | { |
| | | title: '类型', |
| | | title: '报修类型', |
| | | align: "center", |
| | | dataIndex: 'type', |
| | | customRender: (text) => { |
| | |
| | | return "被动报修"; |
| | | } else if (text == '2') { |
| | | return "主动报修"; |
| | | } else if (text == '3') { |
| | | return "主动维修"; |
| | | } |
| | | }, |
| | | }, |
| | |
| | | align: "center", |
| | | dataIndex: 'equipmentModel', |
| | | }, |
| | | { |
| | | title: '规格', |
| | | align: "center", |
| | | dataIndex: 'equipmentSpecification', |
| | | }, |
| | | // { |
| | | // title: '规格', |
| | | // align: "center", |
| | | // dataIndex: 'equipmentSpecification', |
| | | // }, |
| | | { |
| | | title: '使用部门', |
| | | align: "center", |
| | |
| | | { |
| | | title: '故障时间', |
| | | align: "center", |
| | | dataIndex: 'faultTime' |
| | | dataIndex: 'faultTime', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: '是否停机待修', |
| | |
| | | dataIndex: 'action', |
| | | align: "center", |
| | | fixed: "right", |
| | | width: 200, |
| | | width: 100, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | |
| | | /* 分页参数 */ |
| | | ipagination: { |
| | | current: 1, |
| | | pageSize: 5, |
| | | pageSizeOptions: ['5', '10', '50'], |
| | | pageSize: 20, |
| | | pageSizeOptions: ['5', '10', '20', '50'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + "-" + range[1] + " 共" + total + "条" |
| | | }, |