调整iscs

This commit is contained in:
fan 2020-09-21 10:26:34 +08:00
parent 39a1acd081
commit 1c5f972e74
2 changed files with 11 additions and 9 deletions

View File

@ -2,8 +2,11 @@
<div v-loading="loading" class="joylink-card map-list-main"> <div v-loading="loading" class="joylink-card map-list-main">
<div class="clearfix"> <div class="clearfix">
<div>iscs系统列表</div> <div>iscs系统列表</div>
<div> </div>
<span>线路:</span> <div class="text_item">
<!--<el-cascader v-model="mapStationList" style="width: 100%;" :props="props" placeholder="请选择车站" @change="handleChange" />-->
<!--<el-input v-model="filterText" :placeholder="this.$t('global.filteringKeywords')" clearable />-->
<div style="border-bottom: 1px solid #EBEEF5; padding: 10px 10px;">
<el-select v-model="lineCode" size="mini" placeholder="请选择线路"> <el-select v-model="lineCode" size="mini" placeholder="请选择线路">
<el-option <el-option
v-for="item in lineList" v-for="item in lineList"
@ -13,11 +16,6 @@
/> />
</el-select> </el-select>
</div> </div>
</div>
<div class="text_item">
<!--<el-cascader v-model="mapStationList" style="width: 100%;" :props="props" placeholder="请选择车站" @change="handleChange" />-->
<el-input v-model="filterText" :placeholder="this.$t('global.filteringKeywords')" clearable />
<div class="tree_box"> <div class="tree_box">
<el-tree ref="tree" :data="treeList" node-key="id" :props="defaultProps" highlight-current :span="22" :filter-node-method="filterNode" @node-click="clickEvent" @node-contextmenu="showContextMenu"> <el-tree ref="tree" :data="treeList" node-key="id" :props="defaultProps" highlight-current :span="22" :filter-node-method="filterNode" @node-click="clickEvent" @node-contextmenu="showContextMenu">
<span slot-scope="{ node:tnode, data }"> <span slot-scope="{ node:tnode, data }">
@ -27,7 +25,7 @@
</el-tree> </el-tree>
</div> </div>
<div class="buttonList"> <div class="buttonList">
<el-button size="small" type="primary" class="eachButton" @click="createMap">{{ $t('map.newConstruction') }}</el-button> <!--<el-button size="small" type="primary" class="eachButton" @click="createMap">{{ $t('map.newConstruction') }}</el-button>-->
</div> </div>
</div> </div>
</div> </div>
@ -622,7 +620,6 @@ export default {
width:100%; width:100%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 14px;
} }
.text_item{ .text_item{
height: 100%; height: 100%;

View File

@ -137,6 +137,11 @@ export default {
const parserData = parser(data, {width: this.canvasWidth, height: this.canvasHeight}); const parserData = parser(data, {width: this.canvasWidth, height: this.canvasHeight});
this.setIscs(parserData, data); this.setIscs(parserData, data);
this.$store.dispatch('iscs/setIscsData', data); this.$store.dispatch('iscs/setIscsData', data);
} else {
const data = {};
const parserData = parser(data, {width: this.canvasWidth, height: this.canvasHeight});
this.setIscs(parserData, data);
this.$store.dispatch('iscs/setIscsData', data);
} }
}); });
this.$iscs.on('contextmenu', this.onContextMenu, this); this.$iscs.on('contextmenu', this.onContextMenu, this);