| | |
| | | |
| | | <!-- 操作按钮区域 --> |
| | | <div class="table-operator" v-if="isDisplayOperation"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus" v-if="isShowAuth('eam:reportRepair:add')">新增</a-button> |
| | | <a-button @click="handleAdd" type="primary" icon="plus" >新增</a-button> |
| | | <!--<a-button type="primary" icon="download" @click="handleExportXls('故障报修')">导出</a-button>--> |
| | | <!--<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"--> |
| | | <!--@change="handleImportExcel">--> |
| | |
| | | <!--</a-upload>--> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel" v-if="isShowAuth('eam:reportRepair:abolish')"> |
| | | <a-menu-item key="1" @click="batchDel"> |
| | | <a-icon type="delete"/> |
| | | 作废 |
| | | </a-menu-item> |
| | |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record" v-if="record.reportStatus=='WAIT_REPAIR'"> |
| | | <a @click="handleEdit(record)" v-if="isShowAuth('eam:reportRepair:edit')">编辑</a> |
| | | <a @click="handleEdit(record)">编辑</a> |
| | | |
| | | <a-divider type="vertical" v-if="isShowAuth('eam:reportRepair:edit')"/> |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a @click="handleAssign(record)" v-if="isShowAuth('eam:reportRepair:assign')">指派</a> |
| | | <a @click="handleAssign(record)" >指派</a> |
| | | |
| | | <a-divider type="vertical" v-if="isShowAuth('eam:reportRepair:assign')"/> |
| | | <a-divider type="vertical" /> |
| | | |
| | | <a-popconfirm title="确定作废吗?" @confirm="() => handleDelete(record.id)" v-if="isShowAuth('eam:reportRepair:abolish')"> |
| | | <a-popconfirm title="确定作废吗?" @confirm="() => handleDelete(record.id)" > |
| | | <a>作废</a> |
| | | </a-popconfirm> |
| | | </span> |