|
@@ -7,7 +7,8 @@ import EDBHistory from '@/views/dataEDB/components/EDBHistory.vue'
|
|
|
import SelectEDBClassify from '../../components/SelectEDBClassify.vue'
|
|
|
import SelectEDBUnit from '../../components/SelectEDBUnit.vue'
|
|
|
import SelectEDBFrequency from '../../components/SelectEDBFrequency.vue'
|
|
|
-import {calculateTypeTipsMap} from '../../util/config'
|
|
|
+import {calculateTypeTipsMap,MAXADDEDBNUM} from '../../util/config'
|
|
|
+import {generateSeriesArray} from '@/views/dataEDB/util/util.js'
|
|
|
import { useRoute, useRouter } from 'vue-router';
|
|
|
import {useToHistoryPage} from '@/hooks/edb/useToHistoryPage'
|
|
|
const {toHistoryPage} = useToHistoryPage()
|
|
@@ -68,13 +69,7 @@ watch(
|
|
|
// 预览页面
|
|
|
const isPreview=ref(route.query.type==='preview'||false)
|
|
|
|
|
|
-const letterOpts = [];//字母数据
|
|
|
-function initLetterOpt(){
|
|
|
- for(let i=0;i<26;i++){
|
|
|
- letterOpts.push(String.fromCharCode(65+i));
|
|
|
- }
|
|
|
-}
|
|
|
-initLetterOpt()
|
|
|
+const letterOpts = generateSeriesArray()||[];//字母数据
|
|
|
|
|
|
//公式说明
|
|
|
const showTips=ref(false)
|
|
@@ -117,7 +112,7 @@ const edbList=ref([
|
|
|
}
|
|
|
])
|
|
|
function handleAddEdbList(){
|
|
|
- if(edbList.value.length>=26){
|
|
|
+ if(edbList.value.length>=MAXADDEDBNUM){
|
|
|
showToast('添加指标个数已达上限')
|
|
|
return
|
|
|
}
|