物理沙盘
This commit is contained in:
@ -13,8 +13,8 @@
|
||||
<div>
|
||||
<span>{{ $t("headerTitles.auths.authCode") }}</span>
|
||||
<span @click="copy" style="cursor: pointer;" title="点击可复制">{{
|
||||
authInfo.license_code
|
||||
}}</span>
|
||||
authInfo.license_code
|
||||
}}</span>
|
||||
</div>
|
||||
<div>
|
||||
<span>{{ $t("headerTitles.auths.authTime") }}</span>
|
||||
@ -30,15 +30,16 @@
|
||||
<div>
|
||||
<span>{{ $t("headerTitles.auths.authType") }}</span>
|
||||
<span>{{
|
||||
authInfo.auth_type == "" ? "暂无授权" : authInfo.auth_type
|
||||
}}</span>
|
||||
authInfo.auth_type == "" ? "暂无授权" : authInfo.auth_type
|
||||
}}</span>
|
||||
</div>
|
||||
|
||||
<el-upload class="upload-demo" :headers="headers" :action="uploadUrl()" :show-file-list="false"
|
||||
accept=".lic" :on-success="onSuccess">
|
||||
accept=".lic" :on-success="onSuccess">
|
||||
<el-button size="small" type="primary">{{
|
||||
$t("headerTitles.auths.upload")
|
||||
}}</el-button>
|
||||
$t("headerTitles.auths.upload")
|
||||
}}
|
||||
</el-button>
|
||||
</el-upload>
|
||||
<!--<button class="btn" @click="onFileSubmit">{{ $t('headerTitles.confirm') }}</button>-->
|
||||
</div>
|
||||
@ -67,8 +68,8 @@
|
||||
<div>
|
||||
<div class="detailSkin ">
|
||||
<span>{{
|
||||
$t("headerTitles.systemSetting.setLanguage")
|
||||
}}:</span>
|
||||
$t("headerTitles.systemSetting.setLanguage")
|
||||
}}:</span>
|
||||
<el-select v-model="systemSetting.language" @change="sysChange" placeholder="请选择">
|
||||
<el-option v-for="item in options" :key="item.id" :label="item.label" :value="item.id">
|
||||
</el-option>
|
||||
@ -106,7 +107,7 @@
|
||||
<span>{{ $t("headerTitles.ConcurrencyControl") }}:</span>
|
||||
<el-select v-model="concurrentcode" @change="concurrentWorkloadChange" placeholder="请选择">
|
||||
<el-option v-for="(item, index) in concurrentWorkloadList" :key="index" :label="item.value"
|
||||
:value="item.value">
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
@ -122,18 +123,24 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div>
|
||||
<span>{{ $t("headerTitles.systemSetting.coordinateSystem") }}</span>
|
||||
<span>{{ $t("headerTitles.systemSetting.coordinateSystem") }}</span>
|
||||
<el-select size="small" v-model="value" placeholder="请选择">
|
||||
<el-option v-for="item in name_map" :key="item" :label="item" :value="item"></el-option>
|
||||
</el-select>
|
||||
</div> -->
|
||||
<div style="display:flex;">
|
||||
<el-button size="mini" type="primary" @click="setView">{{ $t("headerTitles.systemSetting.defaultView")
|
||||
}}</el-button>
|
||||
<el-button size="mini" type="primary" @click="setData">{{ $t("headerTitles.systemSetting.defaultData")
|
||||
}}</el-button>
|
||||
<el-button size="mini" type="primary" @click="management">{{ $t("headerTitles.systemSetting.management")
|
||||
}}</el-button>
|
||||
<el-button size="mini" type="primary" @click="setView">{{
|
||||
$t("headerTitles.systemSetting.defaultView")
|
||||
}}
|
||||
</el-button>
|
||||
<el-button size="mini" type="primary" @click="setData">{{
|
||||
$t("headerTitles.systemSetting.defaultData")
|
||||
}}
|
||||
</el-button>
|
||||
<el-button size="mini" type="primary" @click="management">{{
|
||||
$t("headerTitles.systemSetting.management")
|
||||
}}
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cc">
|
||||
@ -141,42 +148,43 @@
|
||||
<!-- 罗盘 -->
|
||||
<span>{{ $t("headerTitles.systemSetting.showCompass") }}</span>
|
||||
<el-switch @change="sysChange" v-model="systemSetting.showCompass" active-color="#13ce66"
|
||||
inactive-color="#ff4949">
|
||||
inactive-color="#ff4949">
|
||||
</el-switch>
|
||||
</div>
|
||||
<div class="center">
|
||||
<!-- 比例尺 -->
|
||||
<span>{{ $t("headerTitles.systemSetting.showDistanceLegend") }}</span>
|
||||
<el-switch @change="sysChange" v-model="systemSetting.showDistanceLegend" active-color="#13ce66"
|
||||
inactive-color="#ff4949">
|
||||
inactive-color="#ff4949">
|
||||
</el-switch>
|
||||
</div>
|
||||
<div class="center">
|
||||
<span>{{ $t("headerTitles.systemSetting.showToolBar") }}</span>
|
||||
|
||||
<el-switch @change="sysChange" v-model="systemSetting.showToolBar" active-color="#13ce66"
|
||||
inactive-color="#ff4949">
|
||||
inactive-color="#ff4949">
|
||||
</el-switch>
|
||||
</div>
|
||||
<div class="center">
|
||||
<span>{{ $t("headerTitles.systemSetting.showFPS") }}</span>
|
||||
|
||||
<el-switch @change="sysChange" v-model="systemSetting.showFps" active-color="#13ce66"
|
||||
inactive-color="#ff4949">
|
||||
inactive-color="#ff4949">
|
||||
</el-switch>
|
||||
</div>
|
||||
<!-- 图幅 -->
|
||||
<div class="center">
|
||||
<span>{{ $t("headerTitles.systemSetting.sheetIndexStatusSwitch") }}</span>
|
||||
<el-switch style="margin-left: -17px;" @change="sysChange"
|
||||
v-model="systemSetting.sheetIndexStatusSwitch" active-color="#13ce66" inactive-color="#ff4949">
|
||||
v-model="systemSetting.sheetIndexStatusSwitch" active-color="#13ce66"
|
||||
inactive-color="#ff4949">
|
||||
</el-switch>
|
||||
</div>
|
||||
<div class="center">
|
||||
<!-- 点遮挡 -->
|
||||
<span>{{ $t("headerTitles.systemSetting.occlusion") }}</span>
|
||||
<el-switch style="margin-left: -17px;" @change="sysChange" v-model="systemSetting.occlusion"
|
||||
active-color="#13ce66" inactive-color="#ff4949">
|
||||
active-color="#13ce66" inactive-color="#ff4949">
|
||||
</el-switch>
|
||||
</div>
|
||||
</div>
|
||||
@ -185,21 +193,21 @@
|
||||
<!-- 鹰眼图 -->
|
||||
<span>{{ $t("headerTitles.systemSetting.showMapX") }}</span>
|
||||
<el-switch @change="sysChange" v-model="systemSetting.showMapX" active-color="#13ce66"
|
||||
inactive-color="#ff4949">
|
||||
inactive-color="#ff4949">
|
||||
</el-switch>
|
||||
</div>
|
||||
<div class="center">
|
||||
<!-- 经纬网 -->
|
||||
<span>{{ $t("headerTitles.systemSetting.showLatitudeLongitudeNetwork") }}</span>
|
||||
<el-switch @change="sysChange" v-model="systemSetting.showLatitudeLongitudeNetwork"
|
||||
active-color="#13ce66" inactive-color="#ff4949">
|
||||
active-color="#13ce66" inactive-color="#ff4949">
|
||||
</el-switch>
|
||||
</div>
|
||||
<div class="center">
|
||||
<!-- 方里网 -->
|
||||
<span>{{ $t("headerTitles.systemSetting.showFangliNet") }}</span>
|
||||
<el-switch @change="sysChange" v-model="systemSetting.showFangliNet" active-color="#13ce66"
|
||||
inactive-color="#ff4949">
|
||||
inactive-color="#ff4949">
|
||||
</el-switch>
|
||||
</div>
|
||||
|
||||
@ -212,34 +220,38 @@
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<!-- 头部设置 -->
|
||||
<el-tab-pane :label="$t('headerTitles.Header.title')" class="headerTab">
|
||||
<!-- <el-tab-pane :label="$t('headerTitles.Header.title')" class="headerTab">
|
||||
<el-dialog :visible.sync="headerAddDialogVisible" :modal="false" :title="$t('headerTitles.Header.add')"
|
||||
width="100%" style="width: 680px; height: 420px;" center :before-close="headerAddClose">
|
||||
width="100%" style="width: 680px; height: 420px;" center :before-close="headerAddClose">
|
||||
<div style="display: flex;align-items: center;margin: 10px 0;">
|
||||
<span style="width: 50px;">名称</span>
|
||||
<el-input style="width: calc(100% - 78px);" v-model="headerParams.name" placeholder="请输入名称"></el-input>
|
||||
<el-input style="width: calc(100% - 78px);" v-model="headerParams.name"
|
||||
placeholder="请输入名称"></el-input>
|
||||
</div>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<p>{{ $t('headerTitles.systemSetting.skinList.' + skinList[0].id) }}</p>
|
||||
<el-upload class="header-uploader" action="" accept =".png, .jpeg, .jpg" :show-file-list="false" :http-request="headerUploadRequest"
|
||||
:data="{ index: 1 }">
|
||||
<el-upload class="header-uploader" action="" accept=".png, .jpeg, .jpg" :show-file-list="false"
|
||||
:http-request="headerUploadRequest"
|
||||
:data="{ index: 1 }">
|
||||
<img style="object-fit: contain;" v-if="headerParams.url1" :src="headerParams.url1" class="header">
|
||||
<i v-else class="el-icon-plus header-uploader-icon"></i>
|
||||
</el-upload>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<p>{{ $t('headerTitles.systemSetting.skinList.' + skinList[1].id) }}</p>
|
||||
<el-upload class="header-uploader" action="" accept =".png, .jpeg, .jpg" :show-file-list="false" :http-request="headerUploadRequest"
|
||||
:data="{ index: 2 }">
|
||||
<el-upload class="header-uploader" action="" accept=".png, .jpeg, .jpg" :show-file-list="false"
|
||||
:http-request="headerUploadRequest"
|
||||
:data="{ index: 2 }">
|
||||
<img style="object-fit: contain;" v-if="headerParams.url2" :src="headerParams.url2" class="header">
|
||||
<i v-else class="el-icon-plus header-uploader-icon"></i>
|
||||
</el-upload>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<p>{{ $t('headerTitles.systemSetting.skinList.' + skinList[2].id) }}</p>
|
||||
<el-upload class="header-uploader" action="" accept =".png, .jpeg, .jpg" :show-file-list="false" :http-request="headerUploadRequest"
|
||||
:data="{ index: 3 }">
|
||||
<el-upload class="header-uploader" action="" accept=".png, .jpeg, .jpg" :show-file-list="false"
|
||||
:http-request="headerUploadRequest"
|
||||
:data="{ index: 3 }">
|
||||
<img style="object-fit: contain;" v-if="headerParams.url3" :src="headerParams.url3" class="header">
|
||||
<i v-else class="el-icon-plus header-uploader-icon"></i>
|
||||
</el-upload>
|
||||
@ -259,9 +271,9 @@
|
||||
</div>
|
||||
<el-table :data="headerDataList" style="width: 100%" max-height="250">
|
||||
<el-table-column
|
||||
label=""
|
||||
align="center"
|
||||
width="50">
|
||||
label=""
|
||||
align="center"
|
||||
width="50">
|
||||
<template slot-scope="scope">
|
||||
<el-checkbox v-model="scope.row.selected" @change="headerSelectChange(scope.row)"></el-checkbox>
|
||||
</template>
|
||||
@ -280,10 +292,12 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination style="display: flex;justify-content: center" @size-change="handleSizeChangeHeader"
|
||||
@current-change="hadleCurrentChangeHeader" :current-page="paginationHeader.page" :page-sizes="[5, 10, 20, 30, 40]"
|
||||
:page-size="paginationHeader.pageSize" layout="total, sizes, prev, pager, next, jumper" :total="paginationHeader.total" />
|
||||
@current-change="hadleCurrentChangeHeader" :current-page="paginationHeader.page"
|
||||
:page-sizes="[5, 10, 20, 30, 40]"
|
||||
:page-size="paginationHeader.pageSize" layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="paginationHeader.total"/>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
</el-tab-pane> -->
|
||||
<!-- 卫星状态 -->
|
||||
<!-- <el-tab-pane :label="$t('headerTitles.Satellite')">
|
||||
<div class="auth_info custom_scroll_bar content_h">
|
||||
@ -327,7 +341,8 @@
|
||||
</div>
|
||||
<div>
|
||||
<el-button @click="importpoi" size="mini" type="primary" class="btn_public">{{
|
||||
$t("headerTitles.Engineerings.importPOI") }}
|
||||
$t("headerTitles.Engineerings.importPOI")
|
||||
}}
|
||||
</el-button>
|
||||
</div>
|
||||
<div>
|
||||
@ -350,21 +365,23 @@
|
||||
|
||||
<!-- 设备管理 -->
|
||||
<el-tab-pane :label="$t('headerTitles.equipment.title')">
|
||||
<equipment />
|
||||
<equipment/>
|
||||
</el-tab-pane>
|
||||
<!-- 无人机配置 v-if="false" -->
|
||||
<el-tab-pane v-if="false" :label="$t('headerTitles.air.title')">
|
||||
<Air />
|
||||
<Air/>
|
||||
</el-tab-pane>
|
||||
<!-- 模型管理 -->
|
||||
<el-tab-pane :label="$t('headerTitles.model.title')">
|
||||
<!-- <model></model> -->
|
||||
<div class="modelBtn custom_scroll_bar" v-if="isStandAlone">
|
||||
<el-button @click="createLib('model')" type="warning" size="small">{{
|
||||
$t("headerTitles.model.createModelLibrary") }}
|
||||
$t("headerTitles.model.createModelLibrary")
|
||||
}}
|
||||
</el-button>
|
||||
<el-button @click="selectLib('model')" type="primary" size="small">{{
|
||||
$t("headerTitles.model.selectModelLibrary") }}
|
||||
$t("headerTitles.model.selectModelLibrary")
|
||||
}}
|
||||
</el-button>
|
||||
<el-button @click="addModelType" :disabled="importModelEnable()" type="success" size="small">
|
||||
{{ $t("headerTitles.model.addModelType") }}
|
||||
@ -376,10 +393,12 @@
|
||||
{{ $t("headerTitles.model.importModel") }}
|
||||
</el-button>
|
||||
<el-button style="margin-left: 10px" @click="editModelTypes()" type="warning" size="small">{{
|
||||
$t("headerTitles.model.editModel") }}
|
||||
$t("headerTitles.model.editModel")
|
||||
}}
|
||||
</el-button>
|
||||
<el-button @click="delModelTypes()" type="warning" size="small">{{
|
||||
$t("headerTitles.model.deleteModel") }}
|
||||
$t("headerTitles.model.deleteModel")
|
||||
}}
|
||||
</el-button>
|
||||
</div>
|
||||
<div class="modelList">
|
||||
@ -416,7 +435,7 @@
|
||||
</template>
|
||||
</template>
|
||||
<template v-else>
|
||||
无模型类型,<br />请先添加模型类型
|
||||
无模型类型,<br/>请先添加模型类型
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
@ -430,7 +449,7 @@
|
||||
<el-table-column label="缩略图" width="110" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-image style="width: 40px; height: 40px" :src="scope.row.poster_url + '?' + Math.random()"
|
||||
:preview-src-list="[scope.row.poster_url]">
|
||||
:preview-src-list="[scope.row.poster_url]">
|
||||
</el-image>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -462,10 +481,12 @@
|
||||
<el-tab-pane v-if="false" label="三维军标">
|
||||
<div class="modelBtn custom_scroll_bar" v-if="isStandAlone">
|
||||
<el-button @click="createLib('model')" type="warning" size="small">{{
|
||||
$t("headerTitles.model.createModelLibrary") }}
|
||||
$t("headerTitles.model.createModelLibrary")
|
||||
}}
|
||||
</el-button>
|
||||
<el-button @click="selectLib('model')" type="primary" size="small">{{
|
||||
$t("headerTitles.model.selectModelLibrary") }}
|
||||
$t("headerTitles.model.selectModelLibrary")
|
||||
}}
|
||||
</el-button>
|
||||
<el-button @click="addModelType" :disabled="importModelEnable()" type="success" size="small">
|
||||
{{ $t("headerTitles.model.addModelType") }}
|
||||
@ -477,10 +498,12 @@
|
||||
{{ $t("headerTitles.model.importModel") }}
|
||||
</el-button>
|
||||
<el-button style="margin-left: 10px" @click="editModelTypes()" type="warning" size="small">{{
|
||||
$t("headerTitles.model.editModel") }}
|
||||
$t("headerTitles.model.editModel")
|
||||
}}
|
||||
</el-button>
|
||||
<el-button @click="delModelTypes()" type="warning" size="small">{{
|
||||
$t("headerTitles.model.deleteModel") }}
|
||||
$t("headerTitles.model.deleteModel")
|
||||
}}
|
||||
</el-button>
|
||||
</div>
|
||||
<div class="modelList">
|
||||
@ -517,7 +540,7 @@
|
||||
</template>
|
||||
</template>
|
||||
<template v-else>
|
||||
无模型类型,<br />请先添加模型类型
|
||||
无模型类型,<br/>请先添加模型类型
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
@ -532,7 +555,7 @@
|
||||
<el-table-column label="缩略图" width="110" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-image style="width: 40px; height: 40px" :src="scope.row.poster_url + '?' + Math.random()"
|
||||
:preview-src-list="[scope.row.poster_url]">
|
||||
:preview-src-list="[scope.row.poster_url]">
|
||||
</el-image>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -565,10 +588,12 @@
|
||||
<el-tab-pane :label="$t('headerTitles.graphLabel.title')">
|
||||
<div class="modelBtn custom_scroll_bar" v-if="isStandAlone">
|
||||
<el-button @click="createLib('graphLabel')" type="warning" size="small">{{
|
||||
$t("headerTitles.graphLabel.createGraphLabelLibrary") }}
|
||||
$t("headerTitles.graphLabel.createGraphLabelLibrary")
|
||||
}}
|
||||
</el-button>
|
||||
<el-button @click="selectLib('junbiao')" type="primary" size="small">{{
|
||||
$t("headerTitles.graphLabel.selectGraphLabelLibrary") }}
|
||||
$t("headerTitles.graphLabel.selectGraphLabelLibrary")
|
||||
}}
|
||||
</el-button>
|
||||
<el-button @click="addGraphLabelType" :disabled="importGraphLabelEnable()" type="success" size="small">
|
||||
{{ $t("headerTitles.graphLabel.addGraphLabelType") }}
|
||||
@ -580,9 +605,11 @@
|
||||
{{ $t("headerTitles.graphLabel.importGraphLabel") }}
|
||||
</el-button>
|
||||
<el-button style="margin-left: 10px" @click="editGraphLabelTypes" type="warning" size="small">{{
|
||||
$t("headerTitles.graphLabel.edit") }}
|
||||
$t("headerTitles.graphLabel.edit")
|
||||
}}
|
||||
</el-button>
|
||||
<el-button @click="delGraphLabelTypes" type="warning" size="small">{{ $t("headerTitles.graphLabel.delete")
|
||||
<el-button @click="delGraphLabelTypes" type="warning" size="small">{{
|
||||
$t("headerTitles.graphLabel.delete")
|
||||
}}
|
||||
</el-button>
|
||||
</div>
|
||||
@ -608,18 +635,18 @@
|
||||
<div class="typeBox custom_scroll_bar">
|
||||
<template v-if="graphLabelTypeList.length > 0">
|
||||
<el-tree :data="graphLabelTypeList" :props="graphLabelProps" :expand-on-click-node="false"
|
||||
ref="myTree" node-key="type_id" highlight-current accordion @node-click="graphLabelClick">
|
||||
ref="myTree" node-key="type_id" highlight-current accordion @node-click="graphLabelClick">
|
||||
</el-tree>
|
||||
</template>
|
||||
<template v-else>
|
||||
无军标类型,<br />请先添加军标类型
|
||||
无军标类型,<br/>请先添加军标类型
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<el-table border :data="graphTableData" style="width: 100%" @row-click="rowClick" @row-dblclick="dblClick"
|
||||
:row-class-name="tableRowClassName">
|
||||
:row-class-name="tableRowClassName">
|
||||
<template v-if="junbiaoLoading">
|
||||
<div class="canvasBox">
|
||||
<div class="spinnerSexBox p1"></div>
|
||||
@ -645,7 +672,7 @@
|
||||
<!-- :title="scope.row.poster_url"-->
|
||||
<!-- <img :src="scope.row.poster_url">-->
|
||||
<el-image style="width: 40px; height: 40px" :src="scope.row.url"
|
||||
:preview-src-list="[scope.row.url]">
|
||||
:preview-src-list="[scope.row.url]">
|
||||
</el-image>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -653,7 +680,9 @@
|
||||
<el-table-column prop="type" label="操作" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="primary" size="mini" @click="editGraphLabel(scope.row)">{{
|
||||
$t("headerTitles.graphLabel.edit") }}</el-button>
|
||||
$t("headerTitles.graphLabel.edit")
|
||||
}}
|
||||
</el-button>
|
||||
<el-button @click="delGraphLabel(scope.row.jun_biao_id)" type="danger" size="mini">
|
||||
{{ $t("headerTitles.graphLabel.delete") }}
|
||||
</el-button>
|
||||
@ -671,14 +700,15 @@
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<!-- 物理沙盘 -->
|
||||
<el-tab-pane v-if="false" :label="$t('headerTitles.udp')">
|
||||
<!-- v-if="false"-->
|
||||
<!-- <el-tab-pane :label="$t('headerTitles.udp')">
|
||||
<div class="udp_auth">
|
||||
<div>
|
||||
<span class="fankuai"></span>
|
||||
<span style="display: inline-block;margin-left: 5px;">UDP</span>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px;">
|
||||
<span style="color:#fff"> 允许连接: </span>
|
||||
<span style="color:#fff"> {{ $t('headerTitles.Permitconnection') }}: </span>
|
||||
<el-switch @change="change_sandTable_udp_client_status" v-model="sandTable_udp_client_status"></el-switch>
|
||||
</div>
|
||||
<div>
|
||||
@ -699,7 +729,7 @@
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<el-button size="mini" type="primary" @click="submitPort">保存</el-button>
|
||||
<el-button size="mini" type="primary" @click="submitPort">{{ $t("headerTitles.save") }}</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -720,13 +750,18 @@
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<el-button size="mini" type="primary" @click="submitClient">保存</el-button>
|
||||
<el-button size="mini" type="primary" @click="submitClient">{{ $t("headerTitles.save") }}</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="">
|
||||
<el-button size="small" @click="sendGlobalMsg('AFFK','A')">{{ $t("headerTitles.allOpen") }}</el-button>
|
||||
<el-button size="small" @click="sendGlobalMsg('AFFG','B')">{{ $t("headerTitles.allClose") }}</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
</el-tab-pane> -->
|
||||
<!-- 版本信息 -->
|
||||
<el-tab-pane :label="$t('headerTitles.Version')">
|
||||
<div class="auth_info content_h">
|
||||
@ -772,23 +807,24 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { setMove } from "./js/moveDiv";
|
||||
import {setMove} from "./js/moveDiv";
|
||||
import utilTools from "./js/utilTools";
|
||||
import setAgreement from "./components/setAgreementInfo/setAgreement.vue";
|
||||
import { mapGetters } from "vuex";
|
||||
import { calcWidth } from "@/utils";
|
||||
import { validateCommonText } from "@/utils/validate";
|
||||
import {mapGetters} from "vuex";
|
||||
import {calcWidth} from "@/utils";
|
||||
import {validateCommonText} from "@/utils/validate";
|
||||
import equipment from "../../PLTraffic/components/manager/equipment/equipment";
|
||||
import Air from "./components/air/index.vue"
|
||||
import { Header } from "element-ui";
|
||||
import { getHeaderList, addHeader, selectHeader, deleteHeader } from "@/api/gisAPI";
|
||||
import {Header} from "element-ui";
|
||||
import {getHeaderList, addHeader, selectHeader, deleteHeader} from "@/api/gisAPI";
|
||||
import {ipcRenderer} from "electron";
|
||||
// import model from "./components/modelType/index.vue"
|
||||
// import {baseURL} from "../../../utils/request";
|
||||
|
||||
export default {
|
||||
name: "systemPopup",
|
||||
mixins: [utilTools],
|
||||
components: { setAgreement, equipment, Air },
|
||||
components: {setAgreement, equipment, Air},
|
||||
computed: {
|
||||
...mapGetters(["system", "modelLibPath", "graphLabelLibPath"]),
|
||||
},
|
||||
@ -810,8 +846,8 @@ export default {
|
||||
isStandAlone: window.isStandAlone,
|
||||
rulesRole: {
|
||||
role_name: [
|
||||
{ required: true, message: "请输入名称", trigger: "blur" },
|
||||
{ min: 1, message: "长度大于 1 个字符", trigger: "blur" },
|
||||
{required: true, message: "请输入名称", trigger: "blur"},
|
||||
{min: 1, message: "长度大于 1 个字符", trigger: "blur"},
|
||||
],
|
||||
},
|
||||
formRole: {
|
||||
@ -821,25 +857,25 @@ export default {
|
||||
|
||||
rules: {
|
||||
username: [
|
||||
{ required: true, message: "请输入用户名", trigger: "blur" },
|
||||
{ min: 5, message: "长度大于 5 个字符", trigger: "blur" },
|
||||
{ validator: validateCommonText, trigger: "blur" },
|
||||
{required: true, message: "请输入用户名", trigger: "blur"},
|
||||
{min: 5, message: "长度大于 5 个字符", trigger: "blur"},
|
||||
{validator: validateCommonText, trigger: "blur"},
|
||||
],
|
||||
nick_name: [
|
||||
{ required: true, message: "请输入昵称", trigger: "blur" },
|
||||
{ min: 5, message: "长度大于 5 个字符", trigger: "blur" },
|
||||
{required: true, message: "请输入昵称", trigger: "blur"},
|
||||
{min: 5, message: "长度大于 5 个字符", trigger: "blur"},
|
||||
],
|
||||
password: [
|
||||
{ required: true, message: "请输入密码", trigger: "blur" },
|
||||
{ min: 6, message: "长度大于 6 个字符", trigger: "blur" },
|
||||
{required: true, message: "请输入密码", trigger: "blur"},
|
||||
{min: 6, message: "长度大于 6 个字符", trigger: "blur"},
|
||||
],
|
||||
password2: [
|
||||
{ required: true, message: "请再次输入密码", trigger: "blur" },
|
||||
{ validator: validatePass2, trigger: "blur" },
|
||||
{required: true, message: "请再次输入密码", trigger: "blur"},
|
||||
{validator: validatePass2, trigger: "blur"},
|
||||
],
|
||||
depart_id: [
|
||||
{ required: true, message: "请输入部门", trigger: "blur" },
|
||||
{ min: 6, message: "长度大于 6 个字符", trigger: "blur" },
|
||||
{required: true, message: "请输入部门", trigger: "blur"},
|
||||
{min: 6, message: "长度大于 6 个字符", trigger: "blur"},
|
||||
],
|
||||
},
|
||||
dialogFormVisible: false,
|
||||
@ -868,9 +904,9 @@ export default {
|
||||
hikangInfo1: "",
|
||||
hikangInfo2: "",
|
||||
optionList: [
|
||||
{ id: 1, label: "选择1" },
|
||||
{ id: 2, label: "选择2" },
|
||||
{ id: 3, label: "选择3" },
|
||||
{id: 1, label: "选择1"},
|
||||
{id: 2, label: "选择2"},
|
||||
{id: 3, label: "选择3"},
|
||||
],
|
||||
hikang_checked: false,
|
||||
// ******
|
||||
@ -891,15 +927,15 @@ export default {
|
||||
},
|
||||
|
||||
skinList: [
|
||||
{ id: "yingguangse", label: "荧光色" },
|
||||
{ id: "gonganlan", label: "科技蓝" },
|
||||
{ id: "hong", label: "烈日红" },
|
||||
{id: "yingguangse", label: "荧光色"},
|
||||
{id: "gonganlan", label: "科技蓝"},
|
||||
{id: "hong", label: "烈日红"},
|
||||
],
|
||||
|
||||
options: [
|
||||
{ id: "zh", label: "中文简体" },
|
||||
{ id: "en", label: "English" },
|
||||
{ id: "tw", label: "中文繁體" },
|
||||
{id: "zh", label: "中文简体"},
|
||||
{id: "en", label: "English"},
|
||||
{id: "tw", label: "中文繁體"},
|
||||
],
|
||||
// *****
|
||||
select_id: 1, //选中服务接入
|
||||
@ -1043,7 +1079,7 @@ export default {
|
||||
calcsWidth(row) {
|
||||
return calcWidth(row);
|
||||
},
|
||||
tableRowClassName({ row, rowIndex }) {
|
||||
tableRowClassName({row, rowIndex}) {
|
||||
if (rowIndex === 1) {
|
||||
return "warning-row";
|
||||
} else if (rowIndex === 3) {
|
||||
@ -1085,50 +1121,48 @@ export default {
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
})
|
||||
.then(async () => {
|
||||
deleteHeader({
|
||||
id: row.id
|
||||
}).then(async res => {
|
||||
if (res.code == 0 || res.code == 200) {
|
||||
let header = JSON.parse(localStorage.getItem("header"))
|
||||
this.$message.success("删除成功");
|
||||
if(this.headerDataList.length==1 && this.paginationHeader.page>1) {
|
||||
this.paginationHeader.page--
|
||||
}
|
||||
if (row.id == header.id) {
|
||||
localStorage.removeItem("header")
|
||||
// 显示第一个
|
||||
await getHeaderList({
|
||||
page: 1,
|
||||
page_size: 1,
|
||||
}).then(res => {
|
||||
if (res.code == 0 || res.code == 200) {
|
||||
if(res.data.list && res.data.list[0]) {
|
||||
this.headerSelectChange(res.data.list[0])
|
||||
setTimeout(() => {
|
||||
.then(async () => {
|
||||
deleteHeader({
|
||||
id: row.id
|
||||
}).then(async res => {
|
||||
if (res.code == 0 || res.code == 200) {
|
||||
let header = JSON.parse(localStorage.getItem("header"))
|
||||
this.$message.success("删除成功");
|
||||
if (this.headerDataList.length == 1 && this.paginationHeader.page > 1) {
|
||||
this.paginationHeader.page--
|
||||
}
|
||||
if (row.id == header.id) {
|
||||
localStorage.removeItem("header")
|
||||
// 显示第一个
|
||||
await getHeaderList({
|
||||
page: 1,
|
||||
page_size: 1,
|
||||
}).then(res => {
|
||||
if (res.code == 0 || res.code == 200) {
|
||||
if (res.data.list && res.data.list[0]) {
|
||||
this.headerSelectChange(res.data.list[0])
|
||||
setTimeout(() => {
|
||||
this.getHeaderList();
|
||||
}, 500);
|
||||
} else {
|
||||
this.getHeaderList();
|
||||
}, 500);
|
||||
localStorage.removeItem("header")
|
||||
this.$sendChanel("header")
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.getHeaderList();
|
||||
localStorage.removeItem("header")
|
||||
this.$sendChanel("header")
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
} else {
|
||||
this.getHeaderList();
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.getHeaderList();
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
.catch(() => {
|
||||
this.$message({
|
||||
type: "info",
|
||||
message: "已取消删除",
|
||||
.catch(() => {
|
||||
this.$message({
|
||||
type: "info",
|
||||
message: "已取消删除",
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
handleSizeChangeHeader(value) {
|
||||
this.paginationHeader.pageSize = value;
|
||||
@ -1186,6 +1220,19 @@ export default {
|
||||
this.getHeaderList();
|
||||
}
|
||||
})
|
||||
},
|
||||
sendGlobalMsg(cmd,flag){
|
||||
let sandTable_udp_client_status = localStorage.getItem('sandTable_udp_client_status')
|
||||
if (JSON.parse(sandTable_udp_client_status)) {
|
||||
ipcRenderer.send('setNodes', cmd);
|
||||
ipcRenderer.on("replayRenderer", (event, data) => {
|
||||
Array.from(udp_pointMap.keys()).forEach(key=>{
|
||||
let obj=udp_pointMap.get(key)
|
||||
obj.command=flag
|
||||
udp_pointMap.set(key,obj)
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
@ -1206,7 +1253,7 @@ export default {
|
||||
}*/
|
||||
.graphList {
|
||||
.el-tree-node.is-current {
|
||||
&>.el-tree-node__content {
|
||||
& > .el-tree-node__content {
|
||||
background-color: rgba(230, 242, 255, 0.93) !important;
|
||||
}
|
||||
}
|
||||
@ -1251,7 +1298,7 @@ export default {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
|
||||
>span {
|
||||
> span {
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
font-size: 20px;
|
||||
@ -1305,7 +1352,7 @@ export default {
|
||||
}
|
||||
|
||||
.content_h {
|
||||
>span {
|
||||
> span {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
@ -1363,16 +1410,16 @@ export default {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
>div {
|
||||
> div {
|
||||
margin: 20px 0 0;
|
||||
width: 100%;
|
||||
|
||||
>span {
|
||||
> span {
|
||||
font-size: 16px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
&>span:first-child {
|
||||
& > span:first-child {
|
||||
//width: 90px;
|
||||
color: #0ff;
|
||||
font-size: 18px;
|
||||
@ -1380,7 +1427,7 @@ export default {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
&>span:nth-child(2) {
|
||||
& > span:nth-child(2) {
|
||||
display: inline-block;
|
||||
padding: 2px 10px;
|
||||
border-radius: 5px;
|
||||
@ -1396,7 +1443,7 @@ export default {
|
||||
justify-content: center;
|
||||
color: #fff;
|
||||
|
||||
>span {
|
||||
> span {
|
||||
padding: 4px 10px;
|
||||
height: 30px;
|
||||
background: rgba(0, 255, 255, 0.4);
|
||||
@ -1426,7 +1473,7 @@ export default {
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
>span {
|
||||
> span {
|
||||
width: 90px;
|
||||
color: #0ff;
|
||||
font-size: 18px;
|
||||
@ -1465,7 +1512,7 @@ export default {
|
||||
.cc1 {
|
||||
width: 40%;
|
||||
|
||||
>div {
|
||||
> div {
|
||||
margin: 10px 0 0;
|
||||
|
||||
.detailSkin {
|
||||
@ -1473,22 +1520,22 @@ export default {
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
|
||||
>span {
|
||||
> span {
|
||||
font-size: 16px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
&>span:first-child {
|
||||
& > span:first-child {
|
||||
//width: 90px;
|
||||
color: #0ff;
|
||||
font-size: 18px;
|
||||
font-weight: bolder;
|
||||
display: inline-block;
|
||||
width: 108px;
|
||||
width: 116px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
&>span:nth-child(2) {
|
||||
& > span:nth-child(2) {
|
||||
display: inline-block;
|
||||
padding: 2px 10px;
|
||||
border-radius: 5px;
|
||||
@ -1509,15 +1556,15 @@ export default {
|
||||
|
||||
}
|
||||
|
||||
>div {
|
||||
> div {
|
||||
margin: 20px 0 0;
|
||||
|
||||
>span {
|
||||
> span {
|
||||
font-size: 16px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
&>span:first-child {
|
||||
& > span:first-child {
|
||||
//width: 90px;
|
||||
color: #0ff;
|
||||
font-size: 18px;
|
||||
@ -1526,7 +1573,7 @@ export default {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
&>span:nth-child(2) {
|
||||
& > span:nth-child(2) {
|
||||
display: inline-block;
|
||||
padding: 2px 10px;
|
||||
border-radius: 5px;
|
||||
@ -1542,7 +1589,7 @@ export default {
|
||||
height: 17vw;
|
||||
padding: 0 20px;
|
||||
|
||||
>div:first-child {
|
||||
> div:first-child {
|
||||
height: 20%;
|
||||
width: 100%;
|
||||
color: #0ff;
|
||||
@ -1553,7 +1600,7 @@ export default {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
>div:last-child {
|
||||
> div:last-child {
|
||||
height: 80%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
@ -1564,14 +1611,14 @@ export default {
|
||||
justify-content: space-around;
|
||||
margin-bottom: 30px;
|
||||
|
||||
>div {
|
||||
> div {
|
||||
width: 40%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
>div:last-child {
|
||||
> div:last-child {
|
||||
width: 50%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@ -1598,13 +1645,13 @@ export default {
|
||||
justify-content: center;
|
||||
//align-items: center;
|
||||
|
||||
&>div {
|
||||
& > div {
|
||||
font-size: 18px;
|
||||
color: #0ff;
|
||||
font-weight: bolder;
|
||||
margin-bottom: 5px;
|
||||
|
||||
>span {
|
||||
> span {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
@ -1614,7 +1661,7 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
>button {
|
||||
> button {
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
@ -1676,7 +1723,7 @@ export default {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
&>span {
|
||||
& > span {
|
||||
padding-left: 90px;
|
||||
font-size: 14px;
|
||||
}
|
||||
@ -1687,10 +1734,12 @@ export default {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.el-checkbox__inner::after {
|
||||
height: 10px;
|
||||
left: 6px;
|
||||
}
|
||||
|
||||
.el-upload {
|
||||
border: 1px dashed #d9d9d9;
|
||||
border-radius: 6px;
|
||||
|
||||
Reference in New Issue
Block a user