Przeglądaj źródła

修改用量必填样式

chencc 1 rok temu
rodzic
commit
d1f5731756

+ 12 - 5
src/views/material/BOMmanage/components/detailedList.vue

@@ -2,9 +2,8 @@
   <div class="ele-body">
 
     <BOMSearch @search="reload" :statusOpt="statusOpt" />
-    <ele-pro-table ref="table" :key="tableKey" :columns="columns" :datasource="datasource" class="dict-table"
+    <ele-pro-table ref="table" :key="tableKey" :columns="columns" :header-cell-style="headerCellStyle" :datasource="datasource" class="dict-table"
       tool-class="ele-toolbar-actions">
-
       <template v-slot:toolbar>
         <div class="toolbar_box">
           <div v-if="attributeData.status != 1">
@@ -198,8 +197,9 @@ export default {
         {
           prop: 'dosage',
           slot: 'dosage',
-          label: '用量',
-          width: 100
+          label: '用量*',
+          width: 100,
+ 
         },
 
         {
@@ -439,7 +439,14 @@ export default {
 
 
   methods: {
-
+    headerCellStyle({ column }) {
+      if (column.property === 'dosage') {
+        return {
+          color: 'red',
+        }
+      }
+      return {}
+    },
     rootCategoryLevelIdText(v) {
       if (v) {
         let a = this.rootCategoryLevelIdList.find(item => item.value == v)