diff --git a/src/core/lazy_use.js b/src/core/lazy_use.js index 2d3aa90..5d67864 100644 --- a/src/core/lazy_use.js +++ b/src/core/lazy_use.js @@ -102,7 +102,28 @@ Vue.use(Descriptions) Vue.use(Space) Vue.use(Pagination) -Vue.prototype.$confirm = Modal.confirm +Vue.prototype.$confirm = (opts) => { + return new Promise((resolve, reject) => { + Modal.confirm({ + ...(typeof opts === 'string' ? { content: opts } : opts), + onOk: async () => { + if (opts.onOk) { + try { + const res = await opts.onOk() + resolve(res) + } catch (error) { + reject(error) + } + } else { + resolve(true) + } + }, + onCancel: () => { + reject(false) + }, + }) + }) +} Vue.prototype.$message = message Vue.prototype.$notification = notification Vue.prototype.$info = Modal.info diff --git a/src/utils/request.js b/src/utils/request.js index ca72b8a..4dfd455 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -56,7 +56,11 @@ request.interceptors.request.use((config) => { // response interceptor request.interceptors.response.use((response) => { - if (response.data && response.data.code && response.data.code > 5000 && response.data.code < 5008) { + if ( + response.data && + response.data.code && + ((response.data.code > 5000 && response.data.code < 5008) || response.data.code === 500) + ) { Vue.prototype.$message.error(response.data.message || '未知错误,请重试') return Promise.reject(response.data) } diff --git a/src/views/isystem/userList.vue b/src/views/isystem/userList.vue index 47158a3..bfe1ccd 100644 --- a/src/views/isystem/userList.vue +++ b/src/views/isystem/userList.vue @@ -14,13 +14,16 @@ 重置 -
+
- 新增 + 新增 + + 导入 +
- + {{ index + 1 }} @@ -33,126 +36,122 @@ 训练员 - diff --git a/src/views/simulationScene/centralControl/index.vue b/src/views/simulationScene/centralControl/index.vue index f97a1b8..688dfe2 100644 --- a/src/views/simulationScene/centralControl/index.vue +++ b/src/views/simulationScene/centralControl/index.vue @@ -358,20 +358,8 @@ export default { this.getRoomList() this.scenarioModal.visible = false this.clearScenarioModal() - const shifou = await new Promise((resolve) => { - this.$confirm({ - content: `创建新房间成功,房间编号${res.data.roomCode},是否立即进入?`, - onOk() { - resolve(true) - }, - onCancel() { - resolve(false) - }, - }) - }) - if (shifou) { - this.handleJoinRoom(res.data) - } + await this.$confirm(`创建新房间成功,房间编号${res.data.roomCode},是否立即进入?`) + this.handleJoinRoom(res.data) } catch (error) { console.log(error) } diff --git a/src/views/simulationScene/database/modules/componentDlg.vue b/src/views/simulationScene/database/modules/componentDlg.vue new file mode 100644 index 0000000..c6a70fe --- /dev/null +++ b/src/views/simulationScene/database/modules/componentDlg.vue @@ -0,0 +1,1860 @@ + + + \ No newline at end of file diff --git a/src/views/simulationScene/database/modules/componentEditlistData.js b/src/views/simulationScene/database/modules/componentEditlistData.js new file mode 100644 index 0000000..f10e85c --- /dev/null +++ b/src/views/simulationScene/database/modules/componentEditlistData.js @@ -0,0 +1,2778 @@ +export var componentEditlistData = [{ + type: 'AircraftCodes', + cols: [{ + title: '属性', + key: 'codeId', + dataIndex: 'codeId', + scopedSlots: { + customRender: 'codeId' + } + }] + }, + { + type: 'AircraftComms', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '通信支持协同作战', + key: 'isOptional', + dataIndex: 'isOptional', + scopedSlots: { + customRender: 'isOptional' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '范围(公里)', + key: 'range', + dataIndex: 'range', + scopedSlots: { + customRender: 'range' + } + }, + { + title: '频道(个)', + key: 'channels', + dataIndex: 'channels', + scopedSlots: { + customRender: 'channels' + } + } + ] + }, + { + type: 'AircraftFuel', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '燃油类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '燃料容量(飞机-公斤,武器-秒,其它(电池-分钟,其它-公斤))', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + ] + }, + { + type: 'AircraftLoadouts', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '挂载方案的作用', + key: 'loadoutRole', + dataIndex: 'loadoutRole', + scopedSlots: { + customRender: 'loadoutRole' + } + }, + { + title: '默认任务剖面', + key: 'defaultMissionProfile', + dataIndex: 'defaultMissionProfile', + scopedSlots: { + customRender: 'defaultMissionProfile' + } + } + ] + }, + { + type: 'AircraftMounts', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + ] + }, + { + type: 'AircraftPropulsion', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '发动机数量(台)', + key: 'numberOfEngines', + dataIndex: 'numberOfEngines', + scopedSlots: { + customRender: 'numberOfEngines' + } + } + ] + }, + { + type: 'AircraftSensors', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '最大作用距离(公里)', + key: 'rangeMax', + dataIndex: 'rangeMax', + scopedSlots: { + customRender: 'rangeMax' + } + }, + ] + }, + { + type: 'AircraftSignatures', + cols: [{ + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '正面', + key: 'front', + dataIndex: 'front', + scopedSlots: { + customRender: 'front' + } + }, + { + title: '侧面', + key: 'side', + dataIndex: 'side', + scopedSlots: { + customRender: 'side' + } + }, + { + title: '后面', + key: 'rear', + dataIndex: 'rear', + scopedSlots: { + customRender: 'rear' + } + }, + { + title: '上面', + key: 'top', + dataIndex: 'top', + scopedSlots: { + customRender: 'top' + } + }, + ] + }, + { + type: 'AircraftTargets', + cols: [ + { + title: '目标类型', + key: 'codeId', + dataIndex: 'codeId', + scopedSlots: { + customRender: 'codeId' + } + } + ] + }, + { + type: 'AircraftWarheads', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + ] + }, + { + type: 'HostairAircraftFacilities', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '物理尺寸级别', + key: 'physicalSize', + dataIndex: 'physicalSize', + scopedSlots: { + customRender: 'physicalSize' + } + }, + { + title: '容量', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + { + title: '跑道长度(米)', + key: 'runwayLength', + dataIndex: 'runwayLength', + scopedSlots: { + customRender: 'runwayLength' + } + }, + ] + }, + { + type: 'CommCapabilities', + cols: [{ + title: '属性', + key: 'codeId', + dataIndex: 'codeId', + scopedSlots: { + customRender: 'codeId' + } + }] + }, + { + type: 'CommDirectors', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '最大作用距离(公里)', + key: 'rangeMax', + dataIndex: 'rangeMax', + scopedSlots: { + customRender: 'rangeMax' + } + }, + ] + }, + { + type: 'FacilityAircraftFacilities', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '物理尺寸级别', + key: 'physicalSize', + dataIndex: 'physicalSize', + scopedSlots: { + customRender: 'physicalSize' + } + }, + { + title: '容量', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + { + title: '跑道长度(米)', + key: 'runwayLength', + dataIndex: 'runwayLength', + scopedSlots: { + customRender: 'runwayLength' + } + }, + ] + }, + { + type: 'FacilityComms', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '通信支持协同作战', + key: 'isOptional', + dataIndex: 'isOptional', + scopedSlots: { + customRender: 'isOptional' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '范围(公里)', + key: 'range', + dataIndex: 'range', + scopedSlots: { + customRender: 'range' + } + }, + { + title: '频道(个)', + key: 'channels', + dataIndex: 'channels', + scopedSlots: { + customRender: 'channels' + } + } + ] + }, + { + type: 'FacilityDockingFacilities', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '物理尺寸级别', + key: 'physicalSize', + dataIndex: 'physicalSize', + scopedSlots: { + customRender: 'physicalSize' + } + }, + { + title: '容量', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + ] + }, + { + type: 'FacilityFuel', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '燃油类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '燃料容量(飞机-公斤,武器-秒,其它(电池-分钟,其它-公斤))', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + ] + }, + { + type: 'FacilityMagazines', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '容量', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + ] + }, + { + type: 'FacilityMounts', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + ] + }, + { + type: 'FacilitySensors', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '最大作用距离', + key: 'rangeMax', + dataIndex: 'rangeMax', + scopedSlots: { + customRender: 'rangeMax' + } + }, + ] + }, + { + type: 'FacilitySignatures', + cols: [{ + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '正面', + key: 'front', + dataIndex: 'front', + scopedSlots: { + customRender: 'front' + } + }, + { + title: '侧面', + key: 'side', + dataIndex: 'side', + scopedSlots: { + customRender: 'side' + } + }, + { + title: '后面', + key: 'rear', + dataIndex: 'rear', + scopedSlots: { + customRender: 'rear' + } + }, + { + title: '上面', + key: 'top', + dataIndex: 'top', + scopedSlots: { + customRender: 'top' + } + }, + ] + }, + { + type: 'HostAiraircraftFacilities', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '物理尺寸级别', + key: 'physicalSize', + dataIndex: 'physicalSize', + scopedSlots: { + customRender: 'physicalSize' + } + }, + { + title: '容量', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + { + title: '跑道长度(米)', + key: 'runwayLength', + dataIndex: 'runwayLength', + scopedSlots: { + customRender: 'runwayLength' + } + }, + ] + }, + { + type: 'LoadoutWeapons', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '武器名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '默认弹量', + key: 'defaultLoad', + dataIndex: 'defaultLoad', + scopedSlots: { + customRender: 'defaultLoad' + } + }, + { + title: '最大装载数', + key: 'maxLoad', + dataIndex: 'maxLoad', + scopedSlots: { + customRender: 'maxLoad' + } + }, + { + title: '发射间隔时间(秒)', + key: 'ROF', + dataIndex: 'ROF', + scopedSlots: { + customRender: 'ROF' + } + }, + { + title: '发射管数(整装数)', + key: 'multiple', + dataIndex: 'multiple', + scopedSlots: { + customRender: 'multiple' + } + }, + { + title: '可选', + key: 'optional', + dataIndex: 'optional', + scopedSlots: { + customRender: 'optional' + } + }, + { + title: '内部', + key: 'internal', + dataIndex: 'internal', + scopedSlots: { + customRender: 'internal' + } + }, + ] + }, + { + type: 'MagazineWeapons', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '武器名称', + key: 'componentId', + dataIndex: 'componentId', + scopedSlots: { + customRender: 'componentId' + } + }, + { + title: '默认弹量', + key: 'defaultLoad', + dataIndex: 'defaultLoad', + scopedSlots: { + customRender: 'defaultLoad' + } + }, + { + title: '最大装载数', + key: 'maxLoad', + dataIndex: 'maxLoad', + scopedSlots: { + customRender: 'maxLoad' + } + }, + { + title: '发射间隔时间(秒)', + key: 'ROF', + dataIndex: 'ROF', + scopedSlots: { + customRender: 'ROF' + } + }, + { + title: '发射管数(整装数)', + key: 'multiple', + dataIndex: 'multiple', + scopedSlots: { + customRender: 'multiple' + } + } + ] + }, + { + type: 'MountComms', + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '通信支持协同作战', + key: 'isOptional', + dataIndex: 'isOptional', + scopedSlots: { + customRender: 'isOptional' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '范围(公里)', + key: 'range', + dataIndex: 'range', + scopedSlots: { + customRender: 'range' + } + }, + { + title: '频道(个)', + key: 'channels', + dataIndex: 'channels', + scopedSlots: { + customRender: 'channels' + } + } + ] + }, + { + type: 'MountDirectors', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '最大作用距离', + key: 'rangeMax', + dataIndex: 'rangeMax', + scopedSlots: { + customRender: 'rangeMax' + } + }, + ] + }, + { + type: 'MountMagazineWeapons', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '武器名称', + key: 'componentId', + dataIndex: 'componentId', + scopedSlots: { + customRender: 'componentId' + } + }, + { + title: '默认弹量', + key: 'defaultLoad', + dataIndex: 'defaultLoad', + scopedSlots: { + customRender: 'defaultLoad' + } + }, + { + title: '最大装载数', + key: 'maxLoad', + dataIndex: 'maxLoad', + scopedSlots: { + customRender: 'maxLoad' + } + }, + { + title: '发射间隔时间(秒)', + key: 'ROF', + dataIndex: 'ROF', + scopedSlots: { + customRender: 'ROF' + } + }, + { + title: '发射管数(整装数)', + key: 'multiple', + dataIndex: 'multiple', + scopedSlots: { + customRender: 'multiple' + } + } + ] + }, + { + type: 'MountSensors', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '最大作用距离', + key: 'rangeMax', + dataIndex: 'rangeMax', + scopedSlots: { + customRender: 'rangeMax' + } + }, + ] + }, + { + type: 'MountWeapons', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '武器名称', + key: 'componentId', + dataIndex: 'componentId', + scopedSlots: { + customRender: 'componentId' + } + }, + { + title: '默认弹量', + key: 'defaultLoad', + dataIndex: 'defaultLoad', + scopedSlots: { + customRender: 'defaultLoad' + } + }, + { + title: '最大装载数', + key: 'maxLoad', + dataIndex: 'maxLoad', + scopedSlots: { + customRender: 'maxLoad' + } + }, + { + title: '发射间隔时间(秒)', + key: 'ROF', + dataIndex: 'ROF', + scopedSlots: { + customRender: 'ROF' + } + }, + { + title: '发射管数(整装数)', + key: 'multiple', + dataIndex: 'multiple', + scopedSlots: { + customRender: 'multiple' + } + } + ] + }, + { + type: 'PropulsionPerformance', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '工作高度带序号', + key: 'altitudeBand', + dataIndex: 'altitudeBand', + scopedSlots: { + customRender: 'altitudeBand' + } + }, + { + title: '油门类型', + key: 'throttle', + dataIndex: 'throttle', + scopedSlots: { + customRender: 'throttle' + } + }, + { + title: '速度(节)', + key: 'speed', + dataIndex: 'speed', + scopedSlots: { + customRender: 'speed' + } + }, + { + title: '最低海拔(米)', + key: 'altitudeMin', + dataIndex: 'altitudeMin', + scopedSlots: { + customRender: 'altitudeMin' + } + }, + { + title: '最高海拔(米)', + key: 'altitudeMax', + dataIndex: 'altitudeMax', + scopedSlots: { + customRender: 'altitudeMax' + } + }, + { + title: '燃料消耗速度(飞机-公斤/分钟,武器-秒,其它(电池-分钟,其它-公斤/分钟))', + key: 'consumption', + dataIndex: 'consumption', + scopedSlots: { + customRender: 'consumption' + } + }, + ] + }, + { + type: 'SatelliteComms', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '通信支持协同作战', + key: 'isOptional', + dataIndex: 'isOptional', + scopedSlots: { + customRender: 'isOptional' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '范围(公里)', + key: 'range', + dataIndex: 'range', + scopedSlots: { + customRender: 'range' + } + }, + { + title: '频道(个)', + key: 'channels', + dataIndex: 'channels', + scopedSlots: { + customRender: 'channels' + } + } + ] + }, + { + type: 'SatelliteSensors', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '最大作用距离', + key: 'rangeMax', + dataIndex: 'rangeMax', + scopedSlots: { + customRender: 'rangeMax' + } + }, + ] + }, + { + type: 'SatelliteSignatures', + cols: [ + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '正面', + key: 'front', + dataIndex: 'front', + scopedSlots: { + customRender: 'front' + } + }, + { + title: '侧面', + key: 'side', + dataIndex: 'side', + scopedSlots: { + customRender: 'side' + } + }, + { + title: '后面', + key: 'rear', + dataIndex: 'rear', + scopedSlots: { + customRender: 'rear' + } + }, + { + title: '上面', + key: 'top', + dataIndex: 'top', + scopedSlots: { + customRender: 'top' + } + }, + ] + }, + { + type: 'SensorCapabilities', + cols: [ + { + title: '属性', + key: 'codeId', + dataIndex: 'codeId', + scopedSlots: { + customRender: 'codeId' + } + } + ] + }, + { + type: 'SensorCodes', + cols: [ + { + title: '属性', + key: 'codeId', + dataIndex: 'codeId', + scopedSlots: { + customRender: 'codeId' + } + } + ] + }, + { + type: 'SensorFrequencyIlluminate', + cols: [ + { + title: '属性', + key: 'frequency', + dataIndex: 'frequency', + scopedSlots: { + customRender: 'frequency' + } + } + ] + }, + { + type: 'SensorFrequencySearchAndTrack', + cols: [ + { + title: '属性', + key: 'frequency', + dataIndex: 'frequency', + scopedSlots: { + customRender: 'frequency' + } + } + ] + }, + { + type: 'ShipAircraftFacilities', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '物理尺寸级别', + key: 'physicalSize', + dataIndex: 'physicalSize', + scopedSlots: { + customRender: 'physicalSize' + } + }, + { + title: '容量', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + { + title: '跑道长度(米)', + key: 'runwayLength', + dataIndex: 'runwayLength', + scopedSlots: { + customRender: 'runwayLength' + } + }, + ] + }, + { + type: 'ShipCodes', + cols: [ + { + title: '属性', + key: 'codeId', + dataIndex: 'codeId', + scopedSlots: { + customRender: 'codeId' + } + } + ] + }, + { + type: 'ShipComms', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '通信支持协同作战', + key: 'isOptional', + dataIndex: 'isOptional', + scopedSlots: { + customRender: 'isOptional' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '范围(公里)', + key: 'range', + dataIndex: 'range', + scopedSlots: { + customRender: 'range' + } + }, + { + title: '频道(个)', + key: 'channels', + dataIndex: 'channels', + scopedSlots: { + customRender: 'channels' + } + } + ] + }, + { + type: 'ShipDockingFacilities', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '物理尺寸级别', + key: 'physicalSize', + dataIndex: 'physicalSize', + scopedSlots: { + customRender: 'physicalSize' + } + }, + { + title: '容量', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + ] + }, + { + type: 'ShipFuel', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '燃油类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '燃料容量(飞机-公斤,武器-秒,其它(电池-分钟,其它-公斤))', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + ] + }, + { + type: 'ShipMagazines', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '容量', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + ] + }, + { + type: 'ShipMounts', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + ] + }, + { + type: 'ShipPropulsion', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '发动机数量(台)', + key: 'numberOfEngines', + dataIndex: 'numberOfEngines', + scopedSlots: { + customRender: 'numberOfEngines' + } + }, + ] + }, + { + type: 'ShipSensors', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '最大作用距离', + key: 'rangeMax', + dataIndex: 'rangeMax', + scopedSlots: { + customRender: 'rangeMax' + } + }, + ] + }, + { + type: 'ShipSignatures', + cols: [ + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '正面', + key: 'front', + dataIndex: 'front', + scopedSlots: { + customRender: 'front' + } + }, + { + title: '侧面', + key: 'side', + dataIndex: 'side', + scopedSlots: { + customRender: 'side' + } + }, + { + title: '后面', + key: 'rear', + dataIndex: 'rear', + scopedSlots: { + customRender: 'rear' + } + }, + { + title: '上面', + key: 'top', + dataIndex: 'top', + scopedSlots: { + customRender: 'top' + } + }, + ] + }, + { + type: 'SubmarineAircraftFacilities', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '物理尺寸级别', + key: 'physicalSize', + dataIndex: 'physicalSize', + scopedSlots: { + customRender: 'physicalSize' + } + }, + { + title: '容量', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + { + title: '跑道长度(米)', + key: 'runwayLength', + dataIndex: 'runwayLength', + scopedSlots: { + customRender: 'runwayLength' + } + }, + ] + }, + { + type: 'SubmarineCodes', + cols: [ + { + title: '属性', + key: 'codeId', + dataIndex: 'codeId', + scopedSlots: { + customRender: 'codeId' + } + } + ] + }, + { + type: 'SubmarineComms', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '通信支持协同作战', + key: 'isOptional', + dataIndex: 'isOptional', + scopedSlots: { + customRender: 'isOptional' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '范围(公里)', + key: 'range', + dataIndex: 'range', + scopedSlots: { + customRender: 'range' + } + }, + { + title: '频道(个)', + key: 'channels', + dataIndex: 'channels', + scopedSlots: { + customRender: 'channels' + } + } + ] + }, + { + type: 'SubmarineDockingFacilities', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '物理尺寸级别', + key: 'physicalSize', + dataIndex: 'physicalSize', + scopedSlots: { + customRender: 'physicalSize' + } + }, + { + title: '容量', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + ] + }, + { + type: 'SubmarineFuel', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '燃油类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '燃料容量(飞机-公斤,武器-秒,其它(电池-分钟,其它-公斤))', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + ] + }, + { + type: 'SubmarineMagazines', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '容量', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + ] + }, + { + type: 'SubmarineMounts', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + ] + }, + { + type: 'SubmarinePropulsion', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '发动机数量(台)', + key: 'numberOfEngines', + dataIndex: 'numberOfEngines', + scopedSlots: { + customRender: 'numberOfEngines' + } + } + ] + }, + { + type: 'SubmarineSensors', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '最大作用距离', + key: 'rangeMax', + dataIndex: 'rangeMax', + scopedSlots: { + customRender: 'rangeMax' + } + }, + ] + }, + { + type: 'SubmarineSignatures', + cols: [ + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '正面', + key: 'front', + dataIndex: 'front', + scopedSlots: { + customRender: 'front' + } + }, + { + title: '侧面', + key: 'side', + dataIndex: 'side', + scopedSlots: { + customRender: 'side' + } + }, + { + title: '后面', + key: 'rear', + dataIndex: 'rear', + scopedSlots: { + customRender: 'rear' + } + }, + { + title: '上面', + key: 'top', + dataIndex: 'top', + scopedSlots: { + customRender: 'top' + } + }, + ] + }, + { + type: 'WeaponCodes', + cols: [ + { + title: '属性', + key: 'codeId', + dataIndex: 'codeId', + scopedSlots: { + customRender: 'codeId' + } + } + ] + }, + { + type: 'WeaponComms', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '通信支持协同作战', + key: 'isOptional', + dataIndex: 'isOptional', + scopedSlots: { + customRender: 'isOptional' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '范围(公里)', + key: 'range', + dataIndex: 'range', + scopedSlots: { + customRender: 'range' + } + }, + { + title: '频道(个)', + key: 'channels', + dataIndex: 'channels', + scopedSlots: { + customRender: 'channels' + } + } + ] + }, + { + type: 'WeaponDirectors', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '最大作用距离', + key: 'rangeMax', + dataIndex: 'rangeMax', + scopedSlots: { + customRender: 'rangeMax' + } + }, + ] + }, + { + type: 'WeaponFuel', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '燃油类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '燃料容量(飞机-公斤,武器-秒,其它(电池-分钟,其它-公斤))', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + ] + }, + { + type: 'WeaponPropulsion', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '发动机数量(台)', + key: 'numberOfEngines', + dataIndex: 'numberOfEngines', + scopedSlots: { + customRender: 'numberOfEngines' + } + } + ] + }, + { + type: 'WeaponSensors', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '最大作用距离', + key: 'rangeMax', + dataIndex: 'rangeMax', + scopedSlots: { + customRender: 'rangeMax' + } + }, + ] + }, + { + type: 'WeaponSignatures', + cols: [ + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '正面', + key: 'front', + dataIndex: 'front', + scopedSlots: { + customRender: 'front' + } + }, + { + title: '侧面', + key: 'side', + dataIndex: 'side', + scopedSlots: { + customRender: 'side' + } + }, + { + title: '后面', + key: 'rear', + dataIndex: 'rear', + scopedSlots: { + customRender: 'rear' + } + }, + ] + }, + { + type: 'WeaponTargets', + cols: [ + { + title: '目标类型', + key: 'codeId', + dataIndex: 'codeId', + scopedSlots: { + customRender: 'codeId' + } + } + ] + }, + { + type: 'WeaponWarheads', + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + ] + }, + { + type: 'Weaponwra', + cols: [ + { + title: '目标类型', + key: 'codeIdDescription', + dataIndex: 'codeIdDescription', + scopedSlots: { + customRender: 'codeIdDescription' + } + }, + { + title: '武器齐射数', + key: 'weaponQtyDescription', + dataIndex: 'weaponQtyDescription', + scopedSlots: { + customRender: 'weaponQtyDescription' + } + }, + { + title: '齐射最大发射单元数', + key: 'shooterQtyDescription', + dataIndex: 'shooterQtyDescription', + scopedSlots: { + customRender: 'shooterQtyDescription' + } + }, + { + title: '自防御距离', + key: 'selfDefenceRangeDescription', + dataIndex: 'selfDefenceRangeDescription', + scopedSlots: { + customRender: 'selfDefenceRangeDescription' + } + }, + ] + }, + // ji + { + type: 'LaserSensors',//传感器 + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '最大作用距离', + key: 'rangeMax', + dataIndex: 'rangeMax', + scopedSlots: { + customRender: 'rangeMax' + } + }, + ] + }, + { + type: 'LaserDamageability',//杀伤性能 + cols: [{ + title: '典型RCS', + key: 'rcs', + dataIndex: 'rcs', + scopedSlots: { + customRender: 'rcs' + } + }, + { + title: '典型速度', + key: 'speed', + dataIndex: 'speed', + scopedSlots: { + customRender: 'speed' + } + }, + { + title: '典型高度', + key: 'height', + dataIndex: 'height', + scopedSlots: { + customRender: 'height' + } + }, + { + title: '远界', + key: 'maxRange', + dataIndex: 'maxRange', + scopedSlots: { + customRender: 'maxRange' + } + }, + { + title: '近界', + key: 'minRange', + dataIndex: 'minRange', + scopedSlots: { + customRender: 'minRange' + } + }, + { + title: '高界', + key: 'maxHeight', + dataIndex: 'maxHeight', + scopedSlots: { + customRender: 'maxHeight' + } + }, + { + title: '低界', + key: 'minHeight', + dataIndex: 'minHeight', + scopedSlots: { + customRender: 'minHeight' + } + }, + { + title: '最大航捷', + key: 'maxApproachPoint', + dataIndex: 'maxApproachPoint', + scopedSlots: { + customRender: 'maxApproachPoint' + } + }, + { + title: '最大航路角', + key: 'maxFilghtPathAngle', + dataIndex: 'maxFilghtPathAngle', + scopedSlots: { + customRender: 'maxFilghtPathAngle' + } + }, + { + title: '最大高低角', + key: 'maxHighLowAngle', + dataIndex: 'maxHighLowAngle', + scopedSlots: { + customRender: 'maxHighLowAngle' + } + }, + { + title: '弹药平均速度', + key: 'averageSpeed', + dataIndex: 'averageSpeed', + scopedSlots: { + customRender: 'averageSpeed' + } + }, + { + title: '弹药数量', + key: 'ammunitionNum', + dataIndex: 'ammunitionNum', + scopedSlots: { + customRender: 'ammunitionNum' + } + }, + ] + }, + { + type: 'LaserWarheads',//战斗部 + cols: [ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + ] + }, + { + type: 'LaserComms', //通信数据链 + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '通信支持协同作战', + key: 'isOptional', + dataIndex: 'isOptional', + scopedSlots: { + customRender: 'isOptional' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '范围(公里)', + key: 'range', + dataIndex: 'range', + scopedSlots: { + customRender: 'range' + } + }, + { + title: '频道(个)', + key: 'channels', + dataIndex: 'channels', + scopedSlots: { + customRender: 'channels' + } + } + ] + }, + { + type: 'LaserSignatures',//信号特征 + cols: [{ + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '正面', + key: 'front', + dataIndex: 'front', + scopedSlots: { + customRender: 'front' + } + }, + { + title: '侧面', + key: 'side', + dataIndex: 'side', + scopedSlots: { + customRender: 'side' + } + }, + { + title: '后面', + key: 'rear', + dataIndex: 'rear', + scopedSlots: { + customRender: 'rear' + } + }, + { + title: '上面', + key: 'top', + dataIndex: 'top', + scopedSlots: { + customRender: 'top' + } + }, + ] + }, + { + type: 'LaserFuel', //燃油 + cols: [{ + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '燃油类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '燃料容量(飞机-公斤,武器-秒,其它(电池-分钟,其它-公斤))', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + }, + ] + }, + { + type: 'LaserTargets', + cols: [ + { + title: '目标类型', + key: 'codeId', + dataIndex: 'codeId', + scopedSlots: { + customRender: 'codeId' + } + } + ] + }, +] diff --git a/src/views/simulationScene/database/modules/detailComponentDlg.vue b/src/views/simulationScene/database/modules/detailComponentDlg.vue new file mode 100644 index 0000000..7c3d79d --- /dev/null +++ b/src/views/simulationScene/database/modules/detailComponentDlg.vue @@ -0,0 +1,154 @@ + + + \ No newline at end of file diff --git a/src/views/simulationScene/database/modules/infoData.vue b/src/views/simulationScene/database/modules/infoData.vue new file mode 100644 index 0000000..c6e2c1c --- /dev/null +++ b/src/views/simulationScene/database/modules/infoData.vue @@ -0,0 +1,1015 @@ + + + + + \ No newline at end of file diff --git a/src/views/simulationScene/database/modules/listColsConfig.js b/src/views/simulationScene/database/modules/listColsConfig.js new file mode 100644 index 0000000..e051827 --- /dev/null +++ b/src/views/simulationScene/database/modules/listColsConfig.js @@ -0,0 +1,731 @@ +// 配置列表要显示的列信息 +export var listGridInfo = { + 'Aircraft':{ + cols:[ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + }, + { + title: '国家', + key: 'operatorCountry', + dataIndex: 'operatorCountry', + scopedSlots: { + customRender: 'operatorCountry' + } + }, + { + title: '军种', + key: 'operatorService', + dataIndex: 'operatorService', + scopedSlots: { + customRender: 'operatorService' + } + }, + { + title: '造价(百万,¥)', + key: 'cost', + dataIndex: 'cost', + scopedSlots: { + customRender: 'cost' + } + }, + { + title: '服役年', + key: 'yearCommissioned', + dataIndex: 'yearCommissioned', + scopedSlots: { + customRender: 'yearCommissioned' + } + }, + { + title: '退役年', + key: 'yearDecommissioned', + dataIndex: 'yearDecommissioned', + scopedSlots: { + customRender: 'yearDecommissioned' + } + } + ] + }, + 'Ship':{ + cols:[ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + },{ + title: '类别', + key: 'category', + dataIndex: 'category', + scopedSlots: { + customRender: 'category' + } + },{ + title: '所属国', + key: 'operatorCountry', + dataIndex: 'operatorCountry', + scopedSlots: { + customRender: 'operatorCountry' + } + },{ + title: '所属军种', + key: 'operatorService', + dataIndex: 'operatorService', + scopedSlots: { + customRender: 'operatorService' + } + },{ + title: '造价(百万,¥)', + key: 'cost', + dataIndex: 'cost', + scopedSlots: { + customRender: 'cost' + } + },{ + title: '服役年', + key: 'yearCommissioned', + dataIndex: 'yearCommissioned', + scopedSlots: { + customRender: 'yearCommissioned' + } + }, + { + title: '退役年', + key: 'yearDecommissioned', + dataIndex: 'yearDecommissioned', + scopedSlots: { + customRender: 'yearDecommissioned' + } + },{ + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + } + ] + }, + 'Submarine':{ + cols:[ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + },{ + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + },{ + title: '类别', + key: 'category', + dataIndex: 'category', + scopedSlots: { + customRender: 'category' + } + },{ + title: '所属国', + key: 'operatorCountry', + dataIndex: 'operatorCountry', + scopedSlots: { + customRender: 'operatorCountry' + } + },{ + title: '所属军种', + key: 'operatorService', + dataIndex: 'operatorService', + scopedSlots: { + customRender: 'operatorService' + } + },{ + title: '造价(百万,¥)', + key: 'cost', + dataIndex: 'cost', + scopedSlots: { + customRender: 'cost' + } + },{ + title: '服役年', + key: 'yearCommissioned', + dataIndex: 'yearCommissioned', + scopedSlots: { + customRender: 'yearCommissioned' + } + }, + { + title: '退役年', + key: 'yearDecommissioned', + dataIndex: 'yearDecommissioned', + scopedSlots: { + customRender: 'yearDecommissioned' + } + },{ + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + } + ] + }, + 'Weapon':{ + cols:[ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + },{ + title: '生产年代', + key: 'generation', + dataIndex: 'generation', + scopedSlots: { + customRender: 'generation' + } + },{ + title: '所属国', + key: 'operatorCountry', + dataIndex: 'operatorCountry', + scopedSlots: { + customRender: 'operatorCountry' + } + },{ + title: '造价(百万,¥)', + key: 'cost', + dataIndex: 'cost', + scopedSlots: { + customRender: 'cost' + } + },{ + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + } + ] + }, + 'Facility':{ + cols:[ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + },{ + title: '类别', + key: 'category', + dataIndex: 'category', + scopedSlots: { + customRender: 'category' + } + },{ + title: '所属国', + key: 'operatorCountry', + dataIndex: 'operatorCountry', + scopedSlots: { + customRender: 'operatorCountry' + } + },{ + title: '所属军种', + key: 'operatorService', + dataIndex: 'operatorService', + scopedSlots: { + customRender: 'operatorService' + } + },{ + title: '造价(百万,¥)', + key: 'cost', + dataIndex: 'cost', + scopedSlots: { + customRender: 'cost' + } + },{ + title: '服役年', + key: 'yearCommissioned', + dataIndex: 'yearCommissioned', + scopedSlots: { + customRender: 'yearCommissioned' + } + }, + { + title: '退役年', + key: 'yearDecommissioned', + dataIndex: 'yearDecommissioned', + scopedSlots: { + customRender: 'yearDecommissioned' + } + },{ + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + } + ] + }, + 'Satellite':{ + cols:[ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + },{ + title: '类别', + key: 'category', + dataIndex: 'category', + scopedSlots: { + customRender: 'category' + } + },{ + title: '所属国', + key: 'operatorCountry', + dataIndex: 'operatorCountry', + scopedSlots: { + customRender: 'operatorCountry' + } + },{ + title: '所属军种', + key: 'operatorService', + dataIndex: 'operatorService', + scopedSlots: { + customRender: 'operatorService' + } + },{ + title: '造价(百万,¥)', + key: 'cost', + dataIndex: 'cost', + scopedSlots: { + customRender: 'cost' + } + },{ + title: '服役年', + key: 'yearCommissioned', + dataIndex: 'yearCommissioned', + scopedSlots: { + customRender: 'yearCommissioned' + } + }, + { + title: '退役年', + key: 'yearDecommissioned', + dataIndex: 'yearDecommissioned', + scopedSlots: { + customRender: 'yearDecommissioned' + } + },{ + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + }, + { + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + } + ] + }, + 'Comm':{ + cols:[ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + },{ + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + },{ + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + } + ] + }, + 'Sensor':{ + cols:[ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + },{ + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + },{ + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + },{ + title: '最大作用距离(公里)', + key: 'rangeMax', + dataIndex: 'rangeMax', + scopedSlots: { + customRender: 'rangeMax' + } + } + ] + }, + 'Loadout':{ + cols:[ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + },{ + title: '挂载方案的作用', + key: 'loadoutRole', + dataIndex: 'loadoutRole', + scopedSlots: { + customRender: 'loadoutRole' + } + },{ + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + } + ] + }, + 'Magazine':{ + cols:[ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + },{ + title: '装甲', + key: 'armorGeneral', + dataIndex: 'armorGeneral', + scopedSlots: { + customRender: 'armorGeneral' + } + },{ + title: '补给间隔时间(秒)', + key: 'rof', + dataIndex: 'rof', + scopedSlots: { + customRender: 'rof' + } + },{ + title: '容量', + key: 'capacity', + dataIndex: 'capacity', + scopedSlots: { + customRender: 'capacity' + } + },{ + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + } + ] + }, + 'Mount':{ + cols:[ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + },{ + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + } + ] + }, + 'Propulsion':{ + cols:[ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + },{ + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + },{ + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + } + ] + }, + 'Warhead':{ + cols:[ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + },{ + title: '炸药类型', + key: 'explosivesType', + dataIndex: 'explosivesType', + scopedSlots: { + customRender: 'explosivesType' + } + },{ + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + },{ + title: '注释', + key: 'comments', + dataIndex: 'comments', + scopedSlots: { + customRender: 'comments' + } + } + ] + }, + Laser: { + cols:[ + { + title: '#DBID', + key: 'id', + dataIndex: 'id', + scopedSlots: { + customRender: 'id' + } + }, + { + title: '名称', + key: 'name', + dataIndex: 'name', + scopedSlots: { + customRender: 'name' + } + },{ + title: '类型', + key: 'type', + dataIndex: 'type', + scopedSlots: { + customRender: 'type' + } + },{ + title: '所属国', + key: 'operatorCountry', + dataIndex: 'operatorCountry', + scopedSlots: { + customRender: 'operatorCountry' + } + } + ] + } +} diff --git a/src/views/simulationScene/database/zbsjk.vue b/src/views/simulationScene/database/zbsjk.vue index d677a68..fc4d6e4 100644 --- a/src/views/simulationScene/database/zbsjk.vue +++ b/src/views/simulationScene/database/zbsjk.vue @@ -3,7 +3,13 @@