|
|
@@ -9,7 +9,7 @@
|
|
|
</el-input>
|
|
|
<div class="treeDiv">
|
|
|
<el-tree ref="tree"
|
|
|
- :data="typeData"
|
|
|
+ :data="paramsTypeData"
|
|
|
:props="defaultProps"
|
|
|
@node-click="handleNodeClick"
|
|
|
:filter-node-method="filterNode"></el-tree>
|
|
|
@@ -70,7 +70,7 @@ export default {
|
|
|
oldorgId: '',
|
|
|
orgName: '',
|
|
|
loading: false,
|
|
|
- typeData: [
|
|
|
+ paramsTypeData: [
|
|
|
{ id: '0', label: '技术类' },
|
|
|
{ id: '1', label: '管理类' },
|
|
|
{ id: '2', label: '参考文献' },
|
|
|
@@ -149,6 +149,8 @@ export default {
|
|
|
this.loading = true
|
|
|
},
|
|
|
refreshData() {
|
|
|
+ console.log('11111111111111')
|
|
|
+
|
|
|
this.tableData = []
|
|
|
this.getDatas(this.getSearcFormData())
|
|
|
},
|
|
|
@@ -160,7 +162,7 @@ export default {
|
|
|
return
|
|
|
} else {
|
|
|
this.getDatas({
|
|
|
- fileType: this.typeData[data.id].label,
|
|
|
+ fileType: this.paramsTypeData[data.id].label,
|
|
|
userId: this.$store.getters.userInfo.employee.id,
|
|
|
sorts: { 'wen_jian_bian_hao': 'desc' }
|
|
|
})
|
|
|
@@ -171,6 +173,7 @@ export default {
|
|
|
*/
|
|
|
getSearcFormData() {
|
|
|
const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
|
|
|
+ console.log('params', params)
|
|
|
params['fileType'] = this.paramsTypeData[this.oldorgId.id].label
|
|
|
params['userId'] = this.$store.getters.userInfo.employee.id
|
|
|
params['sorts'] = this.sorts
|