feat(house): 添加房源类型筛选功能
- 在 houseInfo 组件中新增 type 参数用于筛选房源类型 - 更新 houseInfoEdit 组件以支持传递和显示房源类型 - 修改接口模型增加 type 字段定义 - 调整页面布局及样式以适应新字段展示需求 - 配置开发环境 API 地址并更新相关组件请求路径 - 引入路由监听实现动态类型查询 - 优化表格行键值确保唯一性 - 更新系统设置中微信相关的域名配置为本地地址 - 修改文件上传接口地址为本地服务 - 调整项目库组件中的 ID 键名以匹配后端返回结构 - 移除冗余的表单字段声明提升代码整洁度 - 更新
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
VITE_APP_NAME=后台管理(开发环境)
|
VITE_APP_NAME=后台管理(开发环境)
|
||||||
VITE_API_URL=http://127.0.0.1:9200/api
|
#VITE_API_URL=http://127.0.0.1:9200/api
|
||||||
#VITE_SERVER_API_URL=http://127.0.0.1:8000/api
|
#VITE_SERVER_API_URL=http://127.0.0.1:8000/api
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -64,5 +64,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="module" src="/src/main.ts"></script>
|
<script type="module" src="/src/main.ts"></script>
|
||||||
|
<script
|
||||||
|
async
|
||||||
|
defer
|
||||||
|
id="sqlbot-assistant-float-script-7400549959767953408"
|
||||||
|
src="https://sql-bot.websoft.top/assistant.js?id=7400549959767953408"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ export interface HouseInfo {
|
|||||||
houseId?: number;
|
houseId?: number;
|
||||||
// 房源标题
|
// 房源标题
|
||||||
houseTitle?: string;
|
houseTitle?: string;
|
||||||
|
// 房源类型
|
||||||
|
type?: number;
|
||||||
// 房产所在的城市
|
// 房产所在的城市
|
||||||
cityByHouse?: string;
|
cityByHouse?: string;
|
||||||
// 户型
|
// 户型
|
||||||
|
|||||||
@@ -310,6 +310,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 顶栏菜单标题中样式调整
|
||||||
|
.ele-admin-header-nav{
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
// 顶栏菜单标题中样式调整
|
// 顶栏菜单标题中样式调整
|
||||||
.ele-admin-header-nav > .ant-menu {
|
.ele-admin-header-nav > .ant-menu {
|
||||||
& > .ant-menu-item,
|
& > .ant-menu-item,
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ const DEFAULT_STATE: ThemeState = Object.freeze({
|
|||||||
// 侧栏风格: light(亮色), dark(暗色)
|
// 侧栏风格: light(亮色), dark(暗色)
|
||||||
sideStyle: 'light',
|
sideStyle: 'light',
|
||||||
// 布局风格: side(默认), top(顶栏导航), mix(混合导航)
|
// 布局风格: side(默认), top(顶栏导航), mix(混合导航)
|
||||||
layoutStyle: 'side',
|
layoutStyle: 'mix',
|
||||||
// 侧栏菜单风格: default(默认), mix(双排侧栏)
|
// 侧栏菜单风格: default(默认), mix(双排侧栏)
|
||||||
sideMenuStyle: 'default',
|
sideMenuStyle: 'default',
|
||||||
// 页签风格: default(默认), dot(圆点), card(卡片)
|
// 页签风格: default(默认), dot(圆点), card(卡片)
|
||||||
|
|||||||
@@ -322,6 +322,8 @@
|
|||||||
visible: boolean;
|
visible: boolean;
|
||||||
// 修改回显的数据
|
// 修改回显的数据
|
||||||
data?: HouseInfo | null;
|
data?: HouseInfo | null;
|
||||||
|
// 类型
|
||||||
|
type?: null;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="houseInfoId"
|
row-key="houseId"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
@@ -51,7 +51,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { createVNode, ref } from 'vue';
|
import { createVNode, ref,unref, watch } from 'vue';
|
||||||
|
import {useRouter} from 'vue-router';
|
||||||
import { message, Modal } from 'ant-design-vue';
|
import { message, Modal } from 'ant-design-vue';
|
||||||
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
import type { EleProTable } from 'ele-admin-pro';
|
import type { EleProTable } from 'ele-admin-pro';
|
||||||
@@ -65,6 +66,7 @@
|
|||||||
import { pageHouseInfo, removeHouseInfo, removeBatchHouseInfo } from '@/api/house/houseInfo';
|
import { pageHouseInfo, removeHouseInfo, removeBatchHouseInfo } from '@/api/house/houseInfo';
|
||||||
import type { HouseInfo, HouseInfoParam } from '@/api/house/houseInfo/model';
|
import type { HouseInfo, HouseInfoParam } from '@/api/house/houseInfo/model';
|
||||||
|
|
||||||
|
const {currentRoute} = useRouter();
|
||||||
// 表格实例
|
// 表格实例
|
||||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||||
|
|
||||||
@@ -78,6 +80,8 @@
|
|||||||
const showMove = ref(false);
|
const showMove = ref(false);
|
||||||
// 加载状态
|
// 加载状态
|
||||||
const loading = ref(true);
|
const loading = ref(true);
|
||||||
|
// 房产类型
|
||||||
|
const type = ref(0);
|
||||||
|
|
||||||
// 表格数据源
|
// 表格数据源
|
||||||
const datasource: DatasourceFunction = ({
|
const datasource: DatasourceFunction = ({
|
||||||
@@ -380,7 +384,7 @@
|
|||||||
/* 删除单个 */
|
/* 删除单个 */
|
||||||
const remove = (row: HouseInfo) => {
|
const remove = (row: HouseInfo) => {
|
||||||
const hide = message.loading('请求中..', 0);
|
const hide = message.loading('请求中..', 0);
|
||||||
removeHouseInfo(row.houseInfoId)
|
removeHouseInfo(row.houseId)
|
||||||
.then((msg) => {
|
.then((msg) => {
|
||||||
hide();
|
hide();
|
||||||
message.success(msg);
|
message.success(msg);
|
||||||
@@ -405,7 +409,7 @@
|
|||||||
maskClosable: true,
|
maskClosable: true,
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
const hide = message.loading('请求中..', 0);
|
const hide = message.loading('请求中..', 0);
|
||||||
removeBatchHouseInfo(selection.value.map((d) => d.houseInfoId))
|
removeBatchHouseInfo(selection.value.map((d) => d.houseId))
|
||||||
.then((msg) => {
|
.then((msg) => {
|
||||||
hide();
|
hide();
|
||||||
message.success(msg);
|
message.success(msg);
|
||||||
@@ -438,6 +442,22 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
query();
|
query();
|
||||||
|
|
||||||
|
watch(
|
||||||
|
currentRoute,
|
||||||
|
(route) => {
|
||||||
|
console.log(route,'12312312route')
|
||||||
|
const {params} = unref(route);
|
||||||
|
console.log(params,'ppp')
|
||||||
|
const {id} = params;
|
||||||
|
if (id) {
|
||||||
|
type.value = Number(id);
|
||||||
|
console.log(type.value,'.......TYPE');
|
||||||
|
}
|
||||||
|
reload();
|
||||||
|
},
|
||||||
|
{immediate: true}
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
|||||||
@@ -376,6 +376,8 @@ import {ref, reactive, watch, computed} from 'vue';
|
|||||||
visible: boolean;
|
visible: boolean;
|
||||||
// 修改回显的数据
|
// 修改回显的数据
|
||||||
data?: HouseInfo | null;
|
data?: HouseInfo | null;
|
||||||
|
// 类型
|
||||||
|
type?: number;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
@@ -691,7 +693,8 @@ import {ref, reactive, watch, computed} from 'vue';
|
|||||||
content: content.value,
|
content: content.value,
|
||||||
files: JSON.stringify(files.value),
|
files: JSON.stringify(files.value),
|
||||||
houseLabel: JSON.stringify(houseLabelData.value),
|
houseLabel: JSON.stringify(houseLabelData.value),
|
||||||
monthlyRent: monthlyRent.value
|
monthlyRent: monthlyRent.value,
|
||||||
|
type: props.type
|
||||||
};
|
};
|
||||||
const saveOrUpdate = isUpdate.value ? updateHouseInfo : addHouseInfo;
|
const saveOrUpdate = isUpdate.value ? updateHouseInfo : addHouseInfo;
|
||||||
saveOrUpdate(formData)
|
saveOrUpdate(formData)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="ele-body">
|
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||||
<a-card :bordered="false">
|
<a-card :bordered="false">
|
||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
style="margin-right: 4px"
|
style="margin-right: 4px"
|
||||||
>
|
>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<UserOutlined />
|
<UserOutlined/>
|
||||||
</template>
|
</template>
|
||||||
</a-avatar>
|
</a-avatar>
|
||||||
<div class="user-info">
|
<div class="user-info">
|
||||||
@@ -103,48 +103,56 @@
|
|||||||
v-model:visible="showEdit"
|
v-model:visible="showEdit"
|
||||||
:data="current"
|
:data="current"
|
||||||
:organization-list="data"
|
:organization-list="data"
|
||||||
|
:type="type"
|
||||||
@done="reload"
|
@done="reload"
|
||||||
/>
|
/>
|
||||||
</div>
|
</a-page-header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { createVNode, ref } from 'vue';
|
import {createVNode, watch, unref, ref} from 'vue';
|
||||||
import { message, Modal } from 'ant-design-vue/es';
|
import {message, Modal} from 'ant-design-vue/es';
|
||||||
import {
|
import {useRouter} from 'vue-router';
|
||||||
|
import {
|
||||||
ExclamationCircleOutlined,
|
ExclamationCircleOutlined,
|
||||||
UserOutlined
|
UserOutlined
|
||||||
} from '@ant-design/icons-vue';
|
} from '@ant-design/icons-vue';
|
||||||
import type { EleProTable } from 'ele-admin-pro/es';
|
import type {EleProTable} from 'ele-admin-pro/es';
|
||||||
import { formatNumber, messageLoading, toDateString } from 'ele-admin-pro/es';
|
import {formatNumber, messageLoading, toDateString} from 'ele-admin-pro/es';
|
||||||
import type {
|
import type {
|
||||||
ColumnItem,
|
ColumnItem,
|
||||||
DatasourceFunction
|
DatasourceFunction
|
||||||
} from 'ele-admin-pro/es/ele-pro-table/types';
|
} from 'ele-admin-pro/es/ele-pro-table/types';
|
||||||
import InfoEdit from './components/info-edit.vue';
|
import InfoEdit from './components/info-edit.vue';
|
||||||
import {
|
import {
|
||||||
pageHouseInfo,
|
pageHouseInfo,
|
||||||
removeBatchHouseInfo,
|
removeBatchHouseInfo,
|
||||||
updateHouseInfo,
|
updateHouseInfo,
|
||||||
updateBatchHouseInfo
|
updateBatchHouseInfo
|
||||||
} from '@/api/house/houseInfo';
|
} from '@/api/house/houseInfo';
|
||||||
import type { HouseInfo, HouseInfoParam } from '@/api/house/houseInfo/model';
|
import type {HouseInfo, HouseInfoParam} from '@/api/house/houseInfo/model';
|
||||||
import { Organization } from '@/api/system/organization/model';
|
import {Organization} from '@/api/system/organization/model';
|
||||||
import Search from './components/search.vue';
|
import Search from './components/search.vue';
|
||||||
|
import {getPageTitle} from "@/utils/common";
|
||||||
|
|
||||||
// 树形数据
|
const {currentRoute} = useRouter();
|
||||||
const data = ref<Organization[]>([]);
|
// 树形数据
|
||||||
// 表格选中数据
|
const data = ref<Organization[]>([]);
|
||||||
const selection = ref<HouseInfo[]>([]);
|
// 表格选中数据
|
||||||
// 当前编辑数据
|
const selection = ref<HouseInfo[]>([]);
|
||||||
const current = ref<HouseInfo | null>(null);
|
// 当前编辑数据
|
||||||
// 是否显示编辑弹窗
|
const current = ref<HouseInfo | null>(null);
|
||||||
const showEdit = ref(false);
|
// 是否显示编辑弹窗
|
||||||
|
const showEdit = ref(false);
|
||||||
|
// 房产类型
|
||||||
|
const type = ref(0);
|
||||||
|
|
||||||
// 表格实例
|
|
||||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
|
||||||
// 表格列配置
|
// 表格实例
|
||||||
const columns = ref<ColumnItem[]>([
|
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||||
|
// 表格列配置
|
||||||
|
const columns = ref<ColumnItem[]>([
|
||||||
// {
|
// {
|
||||||
// key: 'index',
|
// key: 'index',
|
||||||
// width: 48,
|
// width: 48,
|
||||||
@@ -256,12 +264,12 @@
|
|||||||
width: 170,
|
width: 170,
|
||||||
showSorterTooltip: false,
|
showSorterTooltip: false,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
customRender: ({ text }) => toDateString(text)
|
customRender: ({text}) => toDateString(text)
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// 表格数据源
|
// 表格数据源
|
||||||
const datasource: DatasourceFunction = ({
|
const datasource: DatasourceFunction = ({
|
||||||
page,
|
page,
|
||||||
limit,
|
limit,
|
||||||
where,
|
where,
|
||||||
@@ -270,22 +278,23 @@
|
|||||||
}) => {
|
}) => {
|
||||||
where.showProfile = true;
|
where.showProfile = true;
|
||||||
where.roleId = filters.roles;
|
where.roleId = filters.roles;
|
||||||
return pageHouseInfo({ page, limit, ...where, ...orders });
|
where.type = type.value;
|
||||||
};
|
return pageHouseInfo({page, limit, ...where, ...orders});
|
||||||
/* 搜索 */
|
};
|
||||||
const reload = (where?: HouseInfoParam) => {
|
/* 搜索 */
|
||||||
|
const reload = (where?: HouseInfoParam) => {
|
||||||
selection.value = [];
|
selection.value = [];
|
||||||
tableRef?.value?.reload({ where });
|
tableRef?.value?.reload({where});
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 打开编辑弹窗 */
|
/* 打开编辑弹窗 */
|
||||||
const openEdit = (row?: HouseInfo) => {
|
const openEdit = (row?: HouseInfo) => {
|
||||||
current.value = row ?? null;
|
current.value = row ?? null;
|
||||||
showEdit.value = true;
|
showEdit.value = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 修改推荐状态 */
|
/* 修改推荐状态 */
|
||||||
const editRecommend = (checked: boolean, row: HouseInfo) => {
|
const editRecommend = (checked: boolean, row: HouseInfo) => {
|
||||||
const recommend = checked ? 1 : 0;
|
const recommend = checked ? 1 : 0;
|
||||||
updateHouseInfo({
|
updateHouseInfo({
|
||||||
houseId: row.houseId,
|
houseId: row.houseId,
|
||||||
@@ -299,10 +308,10 @@
|
|||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
message.error(e.message);
|
message.error(e.message);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 修改上架状态 */
|
/* 修改上架状态 */
|
||||||
const editStatus = (checked: boolean, row: HouseInfo) => {
|
const editStatus = (checked: boolean, row: HouseInfo) => {
|
||||||
const status = checked ? 0 : 10;
|
const status = checked ? 0 : 10;
|
||||||
updateHouseInfo({
|
updateHouseInfo({
|
||||||
houseId: row.houseId,
|
houseId: row.houseId,
|
||||||
@@ -316,9 +325,9 @@
|
|||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
message.error(e.message);
|
message.error(e.message);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const editMustSee = (checked: boolean, row: HouseInfo) => {
|
const editMustSee = (checked: boolean, row: HouseInfo) => {
|
||||||
const mustSee = checked ? 1 : 0;
|
const mustSee = checked ? 1 : 0;
|
||||||
updateHouseInfo({
|
updateHouseInfo({
|
||||||
houseId: row.houseId,
|
houseId: row.houseId,
|
||||||
@@ -332,9 +341,9 @@
|
|||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
message.error(e.message);
|
message.error(e.message);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
/* 批量删除 */
|
/* 批量删除 */
|
||||||
const removeBatch = () => {
|
const removeBatch = () => {
|
||||||
if (!selection.value.length) {
|
if (!selection.value.length) {
|
||||||
message.error('请至少选择一条数据');
|
message.error('请至少选择一条数据');
|
||||||
return;
|
return;
|
||||||
@@ -358,10 +367,10 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 批量下架 */
|
/* 批量下架 */
|
||||||
const banBatch = () => {
|
const banBatch = () => {
|
||||||
if (!selection.value.length) {
|
if (!selection.value.length) {
|
||||||
message.error('请至少选择一条数据');
|
message.error('请至少选择一条数据');
|
||||||
return;
|
return;
|
||||||
@@ -374,7 +383,7 @@
|
|||||||
onOk: () => {
|
onOk: () => {
|
||||||
const hide = messageLoading('请求中..', 0);
|
const hide = messageLoading('请求中..', 0);
|
||||||
updateBatchHouseInfo({
|
updateBatchHouseInfo({
|
||||||
ids:selection.value.map((d) => d.houseId),
|
ids: selection.value.map((d) => d.houseId),
|
||||||
data: {
|
data: {
|
||||||
status: 10
|
status: 10
|
||||||
}
|
}
|
||||||
@@ -390,10 +399,10 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 自定义行属性 */
|
/* 自定义行属性 */
|
||||||
const customRow = (record: HouseInfo) => {
|
const customRow = (record: HouseInfo) => {
|
||||||
return {
|
return {
|
||||||
// 行点击事件
|
// 行点击事件
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
@@ -404,23 +413,36 @@
|
|||||||
openEdit(record);
|
openEdit(record);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
watch(
|
||||||
|
currentRoute,
|
||||||
|
(route) => {
|
||||||
|
const {query} = unref(route);
|
||||||
|
if (query.type) {
|
||||||
|
type.value = Number(query.type);
|
||||||
|
}
|
||||||
|
reload();
|
||||||
|
},
|
||||||
|
{immediate: true}
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'HouseInfo'
|
name: 'HouseInfo'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.user-box {
|
.user-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.user-info {
|
.user-info {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
<a-upload
|
<a-upload
|
||||||
v-model:file-list="fileList"
|
v-model:file-list="fileList"
|
||||||
name="file"
|
name="file"
|
||||||
action="https://server.websoft.top/api/oss/upload"
|
action="http://192.168.222.129:8000/api/oss/upload"
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
@change="onUpload"
|
@change="onUpload"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -167,7 +167,6 @@
|
|||||||
image: undefined,
|
image: undefined,
|
||||||
content: undefined,
|
content: undefined,
|
||||||
files: undefined,
|
files: undefined,
|
||||||
comments: undefined,
|
|
||||||
recommend: undefined,
|
recommend: undefined,
|
||||||
status: undefined,
|
status: undefined,
|
||||||
deleted: undefined,
|
deleted: undefined,
|
||||||
@@ -175,11 +174,7 @@
|
|||||||
tenantId: undefined,
|
tenantId: undefined,
|
||||||
createTime: undefined,
|
createTime: undefined,
|
||||||
updateTime: undefined,
|
updateTime: undefined,
|
||||||
pwlProjectLibraryId: undefined,
|
comments: ''
|
||||||
pwlProjectLibraryName: '',
|
|
||||||
status: 0,
|
|
||||||
comments: '',
|
|
||||||
sortNumber: 100
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/* 更新visible */
|
/* 更新visible */
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="pwlProjectLibraryId"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
@@ -224,7 +224,7 @@
|
|||||||
/* 删除单个 */
|
/* 删除单个 */
|
||||||
const remove = (row: PwlProjectLibrary) => {
|
const remove = (row: PwlProjectLibrary) => {
|
||||||
const hide = message.loading('请求中..', 0);
|
const hide = message.loading('请求中..', 0);
|
||||||
removePwlProjectLibrary(row.pwlProjectLibraryId)
|
removePwlProjectLibrary(row.id)
|
||||||
.then((msg) => {
|
.then((msg) => {
|
||||||
hide();
|
hide();
|
||||||
message.success(msg);
|
message.success(msg);
|
||||||
@@ -249,7 +249,7 @@
|
|||||||
maskClosable: true,
|
maskClosable: true,
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
const hide = message.loading('请求中..', 0);
|
const hide = message.loading('请求中..', 0);
|
||||||
removeBatchPwlProjectLibrary(selection.value.map((d) => d.pwlProjectLibraryId))
|
removeBatchPwlProjectLibrary(selection.value.map((d) => d.id))
|
||||||
.then((msg) => {
|
.then((msg) => {
|
||||||
hide();
|
hide();
|
||||||
message.success(msg);
|
message.success(msg);
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<div class="ele-text-center">
|
<div class="ele-text-center">
|
||||||
<span>只能上传xls、xlsx文件,</span>
|
<span>只能上传xls、xlsx文件,</span>
|
||||||
<a
|
<a
|
||||||
href="https://server.websoft.top/api/system/user/import/template"
|
href="http://192.168.222.129:8000/api/system/user/import/template"
|
||||||
download="用户导入模板.xlsx"
|
download="用户导入模板.xlsx"
|
||||||
>
|
>
|
||||||
下载导入模板
|
下载导入模板
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<div class="ele-text-center">
|
<div class="ele-text-center">
|
||||||
<span>只能上传xls、xlsx文件,</span>
|
<span>只能上传xls、xlsx文件,</span>
|
||||||
<a
|
<a
|
||||||
href="https://server.websoft.top/api/system/user/import/template"
|
href="http://192.168.222.129:8000/api/system/user/import/template"
|
||||||
download="用户导入模板.xlsx"
|
download="用户导入模板.xlsx"
|
||||||
>
|
>
|
||||||
下载导入模板
|
下载导入模板
|
||||||
|
|||||||
@@ -27,9 +27,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<a-form-item label="request合法域名" name="request">
|
<a-form-item label="request合法域名" name="request">
|
||||||
<a-input-group compact>
|
<a-input-group compact>
|
||||||
<a-input :value="`https://server.websoft.top;https://cms-api.websoft.top;`" placeholder="请输入小程序AppSecret" style="width: calc(100% - 50px)" />
|
<a-input :value="`http://192.168.222.129:8000;https://cms-api.websoft.top;`" placeholder="请输入小程序AppSecret" style="width: calc(100% - 50px)" />
|
||||||
<a-tooltip title="复制">
|
<a-tooltip title="复制">
|
||||||
<a-button @click="onCopyText(`https://server.websoft.top;https://cms-api.websoft.top;`)">
|
<a-button @click="onCopyText(`http://192.168.222.129:8000;https://cms-api.websoft.top;`)">
|
||||||
<template #icon><CopyOutlined /></template>
|
<template #icon><CopyOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
|
|||||||
@@ -44,12 +44,12 @@
|
|||||||
<a-form-item label="网页授权域名" name="authorize">
|
<a-form-item label="网页授权域名" name="authorize">
|
||||||
<a-input-group compact>
|
<a-input-group compact>
|
||||||
<a-input
|
<a-input
|
||||||
:value="`https://server.websoft.top`"
|
:value="`http://192.168.222.129:8000`"
|
||||||
placeholder="请输入网页授权域名"
|
placeholder="请输入网页授权域名"
|
||||||
style="width: calc(100% - 50px)"
|
style="width: calc(100% - 50px)"
|
||||||
/>
|
/>
|
||||||
<a-tooltip title="复制">
|
<a-tooltip title="复制">
|
||||||
<a-button @click="onCopyText(`https://server.websoft.top`)">
|
<a-button @click="onCopyText(`http://192.168.222.129:8000`)">
|
||||||
<template #icon><CopyOutlined /></template>
|
<template #icon><CopyOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export default defineConfig(({ command }) => {
|
|||||||
// 代理配置
|
// 代理配置
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: process.env.VITE_API_URL || 'https://server.websoft.top',
|
target: process.env.VITE_API_URL || 'http://192.168.222.129:8000',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
configure: (proxy, _options) => {
|
configure: (proxy, _options) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user