|
@@ -163,7 +163,9 @@
|
|
|
</div>
|
|
|
<div class="cla">
|
|
|
<el-table :data="uptataKey" fit style="width: 100%;">
|
|
|
- <el-table-column type="index" width="50" />
|
|
|
+ <el-table-column label="" min-width="50">
|
|
|
+ <template slot-scope="scope">{{ scope.row.index }}</template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="" min-width="150">
|
|
|
<template slot-scope="scope">{{ scope.row.name }}</template>
|
|
|
</el-table-column>
|
|
@@ -319,9 +321,11 @@ export default {
|
|
|
bugGet(this.$route.query.id).then(res => {
|
|
|
this.form = res.data
|
|
|
var str = res.data.accessory
|
|
|
- var obj = JSON.parse(str.split('{}')[0])
|
|
|
- for (var a of obj) {
|
|
|
- this.uptataKey.push(a)
|
|
|
+ if (str !== '') {
|
|
|
+ var obj = JSON.parse(str.split('{}')[0])
|
|
|
+ for (var a of obj) {
|
|
|
+ this.uptataKey.push(a)
|
|
|
+ }
|
|
|
}
|
|
|
this.platformTypeStr = this.bizOptions.filter(value => value.code === this.form.bizId)[0].child
|
|
|
if (this.form.clientType) {
|
|
@@ -392,9 +396,13 @@ export default {
|
|
|
}
|
|
|
}))
|
|
|
},
|
|
|
- handleDelContractList(index) {
|
|
|
- console.log(index)
|
|
|
- this.uptataKey.splice(index, 1)
|
|
|
+ handleDelContractList(val) {
|
|
|
+ for (var i = 0; i <= this.uptataKey.length; i++) {
|
|
|
+ if (val.name === this.uptataKey[i].name) {
|
|
|
+ this.uptataKey.splice(i, 1)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log(this.uptataKey)
|
|
|
},
|
|
|
// 提交表单并且返回刷新
|
|
|
createFormData(form) {
|