明树Git Lab

Commit b7568991 authored by suesueyue's avatar suesueyue

参股企业详情开发

parent f374d490
Pipeline #108665 passed with stage
in 37 seconds
This diff is collapsed.
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
"devDependencies": { "devDependencies": {
"@vitejs/plugin-vue": "^6.0.1", "@vitejs/plugin-vue": "^6.0.1",
"less": "^4.4.2", "less": "^4.4.2",
"sass-embedded": "^1.98.0",
"vite": "^7.2.2" "vite": "^7.2.2"
} }
} }
...@@ -64,7 +64,13 @@ ...@@ -64,7 +64,13 @@
:scrollbar-always-on="scrollbarAlwaysOn" :scrollbar-always-on="scrollbarAlwaysOn"
> >
<!-- 序号列 --> <!-- 序号列 -->
<el-table-column type="index" fixed="left" width="60" label="序号" /> <el-table-column
type="index"
fixed="left"
align="center"
width="60"
label="序号"
/>
<!-- 🌟 有配置headerGroup → 渲染多级表头(按组合并) --> <!-- 🌟 有配置headerGroup → 渲染多级表头(按组合并) -->
<template <template
...@@ -262,6 +268,7 @@ ...@@ -262,6 +268,7 @@
<el-table-column <el-table-column
label="操作" label="操作"
fixed="right" fixed="right"
align="center"
:width="operationColumnWidth" :width="operationColumnWidth"
:min-width="operationColumnMinWidth" :min-width="operationColumnMinWidth"
v-if=" v-if="
...@@ -414,7 +421,7 @@ const convertDataForExport = (data) => { ...@@ -414,7 +421,7 @@ const convertDataForExport = (data) => {
newRow[prop] = newRow[prop] newRow[prop] = newRow[prop]
.map((key) => { .map((key) => {
const option = options.find( const option = options.find(
(item) => (item.key || item.value) === key, (item) => (item.key || item.value) === key
); );
return option ? item.name || item.label : key; return option ? item.name || item.label : key;
}) })
...@@ -422,7 +429,7 @@ const convertDataForExport = (data) => { ...@@ -422,7 +429,7 @@ const convertDataForExport = (data) => {
} else { } else {
// 处理单选 // 处理单选
const option = options.find( const option = options.find(
(item) => (item.key || item.value) === newRow[prop], (item) => (item.key || item.value) === newRow[prop]
); );
newRow[prop] = option ? item.name || item.label : newRow[prop]; newRow[prop] = option ? item.name || item.label : newRow[prop];
} }
...@@ -457,14 +464,14 @@ const convertDataForImport = (data) => { ...@@ -457,14 +464,14 @@ const convertDataForImport = (data) => {
.map((item) => item.trim()); .map((item) => item.trim());
newRow[prop] = textList.map((text) => { newRow[prop] = textList.map((text) => {
const option = options.find( const option = options.find(
(item) => (item.name || item.label) === text, (item) => (item.name || item.label) === text
); );
return option ? item.key || item.value : text; return option ? item.key || item.value : text;
}); });
} else { } else {
// 处理单选 // 处理单选
const option = options.find( const option = options.find(
(item) => (item.name || item.label) === newRow[prop], (item) => (item.name || item.label) === newRow[prop]
); );
newRow[prop] = option ? item.key || item.value : newRow[prop]; newRow[prop] = option ? item.key || item.value : newRow[prop];
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment