ZaiZai 1 年間 前
コミット
43fa42b687
1 ファイル変更7 行追加5 行削除
  1. 7 5
      src/views/funding/modules/plan-data.vue

+ 7 - 5
src/views/funding/modules/plan-data.vue

@@ -33,11 +33,11 @@
                 is-new :index-style="{ width: 60 }" :column="tableColumn" :datas="tableData"
                 :loading="tableLoading" is-current-row @row-click="hangeRow"
             >
-                <template #periodNumber="{ row }">
-                    <hc-table-input v-model="row.periodNumber" />
+                <template #key1="{ row }">
+                    <hc-table-input v-model="row.key1" />
                 </template>
-                <template #periodYear="{ row }">
-                    <el-select v-model="row.periodYear" placeholder="选择年份" filterable block>
+                <template #key2="{ row }">
+                    <el-select v-model="row.key2" placeholder="选择年份" filterable block>
                         <el-option v-for="item in yearData" :key="item" :label="item" :value="item" />
                     </el-select>
                 </template>
@@ -86,7 +86,9 @@ const setInitData = () => {
 const yearData = ref([])
 
 //表格数据
-const tableData = ref([])
+const tableData = ref([
+    {},
+])
 const tableColumn = ref([
     { key: 'key1', name: '期名称' },
     { key: 'key2', name: '年份' },