Browse Source

指标权重明细单位改成字典值

liusungtsun 1 year ago
parent
commit
3d5ad36bec
2 changed files with 14 additions and 8 deletions
  1. 12 8
      src/views/norm/feeindex.vue
  2. 2 0
      src/views/norm/formula.vue

+ 12 - 8
src/views/norm/feeindex.vue

@@ -70,7 +70,6 @@
           @queryTable="getList"
         ></right-toolbar>
       </el-row>
-
       <el-table :data="normData" @selection-change="handleSelectionChange">
         <el-table-column type="selection" width="55" align="center" />
         <el-table-column
@@ -102,9 +101,18 @@
         <el-table-column
           label="计量单位"
           align="center"
-          prop="funit_dictText"
+          prop="funit"
           width="100"
-        />
+        >
+        <template slot-scope="scope">
+          <span>{{
+            selectDictLabel(
+              dict.type.norm_uint,
+              scope.row.funit
+            )
+          }}</span>
+        </template>
+      </el-table-column>
         <el-table-column
           label="权数"
           align="center"
@@ -301,6 +309,7 @@ export default {
   components: {
     formula
   },
+  dicts: ["norm_uint"],
   props: {
     isShowNormDialog: {
       type: Boolean,
@@ -327,11 +336,6 @@ export default {
   },
   data() {
     return {
-      dict: {
-        type: {
-          dictType: "",
-        },
-      },
       // 根路径
       baseURL: process.env.VUE_APP_BASE_API,
       // 遮罩层

+ 2 - 0
src/views/norm/formula.vue

@@ -195,6 +195,8 @@
       init(formula) {
         if(formula) {
           this.number_input = formula
+        }else {
+          this.number_input = ''
         }
       },
       close () {