| | |
| | | |
| | | <scFormTable v-show="type" ref="table1" v-model="tabledata" stripe hideDelete :hideAdd="!type" |
| | | :addTemplate="addTemplate"> |
| | | <el-table-column label="操作" prop="state" width="200" fixed="left"> |
| | | <template #default="scope"> |
| | | <el-button-group> |
| | | <el-button text type="primary" size="small" @click="table_edit(scope.row)">编辑</el-button> |
| | | <el-button text type="primary" size="small" @click="copy(scope.row)">复制</el-button> |
| | | <el-popconfirm width="220" title="确定将选择的数据删除" @confirm="del(scope.$index)"> |
| | | <template #reference> |
| | | <el-button text type="primary" size="small">删除</el-button> |
| | | </template> |
| | | </el-popconfirm> |
| | | </el-button-group> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column width="200" v-for="item in cols" :key="item.prop" :prop="item.prop" :label="item.label"> |
| | | <template #header="scope"> |
| | | <span v-show="item.isRequired" style="color: red;">*</span> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="操作" prop="state" width="200" fixed="right"> |
| | | <template #default="scope"> |
| | | <el-button-group> |
| | | <el-button text type="primary" size="small" @click="table_edit(scope.row)">编辑</el-button> |
| | | <el-button text type="primary" size="small" @click="copy(scope.row)">复制</el-button> |
| | | <el-popconfirm width="220" title="确定将选择的数据删除" @confirm="del(scope.$index)"> |
| | | <template #reference> |
| | | <el-button text type="primary" size="small">删除</el-button> |
| | | </template> |
| | | </el-popconfirm> |
| | | </el-button-group> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | </scFormTable> |
| | | <template #footer> |
| | | <el-button @click="visible = false">取 消</el-button> |