|
@@ -1,5 +1,9 @@
|
|
|
<template>
|
|
|
- <div :class="$props.type == 'share' ? '' : 'sm-panel'" v-show="LayerManageShow" v-drag>
|
|
|
+ <div
|
|
|
+ :class="$props.type == 'share' ? '' : 'sm-panel'"
|
|
|
+ v-show="LayerManageShow"
|
|
|
+ v-drag
|
|
|
+ >
|
|
|
<div class="sm-panel-header" v-if="$props.type != 'share'">
|
|
|
<span>{{ Resource.LayerManage }}</span>
|
|
|
<span class="closeBtn" @click="toggleVisibility">×</span>
|
|
@@ -7,7 +11,59 @@
|
|
|
<Tabs value="">
|
|
|
<TabPane :label="Resource.Resource" name="zyml">
|
|
|
<div class="zyml" :class="$props.splitId >= 0 ? `zymlsplit` : ''">
|
|
|
- <div class="searchDiv">
|
|
|
+ <div class="headerSearch">
|
|
|
+ <el-form ref="form" :model="form">
|
|
|
+ <el-form-item label="数据年份:" v-if="$props.type == 'share'">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-date-picker
|
|
|
+ placeholder="开始年份"
|
|
|
+ v-model="form.startYear"
|
|
|
+ type="year"
|
|
|
+ format="yyyy"
|
|
|
+ value-format="yyyy"
|
|
|
+ popper-class='myDatePicker'
|
|
|
+ ></el-date-picker>
|
|
|
+ </el-col>
|
|
|
+ <el-col class="line" :span="2">-</el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-date-picker
|
|
|
+ placeholder="结束年份"
|
|
|
+ v-model="form.endYears"
|
|
|
+ type="year"
|
|
|
+ format="yyyy"
|
|
|
+ value-format="yyyy"
|
|
|
+ popper-class='myDatePicker'
|
|
|
+ ></el-date-picker>
|
|
|
+ </el-col>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-input
|
|
|
+ :placeholder="Resource.InputPlaceholder"
|
|
|
+ prefix-icon="el-icon-search"
|
|
|
+ v-model="form.treeSearchText"
|
|
|
+ size="small"
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
+ <div
|
|
|
+ class="eicon"
|
|
|
+ :class="isshowNum ? 'eyes' : 'close_eyes'"
|
|
|
+ @click="isshowNum = !isshowNum"
|
|
|
+ ></div>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <!-- <span>数据年份:</span>
|
|
|
+ <el-date-picker
|
|
|
+ v-model="value"
|
|
|
+ type="year"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ format="yyyy"
|
|
|
+ value-format="yyyy"
|
|
|
+ >
|
|
|
+ </el-date-picker> -->
|
|
|
+ </div>
|
|
|
+ <!-- <div class="searchDiv">
|
|
|
<el-input
|
|
|
:placeholder="Resource.InputPlaceholder"
|
|
|
prefix-icon="el-icon-search"
|
|
@@ -20,7 +76,7 @@
|
|
|
:class="isshowNum ? 'eyes' : 'close_eyes'"
|
|
|
@click="isshowNum = !isshowNum"
|
|
|
></div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<div class="treeDiv">
|
|
|
<el-tree
|
|
|
@check="handleCheckChange"
|
|
@@ -40,6 +96,7 @@
|
|
|
: node.label
|
|
|
}}</span>
|
|
|
<span>
|
|
|
+ <i class="el-icon-notebook-2" v-if="data.url != '' && $props.type == 'share'"></i>
|
|
|
<Icon
|
|
|
:type="!data.favorite ? 'ios-star-outline' : 'ios-star'"
|
|
|
color="green"
|
|
@@ -63,8 +120,9 @@
|
|
|
v-if="$props.splitId == -1 || $props.type == 'share'"
|
|
|
>
|
|
|
<div class="tckz">
|
|
|
+ {{ addlayerdataCopy }}
|
|
|
<List split size="large">
|
|
|
- <ListItem v-for="(item, index) in addlayerdata" :key="index">
|
|
|
+ <ListItem v-for="(item, index) in addlayerdataCopy" :key="index">
|
|
|
{{ item.title }}
|
|
|
<div class="listBtn">
|
|
|
<i-switch
|
|
@@ -98,7 +156,7 @@
|
|
|
:title="Resource.MoveDownOneLevel"
|
|
|
@click="lower(item)"
|
|
|
v-if="
|
|
|
- index < addlayerdata.length - 1 &&
|
|
|
+ index < addlayerdataCopy.length - 1 &&
|
|
|
(item.type == 'Vector' || item.type == 'IMG')
|
|
|
"
|
|
|
/>
|
|
@@ -177,6 +235,12 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ form: {
|
|
|
+ startYear: "",
|
|
|
+ endYears: "",
|
|
|
+ treeSearchText: "",
|
|
|
+ },
|
|
|
+ addlayerdataCopy:[],//用于双向绑定
|
|
|
defaultProps: {
|
|
|
children: "children",
|
|
|
label: "label",
|
|
@@ -368,6 +432,9 @@ export default {
|
|
|
},
|
|
|
immediate: true,
|
|
|
},
|
|
|
+ addlayerdata(val){
|
|
|
+ this.addlayerdataCopy = val
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -384,4 +451,26 @@ export default {
|
|
|
width: calc(100% - 30px);
|
|
|
}
|
|
|
}
|
|
|
+// .headerSearch {
|
|
|
+// /deep/ .el-form-item{
|
|
|
+// // display: flex;
|
|
|
+// // justify-content: space-between;
|
|
|
+// margin-bottom: 0px;
|
|
|
+// }
|
|
|
+// /deep/ .el-input{
|
|
|
+// width: 90%;
|
|
|
+// }
|
|
|
+// /deep/ .el-date-picker .el-picker-panel__body .el-year-table td{
|
|
|
+// color: #fff !important;
|
|
|
+// }
|
|
|
+// /deep/ .el-year-table td .cell{
|
|
|
+// color: #fff !important;
|
|
|
+// }
|
|
|
+// /deep/ .el-date-picker__header-label{
|
|
|
+// color: #fff !important;
|
|
|
+// }
|
|
|
+// /deep/ .el-picker-panel__icon-btn{
|
|
|
+// color: #fff !important;
|
|
|
+// }
|
|
|
+// }
|
|
|
</style>
|