|
@@ -8,10 +8,17 @@
|
|
|
<a-form :model="searchData" layout="inline" >
|
|
|
<div class="search_nav">
|
|
|
<a-form-item label="课程名">
|
|
|
- <a-input v-model="searchData.title"></a-input>
|
|
|
+ <a-input v-model:value="searchData.title"></a-input>
|
|
|
</a-form-item>
|
|
|
<a-form-item label="用户名">
|
|
|
- <a-input v-model="searchData.uname"></a-input>
|
|
|
+ <a-input v-model:value="searchData.uname"></a-input>
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item label="支付时间">
|
|
|
+ <a-range-picker v-model:value="searchData.payTime" :format="'YYYY/MM/DD'" />
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item label="渠道" v-if="sourceOptions">
|
|
|
+ <a-select v-model:value="searchData.channel" :options="sourceOptions">
|
|
|
+ </a-select>
|
|
|
</a-form-item>
|
|
|
<a-form-item>
|
|
|
<a-button type="primary" @click="search">搜索</a-button>
|
|
@@ -149,7 +156,7 @@ export default defineComponent({
|
|
|
const { code, data ,count} = await curriculAJAXREQUEST({
|
|
|
path: AJAXPATH.orderList.path,
|
|
|
method: 'GET',
|
|
|
- data: {},
|
|
|
+ data: {...e},
|
|
|
});
|
|
|
if(code == 0){
|
|
|
dataList.value = data
|
|
@@ -177,7 +184,7 @@ export default defineComponent({
|
|
|
message.error('没有搜索到此用户!');
|
|
|
}
|
|
|
}
|
|
|
- const currOptions = ref({})
|
|
|
+ const currOptions = ref([])
|
|
|
const getCurrOptions = async() =>{
|
|
|
const { code, data } = await curriculAJAXREQUEST({
|
|
|
path: AJAXPATH.courseList.path,
|
|
@@ -195,7 +202,7 @@ export default defineComponent({
|
|
|
message.error('获取课程列表失败,请刷新页面!');
|
|
|
}
|
|
|
}
|
|
|
- const sourceOptions = ref({})
|
|
|
+ const sourceOptions = ref([])
|
|
|
const getSourceOptions = async() =>{
|
|
|
const { code, data } = await curriculAJAXREQUEST({
|
|
|
path: AJAXPATH.channelList.path,
|
|
@@ -246,8 +253,17 @@ export default defineComponent({
|
|
|
}
|
|
|
//搜索数据
|
|
|
const search = () =>{
|
|
|
+ console.log(searchData.value)
|
|
|
searchData.value.page= 1
|
|
|
- getData()
|
|
|
+
|
|
|
+ let data = {
|
|
|
+ title:searchData.value.title,
|
|
|
+ uname:searchData.value.uname,
|
|
|
+ stime: Date.parse(searchData.value.payTime[0]),
|
|
|
+ etime: Date.parse(searchData.value.payTime[1]),
|
|
|
+ channel:searchData.value.channel
|
|
|
+ }
|
|
|
+ getData(data)
|
|
|
}
|
|
|
//置空搜索
|
|
|
const reset = () => {
|
|
@@ -294,7 +310,7 @@ export default defineComponent({
|
|
|
}else{
|
|
|
// const {status} = await addempower(
|
|
|
// addData.value
|
|
|
- // )
|
|
|
+ // )
|
|
|
const { code} = await curriculAJAXREQUEST({
|
|
|
path: AJAXPATH.orderList.path,
|
|
|
method: 'POST',
|