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

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

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

Loading…
Cancel
Save