|
@@ -8,6 +8,9 @@
|
|
<div class="select-book-container-table">
|
|
<div class="select-book-container-table">
|
|
<div class="search">
|
|
<div class="search">
|
|
<div>
|
|
<div>
|
|
|
|
+ <el-select v-model="sys_version_type" class="version-type" placeholder="请选择" @change="queryBookList">
|
|
|
|
+ <el-option v-for="{ label, value } in versionList" :key="value" :label="label" :value="value" />
|
|
|
|
+ </el-select>
|
|
<el-input
|
|
<el-input
|
|
v-model="search"
|
|
v-model="search"
|
|
prefix-icon="el-icon-search"
|
|
prefix-icon="el-icon-search"
|
|
@@ -92,6 +95,21 @@ const $t = inject('$t');
|
|
let id = route.params.id;
|
|
let id = route.params.id;
|
|
let is_template = 'is_template' in route.query ? route.query.is_template === 'true' : false;
|
|
let is_template = 'is_template' in route.query ? route.query.is_template === 'true' : false;
|
|
let search = ref('');
|
|
let search = ref('');
|
|
|
|
+let sys_version_type = ref(-1);
|
|
|
|
+const versionList = [
|
|
|
|
+ {
|
|
|
|
+ label: '全部',
|
|
|
|
+ value: -1
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '1.0',
|
|
|
|
+ value: 0
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '2.0',
|
|
|
|
+ value: 1
|
|
|
|
+ }
|
|
|
|
+];
|
|
const { page_capacity, cur_page, total_count, list, changePage } = useList(14);
|
|
const { page_capacity, cur_page, total_count, list, changePage } = useList(14);
|
|
|
|
|
|
function queryBookList() {
|
|
function queryBookList() {
|
|
@@ -99,7 +117,8 @@ function queryBookList() {
|
|
name: search.value,
|
|
name: search.value,
|
|
course_id: id,
|
|
course_id: id,
|
|
page_capacity: page_capacity.value,
|
|
page_capacity: page_capacity.value,
|
|
- cur_page: cur_page.value
|
|
|
|
|
|
+ cur_page: cur_page.value,
|
|
|
|
+ sys_version_type: sys_version_type.value
|
|
}).then(({ book_list, cur_page: page, total_count: total }) => {
|
|
}).then(({ book_list, cur_page: page, total_count: total }) => {
|
|
cur_page.value = page;
|
|
cur_page.value = page;
|
|
total_count.value = total;
|
|
total_count.value = total;
|
|
@@ -173,8 +192,13 @@ function nextStep() {
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
margin-bottom: 24px;
|
|
margin-bottom: 24px;
|
|
|
|
|
|
|
|
+ .version-type {
|
|
|
|
+ width: 120px;
|
|
|
|
+ }
|
|
|
|
+
|
|
.keyword {
|
|
.keyword {
|
|
width: 300px;
|
|
width: 300px;
|
|
|
|
+ margin-left: 16px;
|
|
}
|
|
}
|
|
|
|
|
|
.buy {
|
|
.buy {
|