Commit 6c041c9c authored by 秦嘉's avatar 秦嘉

修改bug

parent b068b800
......@@ -28,11 +28,10 @@ export function getOrder(orderID) {
}
// 查询工单单表2
export function getOrder1(query) {
export function getOrder1(orderID) {
return request({
url: '/nltifsorder/detail1',
method: 'get',
params: query
url: '/nltifsorder/detail1/' + orderID,
method: 'get'
})
}
......
......@@ -61,6 +61,7 @@
v-loading="Loading"
:data="orderList"
border
:row-class-name="tableRowClassName"
>
<el-table-column
type="index"
......@@ -149,13 +150,14 @@
</template>
<template slot-scope="scope">
<el-link
v-if="scope.row.isModel != '1'"
size="mini"
type="success"
style="margin-left: 10px"
@click="handleDetail(scope.row)"
>详情</el-link>
<el-link
v-if="scope.row.status === 1"
v-if="scope.row.status === 1 && scope.row.isModel != '1'"
size="mini"
type="primary"
style="margin-left: 10px"
......@@ -563,7 +565,7 @@ export default {
this.open = true
getOrder(row.businessId).then(response => {
if (response.data === null) {
getOrder1({businessId: row.businessId}).then(response1 => {
getOrder1(row.businessId).then(response1 => {
this.form = response1.data
this.Loading4 = false
})
......@@ -723,6 +725,15 @@ export default {
this.total = response.total
this.Loading = false
})
},
/**
* 表格颜色变化
*/
tableRowClassName({row,rowIndex}) {
console.log(row,'表格数据')
if (row.isModel === '1') {
return 'warning-row'
}
}
}
}
......@@ -748,6 +759,9 @@ export default {
.el-table th .cell{
display: inline-block!important;
}
.el-table .warning-row {
background: yellow;
}
.table-drop{
vertical-align: 2px;
line-height: 20px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment