我想要的效果是222222-编号也是1 2 3 这样 现在做出来的 就是上面1111111添加以后 再点222222这条信息 加附件出来的 就是1111111后面的编号 我想要的是222222-1这样的 而且也不想让 添加附件出来的信息 有加附件这个功能 求大佬指点指点萌新
源码是这样的html部分
在这里插入代码片`
<template>
<div class="about">
<div class="detailsForm">
<el-button type="primary" size="small" @click="editAll">批量编辑</el-button>
<el-button type="success" size="small" @click="submits">提交</el-button>
<el-button type="primary" size="small" @click="addAll">批量增加</el-button>
<el-button type="success" size="small" @click="delectAll">批量删除</el-button>
<el-table :data="tabledatas" border @selection-change="handleSelectionChange">
<el-table-column type="selection"></el-table-column>
<el-table-column align="center" label="编号">
<template slot-scope="scope">
<span v-if="scope.row.show">
<el-input size="mini" placeholder="请输入内容" v-model="scope.row.clothingCoding"></el-input>
</span>
<span v-else>{
{
scope.row.clothingCoding}}</span>
</template>
</el-table-column>
<el-table-column align="center" label="年级">
<template slot-scope="scope">
<span v-if=&#