This commit is contained in:
liushuai
2020-02-20 08:50:53 +08:00
parent 32ca9275e0
commit ab082f5742
5 changed files with 369 additions and 22 deletions

View File

@@ -71,7 +71,7 @@ export default {
return {
project: [],
projectValue: '',
groupName: '',
groupName: 'MX',
Group: [{
value: 'MX',
name: 'MX'

View File

@@ -129,7 +129,7 @@
@current-change="handleCurrentChange"/>
</div>
</el-card>
<el-card>
<el-card v-show="groupName!=='MX'">
<el-table
:data="tableData10"
:cell-class-name="cell"
@@ -472,13 +472,13 @@ export default {
methods: {
cell({ row, column, rowIndex, columnIndex }) {
if (row.对比类型 === 1 && columnIndex === 2) {
return 'rgb196'
return 'ContrastMaterial1'
}
if (row.对比类型 === 3 && columnIndex === 1) {
return 'rgb196'
return 'ContrastMaterial1'
}
if (row.对比类型 === 4 && columnIndex === 3) {
return 'rgb196'
return 'ContrastMaterial1'
}
},
async fetchData() {
@@ -784,9 +784,9 @@ export default {
.el-table .warning-row {
background: red;
}
/*.rgb196{*/
/* background: palevioletred !important;*/
/*}*/
.ContrastMaterial1{
background: palevioletred !important;
}
</style>
<style scoped>

View File

@@ -26,7 +26,7 @@
</el-tooltip>
<el-row style="margin-top: 5px;margin-bottom: 3px">
<span>机床名称</span>
<el-input v-model="machineName" readonly size="small" placeholder="机床名称" style="width: 200px;"/>
<el-input v-model="machineName" readonly size="small" placeholder="机床名称" style="width: 200px;margin-right: 10px"/>
<span>机床数量</span>
<el-input v-model="machineNum" readonly size="small" placeholder="机床数量" style="width: 200px;"/>
</el-row>
@@ -399,14 +399,14 @@ export default {
},
methods: {
cell({ row, column, rowIndex, columnIndex }) {
if (row.对比类型 === 1 && columnIndex === 2) {
return 'rgb196'
if (row.对比类型 === 1 && columnIndex === 1) {
return 'ContrastMaterial'
}
if (row.对比类型 === 3 && columnIndex === 1) {
return 'rgb196'
if (row.对比类型 === 3 && columnIndex === 0) {
return 'ContrastMaterial'
}
if (row.对比类型 === 4 && columnIndex === 3) {
return 'rgb196'
if (row.对比类型 === 4 && columnIndex === 2) {
return 'ContrastMaterial'
}
},
handle(row) {
@@ -657,9 +657,9 @@ export default {
</script>
<style>
/*.rgb196{*/
/* background: palevioletred !important;*/
/* }*/
.ContrastMaterial{
background: palevioletred !important;
}
</style>
<style scoped>