From 0edf94722a0dcc338567fec7df76b2e0acd39b92 Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期一, 27 五月 2024 15:30:48 +0800 Subject: [PATCH] 调整 --- src/pages/knowledgeBase/knowledgeBase.vue | 70 +++++++++-------------------------- 1 files changed, 18 insertions(+), 52 deletions(-) diff --git a/src/pages/knowledgeBase/knowledgeBase.vue b/src/pages/knowledgeBase/knowledgeBase.vue index e7c65c2..74eb53c 100644 --- a/src/pages/knowledgeBase/knowledgeBase.vue +++ b/src/pages/knowledgeBase/knowledgeBase.vue @@ -7,7 +7,7 @@ <!-- <luanqing-search class="search_bar" @onSearch="onSearch"></luanqing-search> --> <advancedSearch @onSearch="onSearch" - placehold="杈撳叆濮撳悕/鍒悕/鏃舵湡/浼犱富鑱屼笟鎼滅储" + placehold="杈撳叆濮撳悕/鍒悕/鏈濅唬/浼犱富鑱屼笟鎼滅储" :isAvancedTrue="false" :keyword="keywords" /> @@ -15,7 +15,7 @@ class="advancedSea" @click="isAvancedClick" style="color: #244a7b; cursor: pointer" - >楂樼骇鎼滅储 锕�</view + >楂樼骇鎼滅储 {{isAdvancedSearch ? "鈭�" : "鈭�"}}</view > </view> <!-- 鐑棬鎼滅储 --> @@ -84,17 +84,17 @@ style="padding: 0 20rpx; line-height: 0.3rem; height: 0.3rem" @click="handInstitCLick(item, 'a')" > - <view class="">{{ item.tagName }}</view> - <view class="">{{ item.count }}</view> + <view >{{ item.tagName }}</view> + <view >{{ item.count }}</view> </li> </ul> <view v-if="profession.list.length - 1 > 3" class="flex flex-center"> <view class="toggleButton" - style="color: #c1d3ea" + style="color: #244a7b" @click="shrinkClick('a', '鑱屼笟')" > - {{ activeBox !== "a" ? "鏇村 锕�" : "鏀惰捣 锔�" }} + {{ activeBox !== "a" ? "鏇村 鈭�" : "鏀惰捣 鈭�" }} </view> </view> </view> @@ -122,17 +122,17 @@ style="padding: 0 20rpx" @click="handInstitCLick(item, 'b')" > - <view class="">{{ item.dynastyName }}</view> - <view class="">{{ item.count }}</view> + <view >{{ item.dynastyName }}</view> + <view >{{ item.count }}</view> </li> </ul> <view v-if="dynasty.list.length - 1 > 3" class="flex flex-center"> <view class="toggleButton" - style="color: #c1d3ea" + style="color: #244a7b" @click="shrinkClick('b', '鏃舵湡')" > - {{ activeBox !== "b" ? "鏇村 锕�" : "鏀惰捣 锔�" }} + {{ activeBox !== "b" ? "鏇村 鈭�" : "鏀惰捣 鈭�" }} </view> </view> </view> @@ -160,12 +160,12 @@ style="padding: 0 20rpx; color: #244a7b" @click="handInstitCLick(item, 'c')" > - <view class="">{{ index + 1 + ". " + item.source }}</view> + <view >{{ index + 1 + ". " + item.source }}</view> </li> </ul> <!-- <view class="flex flex-center"> <view class="toggleButton" style="font-size: 25rpx;color: #C1D3EA;" @click="shrinkClick('b')"> - {{ activeBox !== 'b' ? '鏇村 锕�' : '鏀惰捣 锔�' }} + {{ activeBox !== 'b' ? '鏇村 鈭�' : '鏀惰捣 鈭�' }} </view> </view> --> </view> @@ -182,10 +182,10 @@ " > <view class="flex lightTop" style="width: 100%; margin: 0.1rem 0"> - <view class="" style="color: #2c2c2c">鍏眥{ total }}鏉�</view> + <view style="color: #2c2c2c">鍏眥{ total }}鏉�</view> <el-button size="small" @click="exportClick">涓嬭浇</el-button> </view> - <el-table :data="tableData" class="lightBo" style="width: 100%"> + <el-table :data="tableData" class="lightBo" style="width: 100%" empty-text="鏆傛棤鎼滅储淇℃伅"> <el-table-column prop="id" label="搴忓彿" width="110"></el-table-column> <el-table-column prop="personName" label="濮撳悕"></el-table-column> <el-table-column prop="personAlias" label="鍒悕"></el-table-column> @@ -194,7 +194,7 @@ label="鎬у埆" width="70" ></el-table-column> - <el-table-column prop="period" label="鏃舵湡"></el-table-column> + <el-table-column prop="period" label="鏃朵唬"></el-table-column> <el-table-column prop="birthYear" label="鐢熷勾" @@ -213,7 +213,7 @@ <el-table-column prop="official" label="瀹樿亴"></el-table-column> </el-table> <!-- 鍒嗛〉 --> - <el-row class="fenye" style="position: absolute; bottom: 0.1rem"> + <el-row class="fenye"> <el-pagination class="paging flex" :current-page="CurrentPage" @@ -322,7 +322,7 @@ }, { type: "input", - label: "鏃舵湡", + label: "鏃堕棿", name: "dynasty", value: "", }, @@ -350,7 +350,7 @@ activeBox: null, // 鏃舵湡 dynasty: { - title: "鏃舵湡", + title: "鏃朵唬", id: "", index: "", list: [], @@ -386,15 +386,9 @@ }; }, onLoad(options) { - console.log(options.keyword); this.onSearch({ text: options.keyword }); }, mounted() { - // 淇敼涓ゆ鐨勯珮搴︿繚鎸佷竴鑷� - var box1Height = document.querySelector(".fbox2").offsetHeight; - document.querySelector(".fbox3").style.height = - box1Height + box1Height / 18 + "px"; - console.log(box1Height, "box1Height"); this.getStatistics(); }, methods: { @@ -412,7 +406,6 @@ // 涓嬭浇鎸夐挳 async exportClick() { const dataList = this.tableData; - console.log(this.keywords, "keywords"); let Obj = { keywords: "", //鎼滅储妗嗘绱� // keywords: this.keywords, //鎼滅储妗嗘绱� @@ -429,12 +422,9 @@ page: 1, pageSize: 1, }; - console.log(Obj, "Obj"); // // 鎼滅储 await getPDownload(Obj).then((res) => { - console.log(res, "exportClick"); // if (res.success) { - // console.log(res, "鎼滅储鎺ュ彛"); // this.tableData = res.list; // // 鎬绘暟閲� // this.total = res.npage.totalCount; @@ -504,7 +494,6 @@ async getStatistics() { // 鐑棬鎼滅储 await getHotSearch().then((res) => { - console.log(res, "鐑棬鎼滅储"); this.hot = Object.keys(res.object).map((key) => { return { id: parseInt(key), @@ -514,7 +503,6 @@ }); // 鍙充晶鑱屼笟銆佹椂鏈熴�佹潵婧愮殑鏁版嵁 await getPDataStatistics().then((res) => { - console.log(res, "鎺ュ彛鎴愬姛sdsdfsdsfs"); let totalCount1 = res.object.occupationStatistic.details.reduce( (total, item) => total + item.count, 0 @@ -559,7 +547,6 @@ // 鐑棬鎼滅储 hotSearchClick(item) { this.onSearch({ text: item.name }); - console.log(item, "鐑棬鎼滅储"); }, // 宸︿晶鐨勬満鏋勭粺璁$瓑绛夋寜閽� handInstitCLick(item, name) { @@ -575,16 +562,13 @@ this.dynasty.index = item.dynastyId; this.dynasty.id = item.dynastyId; this.CurrentPage = 1; - console.log(item); } else if (name == "c") { this.source.index = item.bookId; this.source.id = item.bookId; this.CurrentPage = 1; - console.log("鏉ユ簮"); } this.onSearch(""); - console.log(item, name); }, isAvancedClick() { this.isAdvancedSearch = !this.isAdvancedSearch; @@ -599,7 +583,6 @@ }, // 楂樼骇鎼滅储 async onSubmit(val) { - console.log(val); this.profession.index = Number(val.tagId); this.profession.id = Number(val.tagId); const currentDynasty = this.dynasty.list.find( @@ -628,15 +611,12 @@ }; // // 鎼滅储 await getPersonList(Obj).then((res) => { - console.log(res); if (res.success) { - console.log(res, "鎼滅储鎺ュ彛"); this.tableData = res.list; // 鎬绘暟閲� this.total = res.npage.totalCount; } }); - console.log(val); }, // 鍩虹鎼滅储 async onSearch(val) { @@ -656,38 +636,30 @@ page: this.CurrentPage, pageSize: this.pageSize, }; - console.log(Obj, "ObjObjObj"); // // 鎼滅储 await getPersonList(Obj).then((res) => { if (res.success) { - console.log(res, "鎼滅储鎺ュ彛"); this.tableData = res.list; // 鎬绘暟閲� this.total = res.npage.totalCount; } }); - // console.log(val, '澹ぇ澶絾鏄�'); }, // 鐑棬鎼滅储 HotClick(id) { this.hot.forEach((item) => { if (item.id === id) { - console.log(item.id === id); item.bgColor = true; } else { - console.log(item.id === id); item.bgColor = false; } }); }, // 灞曞紑鏀剁缉 shrinkClick(box, name) { - console.log(box); - console.log(this.dynasty.list); // this.activeBox = this.activeBox === 'a' ? null : 'a'; if (name == "鑱屼笟") { - console.log("鑱屼笟"); this.professionIndex = this.professionIndex < this.profession.list.length ? this.profession.list.length @@ -695,7 +667,6 @@ this.dynastyIndex = 4; this.activeBox = this.activeBox === "a" ? null : "a"; } else { - console.log("鏃舵湡"); this.dynastyIndex = this.dynastyIndex < this.dynasty.list.length ? this.dynasty.list.length @@ -708,7 +679,6 @@ CurrentChange(val) { if (this.CurrentPage != val) { this.CurrentPage = val; - console.log("褰撳墠椤�", val); this.onSearch(""); } }, @@ -716,17 +686,13 @@ PrevClick(val) { if (this.CurrentPage != val) { this.CurrentPage = val; - // console.log('涓婁竴椤�', val); - // console.log(this.CurrentPage); this.onSearch(""); } }, // 涓嬩竴椤� NextClick(val) { if (this.CurrentPage != val) { - // console.log('涓嬩竴椤�',val); this.CurrentPage = val; - // console.log(this.CurrentPage); this.onSearch(""); } }, -- Gitblit v1.9.1