fix: BUG修改

This commit is contained in:
kun 2023-07-20 18:23:56 +08:00
parent 5c6ee66131
commit 8a88dd57bc
9 changed files with 90 additions and 20 deletions

View File

@ -281,6 +281,10 @@ export const getEntSubItemproject = (params: User.ReqUserParams) => {
return http.post<ResPage<User.ResUserList>>(BASEURL + `/ent/projectSubItem/engineeringPage`, params);
};
// 分部分项全部数据
export const bigEntItemAll = (params: any) => {
return http.post(BASEURL + `/ent/projectSubItem/list`, params);
};
// 分部分项分页数据
export const bigEntItemPage = (params: any) => {
return http.post(BASEURL + `/ent/projectSubItem/page`, params);
};
@ -356,6 +360,10 @@ export const entApplyTimeList = (params: any) => {
export const entSubItemDetailAdd = (params: any) => {
return http.post(BASEURL + `/ent/investmentPaymentDetail/add`, params);
};
// 分页列表查询投资支付工程
export const getEntApplyTimeproject = (params: User.ReqUserParams) => {
return http.post<ResPage<User.ResUserList>>(BASEURL + `/ent/investmentApply/engineeringPage`, params);
};
// 申报时段分页列表
export const entApplyTimePage = (params: any) => {
return http.post(BASEURL + `/ent/investmentApply/page`, params);

View File

@ -46,6 +46,9 @@
<el-button class="btnStyle" @click="handleAddItem()">新增</el-button>
<!-- <el-button class="btnStyle">刷新</el-button> -->
</template>
<template #state="{ row }">
<span>{{ row.state == 1 ? "未开始" : row.state == 2 ? "进行中" : row.state == 3 ? "已完成" : "已逾期" }}</span>
</template>
<template #slippage="{ row }">
<span :style="{ color: row.slippage ? 'red' : 'var(--el-menu-text-color)' }">{{
row.slippage ? row.slippage : ""
@ -147,6 +150,17 @@ const columns: ColumnProps[] = [
}
}
},
{
prop: "state",
label: "状态",
search: { el: "select" },
enum: [
{ label: "未开始", value: 1 },
{ label: "进行中", value: 2 },
{ label: "已完成", value: 3 },
{ label: "已逾期", value: 4 }
]
},
{ prop: "operation", label: "操作", fixed: "right", width: 120 }
];
//

View File

@ -181,7 +181,15 @@ const columns: ColumnProps[] = [
{
prop: "state",
label: "状态",
width: 150
search: { el: "select" },
width: 150,
enum: [
{ label: "执法中", value: 1 },
{ label: "待整改", value: 2 },
{ label: "待审核", value: 3 },
{ label: "已闭合", value: 4 },
{ label: "已驳回", value: 5 }
]
},
{ prop: "slippage", label: "逾期情况(天)", width: 150 },
{ prop: "operation", label: "操作", fixed: "right", width: 100 }

View File

@ -150,7 +150,15 @@ const columns: ColumnProps[] = [
{
prop: "state",
label: "状态",
width: 150
search: { el: "select" },
width: 150,
enum: [
{ label: "执法中", value: 1 },
{ label: "待整改", value: 2 },
{ label: "待审核", value: 3 },
{ label: "已闭合", value: 4 },
{ label: "已驳回", value: 5 }
]
},
{ prop: "slippage", label: "逾期情况(天)", width: 150 },
{ prop: "operation", label: "操作", fixed: "right", width: 100 }

View File

@ -50,12 +50,14 @@ const onClose = () => {
const mapData = async () => {
console.log(props.projectData);
map.value = new BMapGL.Map("mapBox"); //
let point = new BMapGL.Point(props.projectData.longitude, props.projectData.latitude); //
map.value.centerAndZoom(point, 12); //
map.value.enableScrollWheelZoom(true); //
map.value.setMapStyleV2({
styleJson: mapstyle()
});
setTimeout(function () {
let point = new BMapGL.Point(props.projectData.longitude, props.projectData.latitude); //
map.value.centerAndZoom(point, 12); //
}, 500);
};
//
// const setHoleArea = () => {
@ -180,8 +182,8 @@ const translateCallback = (data: any) => {
onMounted(async () => {
console.log("onMounted");
await mapData();
// addMarker();
// drawArea();
addMarker();
drawArea();
// setHoleArea();
// createArea();
});

View File

@ -74,7 +74,7 @@ import { useRouter } from "vue-router";
import { ColumnProps } from "@/components/ProTable/interface";
import ProTable from "@/components/ProTable/index.vue";
import changeTheme from "@/components/changeTheme/index.vue";
import { entApplyTimePage, entApplyTimeAdd, getEntSubItemproject } from "@/api/modules/huizhou";
import { entApplyTimePage, entApplyTimeAdd, getEntApplyTimeproject } from "@/api/modules/huizhou";
import { GlobalStore } from "@/stores";
import DialogForm from "@/components/DialogForm/index.vue";
import transformInfo1 from "./components/transformInfo1.vue";
@ -191,13 +191,13 @@ const onSearch = async (params: any) => {
// leftMenu
const onSearchInput = async (params: string) => {
console.log(params);
const { result } = await getEntSubItemproject({ engineeringName: params, ...pages.value });
const { result } = await getEntApplyTimeproject({ engineeringName: params, ...pages.value });
records.value = result.records;
};
// leftMenu
const onCurChange = async (params: number) => {
console.log(active.value);
const { result } = await getEntSubItemproject({ ...pages.value, pageNo: params });
const { result } = await getEntApplyTimeproject({ ...pages.value, pageNo: params });
records.value = result.records;
pages.value.total = +result.total;
};
@ -277,7 +277,7 @@ const handleItemDetail = (index: number, row: any) => {
};
//
const getEngPage = async () => {
const { result } = await getEntSubItemproject(pages.value);
const { result } = await getEntApplyTimeproject(pages.value);
records.value = result.records;
records.value.map(item => {
let showGif = false;

View File

@ -42,6 +42,9 @@
<span>查看</span>
</el-button>
</template>
<template #state="{ row }">
<span>{{ row.state == 1 ? "未开始" : row.state == 2 ? "进行中" : row.state == 3 ? "已完成" : "已逾期" }}</span>
</template>
<template #slippage="{ row }">
<span :style="{ color: row.slippage ? 'red' : 'var(--el-menu-text-color)' }">{{ row.slippage }}</span>
</template>
@ -102,16 +105,6 @@ const columns: ColumnProps[] = [
{ prop: "planEndTime", label: "结束日期" },
{ prop: "completeRatio", label: "完成百分比(%)" },
{ prop: "slippage", label: "逾期情况(天)" },
// {
// prop: "state",
// label: "",
// search: { el: "select" },
// isShow: false,
// enum: [
// { label: "", value: 1 },
// { label: "", value: 0 }
// ]
// },
{
prop: "createTime",
label: "时间筛选",
@ -126,6 +119,17 @@ const columns: ColumnProps[] = [
}
}
},
{
prop: "state",
label: "状态",
search: { el: "select" },
enum: [
{ label: "未开始", value: 1 },
{ label: "进行中", value: 2 },
{ label: "已完成", value: 3 },
{ label: "已逾期", value: 4 }
]
},
{ prop: "operation", label: "操作", fixed: "right", width: 100 }
];
//

View File

@ -142,6 +142,19 @@ const columns: ColumnProps[] = [
width: 150
},
{ prop: "slippage", label: "逾期情况(天)", width: 150 },
{
prop: "state",
label: "状态",
search: { el: "select" },
width: 150,
enum: [
{ label: "执法中", value: 1 },
{ label: "待整改", value: 2 },
{ label: "待审核", value: 3 },
{ label: "已闭合", value: 4 },
{ label: "已驳回", value: 5 }
]
},
{ prop: "operation", label: "操作", fixed: "right", width: 100 }
];
const detailsDialog = ref(false);

View File

@ -140,6 +140,19 @@ const columns: ColumnProps[] = [
width: 150
},
{ prop: "slippage", label: "逾期情况(天)", width: 150 },
{
prop: "state",
label: "状态",
search: { el: "select" },
width: 150,
enum: [
{ label: "执法中", value: 1 },
{ label: "待整改", value: 2 },
{ label: "待审核", value: 3 },
{ label: "已闭合", value: 4 },
{ label: "已驳回", value: 5 }
]
},
{ prop: "operation", label: "操作", fixed: "right", width: 100 }
];
const detailsDialog = ref(false);