-
@@ -60,42 +65,8 @@ export default {
data() {
return {
cesium: null,
- zb: {
- zbTreeData: [
- {
- key: '1',
- title: '红方',
- children: [
- {
- key: '1-1',
- title: '作战力量',
- children: [
- { key: '1-1-1', title: '左翼夺控群火力分队' },
- { key: '1-1-2', title: '左翼攻击分队' },
- { key: '1-1-3', title: '右翼攻击分队' },
- { key: '1-1-4', title: '右翼夺控群反装甲分队' },
- { key: '1-1-5', title: '防空火力队' },
- { key: '1-1-6', title: '左翼牵制群右翼攻击分队' },
- { key: '1-1-7', title: '电子对抗兵队超短波干扰分队' },
- { key: '1-1-8', title: '纵深夺控群火力分队' },
- ],
- },
- {
- key: '1-2',
- title: '保障力量',
- },
- ],
- },
- {
- key: '2',
- title: '蓝方',
- children: [
- { key: '1-1', title: '作战力量' },
- { key: '1-2', title: '保障力量' },
- ],
- },
- ],
- },
+ scenarioId: null,
+ zb: { zbTreeData: [], selectedKeys: [] },
ys: {
keyword: '',
ysList: [
@@ -159,8 +130,46 @@ export default {
},
mounted() {
this.cesium = new window.MyCesium('cesium-container')
+ this.scenarioId = 2733
+ this.getZbTree()
},
methods: {
+ async getZbTree() {
+ try {
+ const res = await this.$http({
+ url: `/scenario/power/${this.scenarioId}`,
+ method: 'get',
+ })
+ this.zb.zbTreeData = [
+ {
+ id: '1',
+ name: '红方',
+ selectable: false,
+ children: [
+ { id: '1-1', name: '作战力量', selectable: false, children: res.data.red.fight },
+ { id: '1-2', name: '保障力量', selectable: false, children: res.data.red.guarantee },
+ { id: '1-3', name: '指挥力量', selectable: false, children: res.data.red.command },
+ ],
+ },
+ {
+ id: '2',
+ name: '蓝方',
+ selectable: false,
+ children: [
+ { id: '2-1', name: '作战力量', selectable: false, children: res.data.red.fight },
+ { id: '2-2', name: '保障力量', selectable: false, children: res.data.red.guarantee },
+ { id: '2-3', name: '指挥力量', selectable: false, children: res.data.red.command },
+ ],
+ },
+ ]
+ } catch (error) {
+ console.log(error)
+ }
+ },
+ handleSelectTree(selectedKeys, { node }) {
+ console.log(...arguments)
+ // node.dataRef
+ },
onSearch(e) {
console.log('----', e, e.target.value)
},
diff --git a/src/views/simulationScene/simulationModel/index.vue b/src/views/simulationScene/simulationModel/index.vue
index 0c07ab2..9b99658 100644
--- a/src/views/simulationScene/simulationModel/index.vue
+++ b/src/views/simulationScene/simulationModel/index.vue
@@ -37,7 +37,7 @@
-
+
{{ item.label }}:
{{ item.text }}
diff --git a/src/views/simulationScene/systemSelect/index.vue b/src/views/simulationScene/systemSelect/index.vue
index 3823233..4f1805c 100644
--- a/src/views/simulationScene/systemSelect/index.vue
+++ b/src/views/simulationScene/systemSelect/index.vue
@@ -3,9 +3,8 @@
![]()
diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue
index 8041cf5..bb4ebd1 100644
--- a/src/views/user/Login.vue
+++ b/src/views/user/Login.vue
@@ -395,13 +395,13 @@ export default {
}
}
::v-deep {
- .ant-input-lg {
+ .ant-input {
height: 52px;
background-color: #0b293a;
border: solid 1px #1d5777;
color: #ffffff;
}
- .ant-input-lg:-webkit-autofill {
+ .ant-input:-webkit-autofill {
-webkit-text-fill-color: #fff !important;
transition: background-color 5000s ease-in-out 0s;
caret-color: #acfff2;
@@ -415,11 +415,11 @@ export default {
.ant-input-suffix .anticon:hover {
color: #ffffffcc;
}
- .has-error .ant-input-lg:hover {
+ .has-error .ant-input:hover {
background-color: #0b293a;
}
- .has-error .ant-input-affix-wrapper .ant-input-lg,
- .has-error .ant-input-affix-wrapper .ant-input-lg:hover {
+ .has-error .ant-input-affix-wrapper .ant-input,
+ .has-error .ant-input-affix-wrapper .ant-input:hover {
background-color: #0b293a;
}
}