| | |
| | | type="primary" |
| | | icon="plus" |
| | | >新增</a-button> |
| | | <a-button |
| | | type="primary" |
| | | icon="download" |
| | | @click="handleExportXls('原因')" |
| | | >导出</a-button> |
| | | <!-- <a-button--> |
| | | <!-- type="primary"--> |
| | | <!-- icon="download"--> |
| | | <!-- @click="handleExportXls('原因')"--> |
| | | <!-- >导出</a-button>--> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-button style="margin-left: 8px"> |
| | | 批量操作 |
| | |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, getCheckboxProps:getCheckboxProps}" |
| | | @change="handleTableChange" |
| | | :scroll="{ x: 'calc(1200px + 50%)', y: 900 }" |
| | | :scroll="{ x: true}" |
| | | > |
| | | |
| | | <template |
| | | slot="num" |
| | | slot-scope="text" |
| | | > |
| | | <a-tooltip |
| | | placement="top" |
| | | :title="text" |
| | | trigger="hover" |
| | | > |
| | | <div> |
| | | <template slot="title"> </template> |
| | | <p style="cusor:pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 130px;">{{ text }}</p> |
| | | </div> |
| | | </a-tooltip> |
| | | </template> |
| | | <template |
| | | slot="name" |
| | | slot-scope="text" |
| | | > |
| | | <a-tooltip |
| | | placement="top" |
| | | :title="text" |
| | | trigger="hover" |
| | | > |
| | | <div> |
| | | <template slot="title"> </template> |
| | | <p style="cusor:pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 130px;">{{ text }}</p> |
| | | </div> |
| | | </a-tooltip> |
| | | </template> |
| | | <!--状态栏个性展示--> |
| | | <!-- <span |
| | | slot="status" |
| | |
| | | title: '故障原因编码', |
| | | align: "center", |
| | | dataIndex: 'num', |
| | | // width: 100, |
| | | // scopedSlots: { |
| | | // customRender: 'num' |
| | | // }, |
| | | // ellipsis: true, |
| | | }, |
| | | { |
| | | title: '故障原因名称', |
| | | align: "center", |
| | | dataIndex: 'name', |
| | | // width: 100, |
| | | // scopedSlots: { |
| | | // customRender: 'name' |
| | | // }, |
| | | // ellipsis: true, |
| | | }, |
| | | { |
| | | title: '故障原因分类', |
| | | align: "center", |
| | | dataIndex: 'parentName', |
| | | }, |
| | | // { |
| | | // title: '故障原因分类', |
| | | // align: "center", |
| | | // dataIndex: 'parentName', |
| | | // }, |
| | | { |
| | | title: '创建人', |
| | | align: "center", |