提交 a10f0f6a authored 作者: matian's avatar matian

筛选条件修改

上级 2c0bd7e9
...@@ -11,6 +11,8 @@ export function getChannelList(params: { ...@@ -11,6 +11,8 @@ export function getChannelList(params: {
channel_id?: string channel_id?: string
tags?: string tags?: string
company_short_name?: string company_short_name?: string
['per-page']: string
page: string
}) { }) {
return httpRequest.get('/api/customer/v1/channel/index/index', { params }) return httpRequest.get('/api/customer/v1/channel/index/index', { params })
} }
......
...@@ -16,6 +16,7 @@ const listOptions = $computed(() => { ...@@ -16,6 +16,7 @@ const listOptions = $computed(() => {
beforeRequest(params: any) { beforeRequest(params: any) {
params.created_time_start = params.createTime[0] params.created_time_start = params.createTime[0]
params.created_time_end = params.createTime[1] params.created_time_end = params.createTime[1]
return params
}, },
httpRequest: getChannelList, httpRequest: getChannelList,
params: { params: {
...@@ -84,10 +85,11 @@ const listOptions = $computed(() => { ...@@ -84,10 +85,11 @@ const listOptions = $computed(() => {
<el-date-picker <el-date-picker
v-model="params.createTime" v-model="params.createTime"
type="daterange" type="daterange"
:shortcuts="shortcuts"
range-separator="To"
start-placeholder="创建开始时间" start-placeholder="创建开始时间"
end-placeholder="创建结束时间" end-placeholder="创建结束时间"
value-format="yyyy-MM-dd HH-mm-ss" value-format="YYYY-MM-DD HH:mm:ss"
:shortcuts="shortcuts"
/> />
</template> </template>
......
...@@ -118,6 +118,7 @@ const handleDetail = (row: any) => { ...@@ -118,6 +118,7 @@ const handleDetail = (row: any) => {
range-separator="To" range-separator="To"
start-placeholder="创建开始时间" start-placeholder="创建开始时间"
end-placeholder="创建结束时间" end-placeholder="创建结束时间"
value-format="YYYY-MM-DD HH:mm:ss"
/> />
</template> </template>
<template #table-x="{ row }"> <template #table-x="{ row }">
......
...@@ -128,6 +128,7 @@ const listOptions = $computed(() => { ...@@ -128,6 +128,7 @@ const listOptions = $computed(() => {
range-separator="To" range-separator="To"
start-placeholder="创建开始时间" start-placeholder="创建开始时间"
end-placeholder="创建结束时间" end-placeholder="创建结束时间"
value-format="YYYY-MM-DD HH:mm:ss"
/> />
</template> </template>
......
...@@ -108,6 +108,7 @@ const listOptions = $computed(() => { ...@@ -108,6 +108,7 @@ const listOptions = $computed(() => {
range-separator="To" range-separator="To"
start-placeholder="创建开始时间" start-placeholder="创建开始时间"
end-placeholder="创建结束时间" end-placeholder="创建结束时间"
value-format="YYYY-MM-DD HH:mm:ss"
/> />
</template> </template>
......
...@@ -125,6 +125,7 @@ const listOptions = $computed(() => { ...@@ -125,6 +125,7 @@ const listOptions = $computed(() => {
range-separator="To" range-separator="To"
start-placeholder="创建开始时间" start-placeholder="创建开始时间"
end-placeholder="创建结束时间" end-placeholder="创建结束时间"
value-format="YYYY-MM-DD HH:mm:ss"
/> />
</template> </template>
<template #remark_mobiles="{ row }"> <template #remark_mobiles="{ row }">
......
...@@ -17,10 +17,14 @@ const listOptions = $computed(() => { ...@@ -17,10 +17,14 @@ const listOptions = $computed(() => {
return { return {
remote: { remote: {
beforeRequest(params: any) { beforeRequest(params: any) {
params.create_time_start = params.createTime[0] if (params.createTime) {
params.create_time_end = params.createTime[1] params.create_time_start = params.createTime[0]
params.updated_time_start = params.updatedTime[0] params.create_time_end = params.createTime[1]
params.updated_time_end = params.updatedTime[1] }
if (params.updatedTime) {
params.updated_time_start = params.updatedTime[0]
params.updated_time_end = params.updatedTime[1]
}
return params return params
}, },
httpRequest: getZwsUserList, httpRequest: getZwsUserList,
...@@ -125,6 +129,7 @@ const listOptions = $computed(() => { ...@@ -125,6 +129,7 @@ const listOptions = $computed(() => {
range-separator="To" range-separator="To"
start-placeholder="创建开始时间" start-placeholder="创建开始时间"
end-placeholder="创建结束时间" end-placeholder="创建结束时间"
value-format="YYYY-MM-DD HH:mm:ss"
/> />
</template> </template>
<template v-slot:updatedTime="{ params }"> <template v-slot:updatedTime="{ params }">
...@@ -133,8 +138,9 @@ const listOptions = $computed(() => { ...@@ -133,8 +138,9 @@ const listOptions = $computed(() => {
type="daterange" type="daterange"
:shortcuts="shortcuts" :shortcuts="shortcuts"
range-separator="To" range-separator="To"
start-placeholder="创建开始时间" start-placeholder="更新开始时间"
end-placeholder="创建结束时间" end-placeholder="更新结束时间"
value-format="YYYY-MM-DD HH:mm:ss"
/> />
</template> </template>
<template #table-x="{ row }"> <template #table-x="{ row }">
......
...@@ -27,7 +27,7 @@ export default defineConfig(({ mode }) => ({ ...@@ -27,7 +27,7 @@ export default defineConfig(({ mode }) => ({
// '/api/customer': { // '/api/customer': {
// // target: 'http://localhost-customer-system-backend.ezijing.com', // // target: 'http://localhost-customer-system-backend.ezijing.com',
// target: 'https://customer-backend-api.ezijing.com', // target: 'https://customer-backend-api.ezijing.com',
// rewrite: path => path.replace(/^\/api\/users/, ''), // rewrite: path => path.replace(/^\/api\/customer/, ''),
// changeOrigin: true // changeOrigin: true
// }, // },
'/api': 'https://customer-backend-api.ezijing.com' '/api': 'https://customer-backend-api.ezijing.com'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论