| | |
| | | @click='handleAdd' |
| | | type='primary' |
| | | icon='plus' |
| | | v-has="'specialtyMaintenanceStandard:add'" |
| | | >新增</a-button> |
| | | <a-button |
| | | type='primary' |
| | | @click='searchQuery' |
| | | icon='search' |
| | | >查询</a-button> |
| | | <a-button |
| | | type='primary' |
| | | @click='searchReset' |
| | | icon='reload' |
| | | style='margin-left: 8px' |
| | | >重置</a-button> |
| | | type='primary' |
| | | @click='searchQuery' |
| | | icon='search' |
| | | >查询</a-button> |
| | | <a-button |
| | | type='primary' |
| | | @click='searchReset' |
| | | icon='reload' |
| | | style='margin-left: 8px' |
| | | >重置</a-button> |
| | | </div> |
| | | |
| | | <!-- table区域-begin --> |
| | |
| | | @change='handleTableChange' |
| | | > |
| | | |
| | | <span |
| | | <span |
| | | slot="action" |
| | | slot-scope="text, record" |
| | | > |
| | | <a |
| | | v-if="record.versionStatus == '2'" |
| | | @click="handleRevise(record)" |
| | | v-has="'specialtyMaintenanceStandard:revise'" |
| | | >升版</a> |
| | | <a-divider type="vertical" /> |
| | | <a |
| | | v-if="record.versionStatus == '1'" |
| | | @click="handleTakeEffect(record)" |
| | | v-has="'specialtyMaintenanceStandard:takeEffect'" |
| | | >生效</a> |
| | | <a-divider type="vertical" /> |
| | | <a |
| | | v-if="record.versionStatus == '1'" |
| | | @click="handleEdit(record)" |
| | | v-has="'specialtyMaintenanceStandard:edit'" |
| | | >编辑</a> |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm |
| | | v-if="record.versionStatus == '1'" |
| | | title="确定删除吗?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-has="'specialtyMaintenanceStandard:delete'" |
| | | > |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | |
| | | class="table-operator" |
| | | style="margin:-16px" |
| | | > |
| | | <specialty-maintenance-standard-detail |
| | | :addDisableStatus="addDisableStatus" |
| | | :maintenanceStandardId='maintenanceStandardId' /> |
| | | <specialty-maintenance-standard-detail |
| | | :addDisableStatus="addDisableStatus" |
| | | :maintenanceStandardId='maintenanceStandardId' |
| | | /> |
| | | </div> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | |
| | | class="table-operator" |
| | | style="margin:-16px" |
| | | > |
| | | <maintenance-standard-planning-material |
| | | :addDisableStatus="addDisableStatus" |
| | | :maintenanceStandardId='maintenanceStandardId' /> |
| | | <maintenance-standard-planning-material |
| | | :addDisableStatus="addDisableStatus" |
| | | :maintenanceStandardId='maintenanceStandardId' |
| | | /> |
| | | </div> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | |
| | | style="margin:-16px" |
| | | > |
| | | <maintenance-standard-safety-requirement |
| | | :addDisableStatus="addDisableStatus" |
| | | :maintenanceStandardId='maintenanceStandardId' /> |
| | | :addDisableStatus="addDisableStatus" |
| | | :maintenanceStandardId='maintenanceStandardId' |
| | | /> |
| | | </div> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | |
| | | class="table-operator" |
| | | style="margin:-16px" |
| | | > |
| | | <maintenance-standard-work-instruction |
| | | :addDisableStatus="addDisableStatus" |
| | | :maintenanceStandardId='maintenanceStandardId' /> |
| | | <maintenance-standard-work-instruction |
| | | :addDisableStatus="addDisableStatus" |
| | | :maintenanceStandardId='maintenanceStandardId' |
| | | /> |
| | | </div> |
| | | </a-tab-pane> |
| | | |
| | |
| | | total: 0 |
| | | }, |
| | | maintenanceStandardId: '-1', |
| | | addDisableStatus:true, |
| | | addDisableStatus: true, |
| | | queryParam: { type: 'specialty' } |
| | | } |
| | | }, |
| | |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | if (selectedRowKeys.length == 1) { |
| | | this.maintenanceStandardId = selectionRows[0]['id'] |
| | | this.addDisableStatus = selectionRows[0].versionStatus!='1' |
| | | this.addDisableStatus = selectionRows[0].versionStatus != '1' |
| | | console.log(this.addDisableStatus) |
| | | } else { |
| | | this.maintenanceStandardId = '-1' |