|
|
@ -32,16 +32,16 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" width="250"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="primary" @click="editAndAddField(scope.row)">编辑</el-button> |
|
|
|
<el-button type="success" :disabled="scope.$index == 0" @click="moveUpField(scope.$index)">上移</el-button> |
|
|
|
<el-button type="warning" :disabled="(scope.$index + 1) == form.fields.length" @click="moveDownField(scope.$index)">下移</el-button> |
|
|
|
<el-button size="mini" type="text" @click="editAndAddField(scope.row)">编辑</el-button> |
|
|
|
<el-button size="mini" type="text" :disabled="scope.$index == 0" @click="moveUpField(scope.$index)">上移</el-button> |
|
|
|
<el-button size="mini" type="text" :disabled="(scope.$index + 1) == form.fields.length" @click="moveDownField(scope.$index)">下移</el-button> |
|
|
|
<el-popover placement="top" v-model="scope.row.visible"> |
|
|
|
<p>确定删除吗?</p> |
|
|
|
<div style="text-align: right; margin: 0"> |
|
|
|
<el-button size="mini" type="text" @click="scope.row.visible = false">取消</el-button> |
|
|
|
<el-button type="primary" size="mini" @click="deleteField(scope.$index)">确定</el-button> |
|
|
|
</div> |
|
|
|
<el-button type="danger" slot="reference">删除</el-button> |
|
|
|
<el-button size="mini" type="text" slot="reference">删除</el-button> |
|
|
|
</el-popover> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|