|  | @@ -1,6 +1,7 @@
 | 
											
												
													
														|  |  <template>
 |  |  <template>
 | 
											
												
													
														|  |    <div class="app-container">
 |  |    <div class="app-container">
 | 
											
												
													
														|  | -    <form-search :searchformShow="searchformShow" :coursewareUpload="coursewareUpload" @handleQuery="handleQuery" @change="formChange" @resetQuery="resetQuery"></form-search>
 |  | 
 | 
											
												
													
														|  | 
 |  | +    <form-search :searchformShow="searchformShow" :coursewareUpload="coursewareUpload" @handleQuery="handleQuery"
 | 
											
												
													
														|  | 
 |  | +                 @change="formChange" @resetQuery="resetQuery"></form-search>
 | 
											
												
													
														|  |      <el-card class="box-card" style="margin-bottom: 30px">
 |  |      <el-card class="box-card" style="margin-bottom: 30px">
 | 
											
												
													
														|  |        <el-row :gutter="24">
 |  |        <el-row :gutter="24">
 | 
											
												
													
														|  |          <el-col :span="4" v-if="viewName != 'Custom'">
 |  |          <el-col :span="4" v-if="viewName != 'Custom'">
 | 
											
										
											
												
													
														|  | @@ -10,7 +11,7 @@
 | 
											
												
													
														|  |                border-left: 2px solid #e6a700;
 |  |                border-left: 2px solid #e6a700;
 | 
											
												
													
														|  |                color: #e6a700;
 |  |                color: #e6a700;
 | 
											
												
													
														|  |              "
 |  |              "
 | 
											
												
													
														|  | -          >{{ queryParams.wayType == 1 ? "章节目录" : "知识点目录" }}</h3>
 |  | 
 | 
											
												
													
														|  | 
 |  | +          >{{ queryParams.wayType == 1 ? '章节目录' : '知识点目录' }}</h3>
 | 
											
												
													
														|  |            <div class="head-container">
 |  |            <div class="head-container">
 | 
											
												
													
														|  |              <el-input
 |  |              <el-input
 | 
											
												
													
														|  |                v-model="name"
 |  |                v-model="name"
 | 
											
										
											
												
													
														|  | @@ -35,7 +36,7 @@
 | 
											
												
													
														|  |                @node-click="handleNodeClick"
 |  |                @node-click="handleNodeClick"
 | 
											
												
													
														|  |              >
 |  |              >
 | 
											
												
													
														|  |                <div slot-scope="{node, data}">
 |  |                <div slot-scope="{node, data}">
 | 
											
												
													
														|  | -                <div :title="data.name">{{data.name}}</div>
 |  | 
 | 
											
												
													
														|  | 
 |  | +                <div :title="data.name">{{ data.name }}</div>
 | 
											
												
													
														|  |                </div>
 |  |                </div>
 | 
											
												
													
														|  |              </el-tree>
 |  |              </el-tree>
 | 
											
												
													
														|  |              <el-tree
 |  |              <el-tree
 | 
											
										
											
												
													
														|  | @@ -49,7 +50,7 @@
 | 
											
												
													
														|  |                @node-click="handleNodeClick"
 |  |                @node-click="handleNodeClick"
 | 
											
												
													
														|  |              >
 |  |              >
 | 
											
												
													
														|  |                <div slot-scope="{node, data}">
 |  |                <div slot-scope="{node, data}">
 | 
											
												
													
														|  | -                <div :title="data.name">{{data.name}}</div>
 |  | 
 | 
											
												
													
														|  | 
 |  | +                <div :title="data.name">{{ data.name }}</div>
 | 
											
												
													
														|  |                </div>
 |  |                </div>
 | 
											
												
													
														|  |              </el-tree>
 |  |              </el-tree>
 | 
											
												
													
														|  |            </div>
 |  |            </div>
 | 
											
										
											
												
													
														|  | @@ -57,43 +58,57 @@
 | 
											
												
													
														|  |          <el-col :span="viewName == 'Custom' ? 24 : 20">
 |  |          <el-col :span="viewName == 'Custom' ? 24 : 20">
 | 
											
												
													
														|  |            <el-row :gutter="10" class="mb8">
 |  |            <el-row :gutter="10" class="mb8">
 | 
											
												
													
														|  |              <el-col :span="1.5" v-hasPermi="['front:personResource:uploadToCloudResourse']">
 |  |              <el-col :span="1.5" v-hasPermi="['front:personResource:uploadToCloudResourse']">
 | 
											
												
													
														|  | -              <el-button plain icon="el-icon-upload2" size="small" @click="upToCloudResourse" :disabled="multiple">上传至云库</el-button>
 |  | 
 | 
											
												
													
														|  | 
 |  | +              <el-button plain icon="el-icon-upload2" size="small" @click="upToCloudResourse" :disabled="multiple">
 | 
											
												
													
														|  | 
 |  | +                上传至云库
 | 
											
												
													
														|  | 
 |  | +              </el-button>
 | 
											
												
													
														|  |              </el-col>
 |  |              </el-col>
 | 
											
												
													
														|  |              <el-col :span="1.5" v-hasPermi="['front:personResource:uploadToSchoolResourse']">
 |  |              <el-col :span="1.5" v-hasPermi="['front:personResource:uploadToSchoolResourse']">
 | 
											
												
													
														|  | -              <el-button plain icon="el-icon-upload2" size="small" @click="upToSchoolResourse" :disabled="multiple">上传至校本资源库</el-button>
 |  | 
 | 
											
												
													
														|  | 
 |  | +              <el-button plain icon="el-icon-upload2" size="small" @click="upToSchoolResourse" :disabled="multiple">
 | 
											
												
													
														|  | 
 |  | +                上传至校本资源库
 | 
											
												
													
														|  | 
 |  | +              </el-button>
 | 
											
												
													
														|  |              </el-col>
 |  |              </el-col>
 | 
											
												
													
														|  |              <el-col :span="1.5" v-hasPermi="['front:personResource:uploadToBoard']">
 |  |              <el-col :span="1.5" v-hasPermi="['front:personResource:uploadToBoard']">
 | 
											
												
													
														|  | -              <el-button plain icon="el-icon-upload2" size="small" @click="upToSchoolClass" :disabled="multiple">上传至班牌</el-button>
 |  | 
 | 
											
												
													
														|  | 
 |  | +              <el-button plain icon="el-icon-upload2" size="small" @click="upToSchoolClass" :disabled="multiple">上传至班牌
 | 
											
												
													
														|  | 
 |  | +              </el-button>
 | 
											
												
													
														|  |              </el-col>
 |  |              </el-col>
 | 
											
												
													
														|  |              <el-col :span="1.5" v-hasPermi="['front:personResource:uploadToStudent']">
 |  |              <el-col :span="1.5" v-hasPermi="['front:personResource:uploadToStudent']">
 | 
											
												
													
														|  | -              <el-button plain icon="el-icon-upload2" size="small" @click="upToSchoolStudent" :disabled="multiple">上传至学生端</el-button>
 |  | 
 | 
											
												
													
														|  | 
 |  | +              <el-button plain icon="el-icon-upload2" size="small" @click="upToSchoolStudent" :disabled="multiple">
 | 
											
												
													
														|  | 
 |  | +                上传至学生端
 | 
											
												
													
														|  | 
 |  | +              </el-button>
 | 
											
												
													
														|  |              </el-col>
 |  |              </el-col>
 | 
											
												
													
														|  |              <el-col :span="1.5" v-hasPermi="['front:personResource:uploadToParent']">
 |  |              <el-col :span="1.5" v-hasPermi="['front:personResource:uploadToParent']">
 | 
											
												
													
														|  | -              <el-button plain icon="el-icon-upload2" size="small" @click="upToSchoolParent" :disabled="multiple">上传至家长端</el-button>
 |  | 
 | 
											
												
													
														|  | 
 |  | +              <el-button plain icon="el-icon-upload2" size="small" @click="upToSchoolParent" :disabled="multiple">
 | 
											
												
													
														|  | 
 |  | +                上传至家长端
 | 
											
												
													
														|  | 
 |  | +              </el-button>
 | 
											
												
													
														|  |              </el-col>
 |  |              </el-col>
 | 
											
												
													
														|  |              <el-col :span="1.5" v-hasPermi="['front:personResource:uploadToQuestion']">
 |  |              <el-col :span="1.5" v-hasPermi="['front:personResource:uploadToQuestion']">
 | 
											
												
													
														|  | -              <el-button plain icon="el-icon-upload2" size="small" @click="upToQuestion()" :disabled="multiple">上传至试题</el-button>
 |  | 
 | 
											
												
													
														|  | 
 |  | +              <el-button plain icon="el-icon-upload2" size="small" @click="upToQuestion()" :disabled="multiple">上传至试题
 | 
											
												
													
														|  | 
 |  | +              </el-button>
 | 
											
												
													
														|  |              </el-col>
 |  |              </el-col>
 | 
											
												
													
														|  |              <el-table v-loading="loading" :data="resourcesList" @selection-change="handleSelectionChange">
 |  |              <el-table v-loading="loading" :data="resourcesList" @selection-change="handleSelectionChange">
 | 
											
												
													
														|  | -              <el-table-column type="selection" width="55" align="center" />
 |  | 
 | 
											
												
													
														|  | 
 |  | +              <el-table-column type="selection" width="55" align="center"/>
 | 
											
												
													
														|  |                <el-table-column label="文件" align="center" prop="resourcesName" v-if="viewName == 'Index'">
 |  |                <el-table-column label="文件" align="center" prop="resourcesName" v-if="viewName == 'Index'">
 | 
											
												
													
														|  |                  <template slot-scope="scope">
 |  |                  <template slot-scope="scope">
 | 
											
												
													
														|  | -                  <img style="width: 130px; height: 80px; cursor: pointer" @click="playVideo(scope.row)" :src="img.ship" alt />
 |  | 
 | 
											
												
													
														|  | 
 |  | +                  <resource-preview-button :row="scope.row">
 | 
											
												
													
														|  | 
 |  | +                    <img style="width: 130px; height: 80px; cursor: pointer" :src="img.ship" alt/>
 | 
											
												
													
														|  | 
 |  | +                  </resource-preview-button>
 | 
											
												
													
														|  |                  </template>
 |  |                  </template>
 | 
											
												
													
														|  |                </el-table-column>
 |  |                </el-table-column>
 | 
											
												
													
														|  | -              <el-table-column label="文件名" align="center" prop="resourcesName" />
 |  | 
 | 
											
												
													
														|  | -              <el-table-column label="发布人" align="center" prop="createBy" />
 |  | 
 | 
											
												
													
														|  | -              <el-table-column label="时间" align="center" prop="createTime" />
 |  | 
 | 
											
												
													
														|  | 
 |  | +              <el-table-column label="文件名" align="center" prop="resourcesName"/>
 | 
											
												
													
														|  | 
 |  | +              <el-table-column label="发布人" align="center" prop="createBy"/>
 | 
											
												
													
														|  | 
 |  | +              <el-table-column label="时间" align="center" prop="createTime"/>
 | 
											
												
													
														|  |                <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
 |  |                <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
 | 
											
												
													
														|  |                  <template slot-scope="scope">
 |  |                  <template slot-scope="scope">
 | 
											
												
													
														|  | -                  <el-button v-if="viewName != 'Index'" size="mini" type="text" icon="el-icon-view" @click="handleView(scope.row)">预览</el-button>
 |  | 
 | 
											
												
													
														|  | 
 |  | +                  <resource-preview-button v-if="viewName != 'Index'" :row="scope.row" class="mr10"/>
 | 
											
												
													
														|  |                    <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button>
 |  |                    <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button>
 | 
											
												
													
														|  | -                  <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
 |  | 
 | 
											
												
													
														|  | 
 |  | +                  <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除
 | 
											
												
													
														|  | 
 |  | +                  </el-button>
 | 
											
												
													
														|  |                  </template>
 |  |                  </template>
 | 
											
												
													
														|  |                </el-table-column>
 |  |                </el-table-column>
 | 
											
												
													
														|  |              </el-table>
 |  |              </el-table>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -            <pagination v-show="total > 0" :total="total" :page.sync="pageNum" :limit.sync="pageSize" @pagination="getList" />
 |  | 
 | 
											
												
													
														|  | 
 |  | +            <pagination v-show="total > 0" :total="total" :page.sync="pageNum" :limit.sync="pageSize"
 | 
											
												
													
														|  | 
 |  | +                        @pagination="getList"/>
 | 
											
												
													
														|  |            </el-row>
 |  |            </el-row>
 | 
											
												
													
														|  |          </el-col>
 |  |          </el-col>
 | 
											
												
													
														|  |        </el-row>
 |  |        </el-row>
 | 
											
										
											
												
													
														|  | @@ -103,7 +118,7 @@
 | 
											
												
													
														|  |      <el-dialog :title="title" v-loading="quesLoading" :visible.sync="quesDialog" width="800px" append-to-body>
 |  |      <el-dialog :title="title" v-loading="quesLoading" :visible.sync="quesDialog" width="800px" append-to-body>
 | 
											
												
													
														|  |        <el-form ref="formQuestion" :model="form" :rules="rules2" label-width="80px" v-if="quesDialog">
 |  |        <el-form ref="formQuestion" :model="form" :rules="rules2" label-width="80px" v-if="quesDialog">
 | 
											
												
													
														|  |          <el-form-item label="题目编号" prop="questionId">
 |  |          <el-form-item label="题目编号" prop="questionId">
 | 
											
												
													
														|  | -          <el-input v-model="form.questionId" placeholder="题目编号" />
 |  | 
 | 
											
												
													
														|  | 
 |  | +          <el-input v-model="form.questionId" placeholder="题目编号"/>
 | 
											
												
													
														|  |          </el-form-item>
 |  |          </el-form-item>
 | 
											
												
													
														|  |        </el-form>
 |  |        </el-form>
 | 
											
												
													
														|  |        <div slot="footer" class="dialog-footer">
 |  |        <div slot="footer" class="dialog-footer">
 | 
											
										
											
												
													
														|  | @@ -116,7 +131,7 @@
 | 
											
												
													
														|  |      <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
 |  |      <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
 | 
											
												
													
														|  |        <el-form ref="form" :model="form" :rules="rules" label-width="80px" v-if="open">
 |  |        <el-form ref="form" :model="form" :rules="rules" label-width="80px" v-if="open">
 | 
											
												
													
														|  |          <el-form-item label="资源名称" prop="resourcesName">
 |  |          <el-form-item label="资源名称" prop="resourcesName">
 | 
											
												
													
														|  | -          <el-input v-model="form.resourcesName" placeholder="请输入资源名称" />
 |  | 
 | 
											
												
													
														|  | 
 |  | +          <el-input v-model="form.resourcesName" placeholder="请输入资源名称"/>
 | 
											
												
													
														|  |          </el-form-item>
 |  |          </el-form-item>
 | 
											
												
													
														|  |        </el-form>
 |  |        </el-form>
 | 
											
												
													
														|  |        <div slot="footer" class="dialog-footer">
 |  |        <div slot="footer" class="dialog-footer">
 | 
											
										
											
												
													
														|  | @@ -134,60 +149,55 @@
 | 
											
												
													
														|  |        @handleClose="handleClose"
 |  |        @handleClose="handleClose"
 | 
											
												
													
														|  |        @dialogVisibleClose="dialogVisibleClose"
 |  |        @dialogVisibleClose="dialogVisibleClose"
 | 
											
												
													
														|  |      ></upload-dialog>
 |  |      ></upload-dialog>
 | 
											
												
													
														|  | -    <el-dialog title="查看视频" :visible.sync="dialogVideo" width="60%">
 |  | 
 | 
											
												
													
														|  | -      <mx-video v-if="dialogVideo" :aliIdType="aliIdType" :src="src" controls controlslist="nodownload" disablepictureinpicture></mx-video>
 |  | 
 | 
											
												
													
														|  | -    </el-dialog>
 |  | 
 | 
											
												
													
														|  |    </div>
 |  |    </div>
 | 
											
												
													
														|  |  </template>
 |  |  </template>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  <script>
 |  |  <script>
 | 
											
												
													
														|  | -import { add, exportList } from "@/api/webApi/school";
 |  | 
 | 
											
												
													
														|  | 
 |  | +import { add, exportList } from '@/api/webApi/school'
 | 
											
												
													
														|  |  import {
 |  |  import {
 | 
											
												
													
														|  | -  upToCloudResourse,
 |  | 
 | 
											
												
													
														|  | -  list,
 |  | 
 | 
											
												
													
														|  | -  upToSchoolResourse,
 |  | 
 | 
											
												
													
														|  | -  upToSchoolClass,
 |  | 
 | 
											
												
													
														|  | -  upToSchoolStudent,
 |  | 
 | 
											
												
													
														|  | -  upToSchoolParent,
 |  | 
 | 
											
												
													
														|  |    getInfo,
 |  |    getInfo,
 | 
											
												
													
														|  | -  remove,
 |  | 
 | 
											
												
													
														|  | 
 |  | +  list,
 | 
											
												
													
														|  |    modifyPersonResourceInfo,
 |  |    modifyPersonResourceInfo,
 | 
											
												
													
														|  | 
 |  | +  remove,
 | 
											
												
													
														|  |    updataQuestion,
 |  |    updataQuestion,
 | 
											
												
													
														|  | -} from "@/api/webApi/person";
 |  | 
 | 
											
												
													
														|  | -import { treeList, knowledgeTree } from "@/api/webApi/webQue.js";
 |  | 
 | 
											
												
													
														|  | -import { mapGetters } from "vuex";
 |  | 
 | 
											
												
													
														|  | 
 |  | +  upToCloudResourse,
 | 
											
												
													
														|  | 
 |  | +  upToSchoolClass,
 | 
											
												
													
														|  | 
 |  | +  upToSchoolParent,
 | 
											
												
													
														|  | 
 |  | +  upToSchoolResourse,
 | 
											
												
													
														|  | 
 |  | +  upToSchoolStudent
 | 
											
												
													
														|  | 
 |  | +} from '@/api/webApi/person'
 | 
											
												
													
														|  | 
 |  | +import { knowledgeTree, treeList } from '@/api/webApi/webQue.js'
 | 
											
												
													
														|  | 
 |  | +import { mapGetters } from 'vuex'
 | 
											
												
													
														|  | 
 |  | +import ResourcePreviewButton from '@/views/accurateTeaching/components/resource-preview-button'
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  export default {
 |  |  export default {
 | 
											
												
													
														|  | -  components: {},
 |  | 
 | 
											
												
													
														|  | 
 |  | +  components: { ResourcePreviewButton },
 | 
											
												
													
														|  |    data() {
 |  |    data() {
 | 
											
												
													
														|  | -    const blurText = async (rule, value, callback) => {
 |  | 
 | 
											
												
													
														|  | -      const boolean = new RegExp("^[1-9][0-9]*$").test(value); // console.log(boolean)
 |  | 
 | 
											
												
													
														|  | 
 |  | +    const blurText = async(rule, value, callback) => {
 | 
											
												
													
														|  | 
 |  | +      const boolean = new RegExp('^[1-9][0-9]*$').test(value) // console.log(boolean)
 | 
											
												
													
														|  |        if (!boolean) {
 |  |        if (!boolean) {
 | 
											
												
													
														|  | -        callback(new Error("请输入正整数"));
 |  | 
 | 
											
												
													
														|  | 
 |  | +        callback(new Error('请输入正整数'))
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  | -    };
 |  | 
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  |      return {
 |  |      return {
 | 
											
												
													
														|  | -      aliIdType: "",
 |  | 
 | 
											
												
													
														|  | -      src: "",
 |  | 
 | 
											
												
													
														|  | -      dialogVideo: false,
 |  | 
 | 
											
												
													
														|  |        quesDialog: false,
 |  |        quesDialog: false,
 | 
											
												
													
														|  |        quesLoading: false,
 |  |        quesLoading: false,
 | 
											
												
													
														|  | -      questionId: "",
 |  | 
 | 
											
												
													
														|  | 
 |  | +      questionId: '',
 | 
											
												
													
														|  |        coursewareUpload: false,
 |  |        coursewareUpload: false,
 | 
											
												
													
														|  |        treeLoading: false,
 |  |        treeLoading: false,
 | 
											
												
													
														|  |        searchformShow: {},
 |  |        searchformShow: {},
 | 
											
												
													
														|  |        dialogVisible: false,
 |  |        dialogVisible: false,
 | 
											
												
													
														|  |        img: {
 |  |        img: {
 | 
											
												
													
														|  | -        ship: require("@/assets/images/ship.png"),
 |  | 
 | 
											
												
													
														|  | 
 |  | +        ship: require('@/assets/images/ship.png')
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  |        treeProps: {
 |  |        treeProps: {
 | 
											
												
													
														|  | -        children: "children",
 |  | 
 | 
											
												
													
														|  | -        label: "name",
 |  | 
 | 
											
												
													
														|  | -        code: "id",
 |  | 
 | 
											
												
													
														|  | 
 |  | +        children: 'children',
 | 
											
												
													
														|  | 
 |  | +        label: 'name',
 | 
											
												
													
														|  | 
 |  | +        code: 'id'
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  |        deptOptions: undefined,
 |  |        deptOptions: undefined,
 | 
											
												
													
														|  |        KnowledgeOptions: [],
 |  |        KnowledgeOptions: [],
 | 
											
												
													
														|  | -      deptName: "",
 |  | 
 | 
											
												
													
														|  | 
 |  | +      deptName: '',
 | 
											
												
													
														|  |        // 遮罩层
 |  |        // 遮罩层
 | 
											
												
													
														|  |        loading: true,
 |  |        loading: true,
 | 
											
												
													
														|  |        // 导出遮罩层
 |  |        // 导出遮罩层
 | 
											
										
											
												
													
														|  | @@ -209,8 +219,8 @@ export default {
 | 
											
												
													
														|  |        // 云库表格数据
 |  |        // 云库表格数据
 | 
											
												
													
														|  |        resourcesList: [],
 |  |        resourcesList: [],
 | 
											
												
													
														|  |        // 弹出层标题
 |  |        // 弹出层标题
 | 
											
												
													
														|  | -      title: "",
 |  | 
 | 
											
												
													
														|  | -      pageName: "",
 |  | 
 | 
											
												
													
														|  | 
 |  | +      title: '',
 | 
											
												
													
														|  | 
 |  | +      pageName: '',
 | 
											
												
													
														|  |        // 是否显示弹出层
 |  |        // 是否显示弹出层
 | 
											
												
													
														|  |        open: false,
 |  |        open: false,
 | 
											
												
													
														|  |        // 资源类型字典
 |  |        // 资源类型字典
 | 
											
										
											
												
													
														|  | @@ -221,19 +231,19 @@ export default {
 | 
											
												
													
														|  |        delFlagOptions: [],
 |  |        delFlagOptions: [],
 | 
											
												
													
														|  |        // 查询参数
 |  |        // 查询参数
 | 
											
												
													
														|  |        queryParams: {
 |  |        queryParams: {
 | 
											
												
													
														|  | -        wayType: "1",
 |  | 
 | 
											
												
													
														|  | 
 |  | +        wayType: '1',
 | 
											
												
													
														|  |          pageNum: 1,
 |  |          pageNum: 1,
 | 
											
												
													
														|  |          pageSize: 10,
 |  |          pageSize: 10,
 | 
											
												
													
														|  | -        resourcesName: "",
 |  | 
 | 
											
												
													
														|  | 
 |  | +        resourcesName: '',
 | 
											
												
													
														|  |          type: null,
 |  |          type: null,
 | 
											
												
													
														|  |          category: null,
 |  |          category: null,
 | 
											
												
													
														|  |          province: null,
 |  |          province: null,
 | 
											
												
													
														|  |          city: null,
 |  |          city: null,
 | 
											
												
													
														|  |          county: null,
 |  |          county: null,
 | 
											
												
													
														|  |          chapterId: null,
 |  |          chapterId: null,
 | 
											
												
													
														|  | -        resourcesUrl: "",
 |  | 
 | 
											
												
													
														|  | 
 |  | +        resourcesUrl: '',
 | 
											
												
													
														|  |          bookId: null,
 |  |          bookId: null,
 | 
											
												
													
														|  | -        subjectId: null,
 |  | 
 | 
											
												
													
														|  | 
 |  | +        subjectId: null
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  |        // 表单参数
 |  |        // 表单参数
 | 
											
												
													
														|  |        form: {},
 |  |        form: {},
 | 
											
										
											
												
													
														|  | @@ -242,120 +252,94 @@ export default {
 | 
											
												
													
														|  |          resourcesName: [
 |  |          resourcesName: [
 | 
											
												
													
														|  |            {
 |  |            {
 | 
											
												
													
														|  |              required: true,
 |  |              required: true,
 | 
											
												
													
														|  | -            message: "资源名称不能为空",
 |  | 
 | 
											
												
													
														|  | -            trigger: "blur",
 |  | 
 | 
											
												
													
														|  | -          },
 |  | 
 | 
											
												
													
														|  | -        ],
 |  | 
 | 
											
												
													
														|  | 
 |  | +            message: '资源名称不能为空',
 | 
											
												
													
														|  | 
 |  | +            trigger: 'blur'
 | 
											
												
													
														|  | 
 |  | +          }
 | 
											
												
													
														|  | 
 |  | +        ]
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  |        rules2: {
 |  |        rules2: {
 | 
											
												
													
														|  |          questionId: [
 |  |          questionId: [
 | 
											
												
													
														|  |            {
 |  |            {
 | 
											
												
													
														|  |              required: true,
 |  |              required: true,
 | 
											
												
													
														|  | -            message: "题目编号不能为空",
 |  | 
 | 
											
												
													
														|  | -            trigger: "blur",
 |  | 
 | 
											
												
													
														|  | 
 |  | +            message: '题目编号不能为空',
 | 
											
												
													
														|  | 
 |  | +            trigger: 'blur'
 | 
											
												
													
														|  |            },
 |  |            },
 | 
											
												
													
														|  |            {
 |  |            {
 | 
											
												
													
														|  |              validator: blurText,
 |  |              validator: blurText,
 | 
											
												
													
														|  | -            trigger: "blur",
 |  | 
 | 
											
												
													
														|  | -          },
 |  | 
 | 
											
												
													
														|  | -        ],
 |  | 
 | 
											
												
													
														|  | 
 |  | +            trigger: 'blur'
 | 
											
												
													
														|  | 
 |  | +          }
 | 
											
												
													
														|  | 
 |  | +        ]
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -      viewName: "",
 |  | 
 | 
											
												
													
														|  | -      name: "",
 |  | 
 | 
											
												
													
														|  | 
 |  | +      viewName: '',
 | 
											
												
													
														|  | 
 |  | +      name: '',
 | 
											
												
													
														|  |        isZdy: true,
 |  |        isZdy: true,
 | 
											
												
													
														|  | -      selectType: "",
 |  | 
 | 
											
												
													
														|  | -    };
 |  | 
 | 
											
												
													
														|  | 
 |  | +      selectType: ''
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    computed: {
 |  |    computed: {
 | 
											
												
													
														|  | -    ...mapGetters(["currentUser"]),
 |  | 
 | 
											
												
													
														|  | 
 |  | +    ...mapGetters(['currentUser']),
 | 
											
												
													
														|  |      userInfo() {
 |  |      userInfo() {
 | 
											
												
													
														|  |        // TODO: hht 22.1.5 兼容历史写法,待清理
 |  |        // TODO: hht 22.1.5 兼容历史写法,待清理
 | 
											
												
													
														|  | -      return this.currentUser;
 |  | 
 | 
											
												
													
														|  | -    },
 |  | 
 | 
											
												
													
														|  | 
 |  | +      return this.currentUser
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    created() {
 |  |    created() {
 | 
											
												
													
														|  | -    this.viewName = this.$route.name;
 |  | 
 | 
											
												
													
														|  | -    if (this.viewName == "Index") {
 |  | 
 | 
											
												
													
														|  | -      this.coursewareUpload = false;
 |  | 
 | 
											
												
													
														|  | 
 |  | +    this.viewName = this.$route.name
 | 
											
												
													
														|  | 
 |  | +    if (this.viewName == 'Index') {
 | 
											
												
													
														|  | 
 |  | +      this.coursewareUpload = false
 | 
											
												
													
														|  |        this.searchformShow = {
 |  |        this.searchformShow = {
 | 
											
												
													
														|  | -        wayType: "1",
 |  | 
 | 
											
												
													
														|  | -        subjectid: "",
 |  | 
 | 
											
												
													
														|  | -        edition: "",
 |  | 
 | 
											
												
													
														|  | -        slipid: "",
 |  | 
 | 
											
												
													
														|  | -      };
 |  | 
 | 
											
												
													
														|  | -    } else if (this.viewName == "Personal") {
 |  | 
 | 
											
												
													
														|  | -      this.coursewareUpload = true;
 |  | 
 | 
											
												
													
														|  | 
 |  | +        wayType: '1',
 | 
											
												
													
														|  | 
 |  | +        subjectid: '',
 | 
											
												
													
														|  | 
 |  | +        edition: '',
 | 
											
												
													
														|  | 
 |  | +        slipid: ''
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  | 
 |  | +    } else if (this.viewName == 'Personal') {
 | 
											
												
													
														|  | 
 |  | +      this.coursewareUpload = true
 | 
											
												
													
														|  |        this.searchformShow = {
 |  |        this.searchformShow = {
 | 
											
												
													
														|  | -        subjectid: "",
 |  | 
 | 
											
												
													
														|  | -        edition: "",
 |  | 
 | 
											
												
													
														|  | -        slipid: "",
 |  | 
 | 
											
												
													
														|  | -        coursewareType: "",
 |  | 
 | 
											
												
													
														|  | -      };
 |  | 
 | 
											
												
													
														|  | 
 |  | +        subjectid: '',
 | 
											
												
													
														|  | 
 |  | +        edition: '',
 | 
											
												
													
														|  | 
 |  | +        slipid: '',
 | 
											
												
													
														|  | 
 |  | +        coursewareType: ''
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  |      } else {
 |  |      } else {
 | 
											
												
													
														|  | -      this.coursewareUpload = true;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.coursewareUpload = true
 | 
											
												
													
														|  |        this.searchformShow = {
 |  |        this.searchformShow = {
 | 
											
												
													
														|  | -        subjectid: "",
 |  | 
 | 
											
												
													
														|  | -        resourceType: "",
 |  | 
 | 
											
												
													
														|  | -      };
 |  | 
 | 
											
												
													
														|  | 
 |  | +        subjectid: '',
 | 
											
												
													
														|  | 
 |  | +        resourceType: ''
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  | -    this.handleQuery(this.searchformShow);
 |  | 
 | 
											
												
													
														|  | 
 |  | +    this.handleQuery(this.searchformShow)
 | 
											
												
													
														|  |      // this.getTreeselect();
 |  |      // this.getTreeselect();
 | 
											
												
													
														|  | -    this.getDicts("resource_type").then((response) => {
 |  | 
 | 
											
												
													
														|  | -      this.typeOptions = response.data;
 |  | 
 | 
											
												
													
														|  | -    });
 |  | 
 | 
											
												
													
														|  | -    this.getDicts("category").then((response) => {
 |  | 
 | 
											
												
													
														|  | -      this.categoryOptions = response.data;
 |  | 
 | 
											
												
													
														|  | -    });
 |  | 
 | 
											
												
													
														|  | -    this.getDicts("bool_flag").then((response) => {
 |  | 
 | 
											
												
													
														|  | -      this.delFlagOptions = response.data;
 |  | 
 | 
											
												
													
														|  | -    });
 |  | 
 | 
											
												
													
														|  | 
 |  | +    this.getDicts('resource_type').then((response) => {
 | 
											
												
													
														|  | 
 |  | +      this.typeOptions = response.data
 | 
											
												
													
														|  | 
 |  | +    })
 | 
											
												
													
														|  | 
 |  | +    this.getDicts('category').then((response) => {
 | 
											
												
													
														|  | 
 |  | +      this.categoryOptions = response.data
 | 
											
												
													
														|  | 
 |  | +    })
 | 
											
												
													
														|  | 
 |  | +    this.getDicts('bool_flag').then((response) => {
 | 
											
												
													
														|  | 
 |  | +      this.delFlagOptions = response.data
 | 
											
												
													
														|  | 
 |  | +    })
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    watch: {
 |  |    watch: {
 | 
											
												
													
														|  |      // 根据名称筛选部门树
 |  |      // 根据名称筛选部门树
 | 
											
												
													
														|  |      name(val) {
 |  |      name(val) {
 | 
											
												
													
														|  | -      this.$refs.tree.filter(val);
 |  | 
 | 
											
												
													
														|  | -    },
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.$refs.tree.filter(val)
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    methods: {
 |  |    methods: {
 | 
											
												
													
														|  | -    handleView(row) {
 |  | 
 | 
											
												
													
														|  | -      if (row.resourcesUrl.indexOf(".pdf") != -1) {
 |  | 
 | 
											
												
													
														|  | -        window.open("/pdfView/index.html?src=" + row.resourcesUrl);
 |  | 
 | 
											
												
													
														|  | -      } else if (
 |  | 
 | 
											
												
													
														|  | -        row.resourcesUrl.indexOf(".doc") != -1 ||
 |  | 
 | 
											
												
													
														|  | -        row.resourcesUrl.indexOf(".ppt") != -1 ||
 |  | 
 | 
											
												
													
														|  | -        row.resourcesUrl.indexOf(".xls") != -1 ||
 |  | 
 | 
											
												
													
														|  | -        row.resourcesUrl.indexOf(".xlsx") != -1
 |  | 
 | 
											
												
													
														|  | -      ) {
 |  | 
 | 
											
												
													
														|  | -        window.open(
 |  | 
 | 
											
												
													
														|  | -          "https://view.officeapps.live.com/op/view.aspx?src=" +
 |  | 
 | 
											
												
													
														|  | -            row.resourcesUrl
 |  | 
 | 
											
												
													
														|  | -        );
 |  | 
 | 
											
												
													
														|  | -      } else if (row.resourcesUrl.indexOf(".mp4") != -1 || !row.resourcesUrl.includes('.')) {
 |  | 
 | 
											
												
													
														|  | -        this.aliIdType = row.aliIdType;
 |  | 
 | 
											
												
													
														|  | -        this.src = row.resourcesUrl;
 |  | 
 | 
											
												
													
														|  | -        this.dialogVideo = true;
 |  | 
 | 
											
												
													
														|  | -      } else {
 |  | 
 | 
											
												
													
														|  | -        this.$message.error("格式错误,无法预览该格式文件!");
 |  | 
 | 
											
												
													
														|  | -      }
 |  | 
 | 
											
												
													
														|  | -    },
 |  | 
 | 
											
												
													
														|  | -    playVideo(row) {
 |  | 
 | 
											
												
													
														|  | -      this.aliIdType = row.aliIdType;
 |  | 
 | 
											
												
													
														|  | -      this.src = row.resourcesUrl;
 |  | 
 | 
											
												
													
														|  | -      this.dialogVideo = true;
 |  | 
 | 
											
												
													
														|  | -    },
 |  | 
 | 
											
												
													
														|  |      /** 查询个人资源库列表 */
 |  |      /** 查询个人资源库列表 */
 | 
											
												
													
														|  |      getList() {
 |  |      getList() {
 | 
											
												
													
														|  | -      this.loading = true;
 |  | 
 | 
											
												
													
														|  | -      if (this.viewName == "Index") {
 |  | 
 | 
											
												
													
														|  | -        this.queryParams.category = "微课视频";
 |  | 
 | 
											
												
													
														|  | -        this.pageName = "微课视频";
 |  | 
 | 
											
												
													
														|  | -      } else if (this.viewName == "Personal") {
 |  | 
 | 
											
												
													
														|  | -        this.queryParams.category = "课件资源";
 |  | 
 | 
											
												
													
														|  | -        this.pageName = "课件资源";
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.loading = true
 | 
											
												
													
														|  | 
 |  | +      if (this.viewName == 'Index') {
 | 
											
												
													
														|  | 
 |  | +        this.queryParams.category = '微课视频'
 | 
											
												
													
														|  | 
 |  | +        this.pageName = '微课视频'
 | 
											
												
													
														|  | 
 |  | +      } else if (this.viewName == 'Personal') {
 | 
											
												
													
														|  | 
 |  | +        this.queryParams.category = '课件资源'
 | 
											
												
													
														|  | 
 |  | +        this.pageName = '课件资源'
 | 
											
												
													
														|  |        } else {
 |  |        } else {
 | 
											
												
													
														|  | -        this.queryParams.category = "自定义";
 |  | 
 | 
											
												
													
														|  | -        this.pageName = "自定义";
 |  | 
 | 
											
												
													
														|  | 
 |  | +        this.queryParams.category = '自定义'
 | 
											
												
													
														|  | 
 |  | +        this.pageName = '自定义'
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  |        let Ajax = {
 |  |        let Ajax = {
 | 
											
												
													
														|  |          subjectId: this.queryParams.subjectid, //科目
 |  |          subjectId: this.queryParams.subjectid, //科目
 | 
											
										
											
												
													
														|  | @@ -367,216 +351,216 @@ export default {
 | 
											
												
													
														|  |          pageSize: this.pageSize,
 |  |          pageSize: this.pageSize,
 | 
											
												
													
														|  |          category: this.queryParams.category,
 |  |          category: this.queryParams.category,
 | 
											
												
													
														|  |          type: this.queryParams.resourceType,
 |  |          type: this.queryParams.resourceType,
 | 
											
												
													
														|  | -        linkWay: this.queryParams.wayType,
 |  | 
 | 
											
												
													
														|  | -      };
 |  | 
 | 
											
												
													
														|  | 
 |  | +        linkWay: this.queryParams.wayType
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |        list(Ajax)
 |  |        list(Ajax)
 | 
											
												
													
														|  |          .then((response) => {
 |  |          .then((response) => {
 | 
											
												
													
														|  | -          this.resourcesList = response.rows;
 |  | 
 | 
											
												
													
														|  | -          this.total = response.total;
 |  | 
 | 
											
												
													
														|  | -          this.loading = false;
 |  | 
 | 
											
												
													
														|  | 
 |  | +          this.resourcesList = response.rows
 | 
											
												
													
														|  | 
 |  | +          this.total = response.total
 | 
											
												
													
														|  | 
 |  | +          this.loading = false
 | 
											
												
													
														|  |          })
 |  |          })
 | 
											
												
													
														|  |          .catch((err) => {
 |  |          .catch((err) => {
 | 
											
												
													
														|  | -          this.loading = false;
 |  | 
 | 
											
												
													
														|  | -        });
 |  | 
 | 
											
												
													
														|  | 
 |  | +          this.loading = false
 | 
											
												
													
														|  | 
 |  | +        })
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      // 资源类型字典翻译
 |  |      // 资源类型字典翻译
 | 
											
												
													
														|  |      typeFormat(row, column) {
 |  |      typeFormat(row, column) {
 | 
											
												
													
														|  | -      return this.selectDictLabel(this.typeOptions, row.type);
 |  | 
 | 
											
												
													
														|  | 
 |  | +      return this.selectDictLabel(this.typeOptions, row.type)
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      // 资源分类字典翻译
 |  |      // 资源分类字典翻译
 | 
											
												
													
														|  |      categoryFormat(row, column) {
 |  |      categoryFormat(row, column) {
 | 
											
												
													
														|  | -      return this.selectDictLabel(this.categoryOptions, row.category);
 |  | 
 | 
											
												
													
														|  | 
 |  | +      return this.selectDictLabel(this.categoryOptions, row.category)
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      // 是否删除字典翻译
 |  |      // 是否删除字典翻译
 | 
											
												
													
														|  |      delFlagFormat(row, column) {
 |  |      delFlagFormat(row, column) {
 | 
											
												
													
														|  | -      return this.selectDictLabel(this.delFlagOptions, row.delFlag);
 |  | 
 | 
											
												
													
														|  | 
 |  | +      return this.selectDictLabel(this.delFlagOptions, row.delFlag)
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      handleClose(type, name, selectData) {
 |  |      handleClose(type, name, selectData) {
 | 
											
												
													
														|  | -      console.log("------------");
 |  | 
 | 
											
												
													
														|  | -      console.log(type);
 |  | 
 | 
											
												
													
														|  | -      console.log(name);
 |  | 
 | 
											
												
													
														|  | -      console.log(selectData);
 |  | 
 | 
											
												
													
														|  | -      let _this = this;
 |  | 
 | 
											
												
													
														|  | -      if (this.title == "上传至云库") {
 |  | 
 | 
											
												
													
														|  | 
 |  | +      console.log('------------')
 | 
											
												
													
														|  | 
 |  | +      console.log(type)
 | 
											
												
													
														|  | 
 |  | +      console.log(name)
 | 
											
												
													
														|  | 
 |  | +      console.log(selectData)
 | 
											
												
													
														|  | 
 |  | +      let _this = this
 | 
											
												
													
														|  | 
 |  | +      if (this.title == '上传至云库') {
 | 
											
												
													
														|  |          _this.ids.forEach((item, index) => {
 |  |          _this.ids.forEach((item, index) => {
 | 
											
												
													
														|  |            let Ajax = {
 |  |            let Ajax = {
 | 
											
												
													
														|  | -            resourseId: item,
 |  | 
 | 
											
												
													
														|  | -          };
 |  | 
 | 
											
												
													
														|  | 
 |  | +            resourseId: item
 | 
											
												
													
														|  | 
 |  | +          }
 | 
											
												
													
														|  |            if (name) {
 |  |            if (name) {
 | 
											
												
													
														|  | -            Ajax.resourcesName = name;
 |  | 
 | 
											
												
													
														|  | 
 |  | +            Ajax.resourcesName = name
 | 
											
												
													
														|  |            }
 |  |            }
 | 
											
												
													
														|  |            upToCloudResourse(Ajax).then(() => {
 |  |            upToCloudResourse(Ajax).then(() => {
 | 
											
												
													
														|  |              if (index == _this.ids.length - 1) {
 |  |              if (index == _this.ids.length - 1) {
 | 
											
												
													
														|  | -              _this.msgSuccess("操作成功");
 |  | 
 | 
											
												
													
														|  | -              _this.dialogVisible = false;
 |  | 
 | 
											
												
													
														|  | 
 |  | +              _this.msgSuccess('操作成功')
 | 
											
												
													
														|  | 
 |  | +              _this.dialogVisible = false
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  | -          });
 |  | 
 | 
											
												
													
														|  | -        });
 |  | 
 | 
											
												
													
														|  | -      } else if (this.title == "上传至校本资源库") {
 |  | 
 | 
											
												
													
														|  | 
 |  | +          })
 | 
											
												
													
														|  | 
 |  | +        })
 | 
											
												
													
														|  | 
 |  | +      } else if (this.title == '上传至校本资源库') {
 | 
											
												
													
														|  |          _this.ids.forEach((item, index) => {
 |  |          _this.ids.forEach((item, index) => {
 | 
											
												
													
														|  |            let Ajax = {
 |  |            let Ajax = {
 | 
											
												
													
														|  | -            resourseId: item,
 |  | 
 | 
											
												
													
														|  | -          };
 |  | 
 | 
											
												
													
														|  | 
 |  | +            resourseId: item
 | 
											
												
													
														|  | 
 |  | +          }
 | 
											
												
													
														|  |            if (name) {
 |  |            if (name) {
 | 
											
												
													
														|  | -            Ajax.resourcesName = name;
 |  | 
 | 
											
												
													
														|  | 
 |  | +            Ajax.resourcesName = name
 | 
											
												
													
														|  |            }
 |  |            }
 | 
											
												
													
														|  |            upToSchoolResourse(Ajax).then(() => {
 |  |            upToSchoolResourse(Ajax).then(() => {
 | 
											
												
													
														|  |              if (index == _this.ids.length - 1) {
 |  |              if (index == _this.ids.length - 1) {
 | 
											
												
													
														|  | -              _this.msgSuccess("操作成功");
 |  | 
 | 
											
												
													
														|  | -              _this.dialogVisible = false;
 |  | 
 | 
											
												
													
														|  | 
 |  | +              _this.msgSuccess('操作成功')
 | 
											
												
													
														|  | 
 |  | +              _this.dialogVisible = false
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  | -          });
 |  | 
 | 
											
												
													
														|  | -        });
 |  | 
 | 
											
												
													
														|  | -      } else if (this.title == "上传至班牌") {
 |  | 
 | 
											
												
													
														|  | -        console.log("上传至班牌");
 |  | 
 | 
											
												
													
														|  | -        console.log(selectData);
 |  | 
 | 
											
												
													
														|  | 
 |  | +          })
 | 
											
												
													
														|  | 
 |  | +        })
 | 
											
												
													
														|  | 
 |  | +      } else if (this.title == '上传至班牌') {
 | 
											
												
													
														|  | 
 |  | +        console.log('上传至班牌')
 | 
											
												
													
														|  | 
 |  | +        console.log(selectData)
 | 
											
												
													
														|  |          _this.ids.forEach((item, index) => {
 |  |          _this.ids.forEach((item, index) => {
 | 
											
												
													
														|  |            let Ajax = {
 |  |            let Ajax = {
 | 
											
												
													
														|  |              resourseId: item,
 |  |              resourseId: item,
 | 
											
												
													
														|  |              classId: selectData.checkedClass,
 |  |              classId: selectData.checkedClass,
 | 
											
												
													
														|  |              studentCodes: selectData.checkedStudent
 |  |              studentCodes: selectData.checkedStudent
 | 
											
												
													
														|  | -              ? selectData.checkedStudent.join(",")
 |  | 
 | 
											
												
													
														|  | -              : "",
 |  | 
 | 
											
												
													
														|  | -          };
 |  | 
 | 
											
												
													
														|  | 
 |  | +              ? selectData.checkedStudent.join(',')
 | 
											
												
													
														|  | 
 |  | +              : ''
 | 
											
												
													
														|  | 
 |  | +          }
 | 
											
												
													
														|  |            if (name) {
 |  |            if (name) {
 | 
											
												
													
														|  | -            Ajax.resourcesName = name;
 |  | 
 | 
											
												
													
														|  | 
 |  | +            Ajax.resourcesName = name
 | 
											
												
													
														|  |            }
 |  |            }
 | 
											
												
													
														|  | -          console.log("上传至班牌", Ajax);
 |  | 
 | 
											
												
													
														|  | 
 |  | +          console.log('上传至班牌', Ajax)
 | 
											
												
													
														|  |            upToSchoolClass(Ajax).then(() => {
 |  |            upToSchoolClass(Ajax).then(() => {
 | 
											
												
													
														|  |              if (index == _this.ids.length - 1) {
 |  |              if (index == _this.ids.length - 1) {
 | 
											
												
													
														|  | -              _this.msgSuccess("操作成功");
 |  | 
 | 
											
												
													
														|  | -              _this.dialogVisible = false;
 |  | 
 | 
											
												
													
														|  | 
 |  | +              _this.msgSuccess('操作成功')
 | 
											
												
													
														|  | 
 |  | +              _this.dialogVisible = false
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  | -          });
 |  | 
 | 
											
												
													
														|  | -        });
 |  | 
 | 
											
												
													
														|  | -      } else if (this.title == "上传至学生端") {
 |  | 
 | 
											
												
													
														|  | -        console.log("上传至学生端");
 |  | 
 | 
											
												
													
														|  | -        console.log(selectData);
 |  | 
 | 
											
												
													
														|  | 
 |  | +          })
 | 
											
												
													
														|  | 
 |  | +        })
 | 
											
												
													
														|  | 
 |  | +      } else if (this.title == '上传至学生端') {
 | 
											
												
													
														|  | 
 |  | +        console.log('上传至学生端')
 | 
											
												
													
														|  | 
 |  | +        console.log(selectData)
 | 
											
												
													
														|  |          _this.ids.forEach((item, index) => {
 |  |          _this.ids.forEach((item, index) => {
 | 
											
												
													
														|  |            let Ajax = {
 |  |            let Ajax = {
 | 
											
												
													
														|  |              resourseId: item,
 |  |              resourseId: item,
 | 
											
												
													
														|  |              classId: selectData.checkedClass,
 |  |              classId: selectData.checkedClass,
 | 
											
												
													
														|  |              remark: selectData.remark,
 |  |              remark: selectData.remark,
 | 
											
												
													
														|  | -            studentCodes: selectData.checkedStudent.join(","),
 |  | 
 | 
											
												
													
														|  | -          };
 |  | 
 | 
											
												
													
														|  | 
 |  | +            studentCodes: selectData.checkedStudent.join(',')
 | 
											
												
													
														|  | 
 |  | +          }
 | 
											
												
													
														|  |            if (name) {
 |  |            if (name) {
 | 
											
												
													
														|  | -            Ajax.resourcesName = name;
 |  | 
 | 
											
												
													
														|  | 
 |  | +            Ajax.resourcesName = name
 | 
											
												
													
														|  |            }
 |  |            }
 | 
											
												
													
														|  |            upToSchoolStudent(Ajax).then(() => {
 |  |            upToSchoolStudent(Ajax).then(() => {
 | 
											
												
													
														|  |              if (index == _this.ids.length - 1) {
 |  |              if (index == _this.ids.length - 1) {
 | 
											
												
													
														|  | -              _this.msgSuccess("操作成功");
 |  | 
 | 
											
												
													
														|  | -              _this.dialogVisible = false;
 |  | 
 | 
											
												
													
														|  | 
 |  | +              _this.msgSuccess('操作成功')
 | 
											
												
													
														|  | 
 |  | +              _this.dialogVisible = false
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  | -          });
 |  | 
 | 
											
												
													
														|  | -        });
 |  | 
 | 
											
												
													
														|  | -      } else if (this.title == "上传至家长端") {
 |  | 
 | 
											
												
													
														|  | -        console.log("上传至家长端");
 |  | 
 | 
											
												
													
														|  | -        console.log(selectData);
 |  | 
 | 
											
												
													
														|  | 
 |  | +          })
 | 
											
												
													
														|  | 
 |  | +        })
 | 
											
												
													
														|  | 
 |  | +      } else if (this.title == '上传至家长端') {
 | 
											
												
													
														|  | 
 |  | +        console.log('上传至家长端')
 | 
											
												
													
														|  | 
 |  | +        console.log(selectData)
 | 
											
												
													
														|  |          _this.ids.forEach((item, index) => {
 |  |          _this.ids.forEach((item, index) => {
 | 
											
												
													
														|  |            let Ajax = {
 |  |            let Ajax = {
 | 
											
												
													
														|  |              resourseId: item,
 |  |              resourseId: item,
 | 
											
												
													
														|  |              classId: selectData.checkedClass,
 |  |              classId: selectData.checkedClass,
 | 
											
												
													
														|  |              remark: selectData.remark,
 |  |              remark: selectData.remark,
 | 
											
												
													
														|  | -            studentCodes: selectData.checkedStudent.join(","),
 |  | 
 | 
											
												
													
														|  | -          };
 |  | 
 | 
											
												
													
														|  | 
 |  | +            studentCodes: selectData.checkedStudent.join(',')
 | 
											
												
													
														|  | 
 |  | +          }
 | 
											
												
													
														|  |            if (name) {
 |  |            if (name) {
 | 
											
												
													
														|  | -            Ajax.resourcesName = name;
 |  | 
 | 
											
												
													
														|  | 
 |  | +            Ajax.resourcesName = name
 | 
											
												
													
														|  |            }
 |  |            }
 | 
											
												
													
														|  |            upToSchoolParent(Ajax).then(() => {
 |  |            upToSchoolParent(Ajax).then(() => {
 | 
											
												
													
														|  |              if (index == _this.ids.length - 1) {
 |  |              if (index == _this.ids.length - 1) {
 | 
											
												
													
														|  | -              _this.msgSuccess("操作成功");
 |  | 
 | 
											
												
													
														|  | -              _this.dialogVisible = false;
 |  | 
 | 
											
												
													
														|  | 
 |  | +              _this.msgSuccess('操作成功')
 | 
											
												
													
														|  | 
 |  | +              _this.dialogVisible = false
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  | -          });
 |  | 
 | 
											
												
													
														|  | -        });
 |  | 
 | 
											
												
													
														|  | 
 |  | +          })
 | 
											
												
													
														|  | 
 |  | +        })
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      upToCloudResourse() {
 |  |      upToCloudResourse() {
 | 
											
												
													
														|  | -      this.isZdy = false;
 |  | 
 | 
											
												
													
														|  | -      let _this = this;
 |  | 
 | 
											
												
													
														|  | -      const resourcesIds = this.ids.join(",");
 |  | 
 | 
											
												
													
														|  | -      this.title = "上传至云库";
 |  | 
 | 
											
												
													
														|  | -      this.selectType = "";
 |  | 
 | 
											
												
													
														|  | -      this.dialogVisible = true;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.isZdy = false
 | 
											
												
													
														|  | 
 |  | +      let _this = this
 | 
											
												
													
														|  | 
 |  | +      const resourcesIds = this.ids.join(',')
 | 
											
												
													
														|  | 
 |  | +      this.title = '上传至云库'
 | 
											
												
													
														|  | 
 |  | +      this.selectType = ''
 | 
											
												
													
														|  | 
 |  | +      this.dialogVisible = true
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      upToSchoolResourse() {
 |  |      upToSchoolResourse() {
 | 
											
												
													
														|  | -      this.isZdy = true;
 |  | 
 | 
											
												
													
														|  | -      let _this = this;
 |  | 
 | 
											
												
													
														|  | -      const resourcesIds = this.ids.join(",");
 |  | 
 | 
											
												
													
														|  | -      this.title = "上传至校本资源库";
 |  | 
 | 
											
												
													
														|  | -      this.selectType = "";
 |  | 
 | 
											
												
													
														|  | -      this.dialogVisible = true;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.isZdy = true
 | 
											
												
													
														|  | 
 |  | +      let _this = this
 | 
											
												
													
														|  | 
 |  | +      const resourcesIds = this.ids.join(',')
 | 
											
												
													
														|  | 
 |  | +      this.title = '上传至校本资源库'
 | 
											
												
													
														|  | 
 |  | +      this.selectType = ''
 | 
											
												
													
														|  | 
 |  | +      this.dialogVisible = true
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      upToSchoolClass() {
 |  |      upToSchoolClass() {
 | 
											
												
													
														|  | -      this.isZdy = false;
 |  | 
 | 
											
												
													
														|  | -      let _this = this;
 |  | 
 | 
											
												
													
														|  | -      const resourcesIds = this.ids.join(",");
 |  | 
 | 
											
												
													
														|  | -      this.title = "上传至班牌";
 |  | 
 | 
											
												
													
														|  | -      this.selectType = "class";
 |  | 
 | 
											
												
													
														|  | -      this.dialogVisible = true;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.isZdy = false
 | 
											
												
													
														|  | 
 |  | +      let _this = this
 | 
											
												
													
														|  | 
 |  | +      const resourcesIds = this.ids.join(',')
 | 
											
												
													
														|  | 
 |  | +      this.title = '上传至班牌'
 | 
											
												
													
														|  | 
 |  | +      this.selectType = 'class'
 | 
											
												
													
														|  | 
 |  | +      this.dialogVisible = true
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      upToSchoolStudent() {
 |  |      upToSchoolStudent() {
 | 
											
												
													
														|  | -      this.isZdy = false;
 |  | 
 | 
											
												
													
														|  | -      let _this = this;
 |  | 
 | 
											
												
													
														|  | -      const resourcesIds = this.ids.join(",");
 |  | 
 | 
											
												
													
														|  | -      this.title = "上传至学生端";
 |  | 
 | 
											
												
													
														|  | -      this.selectType = "student";
 |  | 
 | 
											
												
													
														|  | -      this.dialogVisible = true;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.isZdy = false
 | 
											
												
													
														|  | 
 |  | +      let _this = this
 | 
											
												
													
														|  | 
 |  | +      const resourcesIds = this.ids.join(',')
 | 
											
												
													
														|  | 
 |  | +      this.title = '上传至学生端'
 | 
											
												
													
														|  | 
 |  | +      this.selectType = 'student'
 | 
											
												
													
														|  | 
 |  | +      this.dialogVisible = true
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      upToSchoolParent() {
 |  |      upToSchoolParent() {
 | 
											
												
													
														|  | -      this.isZdy = false;
 |  | 
 | 
											
												
													
														|  | -      let _this = this;
 |  | 
 | 
											
												
													
														|  | -      const resourcesIds = this.ids.join(",");
 |  | 
 | 
											
												
													
														|  | -      this.title = "上传至家长端";
 |  | 
 | 
											
												
													
														|  | -      this.selectType = "parent";
 |  | 
 | 
											
												
													
														|  | -      this.dialogVisible = true;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.isZdy = false
 | 
											
												
													
														|  | 
 |  | +      let _this = this
 | 
											
												
													
														|  | 
 |  | +      const resourcesIds = this.ids.join(',')
 | 
											
												
													
														|  | 
 |  | +      this.title = '上传至家长端'
 | 
											
												
													
														|  | 
 |  | +      this.selectType = 'parent'
 | 
											
												
													
														|  | 
 |  | +      this.dialogVisible = true
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      upToQuestion() {
 |  |      upToQuestion() {
 | 
											
												
													
														|  |        // 只能上传视频文件
 |  |        // 只能上传视频文件
 | 
											
												
													
														|  |        for (var idx = 0; idx < this.idsSel.length; idx++) {
 |  |        for (var idx = 0; idx < this.idsSel.length; idx++) {
 | 
											
												
													
														|  |          if (this.idsSel[idx].type != 1) {
 |  |          if (this.idsSel[idx].type != 1) {
 | 
											
												
													
														|  | -          this.$message.warning("只能上传视频文件!");
 |  | 
 | 
											
												
													
														|  | -          return;
 |  | 
 | 
											
												
													
														|  | 
 |  | +          this.$message.warning('只能上传视频文件!')
 | 
											
												
													
														|  | 
 |  | +          return
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  | -      this.quesDialog = true;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.quesDialog = true
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      submitQuestion() {
 |  |      submitQuestion() {
 | 
											
												
													
														|  | -      this.$refs["formQuestion"].validate((valid) => {
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.$refs['formQuestion'].validate((valid) => {
 | 
											
												
													
														|  |          if (valid) {
 |  |          if (valid) {
 | 
											
												
													
														|  | -          this.quesLoading = true;
 |  | 
 | 
											
												
													
														|  | 
 |  | +          this.quesLoading = true
 | 
											
												
													
														|  |            this.ids.forEach((item, index) => {
 |  |            this.ids.forEach((item, index) => {
 | 
											
												
													
														|  |              let paramObj = {
 |  |              let paramObj = {
 | 
											
												
													
														|  |                questionId: this.form.questionId,
 |  |                questionId: this.form.questionId,
 | 
											
												
													
														|  | -              resourseId: item,
 |  | 
 | 
											
												
													
														|  | -            };
 |  | 
 | 
											
												
													
														|  | 
 |  | +              resourseId: item
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  |              updataQuestion(paramObj)
 |  |              updataQuestion(paramObj)
 | 
											
												
													
														|  |                .then((response) => {
 |  |                .then((response) => {
 | 
											
												
													
														|  | -                this.msgSuccess("上传成功");
 |  | 
 | 
											
												
													
														|  | -                this.quesLoading = false;
 |  | 
 | 
											
												
													
														|  | -                this.cancelQuestion();
 |  | 
 | 
											
												
													
														|  | 
 |  | +                this.msgSuccess('上传成功')
 | 
											
												
													
														|  | 
 |  | +                this.quesLoading = false
 | 
											
												
													
														|  | 
 |  | +                this.cancelQuestion()
 | 
											
												
													
														|  |                })
 |  |                })
 | 
											
												
													
														|  |                .catch((err) => {
 |  |                .catch((err) => {
 | 
											
												
													
														|  | -                console.log(err);
 |  | 
 | 
											
												
													
														|  | -                this.quesLoading = false;
 |  | 
 | 
											
												
													
														|  | -              });
 |  | 
 | 
											
												
													
														|  | -          });
 |  | 
 | 
											
												
													
														|  | 
 |  | +                console.log(err)
 | 
											
												
													
														|  | 
 |  | +                this.quesLoading = false
 | 
											
												
													
														|  | 
 |  | +              })
 | 
											
												
													
														|  | 
 |  | +          })
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -      });
 |  | 
 | 
											
												
													
														|  | 
 |  | +      })
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      cancelQuestion() {
 |  |      cancelQuestion() {
 | 
											
												
													
														|  | -      this.questionId = "";
 |  | 
 | 
											
												
													
														|  | -      this.quesDialog = false;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.questionId = ''
 | 
											
												
													
														|  | 
 |  | +      this.quesDialog = false
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      dialogVisibleClose() {
 |  |      dialogVisibleClose() {
 | 
											
												
													
														|  | -      this.dialogVisible = false;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.dialogVisible = false
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      // 取消按钮
 |  |      // 取消按钮
 | 
											
												
													
														|  |      cancel() {
 |  |      cancel() {
 | 
											
												
													
														|  | -      this.open = false;
 |  | 
 | 
											
												
													
														|  | -      this.reset();
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.open = false
 | 
											
												
													
														|  | 
 |  | +      this.reset()
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      // 表单重置
 |  |      // 表单重置
 | 
											
												
													
														|  |      reset() {
 |  |      reset() {
 | 
											
										
											
												
													
														|  | @@ -596,212 +580,212 @@ export default {
 | 
											
												
													
														|  |          delFlag: null,
 |  |          delFlag: null,
 | 
											
												
													
														|  |          createBy: null,
 |  |          createBy: null,
 | 
											
												
													
														|  |          createTime: null,
 |  |          createTime: null,
 | 
											
												
													
														|  | -        remark: null,
 |  | 
 | 
											
												
													
														|  | -      };
 |  | 
 | 
											
												
													
														|  | 
 |  | +        remark: null
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      /** 搜索按钮操作 */
 |  |      /** 搜索按钮操作 */
 | 
											
												
													
														|  |      handleQuery(data, type) {
 |  |      handleQuery(data, type) {
 | 
											
												
													
														|  | -      this.pageNum = 1;
 |  | 
 | 
											
												
													
														|  | -      this.queryParams = Object.assign(this.queryParams, data);
 |  | 
 | 
											
												
													
														|  | -      this.queryParams.wayType = data.wayType || "1";
 |  | 
 | 
											
												
													
														|  | -      this.getList();
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.pageNum = 1
 | 
											
												
													
														|  | 
 |  | +      this.queryParams = Object.assign(this.queryParams, data)
 | 
											
												
													
														|  | 
 |  | +      this.queryParams.wayType = data.wayType || '1'
 | 
											
												
													
														|  | 
 |  | +      this.getList()
 | 
											
												
													
														|  |        // this.getTreeselect()
 |  |        // this.getTreeselect()
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      /** 重置按钮操作 */
 |  |      /** 重置按钮操作 */
 | 
											
												
													
														|  |      resetQuery(data) {
 |  |      resetQuery(data) {
 | 
											
												
													
														|  | -      this.queryParams = data;
 |  | 
 | 
											
												
													
														|  | -      this.queryParams.chapterId = "";
 |  | 
 | 
											
												
													
														|  | -      this.pageNum = 1;
 |  | 
 | 
											
												
													
														|  | -      this.getList();
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.queryParams = data
 | 
											
												
													
														|  | 
 |  | +      this.queryParams.chapterId = ''
 | 
											
												
													
														|  | 
 |  | +      this.pageNum = 1
 | 
											
												
													
														|  | 
 |  | +      this.getList()
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      // 多选框选中数据
 |  |      // 多选框选中数据
 | 
											
												
													
														|  |      handleSelectionChange(selection) {
 |  |      handleSelectionChange(selection) {
 | 
											
												
													
														|  | -      this.idsSel = selection.map((item) => item);
 |  | 
 | 
											
												
													
														|  | -      this.ids = selection.map((item) => item.resourcesId);
 |  | 
 | 
											
												
													
														|  | -      this.resourcesNames = selection.map((item) => item.resourcesName);
 |  | 
 | 
											
												
													
														|  | -      this.single = selection.length !== 1;
 |  | 
 | 
											
												
													
														|  | -      this.multiple = !selection.length;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.idsSel = selection.map((item) => item)
 | 
											
												
													
														|  | 
 |  | +      this.ids = selection.map((item) => item.resourcesId)
 | 
											
												
													
														|  | 
 |  | +      this.resourcesNames = selection.map((item) => item.resourcesName)
 | 
											
												
													
														|  | 
 |  | +      this.single = selection.length !== 1
 | 
											
												
													
														|  | 
 |  | +      this.multiple = !selection.length
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      formChange(data, type) {
 |  |      formChange(data, type) {
 | 
											
												
													
														|  | -      this.queryParams = data;
 |  | 
 | 
											
												
													
														|  | -      this.queryParams.wayType = data.wayType || "1";
 |  | 
 | 
											
												
													
														|  | -      if (this.viewName == "Index" && this.queryParams.wayType == 2) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.queryParams = data
 | 
											
												
													
														|  | 
 |  | +      this.queryParams.wayType = data.wayType || '1'
 | 
											
												
													
														|  | 
 |  | +      if (this.viewName == 'Index' && this.queryParams.wayType == 2) {
 | 
											
												
													
														|  |          this.searchformShow = {
 |  |          this.searchformShow = {
 | 
											
												
													
														|  | -          wayType: "1",
 |  | 
 | 
											
												
													
														|  | -          subjectid: "",
 |  | 
 | 
											
												
													
														|  | -        };
 |  | 
 | 
											
												
													
														|  | 
 |  | +          wayType: '1',
 | 
											
												
													
														|  | 
 |  | +          subjectid: ''
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |        } else {
 |  |        } else {
 | 
											
												
													
														|  |          this.searchformShow = {
 |  |          this.searchformShow = {
 | 
											
												
													
														|  | -          wayType: "1",
 |  | 
 | 
											
												
													
														|  | -          subjectid: "",
 |  | 
 | 
											
												
													
														|  | -          edition: "",
 |  | 
 | 
											
												
													
														|  | -          slipid: "",
 |  | 
 | 
											
												
													
														|  | -          coursewareType: "",
 |  | 
 | 
											
												
													
														|  | -          resourceType: "",
 |  | 
 | 
											
												
													
														|  | -        };
 |  | 
 | 
											
												
													
														|  | 
 |  | +          wayType: '1',
 | 
											
												
													
														|  | 
 |  | +          subjectid: '',
 | 
											
												
													
														|  | 
 |  | +          edition: '',
 | 
											
												
													
														|  | 
 |  | +          slipid: '',
 | 
											
												
													
														|  | 
 |  | +          coursewareType: '',
 | 
											
												
													
														|  | 
 |  | +          resourceType: ''
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  | -      if (type != "coursewareType") this.getTreeselect(type);
 |  | 
 | 
											
												
													
														|  | 
 |  | +      if (type != 'coursewareType') this.getTreeselect(type)
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      /** 新增按钮操作 */
 |  |      /** 新增按钮操作 */
 | 
											
												
													
														|  |      handleAdd() {
 |  |      handleAdd() {
 | 
											
												
													
														|  | -      this.reset();
 |  | 
 | 
											
												
													
														|  | -      this.open = true;
 |  | 
 | 
											
												
													
														|  | -      this.title = "添加个人资源库";
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.reset()
 | 
											
												
													
														|  | 
 |  | +      this.open = true
 | 
											
												
													
														|  | 
 |  | +      this.title = '添加个人资源库'
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      /** 修改按钮操作 */
 |  |      /** 修改按钮操作 */
 | 
											
												
													
														|  |      handleUpdate(row) {
 |  |      handleUpdate(row) {
 | 
											
												
													
														|  | -      this.reset();
 |  | 
 | 
											
												
													
														|  | -      const resourcesId = row.resourcesId || this.ids;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.reset()
 | 
											
												
													
														|  | 
 |  | +      const resourcesId = row.resourcesId || this.ids
 | 
											
												
													
														|  |        getInfo(resourcesId).then((response) => {
 |  |        getInfo(resourcesId).then((response) => {
 | 
											
												
													
														|  | -        this.form = response.data;
 |  | 
 | 
											
												
													
														|  | -        this.open = true;
 |  | 
 | 
											
												
													
														|  | -        this.title = "修改个人资源库";
 |  | 
 | 
											
												
													
														|  | -      });
 |  | 
 | 
											
												
													
														|  | 
 |  | +        this.form = response.data
 | 
											
												
													
														|  | 
 |  | +        this.open = true
 | 
											
												
													
														|  | 
 |  | +        this.title = '修改个人资源库'
 | 
											
												
													
														|  | 
 |  | +      })
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      /** 提交按钮 */
 |  |      /** 提交按钮 */
 | 
											
												
													
														|  |      submitForm() {
 |  |      submitForm() {
 | 
											
												
													
														|  | -      this.$refs["form"].validate((valid) => {
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.$refs['form'].validate((valid) => {
 | 
											
												
													
														|  |          if (valid) {
 |  |          if (valid) {
 | 
											
												
													
														|  |            if (this.form.resourcesId != null) {
 |  |            if (this.form.resourcesId != null) {
 | 
											
												
													
														|  |              modifyPersonResourceInfo(this.form).then((response) => {
 |  |              modifyPersonResourceInfo(this.form).then((response) => {
 | 
											
												
													
														|  | -              this.msgSuccess("修改成功");
 |  | 
 | 
											
												
													
														|  | -              this.open = false;
 |  | 
 | 
											
												
													
														|  | -              this.getList();
 |  | 
 | 
											
												
													
														|  | -            });
 |  | 
 | 
											
												
													
														|  | 
 |  | +              this.msgSuccess('修改成功')
 | 
											
												
													
														|  | 
 |  | +              this.open = false
 | 
											
												
													
														|  | 
 |  | +              this.getList()
 | 
											
												
													
														|  | 
 |  | +            })
 | 
											
												
													
														|  |            } else {
 |  |            } else {
 | 
											
												
													
														|  |              add(this.form).then((response) => {
 |  |              add(this.form).then((response) => {
 | 
											
												
													
														|  | -              this.msgSuccess("新增成功");
 |  | 
 | 
											
												
													
														|  | -              this.open = false;
 |  | 
 | 
											
												
													
														|  | -              this.getList();
 |  | 
 | 
											
												
													
														|  | -            });
 |  | 
 | 
											
												
													
														|  | 
 |  | +              this.msgSuccess('新增成功')
 | 
											
												
													
														|  | 
 |  | +              this.open = false
 | 
											
												
													
														|  | 
 |  | +              this.getList()
 | 
											
												
													
														|  | 
 |  | +            })
 | 
											
												
													
														|  |            }
 |  |            }
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -      });
 |  | 
 | 
											
												
													
														|  | 
 |  | +      })
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      /** 删除按钮操作 */
 |  |      /** 删除按钮操作 */
 | 
											
												
													
														|  |      handleDelete(row) {
 |  |      handleDelete(row) {
 | 
											
												
													
														|  | -      const resourcesIds = row.resourcesId || this.ids;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      const resourcesIds = row.resourcesId || this.ids
 | 
											
												
													
														|  |        this.$confirm(
 |  |        this.$confirm(
 | 
											
												
													
														|  |          '是否确认删除个人资源库名称为"' + row.resourcesName + '"的数据项?',
 |  |          '是否确认删除个人资源库名称为"' + row.resourcesName + '"的数据项?',
 | 
											
												
													
														|  | -        "警告",
 |  | 
 | 
											
												
													
														|  | 
 |  | +        '警告',
 | 
											
												
													
														|  |          {
 |  |          {
 | 
											
												
													
														|  | -          confirmButtonText: "确定",
 |  | 
 | 
											
												
													
														|  | -          cancelButtonText: "取消",
 |  | 
 | 
											
												
													
														|  | -          type: "warning",
 |  | 
 | 
											
												
													
														|  | 
 |  | +          confirmButtonText: '确定',
 | 
											
												
													
														|  | 
 |  | +          cancelButtonText: '取消',
 | 
											
												
													
														|  | 
 |  | +          type: 'warning'
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |        )
 |  |        )
 | 
											
												
													
														|  | -        .then(function () {
 |  | 
 | 
											
												
													
														|  | -          return remove(row.resourcesId);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        .then(function() {
 | 
											
												
													
														|  | 
 |  | +          return remove(row.resourcesId)
 | 
											
												
													
														|  |          })
 |  |          })
 | 
											
												
													
														|  |          .then(() => {
 |  |          .then(() => {
 | 
											
												
													
														|  | -          this.getList();
 |  | 
 | 
											
												
													
														|  | -          this.msgSuccess("删除成功");
 |  | 
 | 
											
												
													
														|  | -        });
 |  | 
 | 
											
												
													
														|  | 
 |  | +          this.getList()
 | 
											
												
													
														|  | 
 |  | +          this.msgSuccess('删除成功')
 | 
											
												
													
														|  | 
 |  | +        })
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      /** 导出按钮操作 */
 |  |      /** 导出按钮操作 */
 | 
											
												
													
														|  |      handleExport() {
 |  |      handleExport() {
 | 
											
												
													
														|  | -      const queryParams = this.queryParams;
 |  | 
 | 
											
												
													
														|  | -      this.$confirm("是否确认导出所有个人资源库数据项?", "警告", {
 |  | 
 | 
											
												
													
														|  | -        confirmButtonText: "确定",
 |  | 
 | 
											
												
													
														|  | -        cancelButtonText: "取消",
 |  | 
 | 
											
												
													
														|  | -        type: "warning",
 |  | 
 | 
											
												
													
														|  | 
 |  | +      const queryParams = this.queryParams
 | 
											
												
													
														|  | 
 |  | +      this.$confirm('是否确认导出所有个人资源库数据项?', '警告', {
 | 
											
												
													
														|  | 
 |  | +        confirmButtonText: '确定',
 | 
											
												
													
														|  | 
 |  | +        cancelButtonText: '取消',
 | 
											
												
													
														|  | 
 |  | +        type: 'warning'
 | 
											
												
													
														|  |        })
 |  |        })
 | 
											
												
													
														|  |          .then(() => {
 |  |          .then(() => {
 | 
											
												
													
														|  | -          this.exportLoading = true;
 |  | 
 | 
											
												
													
														|  | -          return exportList(queryParams);
 |  | 
 | 
											
												
													
														|  | 
 |  | +          this.exportLoading = true
 | 
											
												
													
														|  | 
 |  | +          return exportList(queryParams)
 | 
											
												
													
														|  |          })
 |  |          })
 | 
											
												
													
														|  |          .then((response) => {
 |  |          .then((response) => {
 | 
											
												
													
														|  | -          this.download(response.msg);
 |  | 
 | 
											
												
													
														|  | -          this.exportLoading = false;
 |  | 
 | 
											
												
													
														|  | -        });
 |  | 
 | 
											
												
													
														|  | 
 |  | +          this.download(response.msg)
 | 
											
												
													
														|  | 
 |  | +          this.exportLoading = false
 | 
											
												
													
														|  | 
 |  | +        })
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      /** 查询章节下拉树结构 */
 |  |      /** 查询章节下拉树结构 */
 | 
											
												
													
														|  |      getTreeselect(type) {
 |  |      getTreeselect(type) {
 | 
											
												
													
														|  |        if (this.queryParams.wayType == 1) {
 |  |        if (this.queryParams.wayType == 1) {
 | 
											
												
													
														|  |          if (
 |  |          if (
 | 
											
												
													
														|  | -          (type != "slipid" && type != "wayType") ||
 |  | 
 | 
											
												
													
														|  | -          this.viewName == "Custom"
 |  | 
 | 
											
												
													
														|  | 
 |  | +          (type != 'slipid' && type != 'wayType') ||
 | 
											
												
													
														|  | 
 |  | +          this.viewName == 'Custom'
 | 
											
												
													
														|  |          ) {
 |  |          ) {
 | 
											
												
													
														|  | -          this.deptOptions = [];
 |  | 
 | 
											
												
													
														|  | -          this.KnowledgeOptions = [];
 |  | 
 | 
											
												
													
														|  | -          this.queryParams.chapterId = "";
 |  | 
 | 
											
												
													
														|  | -          return;
 |  | 
 | 
											
												
													
														|  | 
 |  | +          this.deptOptions = []
 | 
											
												
													
														|  | 
 |  | +          this.KnowledgeOptions = []
 | 
											
												
													
														|  | 
 |  | +          this.queryParams.chapterId = ''
 | 
											
												
													
														|  | 
 |  | +          return
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          let Ajax = {
 |  |          let Ajax = {
 | 
											
												
													
														|  |            editionId: this.queryParams.edition, //版本
 |  |            editionId: this.queryParams.edition, //版本
 | 
											
												
													
														|  |            subjectId: this.queryParams.subjectid, //科目
 |  |            subjectId: this.queryParams.subjectid, //科目
 | 
											
												
													
														|  |            pharseId: this.queryParams.pharseId, //pharseId
 |  |            pharseId: this.queryParams.pharseId, //pharseId
 | 
											
												
													
														|  | -          gradeId: this.queryParams.slipid, //学册
 |  | 
 | 
											
												
													
														|  | 
 |  | +          gradeId: this.queryParams.slipid //学册
 | 
											
												
													
														|  |            // gradeid:301
 |  |            // gradeid:301
 | 
											
												
													
														|  | -        };
 |  | 
 | 
											
												
													
														|  | -        this.deptOptions = [];
 |  | 
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        this.deptOptions = []
 | 
											
												
													
														|  |          if (!Ajax.gradeId) return
 |  |          if (!Ajax.gradeId) return
 | 
											
												
													
														|  | -        this.treeLoading = true;
 |  | 
 | 
											
												
													
														|  | 
 |  | +        this.treeLoading = true
 | 
											
												
													
														|  |          treeList(Ajax)
 |  |          treeList(Ajax)
 | 
											
												
													
														|  |            .then((response) => {
 |  |            .then((response) => {
 | 
											
												
													
														|  | -            this.deptOptions = response.data;
 |  | 
 | 
											
												
													
														|  | -            this.treeLoading = false;
 |  | 
 | 
											
												
													
														|  | 
 |  | +            this.deptOptions = response.data
 | 
											
												
													
														|  | 
 |  | +            this.treeLoading = false
 | 
											
												
													
														|  |            })
 |  |            })
 | 
											
												
													
														|  |            .catch((response) => {
 |  |            .catch((response) => {
 | 
											
												
													
														|  | -            this.treeLoading = false;
 |  | 
 | 
											
												
													
														|  | -          });
 |  | 
 | 
											
												
													
														|  | 
 |  | +            this.treeLoading = false
 | 
											
												
													
														|  | 
 |  | +          })
 | 
											
												
													
														|  |        } else {
 |  |        } else {
 | 
											
												
													
														|  |          if (
 |  |          if (
 | 
											
												
													
														|  | -          (type != "subjectid" && type != "wayType") ||
 |  | 
 | 
											
												
													
														|  | -          this.viewName == "Custom"
 |  | 
 | 
											
												
													
														|  | 
 |  | +          (type != 'subjectid' && type != 'wayType') ||
 | 
											
												
													
														|  | 
 |  | +          this.viewName == 'Custom'
 | 
											
												
													
														|  |          ) {
 |  |          ) {
 | 
											
												
													
														|  | -          this.deptOptions = [];
 |  | 
 | 
											
												
													
														|  | -          this.KnowledgeOptions = [];
 |  | 
 | 
											
												
													
														|  | -          this.queryParams.chapterId = "";
 |  | 
 | 
											
												
													
														|  | -          return;
 |  | 
 | 
											
												
													
														|  | 
 |  | +          this.deptOptions = []
 | 
											
												
													
														|  | 
 |  | +          this.KnowledgeOptions = []
 | 
											
												
													
														|  | 
 |  | +          this.queryParams.chapterId = ''
 | 
											
												
													
														|  | 
 |  | +          return
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          let Ajax = {
 |  |          let Ajax = {
 | 
											
												
													
														|  |            subjectId: this.queryParams.subjectid,
 |  |            subjectId: this.queryParams.subjectid,
 | 
											
												
													
														|  | -          pharseId: this.queryParams.pharseId,
 |  | 
 | 
											
												
													
														|  | -        };
 |  | 
 | 
											
												
													
														|  | -        this.KnowledgeOptions = [];
 |  | 
 | 
											
												
													
														|  | 
 |  | +          pharseId: this.queryParams.pharseId
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        this.KnowledgeOptions = []
 | 
											
												
													
														|  |          if (!Ajax.subjectId) return
 |  |          if (!Ajax.subjectId) return
 | 
											
												
													
														|  | -        this.treeLoading = true;
 |  | 
 | 
											
												
													
														|  | 
 |  | +        this.treeLoading = true
 | 
											
												
													
														|  |          knowledgeTree(Ajax)
 |  |          knowledgeTree(Ajax)
 | 
											
												
													
														|  |            .then((response) => {
 |  |            .then((response) => {
 | 
											
												
													
														|  | -            let list = this.filterData(response.data, 0);
 |  | 
 | 
											
												
													
														|  | -            this.KnowledgeOptions = list;
 |  | 
 | 
											
												
													
														|  | -            this.treeLoading = false;
 |  | 
 | 
											
												
													
														|  | 
 |  | +            let list = this.filterData(response.data, 0)
 | 
											
												
													
														|  | 
 |  | +            this.KnowledgeOptions = list
 | 
											
												
													
														|  | 
 |  | +            this.treeLoading = false
 | 
											
												
													
														|  |            })
 |  |            })
 | 
											
												
													
														|  |            .catch((response) => {
 |  |            .catch((response) => {
 | 
											
												
													
														|  | -            this.treeLoading = false;
 |  | 
 | 
											
												
													
														|  | -          });
 |  | 
 | 
											
												
													
														|  | 
 |  | +            this.treeLoading = false
 | 
											
												
													
														|  | 
 |  | +          })
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      filterData(data, index) {
 |  |      filterData(data, index) {
 | 
											
												
													
														|  | -      let children = [];
 |  | 
 | 
											
												
													
														|  | 
 |  | +      let children = []
 | 
											
												
													
														|  |        data.forEach((item) => {
 |  |        data.forEach((item) => {
 | 
											
												
													
														|  | -        item.tier = index;
 |  | 
 | 
											
												
													
														|  | 
 |  | +        item.tier = index
 | 
											
												
													
														|  |          if (item.children && index < 2) {
 |  |          if (item.children && index < 2) {
 | 
											
												
													
														|  | -          item.children = this.filterData(item.children, index + 1);
 |  | 
 | 
											
												
													
														|  | 
 |  | +          item.children = this.filterData(item.children, index + 1)
 | 
											
												
													
														|  |          } else {
 |  |          } else {
 | 
											
												
													
														|  | -          item.children = null;
 |  | 
 | 
											
												
													
														|  | 
 |  | +          item.children = null
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -        children.push(item);
 |  | 
 | 
											
												
													
														|  | -      });
 |  | 
 | 
											
												
													
														|  | -      return children;
 |  | 
 | 
											
												
													
														|  | 
 |  | +        children.push(item)
 | 
											
												
													
														|  | 
 |  | +      })
 | 
											
												
													
														|  | 
 |  | +      return children
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      // 筛选节点
 |  |      // 筛选节点
 | 
											
												
													
														|  |      filterNode(value, data) {
 |  |      filterNode(value, data) {
 | 
											
												
													
														|  | -      if (!value) return true;
 |  | 
 | 
											
												
													
														|  | -      return data.name.indexOf(value) !== -1;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      if (!value) return true
 | 
											
												
													
														|  | 
 |  | +      return data.name.indexOf(value) !== -1
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      // 节点单击事件
 |  |      // 节点单击事件
 | 
											
												
													
														|  |      handleNodeClick(data) {
 |  |      handleNodeClick(data) {
 | 
											
												
													
														|  |        if (!data.children?.length) {
 |  |        if (!data.children?.length) {
 | 
											
												
													
														|  | -        this.pageNum = 1;
 |  | 
 | 
											
												
													
														|  | -        this.queryParams.chapterId = data.id;
 |  | 
 | 
											
												
													
														|  | -        this.getList();
 |  | 
 | 
											
												
													
														|  | 
 |  | +        this.pageNum = 1
 | 
											
												
													
														|  | 
 |  | +        this.queryParams.chapterId = data.id
 | 
											
												
													
														|  | 
 |  | +        this.getList()
 | 
											
												
													
														|  |        } else {
 |  |        } else {
 | 
											
												
													
														|  | -        this.queryParams.chapterId = "";
 |  | 
 | 
											
												
													
														|  | 
 |  | +        this.queryParams.chapterId = ''
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  | -    },
 |  | 
 | 
											
												
													
														|  | -  },
 |  | 
 | 
											
												
													
														|  | -};
 |  | 
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +  }
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  |  </script>
 |  |  </script>
 |