|
|
@@ -112,10 +112,14 @@
|
|
|
</el-table>
|
|
|
<!-- </el-card> -->
|
|
|
<addmaintainlog ref="addmaintain"
|
|
|
- @closeAddDialog="handleCloseAdd"></addmaintainlog>
|
|
|
+ @closeAddDialog="handleCloseAdd"
|
|
|
+ :classificationlist="classificationlist"
|
|
|
+ ></addmaintainlog>
|
|
|
<editmiantainlog ref="editmaintainlog"
|
|
|
@closeAddDialog="handleCloseEdit"
|
|
|
- :maintainlogId="selectedMaintainLogId"></editmiantainlog>
|
|
|
+ :maintainlogId="selectedMaintainLogId"
|
|
|
+ :classificationlist="classificationlist"
|
|
|
+ ></editmiantainlog>
|
|
|
<!-- </div> -->
|
|
|
<template slot="footer">
|
|
|
<el-pagination style="margin: -10px;"
|
|
|
@@ -134,7 +138,7 @@
|
|
|
<script>
|
|
|
import {
|
|
|
searchdatazl,
|
|
|
- // OperaTpyelist,
|
|
|
+ OperaTpyelist,
|
|
|
deleteinstrumentzl
|
|
|
} from '@/api/instrumentroom'
|
|
|
import addmaintainlog from './_opera/add'
|
|
|
@@ -182,7 +186,7 @@ export default {
|
|
|
// this.search.InstrumenName = ''
|
|
|
// }
|
|
|
this.searchdata()
|
|
|
- // this.getOperaTpyelist()
|
|
|
+ this.getOperaTpyelist()
|
|
|
},
|
|
|
methods: {
|
|
|
// 获取所有的维护保养记录
|
|
|
@@ -239,7 +243,7 @@ export default {
|
|
|
searchdatazl(params)
|
|
|
.then(function (response) {
|
|
|
_this.activities = response.info.items
|
|
|
- console.log('----response---', response)
|
|
|
+ // console.log('----response---', response)
|
|
|
_this.totalsize = response.info.currentItemCount
|
|
|
})
|
|
|
.catch(function (error) {
|
|
|
@@ -304,18 +308,17 @@ export default {
|
|
|
})
|
|
|
.catch(() => { })
|
|
|
},
|
|
|
- // getOperaTpyelist () {
|
|
|
- // // 获取样本单位
|
|
|
- // let _this = this
|
|
|
- // let params = {
|
|
|
-
|
|
|
- // code: 'OperaTpye'
|
|
|
- // }
|
|
|
- // OperaTpyelist(params)
|
|
|
- // .then(res => {
|
|
|
- // _this.classificationlist = res.info
|
|
|
- // })
|
|
|
- // },
|
|
|
+ getOperaTpyelist () {
|
|
|
+ // 获取样本单位
|
|
|
+ let _this = this
|
|
|
+ let params = {
|
|
|
+ code: 'OperaTpye'
|
|
|
+ }
|
|
|
+ OperaTpyelist(params)
|
|
|
+ .then(res => {
|
|
|
+ _this.classificationlist = res.info
|
|
|
+ })
|
|
|
+ },
|
|
|
// 列表排序功能
|
|
|
orderby (column) {
|
|
|
if (column.order === 'ascending') {
|