Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZiBoYingJI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kimber
ZiBoYingJI
Commits
96d073d2
Commit
96d073d2
authored
Aug 06, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
d27e07b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
50 deletions
+81
-50
auth.vue
src/views/edoc/auth.vue
+59
-38
index.vue
src/views/edoc/index.vue
+9
-9
videoConfig.vue
src/views/kd/e/video/videoConfig.vue
+13
-3
No files found.
src/views/edoc/auth.vue
View file @
96d073d2
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
<el-button
type=
"primary"
size=
"mini"
>
查询
</el-button>
<el-button
type=
"primary"
size=
"mini"
>
查询
</el-button>
</div>
</div>
<el-table
<el-table
highlight-current-row
ref=
"table"
ref=
"table"
style=
"width: 100%"
style=
"width: 100%"
:data=
"dataList"
:data=
"dataList"
...
@@ -43,6 +44,7 @@
...
@@ -43,6 +44,7 @@
<div
slot=
"header"
class=
"clearfix"
>
<div
slot=
"header"
class=
"clearfix"
>
<el-button
<el-button
type=
"primary"
type=
"primary"
size=
"mini"
@
click=
"saveFolderAuth"
@
click=
"saveFolderAuth"
:loading=
"menuLoading"
:loading=
"menuLoading"
>
保存
</el-button
>
保存
</el-button
...
@@ -60,35 +62,44 @@
...
@@ -60,35 +62,44 @@
>
>
<div
class=
"custom-tree-node"
slot-scope=
"
{ node, data }">
<div
class=
"custom-tree-node"
slot-scope=
"
{ node, data }">
<span>
{{
node
.
label
}}
</span>
<span>
{{
node
.
label
}}
</span>
<el-button
<div
class=
"authButtonWrapper"
>
:type=
"`$
{data.editWhether ? 'primary' : 'default'}`"
<el-button
icon="el-icon-edit"
:type=
"`$
{data.viewWhether ? 'primary' : 'default'}`"
circle
icon="el-icon-view"
size="mini"
circle
style="margin-left: 40px"
size="small"
@click="data.editWhether = true"
style="margin-left: 40px"
>
</el-button>
@click="data.editWhether = true"
<el-button
>
</el-button>
:type=
"`$
{data.deleteWhether ? 'primary' : 'default'}`"
<el-button
icon="el-icon-delete"
:type=
"`$
{data.editWhether ? 'primary' : 'default'}`"
circle
icon="el-icon-edit"
size="mini"
circle
@click="data.deleteWhether = true"
size="small"
>
</el-button>
@click="data.editWhether = true"
<el-button
>
</el-button>
:type=
"`$
{data.uploadWhether ? 'primary' : 'default'}`"
<el-button
icon="el-icon-upload2"
:type=
"`$
{data.deleteWhether ? 'primary' : 'default'}`"
circle
icon="el-icon-delete"
size="mini"
circle
@click="data.uploadWhether = true"
size="small"
>
</el-button>
@click="data.deleteWhether = true"
<el-button
>
</el-button>
:type=
"`$
{data.downloadWhether ? 'primary' : 'default'}`"
<el-button
icon="el-icon-download"
:type=
"`$
{data.uploadWhether ? 'primary' : 'default'}`"
circle
icon="el-icon-upload2"
size="mini"
circle
@click="data.downloadWhether = true"
size="small"
>
</el-button>
@click="data.uploadWhether = true"
>
</el-button>
<el-button
:type=
"`$
{data.downloadWhether ? 'primary' : 'default'}`"
icon="el-icon-download"
circle
size="small"
@click="data.downloadWhether = true"
>
</el-button>
</div>
</div>
</div>
</el-tree>
</el-tree>
</el-card>
</el-card>
...
@@ -138,11 +149,10 @@ export default {
...
@@ -138,11 +149,10 @@ export default {
text
:
"
加载中...
"
,
text
:
"
加载中...
"
,
background
:
"
transparent
"
,
background
:
"
transparent
"
,
});
});
this
.
currentUserId
=
val
.
id
this
.
currentUserId
=
val
.
id
;
// this.dataList = [];
// this.dataList = [];
this
.
getFolderByUserId
();
this
.
getFolderByUserId
();
loading
.
close
();
loading
.
close
();
}
}
},
},
// 当前页的条数变化
// 当前页的条数变化
...
@@ -169,11 +179,13 @@ export default {
...
@@ -169,11 +179,13 @@ export default {
},
},
getFolderByUserId
()
{
getFolderByUserId
()
{
edocApi
.
getDataList
({
edocApi
userId
:
this
.
currentUserId
,
.
getDataList
({
}).
then
((
res
)
=>
{
userId
:
this
.
currentUserId
,
this
.
folders
=
res
.
body
;
})
});
.
then
((
res
)
=>
{
this
.
folders
=
res
.
body
;
});
// edocApi
// edocApi
// .getFolderByUserId({
// .getFolderByUserId({
// userId: this.currentUserId,
// userId: this.currentUserId,
...
@@ -224,7 +236,7 @@ export default {
...
@@ -224,7 +236,7 @@ export default {
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
menuLoading
=
false
;
this
.
menuLoading
=
false
;
});
});
loading
.
close
()
loading
.
close
();
},
},
},
},
};
};
...
@@ -233,5 +245,14 @@ export default {
...
@@ -233,5 +245,14 @@ export default {
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
</
style
>
::v-deep
.custom-tree-node
{
width
:
100%
;
}
.authButtonWrapper
{
float
:
right
;
}
::v-deep
.el-tree-node__content
{
height
:
36px
;
}
</
style
>
\ No newline at end of file
src/views/edoc/index.vue
View file @
96d073d2
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
class=
"filter-item"
class=
"filter-item"
@
keyup.enter.native=
"crud.toQuery"
@
keyup.enter.native=
"crud.toQuery"
/>
/>
<date-range-picker
v-model=
"query.
createT
ime"
class=
"date-item"
/>
<date-range-picker
v-model=
"query.
t
ime"
class=
"date-item"
/>
<el-input
<el-input
v-model=
"query.name"
v-model=
"query.name"
size=
"small"
size=
"small"
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
prop=
"classification"
prop=
"classification"
width=
"100"
width=
"100"
/>
/>
<el-table-column
width=
"200px"
prop=
"
createT
ime"
label=
"录入时间"
/>
<el-table-column
width=
"200px"
prop=
"
t
ime"
label=
"录入时间"
/>
<el-table-column
label=
"操作"
width=
"230px"
align=
"center"
>
<el-table-column
label=
"操作"
width=
"230px"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
<el-button
...
@@ -216,9 +216,9 @@ export default {
...
@@ -216,9 +216,9 @@ export default {
return
{
return
{
modalBtnLoad
:
false
,
modalBtnLoad
:
false
,
query
:{
query
:{
n
ame
:
''
,
originallyN
ame
:
''
,
type
:
''
,
type
:
''
,
createT
ime
:
''
t
ime
:
''
},
},
folderModal
:
false
,
folderModal
:
false
,
folderForm
:
{
folderForm
:
{
...
@@ -307,10 +307,10 @@ export default {
...
@@ -307,10 +307,10 @@ export default {
},
},
addFolder
()
{
addFolder
()
{
if
(
!
this
.
currentCheckedFolderId
)
{
//
if (!this.currentCheckedFolderId) {
this
.
$message
.
warning
(
"
请勾选文件夹
"
);
//
this.$message.warning("请勾选文件夹");
return
;
//
return;
}
//
}
this
.
folderModal
=
true
;
this
.
folderModal
=
true
;
this
.
folderForm
=
{
name
:
""
,
order
:
""
};
this
.
folderForm
=
{
name
:
""
,
order
:
""
};
},
},
...
@@ -420,7 +420,7 @@ export default {
...
@@ -420,7 +420,7 @@ export default {
page
:
this
.
page
,
page
:
this
.
page
,
size
:
this
.
size
,
size
:
this
.
size
,
...
this
.
query
,
...
this
.
query
,
createTime
:
this
.
query
.
createTime
?
this
.
query
.
createT
ime
.
join
(
'
,
'
)
:
''
time
:
this
.
query
.
time
?
this
.
query
.
t
ime
.
join
(
'
,
'
)
:
''
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
fileDataList
=
res
.
body
.
results
;
this
.
fileDataList
=
res
.
body
.
results
;
...
...
src/views/kd/e/video/videoConfig.vue
View file @
96d073d2
...
@@ -288,11 +288,11 @@
...
@@ -288,11 +288,11 @@
<el-pagination
<el-pagination
:page-sizes=
"[10, 20, 50, 100]"
:page-sizes=
"[10, 20, 50, 100]"
:current-page.sync=
"searchParam.page"
:current-page.sync=
"searchParam.page"
:page-size.sync=
"searchParam.
count
"
:page-size.sync=
"searchParam.
size
"
:total=
"searchResult.total"
:total=
"searchResult.total"
layout=
"total, sizes, prev, pager, next, jumper"
layout=
"total, sizes, prev, pager, next, jumper"
@
size-change=
"
searchSubmit
"
@
size-change=
"
handleSizeChange
"
@
current-change=
"
searchSubmit
"
@
current-change=
"
handleCurrentChange
"
/>
/>
</div>
</div>
</template>
</template>
...
@@ -378,6 +378,16 @@ export default {
...
@@ -378,6 +378,16 @@ export default {
});
});
},
},
methods
:
{
methods
:
{
// 当前页的条数变化
handleSizeChange
(
val
)
{
this
.
searchParam
.
size
=
val
;
this
.
searchSubmit
();
},
// 当前第几页
handleCurrentChange
(
val
)
{
this
.
searchParam
.
page
=
val
;
this
.
searchSubmit
();
},
getMineTypeByMineId
(
mineId
){
getMineTypeByMineId
(
mineId
){
return
this
.
mineList
.
find
((
item
)
=>
{
return
this
.
mineList
.
find
((
item
)
=>
{
return
item
.
id
===
mineId
return
item
.
id
===
mineId
...
...
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