Commit 96d073d2 authored by xinzhedeai's avatar xinzhedeai

bug fix

parent d27e07b0
......@@ -17,6 +17,7 @@
<el-button type="primary" size="mini">查询</el-button>
</div>
<el-table
highlight-current-row
ref="table"
style="width: 100%"
:data="dataList"
......@@ -43,6 +44,7 @@
<div slot="header" class="clearfix">
<el-button
type="primary"
size="mini"
@click="saveFolderAuth"
:loading="menuLoading"
>保存</el-button
......@@ -60,35 +62,44 @@
>
<div class="custom-tree-node" slot-scope="{ node, data }">
<span>{{ node.label }}</span>
<el-button
:type="`${data.editWhether ? 'primary' : 'default'}`"
icon="el-icon-edit"
circle
size="mini"
style="margin-left: 40px"
@click="data.editWhether = true"
></el-button>
<el-button
:type="`${data.deleteWhether ? 'primary' : 'default'}`"
icon="el-icon-delete"
circle
size="mini"
@click="data.deleteWhether = true"
></el-button>
<el-button
:type="`${data.uploadWhether ? 'primary' : 'default'}`"
icon="el-icon-upload2"
circle
size="mini"
@click="data.uploadWhether = true"
></el-button>
<el-button
:type="`${data.downloadWhether ? 'primary' : 'default'}`"
icon="el-icon-download"
circle
size="mini"
@click="data.downloadWhether = true"
></el-button>
<div class="authButtonWrapper">
<el-button
:type="`${data.viewWhether ? 'primary' : 'default'}`"
icon="el-icon-view"
circle
size="small"
style="margin-left: 40px"
@click="data.editWhether = true"
></el-button>
<el-button
:type="`${data.editWhether ? 'primary' : 'default'}`"
icon="el-icon-edit"
circle
size="small"
@click="data.editWhether = true"
></el-button>
<el-button
:type="`${data.deleteWhether ? 'primary' : 'default'}`"
icon="el-icon-delete"
circle
size="small"
@click="data.deleteWhether = true"
></el-button>
<el-button
:type="`${data.uploadWhether ? 'primary' : 'default'}`"
icon="el-icon-upload2"
circle
size="small"
@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>
</el-tree>
</el-card>
......@@ -138,11 +149,10 @@ export default {
text: "加载中...",
background: "transparent",
});
this.currentUserId = val.id
this.currentUserId = val.id;
// this.dataList = [];
this.getFolderByUserId();
loading.close();
}
},
// 当前页的条数变化
......@@ -169,11 +179,13 @@ export default {
},
getFolderByUserId() {
edocApi.getDataList({
userId: this.currentUserId,
}).then((res) => {
this.folders = res.body;
});
edocApi
.getDataList({
userId: this.currentUserId,
})
.then((res) => {
this.folders = res.body;
});
// edocApi
// .getFolderByUserId({
// userId: this.currentUserId,
......@@ -224,7 +236,7 @@ export default {
.catch((err) => {
this.menuLoading = false;
});
loading.close()
loading.close();
},
},
};
......@@ -233,5 +245,14 @@ export default {
<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
......@@ -148,7 +148,7 @@
class="filter-item"
@keyup.enter.native="crud.toQuery"
/>
<date-range-picker v-model="query.createTime" class="date-item" />
<date-range-picker v-model="query.time" class="date-item" />
<el-input
v-model="query.name"
size="small"
......@@ -167,7 +167,7 @@
prop="classification"
width="100"
/>
<el-table-column width="200px" prop="createTime" label="录入时间" />
<el-table-column width="200px" prop="time" label="录入时间" />
<el-table-column label="操作" width="230px" align="center">
<template slot-scope="scope">
<el-button
......@@ -216,9 +216,9 @@ export default {
return {
modalBtnLoad: false,
query:{
name: '',
originallyName: '',
type:'',
createTime: ''
time: ''
},
folderModal: false,
folderForm: {
......@@ -307,10 +307,10 @@ export default {
},
addFolder() {
if (!this.currentCheckedFolderId) {
this.$message.warning("请勾选文件夹");
return;
}
// if (!this.currentCheckedFolderId) {
// this.$message.warning("请勾选文件夹");
// return;
// }
this.folderModal = true;
this.folderForm = { name: "", order: "" };
},
......@@ -420,7 +420,7 @@ export default {
page: this.page,
size: this.size,
...this.query,
createTime: this.query.createTime ? this.query.createTime.join(',') : ''
time: this.query.time ? this.query.time.join(',') : ''
})
.then((res) => {
this.fileDataList = res.body.results;
......
......@@ -288,11 +288,11 @@
<el-pagination
:page-sizes="[10, 20, 50, 100]"
:current-page.sync="searchParam.page"
:page-size.sync="searchParam.count"
:page-size.sync="searchParam.size"
:total="searchResult.total"
layout="total, sizes, prev, pager, next, jumper"
@size-change="searchSubmit"
@current-change="searchSubmit"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
/>
</div>
</template>
......@@ -378,6 +378,16 @@ export default {
});
},
methods: {
// 当前页的条数变化
handleSizeChange(val) {
this.searchParam.size = val;
this.searchSubmit();
},
// 当前第几页
handleCurrentChange(val) {
this.searchParam.page = val;
this.searchSubmit();
},
getMineTypeByMineId(mineId){
return this.mineList.find((item)=>{
return item.id === mineId
......
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