| | |
| | | <a-button :disabled="btnDisabled" type="primary" v-if="hasPerm('EquipmentBaseInfo:add')" icon="plus" @click="EquipmentBaseInfoSelectDelete(selectedRows)">批量删除选中项</a-button> |
| | | <a-button type="primary" v-if="hasPerm('EquipmentBaseInfo:add')" icon="plus" @click="$refs.addForm.add()">新建</a-button> |
| | | <a-button style="margin-left: 8px" type="info" icon="download" @click=" EquipmentBaseInfoToExcel()">导出Excel</a-button> |
| | | <a-button style="margin-left: 8px" type="info" icon="download" @click="$refs.equipmentLogForm.edit()">查看历史</a-button> |
| | | </template> |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a v-if="hasPerm('EquipmentBaseInfo:edit')" @click="$refs.editForm.edit(record)">编辑</a> |
| | |
| | | </s-table> |
| | | <add-form ref="addForm" @ok="handleOk" /> |
| | | <edit-form ref="editForm" @ok="handleOk" /> |
| | | <equipmentLog-form ref="equipmentLogForm" @ok="handleOk" /> |
| | | </a-card> |
| | | </div> |
| | | </template> |
| | |
| | | |
| | | import addForm from './addForm.vue' |
| | | import editForm from './editForm.vue' |
| | | import equipmentLogForm from './equipmentLogForm.vue' |
| | | export default { |
| | | components: { |
| | | STable, |
| | | XCard, |
| | | addForm, |
| | | editForm |
| | | editForm, |
| | | equipmentLogForm |
| | | }, |
| | | data () { |
| | | return { |