|
@@ -67,18 +67,18 @@
|
|
|
:rules="chartRules"
|
|
|
>
|
|
|
<el-form-item :label="$t('ToolBox.CommodityPriceChart.select_future')" prop="futures_id" v-if="chartInfo.Source===2">
|
|
|
- <el-cascader
|
|
|
+ <cascader
|
|
|
v-model="chartInfo.futures_id"
|
|
|
:options="futuresOptions"
|
|
|
- :props="{
|
|
|
- label: 'FutureGoodEdbInfoName',
|
|
|
+ cascaderWidth="width: 90%"
|
|
|
+ :placeholder="$t('ToolBox.CommodityPriceChart.please_select_future')"
|
|
|
+ @changeVal="changeFuturesHandle"
|
|
|
+ :config="{
|
|
|
+ label:momentLang=== 'zh'?'FutureGoodEdbInfoName':'FutureGoodEdbInfoNameEn',
|
|
|
value: 'FutureGoodEdbInfoId',
|
|
|
children: 'Child',
|
|
|
emitPath: false
|
|
|
}"
|
|
|
- style="width: 90%"
|
|
|
- :placeholder="$t('ToolBox.CommodityPriceChart.please_select_future')"
|
|
|
- @change="changeFuturesHandle"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item :label="$t('ToolBox.CommodityPriceChart.chart_name')" :prop="currentLang==='en'?'ChartNameEn':'ChartName'">
|
|
@@ -98,16 +98,15 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item :label="$t('ToolBox.CommodityPriceChart.chart_classify')" prop="classify">
|
|
|
- <el-cascader
|
|
|
+ <cascader
|
|
|
v-model="chartInfo.classify"
|
|
|
:options="classifyOptions"
|
|
|
- :props="{
|
|
|
- label: 'ChartClassifyName',
|
|
|
+ :config="{
|
|
|
+ label:momentLang=== 'zh'?'ChartClassifyName':'ChartClassifyNameEn',
|
|
|
value: 'ChartClassifyId',
|
|
|
- children: 'Children',
|
|
|
emitPath: false
|
|
|
}"
|
|
|
- style="width: 90%"
|
|
|
+ cascaderWidth="width: 90%"
|
|
|
:placeholder="$t('ToolBox.CommodityPriceChart.please_select_classify')"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -229,6 +228,9 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
computed: {
|
|
|
+ momentLang() {
|
|
|
+ return this.$store.state.lang;
|
|
|
+ },
|
|
|
roleName() {
|
|
|
return localStorage.getItem('userName');
|
|
|
},
|