Răsfoiți Sursa

一些报错

cxmo 1 an în urmă
părinte
comite
b4e5b64c02
1 a modificat fișierele cu 6 adăugiri și 4 ștergeri
  1. 6 4
      src/views/chartETA/components/SetChartEnName.vue

+ 6 - 4
src/views/chartETA/components/SetChartEnName.vue

@@ -45,7 +45,6 @@ watch(()=>props.isShow,()=>{
 function initForm(){
     const {EdbInfoList} = props.chartInfo
     const {ChartName,ChartNameEn,ExtraConfig} = props.chartInfo.ChartInfo
-    _ExtraConfig.value = JSON.parse(ExtraConfig)
     //第一项固定为图表名称
     formGroup.value.push({
         groupName:'图表名称',
@@ -65,6 +64,7 @@ function initForm(){
     })
     //截面散点图 chartType===10 与其他图格式不一样
     if(Number(props.chartType)===10){
+        _ExtraConfig.value = JSON.parse(ExtraConfig)
         const {XName,XNameEn,XUnitName,XUnitNameEn} = JSON.parse(ExtraConfig)
         const {YName,YNameEn,YUnitName,YUnitNameEn} = JSON.parse(ExtraConfig)
         let suppleFormList = [{
@@ -157,7 +157,7 @@ function initForm(){
                     cnValue:edb.EdbName,
                     enValue:edb.EdbNameEn,
                     Value:edb.EdbName,
-                    noEdit:true
+                    noEdit:true,
                 },
                 {
                     label:'单位',
@@ -171,12 +171,14 @@ function initForm(){
                     cnValue:edb.EdbName,
                     enValue:edb.EdbNameEn,
                     Value:edb.EdbNameEn,
+                    placeholder:'请输入英文指标名称'
                 },
                 {
                     label:'英文单位',
                     cnValue:edb.Unit,
                     enValue:edb.UnitEn,
-                    Value:edb.UnitEn
+                    Value:edb.UnitEn,
+                    placeholder:'请输入英文单位'
                 }
             ]
         })
@@ -282,7 +284,7 @@ async function saveChartEn(params){
             confirmButtonText="确定"
             @confirm="handleConfirmEditCell"
         >
-            <div class="name">{{ currentCell.cnValue}}</div>
+            <div class="name">{{ currentCell.cnValue||'无'}}</div>
             <div class="rename-wrap">
                 <input type="text" :placeholder="currentCell.placeholder" v-model="currentCell.Value">
             </div>