Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
admin-base
Commits
6dd5e0d8
Commit
6dd5e0d8
authored
Aug 27, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标签管理 修复 分页问题、高级搜索弹窗关闭后搜索条件没有清空的问题
parent
a3cb288f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
12 deletions
+37
-12
App.vue
src/App.vue
+7
-0
index.vue
src/components/brokerage/index.vue
+12
-3
index.vue
src/components/login/index.vue
+0
-1
tag.vue
src/components/system/tag.vue
+18
-8
No files found.
src/App.vue
View file @
6dd5e0d8
...
...
@@ -312,4 +312,11 @@
background-color: #fff;
}
}
// 修复样式
.el-tree-node__content {
.el-checkbox {
margin-right: 8px !important;
}
}
</
style
>
src/components/brokerage/index.vue
View file @
6dd5e0d8
...
...
@@ -10,7 +10,10 @@
<li
v-for=
"item2 in item1.children"
class=
"brokerage-item"
>
<div
class=
"brokerage-item-header clearfix"
>
{{
filterName
(
item2
.
value
,
'BROKERAGE_COURSE_TYPE'
)
}}
<el-button
@
click=
"itemAdd(item1.value, item2.value)"
class=
"fr"
type=
"success"
plain
size=
"small"
>
新增
</el-button>
<el-button
v-if=
"!$store.state.readonly"
@
click=
"itemAdd(item1.value, item2.value)"
class=
"fr"
type=
"success"
plain
size=
"small"
>
新增
</el-button>
</div>
<el-table
border
:data=
"item2.data"
>
...
...
@@ -42,9 +45,12 @@
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;"
>
<el-button
v-if=
"!$store.state.readonly"
:disabled=
"!((typeof scope.row.min_money == 'number') && (typeof scope.row.max_money == 'number') && (typeof scope.row.scale == 'number'))"
v-if=
"true"
size=
"small"
plain
type=
"primary"
@
click=
"itemSave(scope.row)"
>
保存
</el-button>
<el-button
v-if=
"true"
size=
"small"
plain
type=
"danger"
@
click=
"itemDelete(scope.row)"
>
删除
</el-button>
size=
"small"
plain
type=
"primary"
@
click=
"itemSave(scope.row)"
>
保存
</el-button>
<el-button
v-if=
"!$store.state.readonly && $store.state.deletePermission"
size=
"small"
plain
type=
"danger"
@
click=
"itemDelete(scope.row)"
>
删除
</el-button>
</div>
</
template
>
</el-table-column>
...
...
@@ -231,6 +237,9 @@
background-color: #fff;
.brokerage-item-header {
padding-bottom: 10px;
line-height: 32px;
color: #333333;
font-size: 16px;
}
}
}
...
...
src/components/login/index.vue
View file @
6dd5e0d8
...
...
@@ -68,7 +68,6 @@
};
// debugger
loginApi
(
json
).
then
(
res
=>
{
debugger
if
(
res
.
teacher_info
)
{
let
data
=
JSON
.
stringify
(
res
.
teacher_info
)
localStorage
.
setItem
(
"phoneNum"
,
data
)
...
...
src/components/system/tag.vue
View file @
6dd5e0d8
...
...
@@ -10,7 +10,7 @@
<el-form-item>
<div
class=
"search-btn-wrapper"
>
<!--
<el-button
@
click=
"onSearch"
type=
"primary"
plain
>
搜索
</el-button>
-->
<el-button
@
click=
"
dialogUser.show = !dialogUser.show;
"
type=
"warning"
plain
>
高级搜索
</el-button>
<el-button
@
click=
"
advancedOpen
"
type=
"warning"
plain
>
高级搜索
</el-button>
<!--
<el-button
v-if=
"!$store.state.readonly"
@
click=
"onAdd"
type=
"success"
plain
>
新增标签
</el-button>
-->
</div>
</el-form-item>
...
...
@@ -73,6 +73,7 @@
<div
style=
"display: flex;margin-bottom: 20px;"
>
<el-button
style=
"margin-right: 20px; width: 70px;"
type=
"primary"
v-if=
"!$store.state.readonly && $store.state.export"
plain
:disabled=
"!tableData.length"
@
click=
"exportExcel"
>
导出
</el-button>
<el-cascader
v-model=
"tagValue"
style=
"width: calc(100% - 90px)"
placeholder=
"选择标签"
clearable
@
change=
"conditionsChange"
:options=
"treeDataOrigin"
:props=
"
{ value: 'id', label: 'name', multiple: true, checkStrictly: true }">
</el-cascader>
</div>
...
...
@@ -106,6 +107,8 @@
tagExpanded
:
[
0
],
tagExpandedWait
:
''
,
tagValue
:
[],
// 用于清空
tableData
:
[],
treeData
:
[],
treeDataOrigin
:
[],
...
...
@@ -171,7 +174,8 @@
page
:
this
.
nowPage
}
getTagUserApi
(
json
).
then
(
res
=>
{
this
.
tableData
=
res
.
list
this
.
tableData
=
res
.
list
;
this
.
total
=
res
.
total
;
})
},
...
...
@@ -191,12 +195,9 @@
},
dialogReset
(
callback
)
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'dialogForm'
].
resetFields
();
//this.$nextTick(()=>{
callback
&&
callback
();
//})
//this.dialog.form.id = '';
//this.dialog.form.pid = '';
this
.
conditions
=
arr
;
this
.
tableData
=
[];
this
.
total
=
0
})
},
dialogSave
()
{
...
...
@@ -300,9 +301,18 @@
}
else
{
this
.
conditions
=
arr
;
this
.
tableData
=
[];
this
.
total
=
0
}
},
advancedOpen
()
{
this
.
tagValue
=
[];
this
.
conditions
=
[];
this
.
tableData
=
[];
this
.
total
=
0
;
this
.
dialogUser
.
show
=
!
this
.
dialogUser
.
show
},
exportExcel
()
{
let
json
=
{
conditions
:
JSON
.
stringify
(
this
.
conditions
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment