| | |
| | | :scroll="{ y: 400 }" |
| | | > |
| | | |
| | | <!--需要超出省略的字段--> |
| | | <template slot="ellipsisText" slot-scope="text"> |
| | | <template v-if="(text&&text.length<=10)||!text">{{text}}</template> |
| | | <j-ellipsis v-else :value="text" :length="10"/> |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a-popconfirm title="确定领取吗?" @confirm="() => handleInspection(record.id)"> |
| | | <a>领取</a> |
| | |
| | | title: '工艺规程编号', |
| | | align: "center", |
| | | dataIndex: 'planNumber', |
| | | scopedSlots: { customRender: 'ellipsisText' }, |
| | | }, |
| | | { |
| | | title: '工艺规程版本', |
| | |
| | | { |
| | | title: '发布时间', |
| | | align: "center", |
| | | dataIndex: 'createTime' |
| | | dataIndex: 'createTime', |
| | | scopedSlots: { customRender: 'ellipsisText' }, |
| | | }, |
| | | { |
| | | title: '操作', |
| | | align: "center", |
| | | width:100, |
| | | scopedSlots: { customRender: 'action' }, |
| | | } |
| | | ] |