更新
This commit is contained in:
@@ -71,7 +71,7 @@ export default {
|
||||
return {
|
||||
project: [],
|
||||
projectValue: '',
|
||||
groupName: '',
|
||||
groupName: 'MX',
|
||||
Group: [{
|
||||
value: 'MX',
|
||||
name: 'MX'
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user