Commit 717ec034 by yuwei

项目初始化

parent 1afcc9da
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,6 +6,41 @@ ...@@ -6,6 +6,41 @@
"description": "", "description": "",
"glyphs": [ "glyphs": [
{ {
"icon_id": "12150272",
"name": "文件夹",
"font_class": "-folder-empty3",
"unicode": "e64f",
"unicode_decimal": 58959
},
{
"icon_id": "10798549",
"name": "组织",
"font_class": "zuzhi",
"unicode": "e67d",
"unicode_decimal": 59005
},
{
"icon_id": "4186384",
"name": "数据字段",
"font_class": "shujuziduan",
"unicode": "e658",
"unicode_decimal": 58968
},
{
"icon_id": "4305953",
"name": "数据表",
"font_class": "shujubiao",
"unicode": "e686",
"unicode_decimal": 59014
},
{
"icon_id": "7159343",
"name": "数据库",
"font_class": "shujuku",
"unicode": "e64e",
"unicode_decimal": 58958
},
{
"icon_id": "9720183", "icon_id": "9720183",
"name": "维度", "name": "维度",
"font_class": "weidu", "font_class": "weidu",
...@@ -482,13 +517,6 @@ ...@@ -482,13 +517,6 @@
"unicode_decimal": 58954 "unicode_decimal": 58954
}, },
{ {
"icon_id": "564071",
"name": "审批",
"font_class": "shengpi",
"unicode": "e63b",
"unicode_decimal": 58939
},
{
"icon_id": "584245", "icon_id": "584245",
"name": "搜索", "name": "搜索",
"font_class": "sousuo", "font_class": "sousuo",
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<el-form ref="queryForm" :model="queryParams" :inline="true"> <el-form ref="queryForm" :model="queryParams" :inline="true">
<el-form-item v-for="(item, index) in queryParams.conditions" :label="item.columnName" :prop="item.column" :key="index"> <el-form-item v-for="(item, index) in queryParams.conditions" :label="item.columnName" :prop="item.column" :key="index">
<el-input <el-input
v-model.trim="queryParams.conditions[item.column]" v-model.trim="queryParams.conditions[index].value"
clearable clearable
size="small" size="small"
></el-input> ></el-input>
...@@ -375,6 +375,7 @@ export default { ...@@ -375,6 +375,7 @@ export default {
}, },
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
console.log(this.queryParams)
this.loading = true this.loading = true
pageData(this.queryParams).then(response => { pageData(this.queryParams).then(response => {
this.loading = false this.loading = false
......
...@@ -9,10 +9,16 @@ ...@@ -9,10 +9,16 @@
empty-text="加载中,请稍后" empty-text="加载中,请稍后"
:props="defaultProps" :props="defaultProps"
default-expand-all default-expand-all
highlight-current
:expand-on-click-node="false" :expand-on-click-node="false"
:render-content="renderContent"
@node-click="handleNodeClick" @node-click="handleNodeClick"
/> >
<span class="custom-tree-node" slot-scope="{ node, data }">
<i v-if="node.level === 1" class="iconfont icon-shujuku"></i>
<i v-else-if="node.level === 2" class="iconfont icon-shujubiao"></i>
<span>{{ node.label }}</span>
</span>
</el-tree>
</el-card> </el-card>
</el-col> </el-col>
<el-col :span="18"> <el-col :span="18">
...@@ -287,18 +293,6 @@ export default { ...@@ -287,18 +293,6 @@ export default {
this.queryParams.pageNum = val this.queryParams.pageNum = val
this.getList() this.getList()
}, },
renderContent(h, { node, data, store }) {
if (node.level === 1) {
data.icon = 'icon iconfont icon-weidu'
} else {
data.icon = 'icon iconfont icon-zhibiao'
}
return (
<span class='custom-tree-node'>
<i class={data.icon}></i>
<span>{node.label}</span>
</span>)
},
/** 节点单击事件 */ /** 节点单击事件 */
handleNodeClick(data) { handleNodeClick(data) {
if (data.type === 'database') { if (data.type === 'database') {
...@@ -341,8 +335,14 @@ export default { ...@@ -341,8 +335,14 @@ export default {
flex: 1; flex: 1;
display: flex; display: flex;
font-size: 14px; font-size: 14px;
.icon { i {
margin-right: 5px; margin-right: 10px;
}
.icon-shujuku {
color: #20a0ff;
}
.icon-shujubiao {
color: #38dcec;
} }
} }
} }
......
...@@ -15,17 +15,12 @@ ...@@ -15,17 +15,12 @@
@node-click="handleNodeClick" @node-click="handleNodeClick"
> >
<template slot-scope="{ node, data }"> <template slot-scope="{ node, data }">
<span v-if="node.level === 1" class="custom-tree-node" @mouseenter="mouseenter(data)" @mouseleave="mouseleave(data)"> <span class="custom-tree-node" @mouseenter="mouseenter(data)" @mouseleave="mouseleave(data)">
<span><i class="el-icon-folder tree-folder" />{{ node.label }}</span> <span><i v-if="node.level === 1" class="iconfont icon--folder-empty3 tree-folder" />{{ node.label }}</span>
<span class="tree-bts"> <span class="tree-bts">
<i v-show="data.show" class="el-icon-circle-plus-outline" @click="() => handleAddType()" /> <i v-show="!data.id && data.show" class="el-icon-circle-plus-outline bt-add" @click="() => handleAddType()" />
</span> <i v-show="data.id && data.show" class="el-icon-edit-outline bt-edit" @click="() => handleEditType(data)" />
</span> <i v-show="data.id && data.show" class="el-icon-delete bt-delete" @click="() => handleDelType(data)" />
<span v-else class="custom-tree-node" @mouseenter="mouseenter(data)" @mouseleave="mouseleave(data)">
<span>{{ node.label }}</span>
<span class="tree-bts">
<i v-show="data.show" class="el-icon-edit-outline" @click="() => handleEditType(data)" />
<i v-show="data.show" class="el-icon-delete" @click="() => handleDelType(data)" />
</span> </span>
</span> </span>
</template> </template>
...@@ -549,9 +544,18 @@ export default { ...@@ -549,9 +544,18 @@ export default {
font-size: 14px; font-size: 14px;
.tree-folder { .tree-folder {
margin-right: 5px; margin-right: 5px;
color: rgb(246 207 7); color: #f6cf07;
} }
.tree-bts { .tree-bts {
.bt-add {
color: #409eff;
}
.bt-edit {
color: #67c23a;
}
.bt-delete {
color: #f56c6c;
}
i { i {
margin-right: 10px; margin-right: 10px;
padding: 0px; padding: 0px;
......
...@@ -170,7 +170,7 @@ export default { ...@@ -170,7 +170,7 @@ export default {
name: 'PostList', name: 'PostList',
data() { data() {
return { return {
tableHeight: document.body.offsetHeight - 340 + 'px', tableHeight: document.body.offsetHeight - 310 + 'px',
// 展示切换 // 展示切换
showOptions: { showOptions: {
data: {}, data: {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment