|
|
@ -17,20 +17,42 @@
|
|
|
|
style="width: 100%"
|
|
|
|
style="width: 100%"
|
|
|
|
height="calc(100% - 40px)"
|
|
|
|
height="calc(100% - 40px)"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-table-column prop="rptFrom" label="From"> </el-table-column>
|
|
|
|
<el-table-column prop="rptFrom" label="From">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span :class="[scope.row.fromActive ? 'blue' : 'red']">{{
|
|
|
|
|
|
|
|
scope.row.rptFrom
|
|
|
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="指向" width="80px" class-name="rowClass">
|
|
|
|
<el-table-column label="指向" width="80px" class-name="rowClass">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<!-- 两边都是true -->
|
|
|
|
<el-tag
|
|
|
|
<el-tag
|
|
|
|
type="success"
|
|
|
|
type="success"
|
|
|
|
v-if="scope.row.fromActive && scope.row.toActive"
|
|
|
|
v-if="scope.row.fromActive && scope.row.toActive"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<i class="el-icon-right"></i
|
|
|
|
<i class="el-icon-right"></i
|
|
|
|
></el-tag>
|
|
|
|
></el-tag>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-tag
|
|
|
|
|
|
|
|
type="info"
|
|
|
|
|
|
|
|
v-else-if="
|
|
|
|
|
|
|
|
scope.row.fromActive == false && scope.row.toActive == false
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<i class="el-icon-right"></i
|
|
|
|
|
|
|
|
></el-tag>
|
|
|
|
<el-tag type="danger" v-else> <i class="el-icon-right"></i></el-tag>
|
|
|
|
<el-tag type="danger" v-else> <i class="el-icon-right"></i></el-tag>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="rptFrom" label="T0"> </el-table-column>
|
|
|
|
<el-table-column prop="rptTo" label="To">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span :class="[scope.row.toActive ? 'blue' : 'red']">{{
|
|
|
|
|
|
|
|
scope.row.rptTo
|
|
|
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" class-name="editClass">
|
|
|
|
<el-table-column label="操作" class-name="editClass">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
@ -168,6 +190,12 @@ export default {
|
|
|
|
font-size: 16px;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.blue {
|
|
|
|
|
|
|
|
color: #67c23a;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.red {
|
|
|
|
|
|
|
|
color: #333;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|