| | |
| | | <span v-else>{{ valueOrDash(getTableValue(scope.row, field)) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" width="220" fixed="right" align="center"> |
| | | <el-table-column label="操作" width="300" fixed="right" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" @click="openPayloadDialog(scope.row)">查看地图数据</el-button> |
| | | <el-button type="text" @click="openVisualEditor(scope.row)">可视化编辑</el-button> |
| | | <el-button type="text" @click="openEditDialog(scope.row)">修改</el-button> |
| | | <el-button type="text" style="color:#f56c6c;" @click="removeRows([scope.row[primaryKeyField]])">删除</el-button> |
| | |
| | | |
| | | <el-dialog |
| | | class="dialog-panel" |
| | | title="地图数据详情" |
| | | :visible.sync="payloadDialog.visible" |
| | | width="960px" |
| | | :close-on-click-modal="false"> |
| | | <div v-loading="payloadDialog.loading"> |
| | | <el-descriptions :column="2" border size="small" style="margin-bottom: 16px;"> |
| | | <el-descriptions-item label="ID">{{ valueOrDash(payloadDialog.data.id) }}</el-descriptions-item> |
| | | <el-descriptions-item label="层数">{{ valueOrDash(payloadDialog.data.lev) }}</el-descriptions-item> |
| | | </el-descriptions> |
| | | <el-tabs> |
| | | <el-tab-pane label="实时数据"> |
| | | <el-input :value="stringValue(payloadDialog.data.data)" type="textarea" :rows="8" readonly></el-input> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="最近数据"> |
| | | <el-input :value="stringValue(payloadDialog.data.lastData)" type="textarea" :rows="8" readonly></el-input> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="原始地图"> |
| | | <el-input :value="stringValue(payloadDialog.data.originData)" type="textarea" :rows="8" readonly></el-input> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="payloadDialog.visible = false">关闭</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | class="dialog-panel" |
| | | :title="dialog.mode === 'create' ? '新增地图' : '修改地图'" |
| | | :visible.sync="dialog.visible" |
| | | width="760px" |