fix: BUG修改

This commit is contained in:
kun 2023-09-01 09:34:04 +08:00
parent b95100950a
commit c4c74ae3af
4 changed files with 18 additions and 6 deletions

View File

@ -86,7 +86,8 @@ onMounted(async () => {
let curr = store.Message.engineeringMains.find(main => item.type == main.type); let curr = store.Message.engineeringMains.find(main => item.type == main.type);
if ("contractType" in item) { if ("contractType" in item) {
return (curr = { return (curr = {
enterpriseSn: curr.enterpriseName, ...curr,
enterpriseSn: curr.enterpriseSn,
creditCode: curr.creditCode, creditCode: curr.creditCode,
legalPerson: curr.legalPerson, legalPerson: curr.legalPerson,
legalPersonTel: curr.legalPersonTel, legalPersonTel: curr.legalPersonTel,

View File

@ -93,6 +93,7 @@ watch(visible1, (n, o) => {
emits("update:detailsDialog", n); emits("update:detailsDialog", n);
}); });
onMounted(() => { onMounted(() => {
console.log(666);
// console.log(router.params); // console.log(router.params);
}); });
onUnmounted(() => { onUnmounted(() => {

View File

@ -347,6 +347,11 @@ onMounted(async () => {
engineeringPurpose.value = res.result; engineeringPurpose.value = res.result;
const res1 = await getDicList({ dictType: "structural_style" }); const res1 = await getDicList({ dictType: "structural_style" });
structuralStyle.value = res1.result; structuralStyle.value = res1.result;
if (store.Message) {
form.value = store.Message;
form.value.position = "经度:" + store.Message.longitude + " 纬度:" + store.Message.latitude;
addressList.value = store.Message;
}
// if (store.Message) { // if (store.Message) {
// form.value = store.Message; // form.value = store.Message;
// addressList.value = store.Message; // addressList.value = store.Message;

View File

@ -63,7 +63,7 @@ import ProTable from "@/components/ProTable/index.vue";
import ProjectSupervision from "./components/ProjectSupervision/index.vue"; import ProjectSupervision from "./components/ProjectSupervision/index.vue";
import readonlyDialog from "./components/readonlyDialog/index.vue"; import readonlyDialog from "./components/readonlyDialog/index.vue";
import editDialog from "./components/editDialog/index.vue"; import editDialog from "./components/editDialog/index.vue";
import { getEngineeringApproveList, getEngineeringApproveArea } from "@/api/modules/goverment"; import { getEngineeringApproveList, getEngineeringApproveArea, getIdEngApproveList } from "@/api/modules/goverment";
import { getDicList } from "@/api/modules/jxjview"; import { getDicList } from "@/api/modules/jxjview";
import { GlobalStore } from "@/stores"; import { GlobalStore } from "@/stores";
import largeScreen from "../../../hz-enterprise/largeScreen/largeScreenOne/index.vue"; import largeScreen from "../../../hz-enterprise/largeScreen/largeScreenOne/index.vue";
@ -144,10 +144,6 @@ const toScreen = row => {
} }
showScreen.value = !showScreen.value; showScreen.value = !showScreen.value;
}; };
const onEdit = row => {
relativeId.value = row.id;
editennMEssageVisible.value = true;
};
const getDicStatusList = async () => { const getDicStatusList = async () => {
const { result } = await getDicList({ dictType: "engineering_state" }); const { result } = await getDicList({ dictType: "engineering_state" });
DicStatusList.value.length = 0; DicStatusList.value.length = 0;
@ -174,6 +170,15 @@ const handleAddItem = () => {
approvalTitle.value = "新增"; approvalTitle.value = "新增";
detailsDialog.value = true; detailsDialog.value = true;
}; };
//
const onEdit = async row => {
const res = await getIdEngApproveList({ id: row.id });
store.Message = res.result;
approvalTitle.value = "编辑";
detailsDialog.value = true;
// relativeId.value = row.id;
// editennMEssageVisible.value = true;
};
const getTableList = (params: any) => { const getTableList = (params: any) => {
let newParams = JSON.parse(JSON.stringify(params)); let newParams = JSON.parse(JSON.stringify(params));
console.log(newParams); console.log(newParams);