|
@@ -5,16 +5,14 @@
|
|
|
<Nav />
|
|
|
<div class="top">
|
|
|
<div class="seek" @keydown="downSeekdata">
|
|
|
- <input
|
|
|
+ <el-input
|
|
|
v-model="keyWord"
|
|
|
@change="keyWord = keyWord.trim()"
|
|
|
:placeholder="$t('Key46')"
|
|
|
+ maxlength="50"
|
|
|
+ show-word-limit
|
|
|
/>
|
|
|
- <img
|
|
|
- @click="seekData"
|
|
|
- src="../../assets/teacherdev/Group2149.png"
|
|
|
- alt=""
|
|
|
- />
|
|
|
+ <img @click="seekData" src="../../assets/teacherdev/Group2149.png" alt="" />
|
|
|
</div>
|
|
|
<div class="btn">
|
|
|
<!-- <el-button type="primary">批量上传</el-button> -->
|
|
@@ -38,11 +36,7 @@
|
|
|
<div class="table" v-loading="loading">
|
|
|
<el-table :data="tableData.data" stripe style="width: 100%">
|
|
|
<!-- 文档名称 -->
|
|
|
- <el-table-column
|
|
|
- :label="$t('Key548')"
|
|
|
- prop="name"
|
|
|
- width="300"
|
|
|
- ></el-table-column>
|
|
|
+ <el-table-column :label="$t('Key548')" prop="name" width="300"></el-table-column>
|
|
|
<!-- label="文档类型" -->
|
|
|
<el-table-column
|
|
|
:label="$t('Key549')"
|
|
@@ -73,11 +67,9 @@
|
|
|
<el-table-column :label="$t('Key166')" prop>
|
|
|
<template slot-scope="scope">
|
|
|
<!-- 编辑 -->
|
|
|
- <el-button
|
|
|
- @click="handleEdit(scope.row, scope.$index)"
|
|
|
- type="text"
|
|
|
- >{{ $t("Key123") }}</el-button
|
|
|
- >
|
|
|
+ <el-button @click="handleEdit(scope.row, scope.$index)" type="text">{{
|
|
|
+ $t("Key123")
|
|
|
+ }}</el-button>
|
|
|
<!-- 删除 -->
|
|
|
<el-button @click="handleDel(scope.row)" type="text">{{
|
|
|
$t("Key172")
|
|
@@ -87,12 +79,9 @@
|
|
|
$t("Key232")
|
|
|
}}</el-button>
|
|
|
<!-- 上架 -->
|
|
|
- <el-button
|
|
|
- v-if="scope.row.status != 4"
|
|
|
- @click="up(scope.row)"
|
|
|
- type="text"
|
|
|
- >{{ $t("Key125") }}</el-button
|
|
|
- >
|
|
|
+ <el-button v-if="scope.row.status != 4" @click="up(scope.row)" type="text">{{
|
|
|
+ $t("Key125")
|
|
|
+ }}</el-button>
|
|
|
<!-- 下架 -->
|
|
|
<el-button
|
|
|
v-if="scope.row.status != 3"
|
|
@@ -152,9 +141,7 @@ export default {
|
|
|
methods: {
|
|
|
// 生成优惠码
|
|
|
handleDiscount(row) {
|
|
|
- this.$router.push(
|
|
|
- "/discountCodeList?bookId=" + row.id + "&goods_type=" + 401
|
|
|
- );
|
|
|
+ this.$router.push("/discountCodeList?bookId=" + row.id + "&goods_type=" + 401);
|
|
|
},
|
|
|
// 批量上传
|
|
|
changeFillId(file, fileList) {
|
|
@@ -390,7 +377,6 @@ export default {
|
|
|
"Key588",
|
|
|
"Key590",
|
|
|
"Key501",
|
|
|
-
|
|
|
],
|
|
|
});
|
|
|
this.isData = true;
|
|
@@ -479,4 +465,13 @@ export default {
|
|
|
margin-top: 50px;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|
|
|
+<style lang="scss">
|
|
|
+.seek {
|
|
|
+ .el-input__inner {
|
|
|
+ border: none;
|
|
|
+ height: 38px;
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|