| | |
| | | <el-table-column |
| | | label="设备编码"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text">{{row.code}}</el-button> |
| | | <el-button type="text" @click="handledeviveDetail(row.id)">{{row.code}}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | <Edit v-if="showEdit1" ref="EditRef" @success="getDevicePage" @close="showEdit1 = false" /> |
| | | <!-- 合同详情 --> |
| | | <ContractDetail ref="ContractDetailRef" /> |
| | | <!-- 设备详情 --> |
| | | <deviceDetail ref="deviceDetail" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import { fetchList as devicePage, getDeviceCateData, getDeviceStatus } from '@/api/Inspection/device' |
| | | import Edit from '../operation/components/deviceEdit' |
| | | import ContractDetail from '../contract/components/contractDetail' |
| | | import deviceDetail from '../operation/components/deviceDetail' |
| | | export default { |
| | | name: 'index', |
| | | components: { OperaYwWorkorderWindow, Detail, Edit, ContractDetail }, |
| | | components: { OperaYwWorkorderWindow, Detail, Edit, ContractDetail, deviceDetail }, |
| | | data() { |
| | | return { |
| | | showDetail: false, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | handledeviveDetail(id) { |
| | | this.$refs.deviceDetail.visible = true |
| | | this.$refs.deviceDetail.id = id |
| | | this.$refs.deviceDetail.getDetail() |
| | | }, |
| | | nodeClick(e) { |
| | | this.tableData = [] |
| | | this.pageSize = 10 |