调整iscs
This commit is contained in:
parent
39a1acd081
commit
1c5f972e74
@ -2,8 +2,11 @@
|
||||
<div v-loading="loading" class="joylink-card map-list-main">
|
||||
<div class="clearfix">
|
||||
<div>iscs系统列表</div>
|
||||
<div>
|
||||
<span>线路:</span>
|
||||
</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 style="border-bottom: 1px solid #EBEEF5; padding: 10px 10px;">
|
||||
<el-select v-model="lineCode" size="mini" placeholder="请选择线路">
|
||||
<el-option
|
||||
v-for="item in lineList"
|
||||
@ -13,11 +16,6 @@
|
||||
/>
|
||||
</el-select>
|
||||
</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">
|
||||
<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 }">
|
||||
@ -27,7 +25,7 @@
|
||||
</el-tree>
|
||||
</div>
|
||||
<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>
|
||||
@ -622,7 +620,6 @@ export default {
|
||||
width:100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 14px;
|
||||
}
|
||||
.text_item{
|
||||
height: 100%;
|
||||
|
@ -137,6 +137,11 @@ export default {
|
||||
const parserData = parser(data, {width: this.canvasWidth, height: this.canvasHeight});
|
||||
this.setIscs(parserData, 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);
|
||||
|
Loading…
Reference in New Issue
Block a user