<div v-for="(item,index) in productiondata.shiftList" class="mt-10">
<el-row :gutter="20" class="mt-10">
<el-col :span="1"><div class="numstyle" :style="{ backgroundColor: item.color }">{{ index+1 }}</div></el-col>
<el-col :span="5" class="ml-10">{{ item.shiftName }}</el-col>
<el-col :span="12">
<el-progress :text-inside="true" :stroke-width="15"
:percentage="item.shiftRate" :color="item.color" ></el-progress>
<!-- :percentage="item.shiftRate" :color="customColor" ></el-progress> -->
</el-col>
<el-col :span="4">{{item.shiftValue}}kg</el-col>
</el-row>
</div>
let colorarr=['rgba(103, 114, 229, 1)','rgba(103, 114, 229, 0.6)','rgba(103, 114, 229, 0.3)']
response.data.shiftList.forEach((item,index) => {
this.$set(item, 'color', colorarr[index])
})