Browse Source

Merge branch 'release-sy-v1.0.0' of ssh://gitlab.datameta.com:2224/project/water/shuili-vue into release-sy-v1.0.0

sy-water-data-board-ui
panyuyi 1 month ago
parent
commit
daf80abfd4
  1. 42
      src/views/aiSupervision/layerManage/resource/LayerDetails.vue

42
src/views/aiSupervision/layerManage/resource/LayerDetails.vue

@ -46,6 +46,22 @@
<el-form-item label="服务token" prop="serviceToken" style="font-size: 1rem" :label-width="'120px'"> <el-form-item label="服务token" prop="serviceToken" style="font-size: 1rem" :label-width="'120px'">
<el-input v-model.trim="editDataInfoForm.serviceToken" style="width: 80%"></el-input> <el-input v-model.trim="editDataInfoForm.serviceToken" style="width: 80%"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="是否需要聚合" prop="isNeedCluster" style="font-size: 1rem" :label-width="'120px'"
v-if="editDataInfoForm.serviceType === '081100'">
<el-select style="width: 80%" v-model="editDataInfoForm.isNeedCluster" placeholder="请选择">
<!-- 是和否两种选择 -->
<el-option v-for="item in isNeedClusterOptions" :key="item.value" :label="item.label"
:value="item.value" />
</el-select>
</el-form-item>
<el-form-item label="是否支持一键搜索" prop="isSupportFastQuery" style="font-size: 1rem" :label-width="'120px'"
v-if="editDataInfoForm.serviceType === '081100'">
<el-select style="width: 80%" v-model="editDataInfoForm.isSupportFastQuery" placeholder="请选择">
<!-- 是和否两种选择 -->
<el-option v-for="item in isSupportFastQueryOptions" :key="item.value" :label="item.label"
:value="item.value" />
</el-select>
</el-form-item>
<el-form-item v-if="editDataInfoForm.serviceType === '030300'" label="服务索引" prop="serviceIndex" <el-form-item v-if="editDataInfoForm.serviceType === '030300'" label="服务索引" prop="serviceIndex"
style="font-size: 1rem" :label-width="'120px'"> style="font-size: 1rem" :label-width="'120px'">
<el-input v-model="editDataInfoForm.serviceIndex" style="width: 80%"></el-input> <el-input v-model="editDataInfoForm.serviceIndex" style="width: 80%"></el-input>
@ -195,6 +211,8 @@ export default {
serviceType: "", //,wms/wmts/wfs/3d tiles/terrain serviceType: "", //,wms/wmts/wfs/3d tiles/terrain
serviceUrl: "", // serviceUrl: "", //
serviceToken: "", //token serviceToken: "", //token
isNeedCluster: "0",
isSupportFastQuery: "0",
serviceName: "", // serviceName: "", //
serviceNameAlias: "", // serviceNameAlias: "", //
serviceIndex: "", // serviceIndex: "", //
@ -206,6 +224,26 @@ export default {
}, },
directoryInfo: null, // directoryInfo: null, //
dialogTitle: "添加图层", dialogTitle: "添加图层",
isNeedClusterOptions: [
{
value: "0",
label: "否",
},
{
value: "1",
label: "是",
},
],
isSupportFastQueryOptions: [
{
value: "0",
label: "否",
},
{
value: "1",
label: "是",
},
],
serviceTypeOptions: [ serviceTypeOptions: [
{ {
value: "021102", value: "021102",
@ -301,6 +339,8 @@ export default {
this.editDataInfoForm.serviceNameAlias = row.serviceNameAlias; this.editDataInfoForm.serviceNameAlias = row.serviceNameAlias;
this.editDataInfoForm.serviceUrl = row.serviceUrl; this.editDataInfoForm.serviceUrl = row.serviceUrl;
this.editDataInfoForm.serviceToken = row.serviceToken; this.editDataInfoForm.serviceToken = row.serviceToken;
this.editDataInfoForm.isNeedCluster = row.isNeedCluster;
this.editDataInfoForm.isSupportFastQuery = row.isSupportFastQuery;
this.editDataInfoForm.serviceIndex = row.serviceIndex; this.editDataInfoForm.serviceIndex = row.serviceIndex;
this.editDataInfoForm.relationStyleId = row.relationStyleId; this.editDataInfoForm.relationStyleId = row.relationStyleId;
this.editDataInfoForm.relationStyleName = row.relationStyleName; this.editDataInfoForm.relationStyleName = row.relationStyleName;
@ -392,6 +432,8 @@ export default {
this.editDataInfoForm.id = ""; this.editDataInfoForm.id = "";
this.editDataInfoForm.serviceUrl = ""; this.editDataInfoForm.serviceUrl = "";
this.editDataInfoForm.serviceToken = ""; this.editDataInfoForm.serviceToken = "";
this.editDataInfoForm.isNeedCluster = "0";
this.editDataInfoForm.isSupportFastQuery = "0";
this.editDataInfoForm.serviceName = ""; this.editDataInfoForm.serviceName = "";
this.editDataInfoForm.serviceNameAlias = ""; this.editDataInfoForm.serviceNameAlias = "";
this.editDataInfoForm.serviceIndex = ""; this.editDataInfoForm.serviceIndex = "";

Loading…
Cancel
Save