This commit is contained in:
u2nyakim 2025-08-26 11:26:41 +08:00
parent e6772f6036
commit c8eed0f11c
2 changed files with 12 additions and 4 deletions

View File

@ -91,7 +91,11 @@ export function strToBind(type: string, bindStr: string): any {
return {};
}
export function valueToStr(type: string, value: any) {
return value;
switch (type) {
case 'json':
return value ? JSON.stringify(value) : "{}";
default:
return value;
}
}

View File

@ -32,9 +32,13 @@
<config-form-list
ref="configFormListRef"
:config-list="configList"
v-if="configList.length > 0"
/>
<el-button @click="saveForm">保存</el-button>
<el-form-item v-if="configList.length > 0">
<div style="text-align: center;width: 100%;">
<el-button type="primary" @click="saveForm">保存配置</el-button>
</div>
</el-form-item>
<el-empty v-else description="没有定义配置列表" />
</el-form>
</ele-card>
</ele-page>