WholeProcessPlatform/frontend/src/store/modules/model.ts

37 lines
819 B
TypeScript
Raw Normal View History

import { defineStore } from 'pinia';
import { ref } from 'vue';
export const useModelStore = defineStore('model', () => {
// state
const modalVisible = ref(false);
const currentTabKey = ref("basicInfo");
const tabList = ref([]);
const title = ref('');
const isBasicEdit = ref(false);
const showStcdSelector = ref(false); // 是否显示下拉框
const stcdOptions = ref<Array<{ label: string, value: string }>>([]); // 可选测站列表
const params = ref<{
sttp: string;
2026-05-26 19:30:22 +08:00
stcd: any;
date: any;
2026-06-03 17:10:34 +08:00
show: any;
enfc:any;
}>({
2026-05-26 19:30:22 +08:00
sttp: 'eng',
stcd: '',
date: '',
show: true,
enfc:'0',
});
return {
params,
modalVisible,
currentTabKey,
tabList,
title,
isBasicEdit,
showStcdSelector, // 新增
stcdOptions // 新增
};
});