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

筛选条件修改

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