|
@@ -1,23 +1,14 @@
|
|
|
<template>
|
|
|
<div class="container">
|
|
|
- <div class="left-pane">
|
|
|
- <el-input placeholder="请输入关键字" suffix-icon="el-icon-search" v-model="filterText"></el-input>
|
|
|
- <el-tree ref="tree" :data="data" :props="defaultProps" node-key="id" default-expand-all
|
|
|
- :filter-node-method="filterNode" @node-click="handleNodeClick">
|
|
|
- </el-tree>
|
|
|
- <el-button class="newInfo_button"><i class="el-icon-s-order"></i>新建消息模块</el-button>
|
|
|
+ <div style="width: 100%; height: 100px;margin-top: 10px;">
|
|
|
+ <el-tag>{{ label }}</el-tag>
|
|
|
+ <el-button type="text">历史记录</el-button>
|
|
|
</div>
|
|
|
- <div class="right-pane">
|
|
|
- <div style="width: 100%; height: 100px;margin-top: 10px;">
|
|
|
- <el-tag>{{ label }}</el-tag>
|
|
|
- <el-button type="text">历史记录</el-button>
|
|
|
- </div>
|
|
|
- <div style="height: 600px;width: 100%; margin-top: 10px;">
|
|
|
- <el-image style="height: 100%;" :src="testUrl" :fit="contain" :preview-src-list="srcList"></el-image>
|
|
|
- </div>
|
|
|
- <el-button>删除</el-button>
|
|
|
- <el-button>更新</el-button>
|
|
|
+ <div style="height: 600px;width: 100%; margin-top: 10px;">
|
|
|
+ <!-- <el-image style="height: 100%;" :src="testUrl" :fit="contain" :preview-src-list="srcList"></el-image> -->
|
|
|
</div>
|
|
|
+ <el-button>删除</el-button>
|
|
|
+ <el-button>更新</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -25,46 +16,12 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- label: "1F",
|
|
|
- testUrl: "",
|
|
|
- srcList: [
|
|
|
- "",
|
|
|
- ],
|
|
|
- filterText: '',
|
|
|
- data: [{
|
|
|
- label: '楼层地图信息配置',
|
|
|
- children: [{
|
|
|
- label: '1F',
|
|
|
- }, {
|
|
|
- label: '20F'
|
|
|
- }, {
|
|
|
- label: 'B1'
|
|
|
- }]
|
|
|
- },
|
|
|
- {
|
|
|
- label: '安保人员信息',
|
|
|
- children: [{
|
|
|
- label: '前台人员排班信息',
|
|
|
- }, {
|
|
|
- label: '安防人员排班信息'
|
|
|
- }]
|
|
|
- }],
|
|
|
- defaultProps: {
|
|
|
- children: 'children',
|
|
|
- label: 'label'
|
|
|
- }
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
- filterText(val) {
|
|
|
- this.$refs.tree.filter(val);
|
|
|
- }
|
|
|
},
|
|
|
methods: {
|
|
|
- filterNode(value, data) {
|
|
|
- if (!value) return true;
|
|
|
- return data.label.indexOf(value) !== -1;
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -111,6 +68,7 @@ export default {
|
|
|
margin-right: 20px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.el-tag {
|
|
|
position: absolute;
|
|
|
background-color: transparent;
|