| | |
| | | <div class="search"> |
| | | <span></span> |
| | | <div class="btn"> |
| | | <el-button type="primary" size="small" @click="openAdd" v-if="planState != 1">新增</el-button> |
| | | <el-button type="primary" size="small" @click="isEdit = true" v-if="planState != 1">编辑</el-button> |
| | | <el-button type="primary" size="small" @click="save" :loading="saveLoading" v-if="planState != 1">保存</el-button> |
| | | <el-button type="primary" size="small" @click="openAdd" v-if="planState == 0">新增</el-button> |
| | | <el-button type="primary" size="small" @click="isEdit = true" v-if="planState == 0">编辑</el-button> |
| | | <el-button type="primary" size="small" @click="save" :loading="saveLoading" v-if="planState == 0">保存</el-button> |
| | | <el-button size="small" @click="goback">返回</el-button> |
| | | </div> |
| | | </div> |
| | |
| | | <span v-else>{{ scope.row.address }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" label="操作" width="100" v-if="planState != 1"> |
| | | <el-table-column fixed="right" label="操作" width="100" v-if="planState == 0"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" @click="handleDelete(scope.row)" style="color: red;">删除</el-button> |
| | | </template> |