提交 cecec875 authored 作者: 翟畅's avatar 翟畅

zc视频、图片上传人、所属图书

上级 792c1b9f
......@@ -65,7 +65,7 @@
<el-input v-model="bindListQuery.name" placeholder="请输入资源名称" class="selWidth"/>
</el-form-item>
<el-form-item>
<el-select v-model="bindListQuery.resourceType" class="selWidth">
<el-select v-model="bindListQuery.resourceType" class="selWidth" @change="changeType">
<el-option v-for="(item,index) in bindResourceList1" :key="'type'+index" :label="item.text" :value="item.value"></el-option>
</el-select>
</el-form-item>
......@@ -122,7 +122,7 @@
<el-input v-model="bindManageQuery.resourceName" placeholder="请输入资源名称" class="selWidth"/>
</el-form-item>
<el-form-item>
<el-select v-model="bindManageQuery.resourceType" class="selWidth">
<el-select v-model="bindManageQuery.resourceType" class="selWidth" @change="changeType2">
<el-option v-for="(item,index) in bindResourceList" :key="'type'+index" :label="item.text" :value="item.value"></el-option>
</el-select>
</el-form-item>
......@@ -136,7 +136,7 @@
<el-table-column prop="name" label="资源名称" min-width="15%" align="center"></el-table-column>
<el-table-column prop="sort" label="排序号" min-width="10%" align="center"></el-table-column>
<el-table-column prop="createdBy" label="上传人" min-width="10%" show-overflow-tooltip></el-table-column>
<el-table-column prop="phyName" label="所属图书" min-width="10%" show-overflow-tooltip></el-table-column>
<!-- <el-table-column prop="phyName" label="所属图书" min-width="10%" show-overflow-tooltip></el-table-column> -->
<el-table-column label="资源类型" min-width="10%" align="center">
<template slot-scope="scope">
<span v-if="scope.row.resourceType == 2">电子书</span>
......@@ -261,6 +261,7 @@ import { setTimeout } from 'timers';
name:null,
resourceType:null,
status:'0',
createdBy:null,
},
dialogBindManageVisible:false,
bindManageQuery:{
......@@ -269,6 +270,7 @@ import { setTimeout } from 'timers';
groupId:null,
resourceName:null,
resourceType:null,
createdBy:null,
},
boundList:[],//已绑定资源
boundTotal:0,
......@@ -421,6 +423,9 @@ import { setTimeout } from 'timers';
});
}
},
changeType(val){
this.bindListQuery.createdBy = null
},
//查看数字资源列表
getFilterList(num){
this.filterLoading = true;
......@@ -476,6 +481,9 @@ import { setTimeout } from 'timers';
this.bindLoading = false
}
},
changeType2(val){
this.bindManageQuery.createdBy = ''
},
getBindManageList(num){
this.manageLoading = true;
this.bindManageQuery.pageNum = num ? num : this.bindManageQuery.pageNum
......
......@@ -94,8 +94,8 @@
<span v-else style="color:#999999"><span class="down_status"></span>未锁定</span>
</template>
</el-table-column>
<el-table-column prop="createdBy" label="上传人" min-width="10%" align="center"></el-table-column>
<el-table-column prop="phyName" label="所属图书" min-width="10%" align="center"></el-table-column>
<el-table-column prop="createdBy" label="上传人" min-width="10%" align="center" show-overflow-tooltip></el-table-column>
<el-table-column prop="phyName" label="所属图书" min-width="10%" align="center" show-overflow-tooltip></el-table-column>
<el-table-column align="center" prop="createdTime" label="关联图书(资源码)" min-width="10%" show-overflow-tooltip>
<template slot-scope="scope">
<span v-if="scope.row.nameList && scope.row.nameList.length > 0">{{scope.row.nameList.join(',')}}</span>
......
......@@ -3,7 +3,7 @@
<el-dialog :title="dia_title" class="fixHeight" :visible.sync="openDialog" width="70%" :before-close="cancel" @close="emptyResource" :close-on-click-modal="false">
<el-form inline :model="listQuery">
<el-form-item style="width:120px">
<el-select v-model="listQuery.resourceType" placeholder="请选择资源" style="width:100%" @change="getList(1)">
<el-select v-model="listQuery.resourceType" placeholder="请选择资源" style="width:100%" @change="changeType">
<el-option v-for="(item,index) in resourceList" :key="index" :label="item.name" :value="item.id"></el-option>
</el-select>
</el-form-item>
......@@ -137,6 +137,10 @@ export default {
type:2
}
},
changeType(val){
this.listQuery.createdBy = ''
this.getList(1)
},
getList(num) {
this.listQuery.type = this.type
this.listQuery.pageNum = num ? num : this.listQuery.pageNum
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论