| | |
| | | <div class="toolbar-ops"> |
| | | <el-button size="small" type="primary" plain icon="el-icon-plus" @click="openCreateDialog">新增</el-button> |
| | | <el-button size="small" type="danger" plain icon="el-icon-delete" :disabled="selection.length === 0" @click="removeSelection">删除</el-button> |
| | | <el-button |
| | | size="small" |
| | | plain |
| | | icon="el-icon-upload2" |
| | | :loading="importingMap" |
| | | @click="triggerMapImport"> |
| | | 导入地图 |
| | | </el-button> |
| | | <el-button |
| | | size="small" |
| | | plain |
| | | icon="el-icon-edit-outline" |
| | | @click="openVisualEditorByPrompt"> |
| | | 可视化编辑 |
| | | </el-button> |
| | | <el-button |
| | | size="small" |
| | | plain |
| | | icon="el-icon-refresh" |
| | | :loading="syncingLocMast" |
| | | @click="promptSyncLocMast"> |
| | | 同步地图坐标 |
| | | </el-button> |
| | | <el-button |
| | | size="small" |
| | | plain |
| | | icon="el-icon-refresh" |
| | | :loading="initializingLocMast" |
| | | @click="promptInitLocMast"> |
| | | 初始化库位 |
| | | </el-button> |
| | | <el-popover |
| | | placement="bottom" |
| | | width="320" |
| | |
| | | <span v-else>{{ valueOrDash(getTableValue(scope.row, field)) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" width="160" 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> |
| | | </template> |
| | |
| | | |
| | | <el-dialog |
| | | class="dialog-panel" |
| | | :title="dialog.mode === 'create' ? '新增 BasMap' : '修改 BasMap'" |
| | | 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" |
| | | :close-on-click-modal="false"> |
| | |
| | | <el-button type="primary" :loading="dialog.submitting" @click="submitDialog">保存</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <input |
| | | ref="mapUploadInput" |
| | | type="file" |
| | | style="display:none;" |
| | | @change="handleMapFileChange"> |
| | | </div> |
| | | |
| | | <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> |