|  | @@ -1,7 +1,7 @@
 | 
	
		
			
				|  |  |  <template>
 | 
	
		
			
				|  |  |    <div class="app-container">
 | 
	
		
			
				|  |  | -    <form-search :searchformShow="searchformShow" :validate-rules="searchRules" @handleQuery="handleQuery"
 | 
	
		
			
				|  |  | -                 @resetQuery="resetQuery"></form-search>
 | 
	
		
			
				|  |  | +    <form-search :searchformShow="searchformShow" :validate-rules="searchRules" :extra-params="extraParams"
 | 
	
		
			
				|  |  | +                 @handleQuery="handleQuery" @resetQuery="resetQuery"></form-search>
 | 
	
		
			
				|  |  |      <el-card class="box-card" style="margin-bottom:30px">
 | 
	
		
			
				|  |  |        <el-row :gutter="24">
 | 
	
		
			
				|  |  |          <el-col :span="4">
 | 
	
	
		
			
				|  | @@ -101,6 +101,7 @@ import {
 | 
	
		
			
				|  |  |  import { treeList } from '@/api/webApi/webQue.js'
 | 
	
		
			
				|  |  |  import { mapGetters } from 'vuex'
 | 
	
		
			
				|  |  |  import ResourcePreviewButton from '@/views/accurateTeaching/components/resource-preview-button'
 | 
	
		
			
				|  |  | +import consts from '@/common/mx-const'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    components: { ResourcePreviewButton },
 | 
	
	
		
			
				|  | @@ -108,6 +109,7 @@ export default {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  |        searchformShow: {},
 | 
	
		
			
				|  |  |        searchRules: {},
 | 
	
		
			
				|  |  | +      extraParams: {},
 | 
	
		
			
				|  |  |        dialogVisible: false,
 | 
	
		
			
				|  |  |        img: {
 | 
	
		
			
				|  |  |          ship: require('@/assets/images/ship.png')
 | 
	
	
		
			
				|  | @@ -206,6 +208,7 @@ export default {
 | 
	
		
			
				|  |  |          slipid: ''
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        this.searchRules = {}
 | 
	
		
			
				|  |  | +      this.extraParams = {}
 | 
	
		
			
				|  |  |      } else if (this.viewName == 'Courseware') {
 | 
	
		
			
				|  |  |        this.searchformShow = {
 | 
	
		
			
				|  |  |          province: '',
 | 
	
	
		
			
				|  | @@ -215,6 +218,7 @@ export default {
 | 
	
		
			
				|  |  |          coursewareType: ''
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        this.searchRules = this.createCoursewareRules()
 | 
	
		
			
				|  |  | +      this.extraParams = this.createCoursewareParams()
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      this.getList()
 | 
	
		
			
				|  |  |      this.getDicts('resource_type').then((response) => {
 | 
	
	
		
			
				|  | @@ -235,6 +239,14 @@ export default {
 | 
	
		
			
				|  |  |          slipid: [{ required: true, message: '学册必选' }]
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    createCoursewareParams() {
 | 
	
		
			
				|  |  | +      const sharedParams = { source: consts.enum.librarySource.courseware }
 | 
	
		
			
				|  |  | +      return {
 | 
	
		
			
				|  |  | +        subjectid: sharedParams,
 | 
	
		
			
				|  |  | +        edition: sharedParams,
 | 
	
		
			
				|  |  | +        slipid: sharedParams
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      /** 查询个人资源库列表 */
 | 
	
		
			
				|  |  |      getList() {
 | 
	
		
			
				|  |  |        this.loading = true
 | 
	
	
		
			
				|  | @@ -354,17 +366,12 @@ export default {
 | 
	
		
			
				|  |  |          remark: null
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    formChange(data, type) {
 | 
	
		
			
				|  |  | -      console.log(data)
 | 
	
		
			
				|  |  | -      this.queryParams = data
 | 
	
		
			
				|  |  | -      this.getTreeselect(type)
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  |      /** 搜索按钮操作 */
 | 
	
		
			
				|  |  | -    handleQuery(data, type) {
 | 
	
		
			
				|  |  | +    async handleQuery(data, type) {
 | 
	
		
			
				|  |  |        this.pageNum = 1
 | 
	
		
			
				|  |  |        this.queryParams = Object.assign(this.queryParams, data)
 | 
	
		
			
				|  |  | +      await this.getTreeselect(type)
 | 
	
		
			
				|  |  |        this.getList()
 | 
	
		
			
				|  |  | -      this.getTreeselect(type)
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      /** 重置按钮操作 */
 | 
	
		
			
				|  |  |      resetQuery(data) {
 | 
	
	
		
			
				|  | @@ -459,6 +466,7 @@ export default {
 | 
	
		
			
				|  |  |        if (type == 'coursewareType') return
 | 
	
		
			
				|  |  |        if (!this.queryParams.slipid) {
 | 
	
		
			
				|  |  |          this.deptOptions = []
 | 
	
		
			
				|  |  | +        this.queryParams.chapterId = ''
 | 
	
		
			
				|  |  |          return
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        if (type != 'slipid') {
 |