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