稳定输出 无地图

zsk_admin
zsk 6 months ago
parent 10115a8bd4
commit 594641bcf3

@ -43,7 +43,7 @@
<div class="g_w_40" style="cursor: default">{{ record.rank }}</div> <div class="g_w_40" style="cursor: default">{{ record.rank }}</div>
</template> </template>
<template v-if="column.key === 'icon'"> <template v-if="column.key === 'icon'">
<img class="g_w_40" :src="record.icon" style="height: auto" alt="" /> <img class="g_w_80" :src="record.icon" style="height: auto" alt="" />
</template> </template>
<template v-if="column.key === 'status'"> <template v-if="column.key === 'status'">
<a-switch @change="(e) => handleRecommend(e, record)" v-model:checked="record.status" checked-children="" un-checked-children="" /> <a-switch @change="(e) => handleRecommend(e, record)" v-model:checked="record.status" checked-children="" un-checked-children="" />
@ -420,9 +420,9 @@ const sourceMock = ref([
}, },
]); ]);
const tableHeight = ref(590); const tableHeight = ref(552);
commonJS.gResize(() => { commonJS.gResize(() => {
tableHeight.value = window.innerHeight - 313; tableHeight.value = window.innerHeight - 381;
}); });
const handleChange = (e) => { const handleChange = (e) => {
console.log("改变:", e); console.log("改变:", e);

@ -139,10 +139,10 @@
</template> </template>
<script setup> <script setup>
import { ref, reactive, onMounted, watch } from "vue"; import { ref, reactive, onMounted, watch, getCurrentInstance } from "vue";
import { message } from "ant-design-vue"; import { message } from "ant-design-vue";
import { getBusinessCoopList, addAgency, getTemplateList, getChannelUserList } from "@/api/bussinessCoop"; import { getBusinessCoopList, addAgency, getTemplateList, getChannelUserList } from "@/api/bussinessCoop";
const commonJS = getCurrentInstance().appContext.app.config.globalProperties.G;
// State // State
const searchKeyword = ref(""); const searchKeyword = ref("");
const loading = ref(false); const loading = ref(false);
@ -198,8 +198,8 @@ const formState = reactive({
channelItemType: "2", channelItemType: "2",
classify: "1", classify: "1",
pmdUserId: null, pmdUserId: null,
consultUserIds: ['315767'], consultUserIds: ["315767"],
channelExpansiontId: '315986', channelExpansiontId: "315986",
address: "", address: "",
lngLatStr: "", lngLatStr: "",
updateContactTime: 0, updateContactTime: 0,
@ -308,7 +308,12 @@ const fetchBusinessCoopList = async () => {
if (response.status == 200) { if (response.status == 200) {
// const { recordList, recordCount } = response.data.pageBean; // const { recordList, recordCount } = response.data.pageBean;
businessCoopList.value = response.data.recordList; // businessCoopList.value = response.data.recordList;
const formatList = response.data.recordList.map((item) => ({
...item,
createTime: commonJS.getPointTime(item.createTime, "YY--MM--DD HH:MM"),
}));
businessCoopList.value = formatList;
pagination.total = response.data.recordCount; pagination.total = response.data.recordCount;
} }
} catch (error) { } catch (error) {
@ -341,18 +346,18 @@ const showExamineModal = (record) => {
}; };
const entryClickExamine = async () => { const entryClickExamine = async () => {
// consultUserIds // consultUserIds
const consultUserIdsStr = formState.consultUserIds.join(","); const consultUserIdsStr = formState.consultUserIds.join(",");
// //
const submitData = { const submitData = {
...formState, ...formState,
consultUserIds: consultUserIdsStr, consultUserIds: consultUserIdsStr,
}; };
entryShowExamineLoading.value = true; entryShowExamineLoading.value = true;
try { try {
await addAgency(formState); // await addAgency(formState);
// await addAgency(submitData); await addAgency(submitData);
message.success("审核提交成功"); message.success("审核提交成功");
entryShowExamine.value = false; entryShowExamine.value = false;
fetchBusinessCoopList(); fetchBusinessCoopList();
@ -381,20 +386,20 @@ const handleChange = () => {
onMounted(async () => { onMounted(async () => {
try { try {
const templateResponse = await getTemplateList(); const templateResponse = await getTemplateList();
templateList.value = templateResponse.data.map((item) => ({ templateList.value = templateResponse.data.map((item) => ({
text: item.groupName, text: item.groupName,
value: item.id + "", value: item.id + "",
})); }));
// id=2 // id=2
formState.menuGroupIds = "2"; formState.menuGroupIds = "2";
const channelUserResponse = await getChannelUserList(); const channelUserResponse = await getChannelUserList();
pmdUserArray.value = channelUserResponse.data.map((item) => ({ pmdUserArray.value = channelUserResponse.data.map((item) => ({
text: item.userName, text: item.userName,
value: item.userId + "", value: item.userId + "",
})); }));
formState.pmdUserId = "315767"; formState.pmdUserId = "315767";
await fetchBusinessCoopList(); await fetchBusinessCoopList();
} catch (error) { } catch (error) {
console.error("Failed to fetch template list or channel user list:", error); console.error("Failed to fetch template list or channel user list:", error);
@ -411,8 +416,8 @@ onMounted(async () => {
.search-container { .search-container {
margin-bottom: 16px; margin-bottom: 16px;
} }
:deep(.ant-form-item){ :deep(.ant-form-item) {
margin-bottom: 12px; margin-bottom: 12px;
} }
:deep(.image-cell) { :deep(.image-cell) {
width: 48px; width: 48px;

@ -181,7 +181,7 @@ const dataObj = reactive({
host: "", host: "",
}); });
const tableHeight = ref(590); const tableHeight = ref(552);
commonJS.gResize(() => { commonJS.gResize(() => {
tableHeight.value = window.innerHeight - 381; tableHeight.value = window.innerHeight - 381;
}); });

@ -69,13 +69,14 @@ const getInit = ($data) => {
document.title = title.value document.title = title.value
pageHeight.value = window.innerHeight - 56 pageHeight.value = window.innerHeight - 56
console.log('路由信息:', $data, ' pageName', pageName.value) console.log('路由信息:', $data, ' pageName', pageName.value)
if (pageName.value == 'townsmanList' || pageName.value == 'notes' || pageName.value == 'jobList' || pageName.value == 'memberInfo' || pageName.value == 'dataStatistics' || pageName.value == 'orderList' || pageName.value == 'mineBill' || pageName.value == 'billDetail' || pageName.value == 'serviceMarket' || pageName.value == 'upstream' || pageName.value == 'downstream' || pageName.value == 'downstreamDetail' || pageName.value == 'upstreamDetail'|| pageName.value == 'downOrderList'|| pageName.value == 'upOrderList'|| pageName.value == 'jobDetail'|| pageName.value == 'merchantBackHomePage') { // if (pageName.value == 'townsmanList' || pageName.value == 'notes' || pageName.value == 'jobList' || pageName.value == 'memberInfo' || pageName.value == 'dataStatistics' || pageName.value == 'orderList' || pageName.value == 'mineBill' || pageName.value == 'billDetail' || pageName.value == 'serviceMarket' || pageName.value == 'upstream' || pageName.value == 'downstream' || pageName.value == 'downstreamDetail' || pageName.value == 'upstreamDetail'|| pageName.value == 'downOrderList'|| pageName.value == 'upOrderList'|| pageName.value == 'jobDetail'|| pageName.value == 'merchantBackHomePage') {
// footer // // footer
isShowFooter.value = false // isShowFooter.value = false
} else { // } else {
// footer // // footer
isShowFooter.value = true // isShowFooter.value = true
} // }
isShowFooter.value = true
window.onresize = () => { window.onresize = () => {
pageHeight.value = window.innerHeight - 56 pageHeight.value = window.innerHeight - 56
} }

Loading…
Cancel
Save