Browse Source

refactor(forecast): 优化表单标签并移除无用编辑按钮

yz 4 weeks ago
parent
commit
77fa02ac4d
2 changed files with 2 additions and 24 deletions
  1. 2 2
      src/components/forecast-form/form-option.js
  2. 0 22
      src/views/forecast/index.vue

+ 2 - 2
src/components/forecast-form/form-option.js

@@ -60,7 +60,7 @@ export const forecastFormOption = {
           }]
         },
         {
-          label: '年份',
+          label: '预测年份',
           prop: 'year',
           type: 'year',
           span: 12,
@@ -73,7 +73,7 @@ export const forecastFormOption = {
           }]
         },
         {
-          label: '月份',
+          label: '预测月份',
           prop: 'month',
           type: 'select',
           span: 12,

+ 0 - 22
src/views/forecast/index.vue

@@ -54,28 +54,6 @@
           </el-tag>
         </template>
 
-        <!-- 自定义编辑按钮 -->
-        <template slot-scope="{row, index}" slot="editBtn">
-          <el-button
-            v-if="canEdit(row)"
-            type="text"
-            size="small"
-            icon="el-icon-edit-outline"
-            @click="handleEdit(row, index)"
-          >
-            编辑
-          </el-button>
-          <el-button
-            v-else
-            type="text"
-            size="small"
-            icon="el-icon-view"
-            disabled
-            style="color: #c0c4cc;"
-          >
-            不可编辑
-          </el-button>
-        </template>
       </avue-crud>
     </div>