async 多个await用法

179 阅读1分钟

1、更改了数据,试图没有更新,普通赋值的方式无法引起视图更新,只能用vue提供的**$set()方法,** 用法:

this.$set(this.getOpertionLists[1],"isEdit",this.secondEvalList.evaluState == 2?false:true)

2、async和await用法 www.cnblogs.com/cckui/p/106…

image.png 3、vue中table数据获取当前操作行的index scope.$index

<el-table-column label="当前阶段" width="250" v-if="bidStage0">
    <template slot-scope="scope">
    <el-select v-model="scope.row.currentStage" @change="chageStage(scope.row,scope.$index)" :disabled="false">
      <el-option
        v-for="item in scope.row.bidStage"
        :key="item.value"
        :label="item.label"
        :value="item.value">
      </el-option>
    </el-select>
  </template>
</el-table-column>