mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 05:46:45 +08:00
feat:待审核项目列表渲染、搜索功能(跟据时间搜索成功但是返回空数组)fix:已审核课程搜索bug
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user