generated from Leo_Ding/web-template
Compare commits
No commits in common. "b085e15b46c776d21f8dc73a1e16f779399c169b" and "b811bf937013c1b9c1dc70df136ee94ccb978e87" have entirely different histories.
b085e15b46
...
b811bf9370
2
.env.dev
2
.env.dev
@ -12,7 +12,7 @@ VITE_ROUTER_BASE=/
|
||||
VITE_ROUTER_HISTORY=hash
|
||||
|
||||
# api
|
||||
VITE_API_BASIC=http://10.10.1.6:8070
|
||||
VITE_API_BASIC=https://zh.shibeitong.com
|
||||
VITE_API_HTTP=/api/v1/
|
||||
# storage
|
||||
VITE_STORAGE_NAMESPACE = gin-admin_local_
|
||||
@ -12,5 +12,3 @@ export const createProject = (params) => request.basic.post('/api/v1/activities'
|
||||
export const updateItem = (id, params) => request.basic.put(`/api/v1/activities/${id}`, params)
|
||||
// 删除数据
|
||||
export const delItem = (id) => request.basic.delete(`/api/v1/activities/${id}`)
|
||||
//获取活动报名列表
|
||||
export const getActivityList=(params)=>request.basic.get('/api/v1/activity-details',params)
|
||||
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* 图片管理接口
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
// 获取菜单列表
|
||||
export const getDataList = (params) => request.basic.get('/api/v1/banners', params)
|
||||
// 获取菜单条数据
|
||||
export const getMenu = (id) => request.basic.get(`/api/v1/banners/${id}`)
|
||||
// 添加菜单
|
||||
export const createMenu = (params) => request.basic.post('/api/v1/banners', params)
|
||||
// 更新菜单
|
||||
export const updateMenu = (id, params) => request.basic.put(`/api/v1/banners/${id}`, params)
|
||||
// 删除菜单
|
||||
export const delMenu = (id) => request.basic.delete(`/api/v1/banners/${id}`)
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.5 KiB |
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
export default {
|
||||
welcome: '欢迎',
|
||||
home: '首页',
|
||||
@ -97,6 +95,4 @@ export default {
|
||||
ycyllvs: '医疗绿色通道',
|
||||
ycparentChild: '亲子权益',
|
||||
ycbirth: '生日礼遇',
|
||||
activityOrder:'活动报名列表',
|
||||
banner:'首页轮播图'
|
||||
}
|
||||
|
||||
@ -13,18 +13,5 @@ export default [
|
||||
permission: '*',
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
path: 'activityOrder/index',
|
||||
name: 'activityOrder',
|
||||
component: 'activityOrder/index.vue',
|
||||
meta: {
|
||||
icon: CoffeeOutlined,
|
||||
title: '活动报名列表',
|
||||
isMenu: true,
|
||||
keepAlive: true,
|
||||
permission: '*',
|
||||
}
|
||||
|
||||
},
|
||||
]
|
||||
|
||||
@ -12,17 +12,6 @@ export default [
|
||||
keepAlive: true,
|
||||
permission: '*',
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
path: 'banner/index',
|
||||
name: 'banner',
|
||||
component: 'banner/index.vue',
|
||||
meta: {
|
||||
icon: SolutionOutlined,
|
||||
title: '轮播图列表',
|
||||
isMenu: true,
|
||||
keepAlive: true,
|
||||
permission: '*',
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -155,7 +155,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.activity
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -1,217 +0,0 @@
|
||||
<template>
|
||||
<x-search-bar class="mb-8-2">
|
||||
<template #default="{ gutter, colSpan }">
|
||||
<a-form :model="searchFormData" layout="inline">
|
||||
<a-row :gutter="12">
|
||||
<a-col :span="12">
|
||||
<a-form-item label="活动名称" name="name">
|
||||
<a-select v-model:value="searchFormData.activityId" >
|
||||
<a-select-option v-for="item of activityList" :value="item.id">{{ item.title }}</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col class="align-right" :span="12">
|
||||
<a-space>
|
||||
<a-button @click="handleResetSearch">{{ $t('button.reset') }}</a-button>
|
||||
<a-button ghost type="primary" @click="handleSearch">
|
||||
{{ $t('button.search') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</template>
|
||||
</x-search-bar>
|
||||
|
||||
<a-row :gutter="8" :wrap="false">
|
||||
<a-col flex="auto">
|
||||
<a-card type="flex">
|
||||
<!-- <x-action-bar class="mb-8-2">
|
||||
<a-button type="primary" @click="$refs.editDialogRef.handleCreate()">
|
||||
<template #icon>
|
||||
<plus-outlined></plus-outlined>
|
||||
</template>
|
||||
新增活动
|
||||
</a-button>
|
||||
</x-action-bar> -->
|
||||
<a-table :columns="columns" :data-source="listData" bordered="true" :loading="loading"
|
||||
:pagination="paginationState" :scroll="{ x: 1000 }" @change="onTableChange">
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.dataIndex === 'createdAt'">
|
||||
<span>{{ record.createdAt && dayjs(record.createdAt).format('YYYY-MM-DD HH:mm') }}</span>
|
||||
|
||||
</template>
|
||||
|
||||
<!-- <template v-if="'action' === column.key">
|
||||
<x-action-button @click="$refs.editDialogRef.handleEdit(record)">
|
||||
<a-tooltip>
|
||||
<template #title> {{ $t('pages.system.user.edit') }}</template>
|
||||
<edit-outlined /> </a-tooltip></x-action-button>
|
||||
|
||||
<x-action-button @click="handleDelete(record)">
|
||||
<a-tooltip>
|
||||
<template #title>{{ $t('pages.system.delete') }}</template>
|
||||
<delete-outlined style="color: #ff4d4f" /> </a-tooltip></x-action-button>
|
||||
</template> -->
|
||||
</template>
|
||||
</a-table>
|
||||
</a-card>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-modal v-model:open="open" :title="type === 1 ? '活动图片' : '活动详情'" @ok="open = false">
|
||||
<template v-if="type === 1">
|
||||
<a-image v-if="imgList.length > 0" :width="200" v-for="item of imgList"
|
||||
:src="config('http.apiBasic') + item" />
|
||||
<span v-else>
|
||||
暂无图片
|
||||
</span>
|
||||
</template>
|
||||
<template v-else>
|
||||
<span>{{ content }}</span>
|
||||
</template>
|
||||
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { message, Modal } from 'ant-design-vue'
|
||||
import { ref } from 'vue'
|
||||
import apis from '@/apis'
|
||||
import { formatUtcDateTime } from '@/utils/util'
|
||||
import { config } from '@/config'
|
||||
import dayjs from 'dayjs'
|
||||
import { usePagination } from '@/hooks'
|
||||
import { customersEnum, areaEnum } from "@/enums/useEnum"
|
||||
import { PlusOutlined, EditOutlined, DeleteOutlined, QrcodeOutlined } from '@ant-design/icons-vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
defineOptions({
|
||||
name: 'activityOrder',
|
||||
})
|
||||
const { t } = useI18n() // 解构出t方法
|
||||
const open = ref(false)
|
||||
const imgList = ref([])
|
||||
const type = ref(1)
|
||||
|
||||
const columns = [
|
||||
{ title: '客户名称', dataIndex: 'customerName' },
|
||||
{ title: '活动名称', dataIndex: 'activityName' },
|
||||
{ title: '报名时间', dataIndex: 'createdAt', width: 150, align: 'center' },
|
||||
|
||||
// { title: t('button.action'), key: 'action', fixed: 'right', width: 150, align: 'center' },
|
||||
]
|
||||
const activityList=ref([])
|
||||
const { listData, loading, showLoading, hideLoading, paginationState, resetPagination, searchFormData } =
|
||||
usePagination()
|
||||
|
||||
const editDialogRef = ref()
|
||||
getPageList()
|
||||
getActiveList()
|
||||
async function getActiveList() {
|
||||
try {
|
||||
showLoading()
|
||||
const { success, data } = await apis.activity
|
||||
.getProjectList({
|
||||
pageSize:99,
|
||||
current: 1,
|
||||
})
|
||||
.catch(() => {
|
||||
throw new Error()
|
||||
})
|
||||
hideLoading()
|
||||
if (config('http.code.success') === success) {
|
||||
activityList.value = data.map(item=>({id:item.id,title:item.title}))
|
||||
}
|
||||
} catch (error) {
|
||||
hideLoading()
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 获取表格数据
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
async function getPageList() {
|
||||
try {
|
||||
showLoading()
|
||||
const { pageSize, current } = paginationState
|
||||
const { success, data, total } = await apis.activity
|
||||
.getActivityList({
|
||||
pageSize,
|
||||
current: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
throw new Error()
|
||||
})
|
||||
hideLoading()
|
||||
if (config('http.code.success') === success) {
|
||||
listData.value = data
|
||||
paginationState.total = total
|
||||
}
|
||||
} catch (error) {
|
||||
hideLoading()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
function handleDelete({ id }) {
|
||||
Modal.confirm({
|
||||
title: t('pages.system.user.delTip'),
|
||||
content: t('button.confirm'),
|
||||
okText: t('button.confirm'),
|
||||
onOk: () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
; (async () => {
|
||||
try {
|
||||
const { success } = await apis.activity.delItem(id).catch(() => {
|
||||
throw new Error()
|
||||
})
|
||||
if (config('http.code.success') === success) {
|
||||
resolve()
|
||||
message.success(t('component.message.success.delete'))
|
||||
await getPageList()
|
||||
}
|
||||
} catch (error) {
|
||||
reject()
|
||||
}
|
||||
})()
|
||||
})
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*/
|
||||
function onTableChange({ current, pageSize }) {
|
||||
paginationState.current = current
|
||||
paginationState.pageSize = pageSize
|
||||
getPageList()
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索
|
||||
*/
|
||||
function handleSearch() {
|
||||
resetPagination()
|
||||
getPageList()
|
||||
}
|
||||
/**
|
||||
* 重置
|
||||
*/
|
||||
function handleResetSearch() {
|
||||
searchFormData.value = {}
|
||||
resetPagination()
|
||||
getPageList()
|
||||
}
|
||||
/**
|
||||
* 编辑完成
|
||||
*/
|
||||
async function onOk() {
|
||||
await getPageList()
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped></style>
|
||||
@ -1,183 +0,0 @@
|
||||
<template>
|
||||
<a-modal :open="modal.open" :title="modal.title" :width="640" :confirm-loading="modal.confirmLoading"
|
||||
:after-close="onAfterClose" :cancel-text="cancelText" :ok-text="okText" @ok="handleOk" @cancel="handleCancel">
|
||||
<a-form ref="formRef" :model="formData" :rules="formRules">
|
||||
<a-card class="mb-8-2">
|
||||
<a-row :gutter="12">
|
||||
<a-col :span="24">
|
||||
<a-form-item :label="'名称'" name="name">
|
||||
<a-input :placeholder="'请输入名称'" v-model:value="formData.name"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item :label="'顺序'" name="sequence">
|
||||
<a-input-number :placeholder="'请输入顺序'" v-model:value="formData.sequence"></a-input-number>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item :label="'状态'" name="status">
|
||||
<a-radio-group v-model:value="formData.status" :options="[
|
||||
{ label: '启用', value: 'enabled' },
|
||||
{ label: '停用', value: 'disabled' },
|
||||
]"></a-radio-group>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item :label="'图片'" name="img">
|
||||
<gx-upload v-model="formData.img" accept-types=".jpg,.png,.webp" :fileNumber="1" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-card>
|
||||
</a-form>
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { cloneDeep } from 'lodash-es'
|
||||
import { ref } from 'vue'
|
||||
import { config } from '@/config'
|
||||
import apis from '@/apis'
|
||||
import { useForm, useModal } from '@/hooks'
|
||||
import { message } from 'ant-design-vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import dayjs from 'dayjs'
|
||||
import { spliceUrl } from "@/utils/util.js"
|
||||
const emit = defineEmits(['ok'])
|
||||
const { t } = useI18n() // 解构出t方法
|
||||
const { modal, showModal, hideModal, showLoading, hideLoading } = useModal()
|
||||
const { formRecord, formData, formRef, formRules, resetForm } = useForm()
|
||||
const cancelText = ref(t('button.cancel'))
|
||||
const okText = ref(t('button.confirm'))
|
||||
const rolesValue = ref([])
|
||||
const roles = ref([])
|
||||
const img = ref('')
|
||||
formRules.value = {
|
||||
name: { required: true, message: '请输入名称' },
|
||||
status: [{ required: true, message: '请选择状态', trigger: 'change' }],
|
||||
sequence: [{ required: true, message: '请选择顺序', trigger: 'change' }],
|
||||
img: [{ required: true, message: '请上传图片', trigger: 'change' }],
|
||||
}
|
||||
/**
|
||||
* 新建
|
||||
*/
|
||||
function handleCreate() {
|
||||
showModal({
|
||||
type: 'create',
|
||||
// 80对应about
|
||||
title: '添加',
|
||||
})
|
||||
formData.value.status = 'enabled'
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*/
|
||||
async function handleEdit(record = {}) {
|
||||
showModal({
|
||||
type: 'edit',
|
||||
title: t('pages.system.user.edit'),
|
||||
})
|
||||
const { data, success } = await apis.imgmgt.getMenu(record.id).catch()
|
||||
if (!success) {
|
||||
hideModal()
|
||||
return
|
||||
}
|
||||
formData.value = { ...data }
|
||||
formData.value.pushAt=dayjs(data.pushAt)
|
||||
formData.value.img=data.img?[config('http.apiBasic') + data.img]:[]
|
||||
}
|
||||
|
||||
/**
|
||||
* 确定
|
||||
*/
|
||||
function handleOk() {
|
||||
formRef.value.validateFields().then(async (values) => {
|
||||
console.log(values)
|
||||
try {
|
||||
showLoading()
|
||||
const params = {
|
||||
...values,
|
||||
img: formData.value.img?spliceUrl(formData.value.img[0]):'',
|
||||
}
|
||||
let result = null
|
||||
console.log(modal.value.type)
|
||||
switch (modal.value.type) {
|
||||
case 'create':
|
||||
result = await apis.imgmgt.createMenu(params).catch(() => {
|
||||
throw new Error()
|
||||
})
|
||||
break
|
||||
case 'edit':
|
||||
// result = await apis.imgmgt.updateMenu(formData.value.id, params).catch(() => {
|
||||
result = await apis.imgmgt.updateMenu(formData.value.id, params).catch(() => {
|
||||
throw new Error()
|
||||
})
|
||||
break
|
||||
}
|
||||
hideLoading()
|
||||
if (config('http.code.success') === result?.success) {
|
||||
hideModal()
|
||||
emit('ok')
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
hideLoading()
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log(e)
|
||||
hideLoading()
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 对权限组 过数据格式
|
||||
*/
|
||||
function formatArr(data, type = '') {
|
||||
const rolesArr = []
|
||||
data.forEach((item) => {
|
||||
roles.value.forEach((r) => {
|
||||
if (type === 'edit') {
|
||||
if (item.role_id === r.value) {
|
||||
rolesArr.push({
|
||||
value: item.role_id,
|
||||
label: r.label,
|
||||
})
|
||||
return
|
||||
}
|
||||
} else if (r.value === item) {
|
||||
rolesArr.push({
|
||||
role_id: item,
|
||||
role_name: r.label,
|
||||
})
|
||||
return
|
||||
}
|
||||
})
|
||||
})
|
||||
return rolesArr
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消
|
||||
*/
|
||||
function handleCancel() {
|
||||
img.value = ''
|
||||
hideModal()
|
||||
}
|
||||
|
||||
/**
|
||||
* 关闭后
|
||||
*/
|
||||
function onAfterClose() {
|
||||
resetForm()
|
||||
hideLoading()
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
handleCreate,
|
||||
handleEdit,
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped></style>
|
||||
@ -1,169 +0,0 @@
|
||||
<template>
|
||||
<a-row :gutter="8" :wrap="false">
|
||||
<a-col flex="auto">
|
||||
<a-card type="flex">
|
||||
<x-action-bar class="mb-8-2">
|
||||
<a-button type="primary" @click="$refs.editDialogRef.handleCreate()">
|
||||
<template #icon>
|
||||
<plus-outlined></plus-outlined>
|
||||
</template>
|
||||
新增
|
||||
</a-button>
|
||||
</x-action-bar>
|
||||
<a-table :columns="columns" :data-source="listData" bordered="true" :loading="loading"
|
||||
:pagination="paginationState" :scroll="{ x: 1000 }" @change="onTableChange">
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="'img' === column.dataIndex">
|
||||
<!-- <a-image :width="60" :src="record.img || $imageErr.imgErr" />-->
|
||||
<a-image :width="60" :src="config('http.apiBasic') + record.img || $imageErr.imgErr" />
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'name'">
|
||||
<a-tooltip :title="record.name">
|
||||
<span>{{ record.name }}</span>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<template v-if="'status' === column.dataIndex">
|
||||
<a-tag v-if="record.status === 'enabled'" :color="'green'">启用</a-tag>
|
||||
<a-tag v-if="record.status === 'disabled'" :color="'red'">停用</a-tag>
|
||||
</template>
|
||||
<template v-if="'action' === column.key">
|
||||
<x-action-button @click="$refs.editDialogRef.handleEdit(record)">
|
||||
<a-tooltip>
|
||||
<template #title> {{ $t('pages.system.user.edit') }}</template>
|
||||
<edit-outlined /> </a-tooltip></x-action-button>
|
||||
<x-action-button @click="handleDelete(record)">
|
||||
<a-tooltip>
|
||||
<template #title>{{ $t('pages.system.delete') }}</template>
|
||||
<delete-outlined style="color: #ff4d4f" /> </a-tooltip></x-action-button>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
</a-card>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
<edit-dialog ref="editDialogRef" @ok="onOk"></edit-dialog>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { message, Modal } from 'ant-design-vue'
|
||||
import { ref } from 'vue'
|
||||
import apis from '@/apis'
|
||||
import { formatUtcDateTime } from '@/utils/util'
|
||||
import { config } from '@/config'
|
||||
import { statusUserTypeEnum } from '@/enums/system'
|
||||
import { usePagination } from '@/hooks'
|
||||
|
||||
import EditDialog from './components/EditDialog.vue'
|
||||
import { PlusOutlined, EditOutlined, DeleteOutlined } from '@ant-design/icons-vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { delMenu, getDataList } from '@/apis/modules/imgmgt'
|
||||
defineOptions({
|
||||
name: 'banner',
|
||||
})
|
||||
const { t } = useI18n() // 解构出t方法
|
||||
const columns = [
|
||||
{ title: '图片', dataIndex: 'img', width: 100, align: 'center' },
|
||||
{ title: '名称', dataIndex: 'name', key: 'name' },
|
||||
{ title: '状态', dataIndex: 'status', width: 120, align: 'center' },
|
||||
{ title: '顺序', dataIndex: 'sequence', width: 100, align: 'center' },
|
||||
{ title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' },
|
||||
]
|
||||
|
||||
const { listData, loading, showLoading, hideLoading, paginationState, resetPagination, searchFormData } =
|
||||
usePagination()
|
||||
|
||||
const editDialogRef = ref()
|
||||
getPageList()
|
||||
/**
|
||||
* 获取用户列表
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
|
||||
async function getPageList() {
|
||||
try {
|
||||
showLoading()
|
||||
const { pageSize, current } = paginationState
|
||||
const { success, data, total } = await apis.imgmgt
|
||||
.getDataList({
|
||||
pageSize,
|
||||
current:current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
throw new Error()
|
||||
})
|
||||
hideLoading()
|
||||
if (config('http.code.success') === success) {
|
||||
//筛选type的值80对应about
|
||||
listData.value = data
|
||||
paginationState.total = total
|
||||
}
|
||||
} catch (error) {
|
||||
hideLoading()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
function handleDelete({ id }) {
|
||||
Modal.confirm({
|
||||
title: t('pages.system.user.delTip'),
|
||||
content: t('button.confirm'),
|
||||
okText: t('button.confirm'),
|
||||
onOk: () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
; (async () => {
|
||||
try {
|
||||
const { success } = await apis.imgmgt.delMenu(id).catch(() => {
|
||||
throw new Error()
|
||||
})
|
||||
if (config('http.code.success') === success) {
|
||||
resolve()
|
||||
message.success(t('component.message.success.delete'))
|
||||
await getPageList()
|
||||
}
|
||||
} catch (error) {
|
||||
reject()
|
||||
}
|
||||
})()
|
||||
})
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*/
|
||||
function onTableChange({ current, pageSize }) {
|
||||
paginationState.current = current
|
||||
paginationState.pageSize = pageSize
|
||||
getPageList()
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索
|
||||
*/
|
||||
function handleSearch() {
|
||||
resetPagination()
|
||||
getPageList()
|
||||
}
|
||||
/**
|
||||
* 重置
|
||||
*/
|
||||
function handleResetSearch() {
|
||||
searchFormData.value = {}
|
||||
resetPagination()
|
||||
getPageList()
|
||||
}
|
||||
/**
|
||||
* 编辑完成
|
||||
*/
|
||||
async function onOk() {
|
||||
await getPageList()
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped></style>
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('aiya'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('birth'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('menchuang'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('jdnk'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('hotel'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('jiazhuang'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('kangyang'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('life'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('lvyou'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('parentchild'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('quanwu'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('yllvs'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -158,7 +158,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.role
|
||||
.getRoleList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -158,7 +158,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.role
|
||||
.getRoleList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<!-- <x-search-bar class="mb-8-2">
|
||||
<x-search-bar class="mb-8-2">
|
||||
<template #default="{ gutter, colSpan }">
|
||||
<a-form :model="searchFormData" layout="inline">
|
||||
<a-row :gutter="gutter">
|
||||
@ -19,7 +19,7 @@
|
||||
</a-row>
|
||||
</a-form>
|
||||
</template>
|
||||
</x-search-bar> -->
|
||||
</x-search-bar>
|
||||
<a-row :gutter="8" :wrap="false">
|
||||
<a-col flex="auto">
|
||||
<a-card type="flex">
|
||||
@ -62,7 +62,6 @@ defineOptions({
|
||||
const { t } = useI18n() // 解构出t方法
|
||||
const columns = [
|
||||
{ title: '客户姓名', dataIndex: 'customerName', align: 'center',width:120 },
|
||||
{ title: '客户手机', dataIndex: 'customerPhone', align: 'center',width:120 },
|
||||
{ title: '变动前积分', dataIndex: 'before', align: 'center',width:100 },
|
||||
{ title: '变动后积分', dataIndex: 'before', align: 'center',width:100 },
|
||||
{ title: '变动积分', dataIndex: 'change', align: 'center',width:100 },
|
||||
@ -86,7 +85,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.points
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -143,7 +143,7 @@ async function getPageList() {
|
||||
const { code, data } = await apis.common
|
||||
.getPageList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
})
|
||||
.catch(() => {
|
||||
throw new Error()
|
||||
|
||||
@ -115,7 +115,7 @@ async function getPageList() {
|
||||
const { code, data } = await apis.common
|
||||
.getPageList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
})
|
||||
.catch(() => {
|
||||
throw new Error()
|
||||
|
||||
@ -147,7 +147,7 @@ async function getPageList() {
|
||||
const { code, data } = await apis.common
|
||||
.getPageList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
})
|
||||
.catch(() => {
|
||||
throw new Error()
|
||||
|
||||
@ -154,7 +154,7 @@ async function getPageList() {
|
||||
const { code, data } = await apis.common
|
||||
.getPageList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
})
|
||||
.catch(() => {
|
||||
throw new Error()
|
||||
|
||||
@ -131,7 +131,7 @@ async function getPageList() {
|
||||
const { code, data } = await apis.common
|
||||
.getPageList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
})
|
||||
.catch(() => {
|
||||
throw new Error()
|
||||
|
||||
@ -194,7 +194,7 @@ async function getPageList() {
|
||||
const { code, data } = await apis.common
|
||||
.getPageList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
})
|
||||
.catch(() => {
|
||||
throw new Error()
|
||||
|
||||
@ -90,7 +90,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrders
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -82,7 +82,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.raffleProduct
|
||||
.getRaffleOrders({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -110,7 +110,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.raffleProduct
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -117,7 +117,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.raffles
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -128,7 +128,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.houseArticles
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -43,8 +43,7 @@
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item :label="'待售状态'" name="daiShowStatus">
|
||||
<a-input :placeholder="'请输入待售状态'"
|
||||
v-model:value="formData.daiShowStatus"></a-input>
|
||||
<a-input :placeholder="'请输入待售状态'" v-model:value="formData.daiShowStatus"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
@ -102,7 +101,8 @@
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item :label="'占地面积'" name="basicArea">
|
||||
<a-input :placeholder="'请输入占地面积'" v-model:value="formData.basicArea"></a-input>
|
||||
<a-input :placeholder="'请输入占地面积'"
|
||||
v-model:value="formData.basicArea"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
@ -113,8 +113,8 @@
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item :label="'楼盘视频'">
|
||||
<gx-upload v-model="formData.videos"
|
||||
accept-types=".avi,.mp4,.mov,.wmv,.mkv,.m4v" :fileNumber="20" />
|
||||
<gx-upload v-model="formData.videos" accept-types=".avi,.mp4,.mov,.wmv,.mkv,.m4v"
|
||||
:fileNumber="20" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@ -291,12 +291,14 @@
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item :label="'车位比'" name="carRatio">
|
||||
<a-input :placeholder="'请输入车位比'" v-model:value="formData.carRatio"></a-input>
|
||||
<a-input :placeholder="'请输入车位比'"
|
||||
v-model:value="formData.carRatio"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item :label="'容积率'" name="ratio">
|
||||
<a-input :placeholder="'请输入容积率'" v-model:value="formData.ratio"></a-input>
|
||||
<a-input :placeholder="'请输入容积率'"
|
||||
v-model:value="formData.ratio"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
@ -338,10 +340,6 @@
|
||||
</a-row>
|
||||
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="7" tab="免责声明">
|
||||
<x-editor v-model="formData.disclaimerContain" :uploadHandler="uploadHandler"
|
||||
:height="300"></x-editor>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
|
||||
</a-card>
|
||||
@ -432,7 +430,6 @@ async function handleEdit(record = {}) {
|
||||
price: data.price,
|
||||
status: data.status,
|
||||
basicArea:data.area,
|
||||
disclaimerContain: data.disclaimerContain,
|
||||
title: data.title,
|
||||
videos: data.videos? data.videos.map(item => config('http.apiBasic') + item):[],
|
||||
advisers: data.advisers?data.advisers.map(item=>({adviserName:item.name,adviserPhone:item.phone,adviserImg:item.avatar?[config('http.apiBasic')+item.avatar]:[]})):[{ adviserName: '', adviserPhone: '', adviserImg: [] },
|
||||
@ -498,7 +495,6 @@ function handleOk() {
|
||||
status: formData.value.status,
|
||||
title: formData.value.title,
|
||||
area:formData.value.basicArea,
|
||||
disclaimerContain: formData.value.disclaimerContain,
|
||||
videos: formData.value.videos&&formData.value.videos.map(item=>spliceUrl(item)),
|
||||
advisers: formData.value.advisers&&formData.value.advisers.map(item=>({name:item.adviserName,phone:item.adviserPhone,avatar:item.adviserImg[0]&&spliceUrl(item.adviserImg[0])})),
|
||||
detail: {
|
||||
@ -584,12 +580,6 @@ const addLabel = () => {
|
||||
const removeLabel = (index) => {
|
||||
formData.value.labels.splice(index, 1);
|
||||
};
|
||||
const uploadHandler = async (file) => {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
const { data } = await apis.common.uploadImg(formData);
|
||||
return config('http.apiBasic') + data
|
||||
}
|
||||
/**
|
||||
* 取消
|
||||
*/
|
||||
|
||||
@ -106,7 +106,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.house
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
<template #bodyCell="{ column, record }">
|
||||
|
||||
<template v-if="column.dataIndex === 'img'">
|
||||
<a-image :width="60" :src="config('http.apiBasic') + record.img" />
|
||||
<a-image :width="60" :src="config('http.apiBasic') + record.img || $imageErr.imgErr" />
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'startAt'">
|
||||
<span>{{ dayjs(record.startAt).format('YYYY-MM-DD HH:mm:ss') }}</span>
|
||||
@ -59,11 +59,11 @@
|
||||
<a-tag v-if="!record.isDaily" :color="'red'">否</a-tag>
|
||||
</template>
|
||||
<template v-if="'action' === column.key">
|
||||
<x-action-button @click="$refs.editDialogRef.handleEdit(record.id)">
|
||||
<x-action-button @click="$refs.editDialogRef.handleEdit(record.product.id)">
|
||||
<a-tooltip>
|
||||
<template #title> {{ $t('pages.system.user.edit') }}</template>
|
||||
<edit-outlined /> </a-tooltip></x-action-button>
|
||||
<x-action-button @click="handleDelete(record.id)">
|
||||
<x-action-button @click="handleDelete(record.product.id)">
|
||||
<a-tooltip>
|
||||
<template #title>{{ $t('pages.system.delete') }}</template>
|
||||
<delete-outlined style="color: #ff4d4f" /> </a-tooltip></x-action-button>
|
||||
@ -124,7 +124,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.houseProduct
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -91,7 +91,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.companyProductOrders
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -123,7 +123,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.project
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -105,7 +105,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.area
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -107,7 +107,7 @@ async function getPageList() {
|
||||
const { code, data } = await apis.common
|
||||
.getPageList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
})
|
||||
.catch(() => {
|
||||
throw new Error()
|
||||
|
||||
@ -162,7 +162,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.system
|
||||
.getLoggers({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
startTime: startTime.value,
|
||||
endTime: endTime.value,
|
||||
|
||||
@ -158,7 +158,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.role
|
||||
.getRoleList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -153,7 +153,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.users
|
||||
.getUsersList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
<template #bodyCell="{ column, record }">
|
||||
|
||||
<template v-if="column.dataIndex === 'avatar'">
|
||||
<a-image :width="30" :src="record.avatar?(config('http.apiBasic') + record.avatar):defaultAvatar" />
|
||||
<a-image :width="60" :src="config('http.apiBasic') + record.avatar || $imageErr.imgErr" />
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'type'">
|
||||
<span>{{ customersEnum.getName(record.type) }}</span>
|
||||
@ -92,7 +92,6 @@ import { customersEnum, areaEnum } from "@/enums/useEnum"
|
||||
import EditDialog from './components/EditDialog.vue'
|
||||
import { PlusOutlined, EditOutlined, DeleteOutlined } from '@ant-design/icons-vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import defaultAvatar from '@/assets/default.jpg'
|
||||
defineOptions({
|
||||
name: 'allCustomerList',
|
||||
})
|
||||
@ -126,7 +125,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.customer
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
...searchFormData.value,
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@ -46,8 +46,7 @@
|
||||
<template #bodyCell="{ column, record }">
|
||||
|
||||
<template v-if="column.dataIndex === 'avatar'">
|
||||
<a-image :width="60" v-if="record.avatar.includes('https://loremflickr.com')" :src="record.avatar || $imageErr.imgErr" />
|
||||
<a-image :width="60" v-else :src="config('http.apiBasic') + record.avatar || $imageErr.imgErr" />
|
||||
<a-image :width="60" :src="config('http.apiBasic') + record.avatar || $imageErr.imgErr" />
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'type'">
|
||||
<span>{{ customersEnum.getName(record.type) }}</span>
|
||||
@ -126,7 +125,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.customer
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
type:'owner',
|
||||
...searchFormData.value,
|
||||
})
|
||||
|
||||
@ -44,9 +44,9 @@
|
||||
<a-table :columns="columns" :data-source="listData" bordered="true" :loading="loading"
|
||||
:pagination="paginationState" :scroll="{ x: 1000 }" @change="onTableChange">
|
||||
<template #bodyCell="{ column, record }">
|
||||
|
||||
<template v-if="column.dataIndex === 'avatar'">
|
||||
<a-image :width="60" v-if="record.avatar.includes('https://loremflickr.com')" :src="record.avatar || $imageErr.imgErr" />
|
||||
<a-image :width="60" v-else :src="config('http.apiBasic') + record.avatar || $imageErr.imgErr" />
|
||||
<a-image :width="60" :src="config('http.apiBasic') + record.avatar || $imageErr.imgErr" />
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'type'">
|
||||
<span>{{ customersEnum.getName(record.type) }}</span>
|
||||
@ -125,7 +125,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.customer
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
type:'intermediary',
|
||||
...searchFormData.value,
|
||||
})
|
||||
|
||||
@ -46,8 +46,7 @@
|
||||
<template #bodyCell="{ column, record }">
|
||||
|
||||
<template v-if="column.dataIndex === 'avatar'">
|
||||
<a-image :width="60" v-if="record.avatar.includes('https://loremflickr.com')" :src="record.avatar || $imageErr.imgErr" />
|
||||
<a-image :width="60" v-else :src="config('http.apiBasic') + record.avatar || $imageErr.imgErr" />
|
||||
<a-image :width="60" :src="config('http.apiBasic') + record.avatar || $imageErr.imgErr" />
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'type'">
|
||||
<span>{{ customersEnum.getName(record.type) }}</span>
|
||||
@ -126,7 +125,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.customer
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
type:'closer',
|
||||
...searchFormData.value,
|
||||
})
|
||||
|
||||
@ -46,8 +46,7 @@
|
||||
<template #bodyCell="{ column, record }">
|
||||
|
||||
<template v-if="column.dataIndex === 'avatar'">
|
||||
<a-image :width="30" v-if="record.avatar.includes('https://loremflickr.com')" :src="record.avatar || $imageErr.imgErr" />
|
||||
<a-image :width="30" v-else :src="record.avatar?(config('http.apiBasic') + record.avatar):defaultAvatar" />
|
||||
<a-image :width="60" :src="config('http.apiBasic') + record.avatar || $imageErr.imgErr" />
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'type'">
|
||||
<span>{{ customersEnum.getName(record.type) }}</span>
|
||||
@ -93,7 +92,6 @@ import { customersEnum, areaEnum } from "@/enums/useEnum"
|
||||
import EditDialog from './components/EditDialog.vue'
|
||||
import { PlusOutlined, EditOutlined, DeleteOutlined } from '@ant-design/icons-vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import defaultAvatar from '@/assets/default.jpg'
|
||||
defineOptions({
|
||||
name: 'visitor',
|
||||
})
|
||||
@ -127,7 +125,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.customer
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
type:'visitor',
|
||||
...searchFormData.value,
|
||||
})
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('ycbirth'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('ycfwjbj'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('ycjd'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('ycjztg'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('ycmcby'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('ycparentchild'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('ycqw'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('ycqwsc'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('ycxwybm'),
|
||||
...searchFormData.value,
|
||||
|
||||
@ -96,7 +96,7 @@ async function getPageList() {
|
||||
const { success, data, total } = await apis.productOrder
|
||||
.getProjectList({
|
||||
pageSize,
|
||||
current: current,
|
||||
page: current,
|
||||
channel: 'product',
|
||||
productId: equiteEnum.getValue('ycyllvs'),
|
||||
...searchFormData.value,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user