沙盘编辑判分点页面加载慢优化

master
yujialong 10 months ago
parent f22f3e58f5
commit ad4113d1f1
  1. 24
      src/views/Transaction.vue

@ -190,9 +190,9 @@
:disabled="isView || scope.row.isDisabled" :disabled="isView || scope.row.isDisabled"
size="mini" size="mini"
:multiple="isSt" :multiple="isSt"
style="width: 100%"> style="width: 100%;overflow: hidden;">
<el-option v-for="(item, index) in isSt ? scope.row.stItems : scope.row.lcItems" <el-option v-for="(item, i) in isSt ? scope.row.stItems : scope.row.lcItems"
:key="item.itemId" :key="i"
:label="item.options" :label="item.options"
:value="item.itemId"></el-option> :value="item.itemId"></el-option>
</el-select> </el-select>
@ -212,9 +212,9 @@
<el-select v-model="scope.row.value1" <el-select v-model="scope.row.value1"
:disabled="isView || scope.row.isDisabled" :disabled="isView || scope.row.isDisabled"
size="mini" size="mini"
style="width: 100%"> style="width: 100%;">
<el-option v-for="(item, index) in scope.row.lcItems" <el-option v-for="(item, i) in scope.row.lcItems"
:key="item.subjectId" :key="i"
:label="item.options" :label="item.options"
:value="item.subjectId"></el-option> :value="item.subjectId"></el-option>
</el-select> </el-select>
@ -328,8 +328,8 @@
:disabled="isView || scope.row.isDisabled" :disabled="isView || scope.row.isDisabled"
size="mini" size="mini"
clearable> clearable>
<el-option v-for="item in leftSymbols" <el-option v-for="(item, i) in leftSymbols"
:key="item" :key="i"
:value="item.name"></el-option> :value="item.name"></el-option>
</el-select> </el-select>
<el-input class="number-input" <el-input class="number-input"
@ -344,8 +344,8 @@
v-model="scope.row.value5" v-model="scope.row.value5"
size="mini" size="mini"
clearable> clearable>
<el-option v-for="item in rightSymbols" <el-option v-for="(item, i) in rightSymbols"
:key="item" :key="i"
:value="item.name"></el-option> :value="item.name"></el-option>
</el-select> </el-select>
</div> </div>
@ -624,10 +624,10 @@ export default {
this.tableData.forEach(async (item, index) => { this.tableData.forEach(async (item, index) => {
item.i = index item.i = index
// //
let lists = JSON.parse(JSON.stringify(this.treeData)) //let lists = JSON.parse(JSON.stringify(this.treeData))
// let lists = this.treeData // let lists = this.treeData
if (item.operationIds) { if (item.operationIds) {
let list = lists let list = JSON.parse(JSON.stringify(this.treeData))
item.operationIData = [] item.operationIData = []
let findOut = null let findOut = null
let testObj = {} let testObj = {}

Loading…
Cancel
Save