fix: BUG修改

This commit is contained in:
kun 2023-08-14 19:13:19 +08:00
parent 76fa49fa7a
commit 0edf388d9b
5 changed files with 11 additions and 5 deletions

View File

@ -2,10 +2,10 @@
NODE_ENV = 'development' NODE_ENV = 'development'
# 本地环境接口地址(/api/index.ts文件中使用) # 本地环境接口地址(/api/index.ts文件中使用)
VITE_API_URL = 'http://192.168.34.155:6688' # VITE_API_URL = 'http://192.168.34.155:6688'
# VITE_API_URL = 'http://2xliv7gs.shenzhuo.vip:55296' # VITE_API_URL = 'http://2xliv7gs.shenzhuo.vip:55296'
VITE_WPAPI_URL = "http://182.90.224.147:8081" VITE_WPAPI_URL = "http://182.90.224.147:8081"
# VITE_API_URL = "http://182.90.224.147:9013" VITE_API_URL = "http://182.90.224.147:9013"
# 上传 # 上传
# VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url=' # VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='

View File

@ -30,6 +30,8 @@ export const GlobalStore = defineStore({
// language // language
language: "", language: "",
path: null, path: null,
// 进度计划默认选中
leftMenuIndex: 0,
// themeConfig // themeConfig
themeConfig: { themeConfig: {
// 当前页面是否全屏 // 当前页面是否全屏

View File

@ -16,6 +16,7 @@ export interface GlobalState {
openDropdown: boolean | null; openDropdown: boolean | null;
path: string | null; path: string | null;
isManager: string | null; isManager: string | null;
leftMenuIndex: number;
} }
/* themeConfigProp */ /* themeConfigProp */

View File

@ -129,6 +129,8 @@ import { bigItemGovermentAll } from "@/api/modules/huizhou";
import LeftMenu from "@/components/LeftMenu/LeftMenu.vue"; import LeftMenu from "@/components/LeftMenu/LeftMenu.vue";
import { getDustprojectPage, getDustengineeringPage } from "@/api/modules/goverment"; import { getDustprojectPage, getDustengineeringPage } from "@/api/modules/goverment";
import { sendIframeMessage } from "@/utils/util"; import { sendIframeMessage } from "@/utils/util";
import { GlobalStore } from "@/stores";
const store = GlobalStore();
const modelActive = ref(null); const modelActive = ref(null);
const route = useRoute(); const route = useRoute();
const headerList = reactive([ const headerList = reactive([
@ -342,8 +344,8 @@ const getEngPage = async () => {
}; };
onMounted(async () => { onMounted(async () => {
await getEngPage(); await getEngPage();
if (route.query.menuIndex) { if (store.leftMenuIndex) {
modelActive.value = route.query.menuIndex; modelActive.value = store.leftMenuIndex;
onSearch(records.value[modelActive.value]); onSearch(records.value[modelActive.value]);
searchSn.value = (records.value as any[])[modelActive.value].projectSn; searchSn.value = (records.value as any[])[modelActive.value].projectSn;
searchName.value = (records.value as any[])[modelActive.value].projectName; searchName.value = (records.value as any[])[modelActive.value].projectName;

View File

@ -256,7 +256,8 @@ const proTable = ref();
const searchSn = ref(""); const searchSn = ref("");
// //
const seeGantt = () => { const seeGantt = () => {
router.push("/goverment/huizhou/progressManagement/GanttchartChart/index?menuIndex=" + leftMenuIndex.value); store.leftMenuIndex = leftMenuIndex.value;
router.push("/goverment/huizhou/progressManagement/GanttchartChart/index");
}; };
// //
const handleAddItem = () => { const handleAddItem = () => {