| | |
| | | </div> |
| | | <!-- 操作按钮区域 --> |
| | | <div class="table-operator" style="display: inline;"> |
| | | <a-button v-has="'user.addrequip'" @click="handleAdd" type="primary" icon="plus">维修新增 |
| | | <a-button @click="handleAdd" type="primary" icon="plus">新增 |
| | | </a-button> |
| | | <a-button v-has="'user.add'" @click="handleAddXIU" type="primary" icon="plus">休班新增 |
| | | </a-button> |
| | | <!--<a-button v-has="'user.add'" @click="handleAddXIU" type="primary" icon="plus">休班新增--> |
| | | <!--</a-button>--> |
| | | </div> |
| | | |
| | | <!-- table区域-begin --> |
| | |
| | | </div> |
| | | <!-- table区域-end --> |
| | | <device-repair-model ref="modalForm" @ok="modalFormOk"></device-repair-model> |
| | | <device-repair-model-add ref="modalFormadd" @ok="modalFormOk"></device-repair-model-add> |
| | | <!--<device-repair-model-add ref="modalFormadd" @ok="modalFormOk"></device-repair-model-add>--> |
| | | <device-repair-model-edit ref="modalFormedit" @ok="modalFormOk"></device-repair-model-edit> |
| | | <!--<repair-model ref="repairModelFrom" @ok="modalFormOk"></repair-model>--> |
| | | <!--<repair-model ref="repairModelFrom" @ok="modalFormOk">0</repair-model>--> |
| | | |
| | | </a-card> |
| | | </template> |
| | |
| | | //重新计算分页问题 |
| | | that.reCalculatePage(1) |
| | | // that.$message.success(res.message); |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | |
| | | } |
| | | }); |
| | | }, |
| | | /** |
| | | * 打开新增维修或休班弹窗 |
| | | */ |
| | | handleAdd() { |
| | | this.$refs.modalForm.add(this.node) |
| | | this.$refs.modalForm.title = '新增' |
| | | this.$refs.modalForm.disableSubmit = false |
| | | }, |
| | | handleAddXIU() { |
| | | this.$refs.modalFormadd.add() |
| | | this.$refs.modalFormadd.title = '新增' |
| | | this.$refs.modalFormadd.disableSubmit = false |
| | | }, |
| | | // handleAddXIU() { |
| | | // this.$refs.modalFormadd.add() |
| | | // this.$refs.modalFormadd.title = '新增' |
| | | // this.$refs.modalFormadd.disableSubmit = false |
| | | // }, |
| | | pQuery(parentId) { |
| | | this.queryParam.parentId = parentId[0] |
| | | if(this.selectedRowKeys.length >= 1) { |