|
@@ -33,11 +33,11 @@
|
|
is-new :index-style="{ width: 60 }" :column="tableColumn" :datas="tableData"
|
|
is-new :index-style="{ width: 60 }" :column="tableColumn" :datas="tableData"
|
|
:loading="tableLoading" is-current-row @row-click="hangeRow"
|
|
: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>
|
|
- <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-option v-for="item in yearData" :key="item" :label="item" :value="item" />
|
|
</el-select>
|
|
</el-select>
|
|
</template>
|
|
</template>
|
|
@@ -86,7 +86,9 @@ const setInitData = () => {
|
|
const yearData = ref([])
|
|
const yearData = ref([])
|
|
|
|
|
|
//表格数据
|
|
//表格数据
|
|
-const tableData = ref([])
|
|
|
|
|
|
+const tableData = ref([
|
|
|
|
+ {},
|
|
|
|
+])
|
|
const tableColumn = ref([
|
|
const tableColumn = ref([
|
|
{ key: 'key1', name: '期名称' },
|
|
{ key: 'key1', name: '期名称' },
|
|
{ key: 'key2', name: '年份' },
|
|
{ key: 'key2', name: '年份' },
|