|
@@ -1,25 +1,27 @@
|
|
|
+import bus from '@/api/bus'
|
|
|
+// console.log(bus.$i18nt.t('EtaBasePage.future_common_edb'))
|
|
|
/* 公用校验 计算指标 */
|
|
|
export const formRules= {
|
|
|
targetName: [
|
|
|
- { required: true, message: '指标名称不能为空', trigger: 'blur' },
|
|
|
+ { required: true, message: bus.$i18nt.t('Edb.Valids.name_msg'), trigger: 'blur' },
|
|
|
],
|
|
|
unit: [
|
|
|
- { required: true, message: '单位不能为空', trigger: ['blur','change'] },
|
|
|
+ { required: true, message: /* '单位不能为空' */bus.$i18nt.t('Edb.Valids.unit_msg'), trigger: ['blur','change'] },
|
|
|
],
|
|
|
menu: [
|
|
|
- { required: true, message: '指标目录不能为空', trigger: 'blur' },
|
|
|
+ { required: true, message: /* '指标目录不能为空' */bus.$i18nt.t('Edb.Valids.menu_msg'), trigger: 'blur' },
|
|
|
],
|
|
|
frequency: [
|
|
|
- { required: true, message: '频度不能为空', trigger: 'blur' },
|
|
|
+ { required: true, message: /* '频度不能为空' */bus.$i18nt.t('Edb.Valids.fre_msg'), trigger: 'blur' },
|
|
|
],
|
|
|
n_num: [
|
|
|
- { required: true, message: 'N不能为空', trigger: 'blur' },
|
|
|
+ { required: true, message: /* 'N不能为空' */bus.$i18nt.t('Edb.Valids.n_msg'), trigger: 'blur' },
|
|
|
],
|
|
|
moveVal: [
|
|
|
- { required: true, message: '移动方式参数不能为空',trigger: 'blur' }
|
|
|
+ { required: true, message: /* '移动方式参数不能为空' */bus.$i18nt.t('Edb.Valids.move_msg'),trigger: 'blur' }
|
|
|
],
|
|
|
calendar_type: [
|
|
|
- { required: true, message: '日历不能为空',trigger: 'blur' }
|
|
|
+ { required: true, message: /* '日历不能为空' */bus.$i18nt.t('Edb.Valids.calendar_msg'),trigger: 'blur' }
|
|
|
],
|
|
|
alphaValue:[
|
|
|
{ validator:(rule,value,callback)=>{
|
|
@@ -29,7 +31,7 @@ export const formRules= {
|
|
|
callback()
|
|
|
}
|
|
|
},trigger:['change','blur']},
|
|
|
- { required:true,message:'alpha值不能为空',trigger:'blur'},
|
|
|
+ { required:true,message:/* 'alpha值不能为空' */bus.$i18nt.t('Edb.Valids.alpha_msg'),trigger:'blur'},
|
|
|
]
|
|
|
}
|
|
|
|
|
@@ -443,46 +445,46 @@ export const formulaTip = new Map([
|
|
|
|
|
|
// wind 日期序列常见指标代码
|
|
|
export const windCommonIndexCodeArr=[
|
|
|
- {value:'pre_close',label:"前收盘价"},
|
|
|
- {value:'open',label:"开盘价"},
|
|
|
- {value:'high',label:"最高价"},
|
|
|
- {value:'low',label:"最低价"},
|
|
|
- {value:'close',label:"收盘价"},
|
|
|
- {value:'settle',label:"结算价"},
|
|
|
- {value:'volume',label:"成交量"},
|
|
|
- {value:'amt',label:"成交额"},
|
|
|
- {value:'pct_chg',label:"涨跌幅"},
|
|
|
- {value:'swing',label:"振幅"},
|
|
|
- {value:'turn',label:"换手率"},
|
|
|
- {value:'oi',label:"持仓量"},
|
|
|
- {value:'oiamount',label:"持仓额"}
|
|
|
+ {value:'pre_close',label:bus.$i18nt.t('EtaBasePage.pre_price')},
|
|
|
+ {value:'open',label:bus.$i18nt.t('EtaBasePage.pre_price')/* "开盘价" */},
|
|
|
+ {value:'high',label:bus.$i18nt.t('EtaBasePage.high_price')/* "最高价" */},
|
|
|
+ {value:'low',label:bus.$i18nt.t('EtaBasePage.low_price')/* "最低价" */},
|
|
|
+ {value:'close',label:bus.$i18nt.t('EtaBasePage.close_price')/* "收盘价" */},
|
|
|
+ {value:'settle',label:bus.$i18nt.t('EtaBasePage.settle_price')/* "结算价" */},
|
|
|
+ {value:'volume',label:bus.$i18nt.t('EtaBasePage.trade_volume')/* "成交量" */},
|
|
|
+ {value:'amt',label:bus.$i18nt.t('EtaBasePage.turnover')/* "成交额" */},
|
|
|
+ {value:'pct_chg',label:bus.$i18nt.t('EtaBasePage.incre_decre')/* "涨跌幅" */},
|
|
|
+ {value:'swing',label:bus.$i18nt.t('EtaBasePage.fluctua')/* "振幅" */},
|
|
|
+ {value:'turn',label:bus.$i18nt.t('EtaBasePage.turn_rate')/* "换手率" */},
|
|
|
+ {value:'oi',label:bus.$i18nt.t('EtaBasePage.open_inter')/* "持仓量" */},
|
|
|
+ {value:'oiamount',label:bus.$i18nt.t('EtaBasePage.open_val')/* "持仓额" */}
|
|
|
]
|
|
|
|
|
|
// 同花顺 日期序列常见 股票指标代码
|
|
|
export const THSCommonIndexStockCodeArr=[
|
|
|
- {value:'ths_pre_close_stock',label:"前收盘价"},
|
|
|
- {value:'ths_open_price_stock',label:"开盘价"},
|
|
|
- {value:'ths_high_price_stock',label:"最高价"},
|
|
|
- {value:'ths_low_stock',label:"最低价"},
|
|
|
- {value:'ths_close_price_stock',label:"收盘价"},
|
|
|
- {value:'ths_vol_stock',label:"成交量"},
|
|
|
- {value:'ths_amt_stock',label:"成交额"},
|
|
|
- {value:'ths_chg_ratio_stock',label:"涨跌幅"},
|
|
|
- {value:'ths_swing_stock',label:"振幅"},
|
|
|
- {value:'ths_turnover_ratio_stock',label:"换手率"},
|
|
|
+ {value:'ths_pre_close_stock',label:bus.$i18nt.t('EtaBasePage.pre_price')/* "前收盘价" */},
|
|
|
+ {value:'ths_open_price_stock',label:bus.$i18nt.t('EtaBasePage.op_price')/* "开盘价" */},
|
|
|
+ {value:'ths_high_price_stock',label:bus.$i18nt.t('EtaBasePage.high_price')/* "最高价" */},
|
|
|
+ {value:'ths_low_stock',label:bus.$i18nt.t('EtaBasePage.low_price')/* "最低价" */},
|
|
|
+ {value:'ths_close_price_stock',label:bus.$i18nt.t('EtaBasePage.close_price')/* "收盘价" */},
|
|
|
+ {value:'ths_vol_stock',label:bus.$i18nt.t('EtaBasePage.trade_volume')/* "成交量" */},
|
|
|
+ {value:'ths_amt_stock',label:bus.$i18nt.t('EtaBasePage.turnover')/* "成交额" */},
|
|
|
+ {value:'ths_chg_ratio_stock',label:bus.$i18nt.t('EtaBasePage.incre_decre')/* "涨跌幅" */},
|
|
|
+ {value:'ths_swing_stock',label:bus.$i18nt.t('EtaBasePage.fluctua')/* "振幅" */},
|
|
|
+ {value:'ths_turnover_ratio_stock',label:bus.$i18nt.t('EtaBasePage.turn_rate')/* "换手率" */},
|
|
|
]
|
|
|
|
|
|
// 同花顺 日期序列常见 指标代码
|
|
|
export const THSCommonIndexFuturesCodeArr=[
|
|
|
- {value:'ths_pre_close_future',label:"前收盘价"},
|
|
|
- {value:'ths_open_price_future',label:"开盘价"},
|
|
|
- {value:'ths_high_price_future',label:"最高价"},
|
|
|
- {value:'ths_low_future',label:"最低价"},
|
|
|
- {value:'ths_close_price_future',label:"收盘价"},
|
|
|
- {value:'ths_settle_future',label:"结算价"},
|
|
|
- {value:'ths_vol_future',label:"成交量"},
|
|
|
- {value:'ths_amt_future',label:"成交额"},
|
|
|
- {value:'ths_chg_ratio_future',label:"涨跌幅"},
|
|
|
- {value:'ths_swing_d_future',label:"日振幅"},
|
|
|
- {value:'ths_open_interest_future',label:"持仓量"},
|
|
|
+ {value:'ths_pre_close_future',label:bus.$i18nt.t('EtaBasePage.pre_price')/* "前收盘价" */},
|
|
|
+ {value:'ths_open_price_future',label:bus.$i18nt.t('EtaBasePage.op_price')/* "开盘价" */},
|
|
|
+ {value:'ths_high_price_future',label:bus.$i18nt.t('EtaBasePage.high_price')/* "最高价" */},
|
|
|
+ {value:'ths_low_future',label:bus.$i18nt.t('EtaBasePage.low_price')/* "最低价" */},
|
|
|
+ {value:'ths_close_price_future',label:bus.$i18nt.t('EtaBasePage.close_price')/* "收盘价" */},
|
|
|
+ {value:'ths_settle_future',label:bus.$i18nt.t('EtaBasePage.settle_price')/* "结算价" */},
|
|
|
+ {value:'ths_vol_future',label:bus.$i18nt.t('EtaBasePage.trade_volume')/* "成交量" */},
|
|
|
+ {value:'ths_amt_future',label:bus.$i18nt.t('EtaBasePage.turnover')/* "成交额" */},
|
|
|
+ {value:'ths_chg_ratio_future',label:bus.$i18nt.t('EtaBasePage.incre_decre')/* "涨跌幅" */},
|
|
|
+ {value:'ths_swing_d_future',label:bus.$i18nt.t('EtaBasePage.fluctua_day')/* "日振幅" */},
|
|
|
+ {value:'ths_open_interest_future',label:bus.$i18nt.t('EtaBasePage.open_inter')/* "持仓量" */},
|
|
|
]
|