|
@@ -16,11 +16,11 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="道路名称">
|
|
|
<el-input v-model="searchInfo.roadName" size="small"></el-input>
|
|
|
- <el-button type="primary" size="mini" icon="el-icon-search" @click="getDataTreeList">查询</el-button>
|
|
|
+ <el-button type="primary" size="mini" icon="el-icon-search" @click="getTreeList">查询</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</template>
|
|
|
- <el-tree :data="fileLinkTree" :props="treeProps"></el-tree>
|
|
|
+ <el-tree @node-click='treeNodeClick' :data="fileLinkTree" :props="treeProps"></el-tree>
|
|
|
</tf-page>
|
|
|
</el-col>
|
|
|
<el-col :span="18" style="height:100%;">
|
|
@@ -145,8 +145,9 @@ export default class ProjectFileImport extends Vue {
|
|
|
tbSearchInfo={
|
|
|
filType: '', //文件类型
|
|
|
fileName: '', //文件名称
|
|
|
- department: ''//单位
|
|
|
- }
|
|
|
+ department: '',//单位
|
|
|
+ linkName:''//关联名称
|
|
|
+}
|
|
|
/**树数据 */
|
|
|
treeList=[
|
|
|
{
|
|
@@ -186,7 +187,7 @@ export default class ProjectFileImport extends Vue {
|
|
|
} },
|
|
|
{ prop: 'fileName', label: '文件名称' },
|
|
|
{ prop: 'departmentName', label: '导入单位' },
|
|
|
- { prop: 'createUser', label: '导入人' },
|
|
|
+ { prop: 'createUserName', label: '导入人' },
|
|
|
{ prop: 'createTime', label: '导入时间' }
|
|
|
]
|
|
|
/**行政区 */
|
|
@@ -326,31 +327,17 @@ export default class ProjectFileImport extends Vue {
|
|
|
this.listSelect = selection
|
|
|
}
|
|
|
/**左侧结构树 */
|
|
|
- getDataTreeList(){
|
|
|
- let parames = {
|
|
|
- area: this.searchInfo.district,
|
|
|
- testingZone: this.searchInfo.testingZone,
|
|
|
- roadName: this.searchInfo.roadName
|
|
|
- }
|
|
|
- parames = { ...parames, ...this.pagination }
|
|
|
- fileManagerPage(parames)
|
|
|
- .then((result) => {
|
|
|
- if (result.code === 1) {
|
|
|
- this.list = result.result.records
|
|
|
- const { current, size, total } = result.result
|
|
|
- this.pagination = { current, size, total }
|
|
|
- }
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
- console.log(err)
|
|
|
- })
|
|
|
+ treeNodeClick(row){
|
|
|
+ this.tbSearchInfo.linkName=row.label
|
|
|
+ this.getDataList();
|
|
|
}
|
|
|
/**主表格数据 */
|
|
|
getDataList() {
|
|
|
let parames = {
|
|
|
fileType: this.tbSearchInfo.filType,
|
|
|
fileName: this.tbSearchInfo.fileName,
|
|
|
- departmentId: this.tbSearchInfo.department
|
|
|
+ departmentId: this.tbSearchInfo.department,
|
|
|
+ linkName:this.tbSearchInfo.linkName
|
|
|
}
|
|
|
parames = { ...parames, ...this.pagination }
|
|
|
fileManagerPage(parames)
|
|
@@ -372,7 +359,7 @@ export default class ProjectFileImport extends Vue {
|
|
|
roadName: this.searchInfo.roadName,
|
|
|
testingZone: this.searchInfo.testingZone
|
|
|
}
|
|
|
- parames = { ...parames, ...this.pagination }
|
|
|
+ parames = { ...parames }
|
|
|
getRecordLinkData(parames)
|
|
|
.then((result) => {
|
|
|
if (result.code === 1) {
|
|
@@ -478,7 +465,7 @@ export default class ProjectFileImport extends Vue {
|
|
|
return
|
|
|
}
|
|
|
const filelist = result.result.map((fileinfo) => {
|
|
|
- return { fileId: fileinfo.fileId, fileNmae: fileinfo.fileName }
|
|
|
+ return { fileId: fileinfo.fileId, fileName: fileinfo.fileName }
|
|
|
})
|
|
|
const data = {
|
|
|
prjId: this.addForm.project,
|