|
|
@@ -98,16 +98,6 @@
|
|
|
align="center"
|
|
|
min-width="120px"
|
|
|
show-overflow-tooltip></el-table-column>
|
|
|
- <!-- <el-table-column prop="Spec"
|
|
|
- align="center"
|
|
|
- min-width="120px"
|
|
|
- label="规格"
|
|
|
- show-overflow-tooltip></el-table-column> -->
|
|
|
- <el-table-column prop="Classification"
|
|
|
- align="center"
|
|
|
- min-width="120px"
|
|
|
- label="设备大类"
|
|
|
- show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="Brand"
|
|
|
label="品牌"
|
|
|
align="center"
|
|
|
@@ -118,21 +108,6 @@
|
|
|
align="center"
|
|
|
min-width="120px"
|
|
|
show-overflow-tooltip></el-table-column>
|
|
|
-
|
|
|
- <!-- <el-table-column prop="CalibrationTime"
|
|
|
- sortable
|
|
|
- label="校准时间"
|
|
|
- align="center"
|
|
|
- width="140px"
|
|
|
- show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">{{ jstimehandle(scope.row.CalibrationTime +'') }}</template>
|
|
|
- </el-table-column> -->
|
|
|
-
|
|
|
- <!-- <el-table-column prop="CalibrationDeadline"
|
|
|
- sortable
|
|
|
- align="center"
|
|
|
- width="100px"
|
|
|
- label="校准期限"></el-table-column> -->
|
|
|
<el-table-column prop="Responsible"
|
|
|
align="center"
|
|
|
min-width="100px"
|
|
|
@@ -163,53 +138,6 @@
|
|
|
center></el-alert>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
-
|
|
|
- <!-- <el-table-column prop="Type"
|
|
|
- label="有效期状态"
|
|
|
- align="center"
|
|
|
- min-width="100"
|
|
|
- show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-alert v-if="scope.row.tYPE==1"
|
|
|
- :closable="false"
|
|
|
- style="background:rgba(255,255,255,0.2)"
|
|
|
- title="校准正常"
|
|
|
- type="success"
|
|
|
- center></el-alert>
|
|
|
- <el-alert v-if="scope.row.tYPE==2"
|
|
|
- :closable="false"
|
|
|
- style="background:rgba(255,255,255,0.2)"
|
|
|
- title="即将到期"
|
|
|
- type="warning"
|
|
|
- center></el-alert>
|
|
|
- <el-alert v-if="scope.row.tYPE==3"
|
|
|
- :closable="false"
|
|
|
- style="background:rgba(255,255,255,0.2)"
|
|
|
- title="过期提醒"
|
|
|
- type="info"
|
|
|
- center></el-alert>
|
|
|
- </template>
|
|
|
- </el-table-column> -->
|
|
|
- <!-- <el-table-column prop="TimeNotification"
|
|
|
- label="校准提醒"
|
|
|
- align="center"
|
|
|
- min-width="100"
|
|
|
- show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-alert v-if="scope.row.TimeNotification==2"
|
|
|
- :closable="false"
|
|
|
- style="background:rgba(255,255,255,0.2)"
|
|
|
- title="是"
|
|
|
- type="success"
|
|
|
- center></el-alert>
|
|
|
- <el-alert v-if="scope.row.TimeNotification !=2"
|
|
|
- :closable="false"
|
|
|
- style="background:rgba(255,255,255,0.2)"
|
|
|
- title="否"
|
|
|
- type="warning"
|
|
|
- center></el-alert>
|
|
|
- </template>
|
|
|
- </el-table-column> -->
|
|
|
<el-table-column prop="Remarks"
|
|
|
min-width="160px"
|
|
|
label="备注"
|
|
|
@@ -350,57 +278,21 @@ export default {
|
|
|
// CalibrationTime.push(_this.formatDateTime(_this.CalibrationTime[1]))
|
|
|
// }
|
|
|
let params = {
|
|
|
- _currentPage: this.currpage,
|
|
|
- _size: this.size,
|
|
|
+ current: this.currpage,
|
|
|
+ size: this.size,
|
|
|
Code: this.search.Code,
|
|
|
- Classification: this.search.classification,
|
|
|
Name: this.search.Name,
|
|
|
Order: this.Column.Order,
|
|
|
Prop: this.Column.Prop
|
|
|
}
|
|
|
InstrumentApi.getAllInstrument(params)
|
|
|
.then(res => {
|
|
|
+ console.log('-----res---', res)
|
|
|
_this.activities = res.records
|
|
|
- // for (let i = 0; i < _this.activities.length; i++) {
|
|
|
- // var addTime = _this.addDate(_this.activities[i].CalibrationTime, 2)
|
|
|
- // var tdate = 0
|
|
|
- // if (_this.activities[i].CalibrationDeadlineType === 1) {
|
|
|
- // addTime = _this.addDate(_this.activities[i].CalibrationTime, _this.activities[i].CalibrationDeadline)
|
|
|
- // tdate = _this.count(new Date(addTime))
|
|
|
- // _this.activities[i].CalibrationDeadlineType = '天'
|
|
|
- // } else if (_this.activities[i].CalibrationDeadlineType === 2) {
|
|
|
- // addTime = _this.addDate(_this.activities[i].CalibrationTime, (_this.activities[i].CalibrationDeadline) * 7)
|
|
|
- // tdate = _this.count(new Date(addTime))
|
|
|
- // _this.activities[i].CalibrationDeadlineType = '周'
|
|
|
- // } else if (_this.activities[i].CalibrationDeadlineType === 3) {
|
|
|
- // addTime = _this.addDate(_this.activities[i].CalibrationTime, (_this.activities[i].CalibrationDeadline) * 30)
|
|
|
- // tdate = _this.count(new Date(addTime))
|
|
|
- // _this.activities[i].CalibrationDeadlineType = '月'
|
|
|
- // } else if (_this.activities[i].CalibrationDeadlineType === 4) {
|
|
|
- // addTime = _this.addDate(_this.activities[i].CalibrationTime, (_this.activities[i].CalibrationDeadline) * 365)
|
|
|
- // tdate = _this.count(new Date(addTime))
|
|
|
- // _this.activities[i].CalibrationDeadlineType = '年'
|
|
|
- // }
|
|
|
- // if (tdate >= 30) {
|
|
|
- // _this.activities[i].tYPE = 1
|
|
|
- // } else if (tdate < 30 && tdate >= 0) {
|
|
|
- // _this.activities[i].tYPE = 2
|
|
|
- // } else if (tdate < 0) {
|
|
|
- // _this.activities[i].tYPE = 3
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
- // for (let i = 0; i < _this.activities.length; i++) {
|
|
|
- // // _this.activities[i].CalibrationDeadline = _this.activities[i].CalibrationDeadline + ''
|
|
|
- // _this.activities[i].CalibrationDeadline = _this.activities[i].CalibrationDeadline + '' + _this.activities[i].CalibrationDeadlineType
|
|
|
- // }
|
|
|
-
|
|
|
- // _this.totalsize = response.info.currentItemCount
|
|
|
- // })
|
|
|
- // .catch(function (error) {
|
|
|
- // console.log(error)
|
|
|
+ _this.totalsize = res.total
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
handleSizeChange (val) {
|
|
|
this.size = val
|
|
|
this.currpage = 1
|