|
|
|
@ -10,6 +10,7 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<span slot="tab" >
|
|
|
|
<span slot="tab" >
|
|
|
|
{{ getRandom(latticeRow + 1 -index, latticeRow, nums.row, total.row) }}
|
|
|
|
{{ getRandom(latticeRow + 1 -index, latticeRow, nums.row, total.row) }}
|
|
|
|
|
|
|
|
<a-icon type="check-circle" v-if="status.row[index] === 3" style="color: #e7c205f1" />
|
|
|
|
<a-icon type="close-circle" v-if="status.row[index] === 1" style="color: #d81e06"/>
|
|
|
|
<a-icon type="close-circle" v-if="status.row[index] === 1" style="color: #d81e06"/>
|
|
|
|
<a-icon type="check-circle" v-else-if="status.row[index] === 2" style="color: #1afa29" />
|
|
|
|
<a-icon type="check-circle" v-else-if="status.row[index] === 2" style="color: #1afa29" />
|
|
|
|
<a-icon type="exclamation-circle" v-else style="color: #909399" />
|
|
|
|
<a-icon type="exclamation-circle" v-else style="color: #909399" />
|
|
|
|
@ -48,7 +49,8 @@
|
|
|
|
<span slot="tab">
|
|
|
|
<span slot="tab">
|
|
|
|
{{ getRandom(index, latticeColumn, nums.column, total.column) }}
|
|
|
|
{{ getRandom(index, latticeColumn, nums.column, total.column) }}
|
|
|
|
<!-- <a-icon :id="`${shelveId}-row-${getRandom(index,latticeRow,nums.row,total.row)}`"/> -->
|
|
|
|
<!-- <a-icon :id="`${shelveId}-row-${getRandom(index,latticeRow,nums.row,total.row)}`"/> -->
|
|
|
|
<a-icon type="close-circle" v-if="status.column[index] === 1" style="color: #d81e06" />
|
|
|
|
<a-icon type="check-circle" v-if="status.column[index] === 3" style="color: #e7c205f1" />
|
|
|
|
|
|
|
|
<a-icon type="close-circle" v-else-if="status.column[index] === 1" style="color: #d81e06" />
|
|
|
|
<a-icon type="check-circle" v-else-if="status.column[index] === 2" style="color: #1afa29" />
|
|
|
|
<a-icon type="check-circle" v-else-if="status.column[index] === 2" style="color: #1afa29" />
|
|
|
|
<a-icon type="exclamation-circle" v-else style="color: #909399" />
|
|
|
|
<a-icon type="exclamation-circle" v-else style="color: #909399" />
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
@ -217,7 +219,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
getStatusBg(row,column,status) {
|
|
|
|
getStatusBg(row,column,status) {
|
|
|
|
var dom = document.getElementById(this.direction+"-"+this.side+"-"+row+'-'+column);
|
|
|
|
var dom = document.getElementById(this.direction+"-"+this.side+"-"+row+'-'+column);
|
|
|
|
var color = status == 1 ?'#d81e06': (status == 2|| status == 3) ? '#1afa29': '#bfbfbf';
|
|
|
|
var color = status == 1 ?'#d81e06': (status == 2 ||status == 3 ) ? '#1afa29': (status == 0)?'#f9e182':'#bfbfbf';
|
|
|
|
dom.style.background = color
|
|
|
|
dom.style.background = color
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|