| | |
| | | <el-button icon="el-icon-delete-solid" @click="handleReset">重置</el-button> |
| | | </div> |
| | | </div> |
| | | <el-button v-if="isStorePage()" type="primary" icon="el-icon-plus" @click="handleView(null, 'add')">添加</el-button> |
| | | <el-button v-if="isStorePage()" type="primary" icon="el-icon-plus" @click="handleView(null, 'create')">添加</el-button> |
| | | </div> |
| | | </header> |
| | | <main> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="storeAddress" label="店铺详细地址" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="relationVideo" label="关联摄像机" min-width="10"> |
| | | <el-table-column prop="videoPoint" label="关联摄像机" min-width="10"> |
| | | <template v-if="scope.row.videoId" slot-scope="scope"> |
| | | <span>{{ scope.row.videoPoint.name }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="operation" label="操作" min-width="20"> |
| | | <template slot-scope="scope"> |
| | |
| | | </el-table> |
| | | <!-- 查看修改页面 --> |
| | | <el-dialog :visible.sync="dialogUpdate" width="45%" |
| | | :title="dialogType ? '修改店铺信息' : '查看店铺信息'" :before-close="handleClose"> |
| | | <updateUser :dialogType="dialogType" :storeInfo="storeInfo" :isStorePage="isStorePage()" @closeDialog="closeDialog" /> |
| | | :destroy-on-close="true" |
| | | :title="dialogType === 'view' ? '查看店铺信息' : '修改店铺信息'" :before-close="handleClose"> |
| | | <updateUser v-if="dialogUpdate" :dialogType="dialogType" :storeInfo="storeInfo" :isStorePage="isStorePage()" @closeDialog="closeDialog" /> |
| | | </el-dialog> |
| | | <!-- 分页 --> |
| | | <div class="pagination"> |
| | |
| | | handleDelete(id) { |
| | | deleteStoreInfo(id) |
| | | .then(() => { |
| | | this.$message({ type: 'success', message }); |
| | | this.$message({ type: 'success', message: '操作成功' }); |
| | | this.search(); |
| | | }) |
| | | .catch(err => this.$message({ type: 'error', message: err })); |