|
@@ -41,7 +41,7 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div @click="clear" class="clear">重置</div>
|
|
|
+
|
|
|
</div>
|
|
|
<div class="aName">
|
|
|
<div class="search" @click="search">
|
|
@@ -52,6 +52,7 @@
|
|
|
auto-complete="off"
|
|
|
placeholder="请输入案例名称"
|
|
|
></el-input>
|
|
|
+ <div @click="clear" class="clear">重置</div>
|
|
|
<!-- @input="search" -->
|
|
|
</div>
|
|
|
</div>
|
|
@@ -829,6 +830,29 @@ export default {
|
|
|
const start = (this.page - 1) * 10;
|
|
|
const end = start + 10;
|
|
|
let result = p.slice(start, end);
|
|
|
+
|
|
|
+ console.log("==============================")
|
|
|
+ console.log(result)
|
|
|
+ console.log("++++++++++++++++++++++++++++++")
|
|
|
+
|
|
|
+ result.forEach(i=>{
|
|
|
+ let typeName = i.typename;
|
|
|
+ if(typeName=="活动类" || typeName =="学科类")return;
|
|
|
+ let replaceValue = "";
|
|
|
+ // console.log(typeName.indexOf("活动类"))
|
|
|
+ // console.log(typeName.indexOf("理科类"))
|
|
|
+ if(typeName.indexOf("活动类")!=-1){
|
|
|
+ replaceValue = typeName.replace("活动类","")
|
|
|
+ console.log(replaceValue.split('/'))
|
|
|
+ typeName = `活动类:${replaceValue.split('/').filter(f=>f!=='').join('/')}`
|
|
|
+ }else if(typeName.indexOf("学科类")!=-1){
|
|
|
+ replaceValue = typeName.replace("学科类","")
|
|
|
+ console.log(replaceValue.split('/'))
|
|
|
+ typeName = `学科类:${replaceValue.split('/').filter(f=>f!=='').join('/')}`
|
|
|
+ }
|
|
|
+ i.typename = typeName;
|
|
|
+ })
|
|
|
+
|
|
|
this.tableData = result;
|
|
|
this.$forceUpdate();
|
|
|
})
|
|
@@ -1712,13 +1736,15 @@ export default {
|
|
|
|
|
|
.aName {
|
|
|
position: relative;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
}
|
|
|
|
|
|
.search {
|
|
|
width: 25px;
|
|
|
position: absolute;
|
|
|
top: 7px;
|
|
|
- right: 10px;
|
|
|
+ right: 80px;
|
|
|
z-index: 9;
|
|
|
cursor: pointer;
|
|
|
}
|