|
@@ -77,10 +77,13 @@
|
|
|
<el-col :span="3">
|
|
|
<el-button-group class="mark-buttons">
|
|
|
<el-button type="success" size="small" :icon="CirclePlusFilled" @click="addInitItem(index)" v-if="tabData.initList.length < tabData.initLengthMax"></el-button>
|
|
|
- <el-button type="danger" size="small" :icon="RemoveFilled" @click="removeInitItem(row)" v-if="tabData.initList.length > 1"></el-button>
|
|
|
+ <el-button type="danger" size="small" :icon="RemoveFilled" @click="removeInitItem(row)"></el-button>
|
|
|
</el-button-group>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <div class="no-init-list-container" v-if="tabData.initList.length === 0">
|
|
|
+ <el-button type="success" :icon="CirclePlusFilled" @click="addInitItem(index)"></el-button>
|
|
|
+ </div>
|
|
|
</el-form>
|
|
|
</el-tab-pane>
|
|
|
|
|
@@ -451,7 +454,6 @@ const setPageData = (row) => {
|
|
|
tabData.initList = row.initList
|
|
|
} else {
|
|
|
tabData.initList = []
|
|
|
- createInitListRow()
|
|
|
}
|
|
|
// 保存一份原始数据
|
|
|
originData = JSON.parse(JSON.stringify(row))
|