fix: BUG修改
This commit is contained in:
parent
5f15b41b9d
commit
f04dc15b4a
@ -161,7 +161,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, onMounted, reactive, watch } from "vue";
|
||||
import { ref, onBeforeMount, reactive, watch } from "vue";
|
||||
import AMap from "@/components/AMap/AMap.vue";
|
||||
import { ruleForm, rules } from "./basic-form";
|
||||
import { ElMessage, FormInstance } from "element-plus";
|
||||
@ -265,11 +265,11 @@ const reset = () => {
|
||||
ruleForm.latitude = ""; //维度
|
||||
ruleForm.businessLicenseOriginalName = "";
|
||||
};
|
||||
|
||||
onMounted(async () => {
|
||||
onBeforeMount(async () => {
|
||||
const res = await goverMentlist();
|
||||
// @ts-expect-error
|
||||
governNameList.value = res.result;
|
||||
console.log(globalStore.Message, "-----qy");
|
||||
if (globalStore.Message) {
|
||||
ruleForm.value = globalStore.Message;
|
||||
ruleForm.value.position = "经度:" + ruleForm.value.longitude + " 纬度:" + ruleForm.value.latitude;
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, onMounted } from "vue";
|
||||
import { ref, reactive, onBeforeMount } from "vue";
|
||||
import { useRouter } from "vue-router";
|
||||
import Setps from "@/components/Steps/setps.vue";
|
||||
import BasicForm from "./basic-form.vue";
|
||||
@ -22,7 +22,7 @@ import type { RuleFormData } from "./basic-form.vue";
|
||||
import type { EnterpriseMains } from "./entrepreneur.vue";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { GlobalStore } from "@/stores";
|
||||
import { getIdCompanyDetail } from "@/api/modules/goverment";
|
||||
// import { getIdCompanyDetail } from "@/api/modules/goverment";
|
||||
const globalStore = GlobalStore();
|
||||
const router = useRouter();
|
||||
const emits = defineEmits(["confirm"]);
|
||||
@ -93,12 +93,12 @@ const onSubmit = async () => {
|
||||
// router.replace("/login");
|
||||
}
|
||||
};
|
||||
onMounted(async () => {
|
||||
const { result } = await getIdCompanyDetail({ enterpriseId: props.id });
|
||||
console.log(result);
|
||||
if (result) {
|
||||
globalStore.Message = result;
|
||||
}
|
||||
onBeforeMount(async () => {
|
||||
// const { result } = await getIdCompanyDetail({ enterpriseId: props.id });
|
||||
// console.log(result);
|
||||
// if (result) {
|
||||
// globalStore.Message = result;
|
||||
// }
|
||||
// console.log(router.params);
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -61,7 +61,7 @@
|
||||
>
|
||||
<el-button plain color="#47A99D" size="small">选择文件</el-button>
|
||||
<template #tip>
|
||||
<div v-show="!row.fileList.length" style="margin-left: 10px; margin-top: 10px; color: #aeaeae">
|
||||
<div v-show="row.fileList && !row.fileList.length" style="margin-left: 10px; margin-top: 10px; color: #aeaeae">
|
||||
未选择任何文件
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -204,6 +204,8 @@ import { getDicList } from "@/api/modules/jxjview";
|
||||
import { getCompanyApproveList, getIdCompanyList, getIdCompanyDetail, editCompanyApprove } from "@/api/modules/goverment";
|
||||
import { Base64 } from "js-base64";
|
||||
import editForm from "./components/editForm/index.vue";
|
||||
import { GlobalStore } from "@/stores";
|
||||
const globalStore = GlobalStore();
|
||||
|
||||
const router = useRouter();
|
||||
const rowObj = ref();
|
||||
@ -238,6 +240,11 @@ getDicMainList();
|
||||
|
||||
// 修改数据按钮
|
||||
const handleEditItem = async (row: any) => {
|
||||
const { result } = await getIdCompanyDetail({ enterpriseId: row.enterpriseId });
|
||||
console.log(result);
|
||||
if (result) {
|
||||
globalStore.Message = result;
|
||||
}
|
||||
editVisible.value = true;
|
||||
rowObj.value = row;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user