feat: 参数配置四个版本排版-_-||
This commit is contained in:
@@ -1424,14 +1424,19 @@ onMounted(() => {
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</div>
|
||||
<a-button
|
||||
type="link"
|
||||
size="small"
|
||||
@click.prevent="arrayChildExpand(record['index'], text)"
|
||||
v-else-if="Array.isArray(text.array)"
|
||||
>
|
||||
{{ t('common.viewText') }}
|
||||
</a-button>
|
||||
<template v-else-if="text.array">
|
||||
<a-button
|
||||
type="link"
|
||||
size="small"
|
||||
@click.prevent="arrayChildExpand(record['index'], text)"
|
||||
>
|
||||
{{ t('views.configManage.configParamForm.arrayMore') }}
|
||||
</a-button>
|
||||
<!--特殊字段拓展显示-->
|
||||
<span v-if="text.name === 'dnnList'">
|
||||
({{ text.value.map((s: any) => s.dnn).join() }})
|
||||
</span>
|
||||
</template>
|
||||
<div v-else class="editable-cell__text-wrapper">
|
||||
{{ `${text.value}` || ' ' }}
|
||||
</div>
|
||||
|
||||
@@ -239,7 +239,6 @@ let arrayState: ArrayStateType = reactive({
|
||||
|
||||
/**多列表编辑 */
|
||||
function arrayEdit(item: Record<string, any>, index: number) {
|
||||
console.log(item, index);
|
||||
const row: Record<string, any> = {};
|
||||
for (const v of item.record) {
|
||||
row[v.name] = Object.assign({}, v);
|
||||
@@ -521,7 +520,6 @@ function arrayChildExpandClose() {
|
||||
|
||||
/**多列表嵌套行编辑 */
|
||||
function arrayChildEdit(item: Record<string, any>, index: number) {
|
||||
console.log(item, index);
|
||||
const row: Record<string, any> = {};
|
||||
for (const v of item.record) {
|
||||
row[v.name] = Object.assign({}, v);
|
||||
|
||||
@@ -267,7 +267,6 @@ let arrayState: ArrayStateType = reactive({
|
||||
|
||||
/**多列表编辑 */
|
||||
function arrayEdit(item: Record<string, any>, index: number) {
|
||||
console.log(item, index);
|
||||
const row: Record<string, any> = {};
|
||||
for (const v of item.record) {
|
||||
row[v.name] = Object.assign({}, v);
|
||||
@@ -395,7 +394,6 @@ function arrayAdd() {
|
||||
row[v.name] = Object.assign({}, v);
|
||||
}
|
||||
|
||||
console.log(Array.isArray(from.record), from.record);
|
||||
modalState.from = row;
|
||||
modalState.type = 'array';
|
||||
modalState.title = from.title;
|
||||
@@ -550,7 +548,6 @@ function arrayChildExpandClose() {
|
||||
|
||||
/**多列表嵌套行编辑 */
|
||||
function arrayChildEdit(item: Record<string, any>, index: number) {
|
||||
console.log(item, index);
|
||||
const row: Record<string, any> = {};
|
||||
for (const v of item.record) {
|
||||
row[v.name] = Object.assign({}, v);
|
||||
@@ -1386,20 +1383,25 @@ onMounted(() => {
|
||||
</a-select>
|
||||
</div>
|
||||
|
||||
<a-button
|
||||
type="link"
|
||||
size="small"
|
||||
@click.prevent="arrayChildExpand(data.key, item)"
|
||||
v-else-if="Array.isArray(item.array)"
|
||||
>
|
||||
{{
|
||||
arrayState.newIndex === -1
|
||||
? '-'
|
||||
: t(
|
||||
'views.configManage.configParamForm.arrayMore'
|
||||
)
|
||||
}}
|
||||
</a-button>
|
||||
<template v-if="item.array">
|
||||
<a-button
|
||||
type="link"
|
||||
size="small"
|
||||
@click.prevent="arrayChildExpand(data.key, item)"
|
||||
>
|
||||
{{
|
||||
arrayState.newIndex === -1
|
||||
? '-'
|
||||
: t(
|
||||
'views.configManage.configParamForm.arrayMore'
|
||||
)
|
||||
}}
|
||||
</a-button>
|
||||
<!--特殊字段拓展显示-->
|
||||
<span v-if="item.name === 'dnnList'">
|
||||
({{ item.value.map((s: any) => s.dnn).join() }})
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<div v-else>
|
||||
{{ `${item.value}` || ' ' }}
|
||||
@@ -1614,7 +1616,7 @@ onMounted(() => {
|
||||
<a-button
|
||||
type="link"
|
||||
size="small"
|
||||
v-else-if="Array.isArray(item.array)"
|
||||
v-else-if="item.array"
|
||||
>
|
||||
{{
|
||||
arrayChildState.newIndex === -1
|
||||
@@ -1668,6 +1670,7 @@ onMounted(() => {
|
||||
:label="item.display"
|
||||
:name="item.name"
|
||||
:required="item.optional === 'false'"
|
||||
style="margin-bottom: 2px"
|
||||
>
|
||||
<a-tooltip placement="topLeft">
|
||||
<template #title v-if="item.comment">
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user