diff --git a/src/views/ne/neSoftware/index.vue b/src/views/ne/neSoftware/index.vue
index 151698b7..bcdeab03 100644
--- a/src/views/ne/neSoftware/index.vue
+++ b/src/views/ne/neSoftware/index.vue
@@ -65,6 +65,8 @@ type TabeStateType = {
data: object[];
/**勾选记录 */
selectedRowKeys: (string | number)[];
+ /**勾选单行记录 */
+ selectedRowOne: any;
};
/**表格状态 */
@@ -74,6 +76,8 @@ let tableState: TabeStateType = reactive({
seached: false,
data: [],
selectedRowKeys: [],
+ /**勾选单行记录 */
+ selectedRowOne: { neType: '' },
});
/**表格字段列 */
@@ -166,8 +170,17 @@ function fnTableSize({ key }: MenuInfo) {
}
/**表格多选 */
-function fnTableSelectedRowKeys(keys: (string | number)[]) {
+function fnTableSelectedRowKeys(
+ keys: (string | number)[],
+ selectedRows: any[]
+) {
tableState.selectedRowKeys = keys;
+ // 勾选单个上传
+ if (selectedRows.length === 1) {
+ tableState.selectedRowOne = selectedRows[0];
+ } else {
+ tableState.selectedRowOne = { neType: '' };
+ }
}
/**查询列表, pageNum初始页数 */
@@ -414,6 +427,7 @@ onMounted(() => {
(modalState.visibleByMoreFile = !modalState.visibleByMoreFile)
@@ -421,6 +435,7 @@ onMounted(() => {
>
{{ t('views.ne.neSoftware.uploadBatch') }}
+ {{ tableState.selectedRowOne.neType }}
{
diff --git a/src/views/ne/neVersion/index.vue b/src/views/ne/neVersion/index.vue
index a97b60d8..ba31775c 100644
--- a/src/views/ne/neVersion/index.vue
+++ b/src/views/ne/neVersion/index.vue
@@ -67,6 +67,8 @@ type TabeStateType = {
data: any[];
/**勾选记录 */
selectedRowKeys: (string | number)[];
+ /**勾选单行记录 */
+ selectedRowOne: any;
};
/**表格状态 */
@@ -76,6 +78,8 @@ let tableState: TabeStateType = reactive({
seached: false,
data: [],
selectedRowKeys: [],
+ /**勾选单行记录 */
+ selectedRowOne: { neType: '' },
});
/**表格字段列 */
@@ -183,8 +187,17 @@ function fnTableSize({ key }: MenuInfo) {
}
/**表格多选 */
-function fnTableSelectedRowKeys(keys: (string | number)[]) {
+function fnTableSelectedRowKeys(
+ keys: (string | number)[],
+ selectedRows: any[]
+) {
tableState.selectedRowKeys = keys;
+ // 勾选单个上传
+ if (selectedRows.length === 1) {
+ tableState.selectedRowOne = selectedRows[0];
+ } else {
+ tableState.selectedRowOne = { neType: '' };
+ }
}
/**查询列表, pageNum初始页数 */
@@ -487,6 +500,7 @@ onMounted(() => {
(modalState.visibleByMoreFile = !modalState.visibleByMoreFile)
@@ -494,6 +508,7 @@ onMounted(() => {
>
{{ t('views.ne.neSoftware.uploadBatch') }}
+ {{ tableState.selectedRowOne.neType }}
{