-
@@ -9,7 +9,7 @@
-
+
@@ -19,16 +19,17 @@
保存
-
-
-
+
+
+
-
+
{{ row.xmdh }} {{ row.xmmc }}
+
@@ -52,46 +53,43 @@ import YQSelectTable from '@/components/SelectTable/YQSelectTable/index.vue';
import CustomTable from '@/components/elTable/index.vue'
const formData = ref({
- yq: '',
- xmdh: ''
+ yq: '46',
+ xmdh: '',
+ sl: ''
})
const dataListLeft = ref([])
const dataListRight = ref([])
-const checked = ref(false);
-const xmValue = '1';
-
//退拽属性
const handleColumnDragEnd = (data: any) => {
// 更新列配置
- columnsLeft.value = data.columns;
columnsRight.value = data.columns;
}
const tableConfig = ref({
border: true, // 边框
- height: '76vh', // 高度
+ height: '100%', // 高度
highlightCurrentRow: true, // 高亮当前行
- // cellStyle: cellStyleHd
})
const columnsLeft = ref([
- { prop: 'sqxmmc', label: '申请/收费项目名称', visible: true, align: 'center', width: 200 },
- { prop: 'sqxmdh', label: '申请/收费项目代号', visible: true, align: 'center', width: 130 },
+ { prop: 'sqxmmc', label: '申请/收费项目名称', visible: true, align: 'center', },
+ { prop: 'sqxmdh', label: '申请/收费项目代号', visible: true, align: 'center', },
]);
const columnsRight = ref([
- { prop: 'xmdh', label: '报告项目', visible: true, align: 'center', width: 300, slot: 'xmdh' },
- { prop: 'tdh', label: '双工代号', visible: true, align: 'center', width: 100, slot: 'tdh' },
- { prop: 'mrz', label: '默认值', visible: true, align: 'center', width: 100, slot: 'mrz' },
- { prop: 'seq', label: '序号', visible: true, align: 'center', width: 100 },
- { prop: 'def', label: '非必做', visible: true, align: 'center', width: 100, slot: 'def' },
+ { prop: 'xmdh', label: '报告项目', visible: true, align: 'center', width: 250, slot: 'xmdh', showOverflowTooltip: false },
+ { prop: 'tdh', label: '双工代号', visible: true, align: 'center', slot: 'tdh' },
+ { prop: 'mrz', label: '默认值', visible: true, align: 'center', slot: 'mrz' },
+ { prop: 'seq', label: '序号', visible: true, align: 'center', },
+ { prop: 'def', label: '非必做', visible: true, align: 'center', slot: 'def' },
]);
// 获取数据列表
const getList = async () => {
- const res = await queryListService({ yq: formData.value.yq })
+ const res = await queryListService(formData.value)
dataListLeft.value = res.data
+ rowClickLeft(dataListLeft.value[0] || { sqxmdh: '', sqxmmc: '' })
}
const onClickAdd = () => {
@@ -111,6 +109,16 @@ const rowClickLeft = async (row: any) => {
const res = await queryDetailService({ sqxmdh: row.sqxmdh, sqxmmc: row.sqxmmc, yq: formData.value.yq })
dataListRight.value = res.rows
}
+getList()
-
+