修改bug

master
wangwei 2 years ago
parent 2e40d4ed7b
commit c3f3d1d48f

@ -515,7 +515,6 @@ export default {
this.getBusType();
this.getList();
this.lotType = this.$route.query.name;
debugger
if (this.lotType == 'NO_LOT') {
this.viewType = 5;
} else {

@ -341,7 +341,6 @@ export default {
},
handleSortChange(column, prop, order) {
debugger
if (column.order === 'descending') {
this.filterQuery.sort = 'desc'
} else {

@ -93,22 +93,17 @@
<el-table-column width="150" label="养护数量" prop="count"></el-table-column>
<el-table-column width="150" label="养护状态" prop="maintenanceStatus">
<template slot-scope="scope">
<el-radio disabled="true" v-model="scope.row.maStatus"
:label="0">未养护
</el-radio>
<el-radio disabled="true" v-model="scope.row.maStatus"
:label="1">已养护
</el-radio>
<el-tag :type="statusFilterType(scope.row.maStatus)">
{{status[scope.row.maStatus]}}
</el-tag>
</template>
</el-table-column>
<el-table-column width="150" label="设备状态" prop="deviceStatus">
<template slot-scope="scope">
<el-radio v-model="scope.row.deviceStatus" :label="1" disabled="true">
正常
</el-radio>
<el-radio v-model="scope.row.deviceStatus" :label="0" disabled="true">
异常
</el-radio>
<el-tag :type="statusFilterType(scope.row.deviceStatus)"
>
{{deviceStatus[scope.row.deviceStatus]}}
</el-tag>
</template>
</el-table-column>
<el-table-column width="200" label="养护备注" prop="remark">
@ -162,6 +157,14 @@ export default {
1: "未审核",
2: "已审核"
},
status:{
0:"未养护",
1:"已养护",
},
deviceStatus:{
1:"正常",
0:"异常",
},
detailQuery: {
orderIdFk: null,
page: 1,
@ -320,6 +323,15 @@ export default {
this.detailTotal = 0;
});
},
statusFilterType(status) {
const statusMap = {
1: "success",
0: "danger",
};
return statusMap[status];
},
},
mounted() {
document.body.ondrop = function (event) {

@ -76,22 +76,17 @@
<el-table-column width="150" label="养护数量" prop="count"></el-table-column>
<el-table-column width="150" label="养护状态" prop="maintenanceStatus">
<template slot-scope="scope">
<el-radio disabled="true" v-model="scope.row.maStatus"
:label="0">未养护
</el-radio>
<el-radio disabled="true" v-model="scope.row.maStatus"
:label="1">已养护
</el-radio>
<el-tag :type="statusFilterType(scope.row.maStatus)">
{{status[scope.row.maStatus]}}
</el-tag>
</template>
</el-table-column>
<el-table-column width="150" label="设备状态" prop="deviceStatus">
<template slot-scope="scope">
<el-radio v-model="scope.row.deviceStatus" :label="1" disabled="true">
正常
</el-radio>
<el-radio v-model="scope.row.deviceStatus" :label="0" disabled="true">
异常
</el-radio>
<el-tag :type="statusFilterType(scope.row.maStatus)">
{{deviceStatus[scope.row.maStatus]}}
</el-tag>
</template>
</el-table-column>
<el-table-column width="200" label="养护备注" prop="remark">
@ -145,6 +140,14 @@ export default {
1: "未审核",
2: "已审核"
},
status:{
0:"未养护",
1:"已养护",
},
deviceStatus:{
1:"正常",
0:"异常",
},
detailList: [],
detailLoading: false,
detailQuery: {
@ -237,6 +240,15 @@ export default {
this.detailTotal = 0;
});
},
statusFilterType(status){
const statusMap ={
1:"success",
0:"danger"
}
return statusMap[status];
},
},
mounted() {
document.body.ondrop = function (event) {

@ -372,7 +372,6 @@ export default {
this.$message.error('未选择产品');
return;
}
debugger
// if (this.ids.length > 0) {
// for (var i = 0; i < this.ids.length; i++) {
// if (this.ids[i] == this.multipleSelection.id) {

@ -16,7 +16,6 @@ export default {
var lastTime, nextTime //
var lastCode, nextCode //
document.onkeypress = (e) => {
debugger
//
if (window.event) { // IE
nextCode = e.keyCode

Loading…
Cancel
Save