feat:待审核项目列表渲染、搜索功能(跟据时间搜索成功但是返回空数组)fix:已审核课程搜索bug

This commit is contained in:
Ggysh-7
2022-11-26 20:57:01 +08:00
parent 339d77fd1d
commit 3f9854f0f6
3 changed files with 58 additions and 117 deletions

View File

@@ -48,7 +48,7 @@
</div>
</div>
<div class="tmplh_btn">
<div class="btn btn1" @click="search">
<div class="btn btn1" @click="getList">
<div class="search"></div>
<div class="btnText btnText1">搜索</div>
</div>
@@ -106,9 +106,9 @@ export default {
label: "rose",
},
],
valueproj: null,
valuecreater: null,
valuename: null,
valueproj: "",
valuecreater: "",
valuename: "",
currentPage: 1,
total: null,
pageSize: 10,
@@ -184,12 +184,12 @@ export default {
// },
],
});
const getList = (obj) => {
let objn = obj || {
const getList = () => {
let objn = {
auditStatus: 0,
categoryId: 0,
createName: "",
name: "",
createName: state.valuecreater,
name: state.valuename,
pageNo: state.currentPage,
pageSize: 10,
};
@@ -233,17 +233,6 @@ export default {
});
state.tableData1 = array;
};
const search = () => {
let obj = {
auditStatus: 0,
categoryId: state.valueproj,
createName: state.valuecreater,
name: state.valuename,
pageNo: state.currentPage,
pageSize: 10,
};
getList(obj);
};
const reset = () => {
(state.valueproj = null),
(state.valuecreater = null),
@@ -265,7 +254,6 @@ export default {
...toRefs(state),
getList,
setTableData,
search,
handleChangeproj,
reset,
changePagination,