up.
This commit is contained in:
parent
e6772f6036
commit
c8eed0f11c
@ -91,7 +91,11 @@ export function strToBind(type: string, bindStr: string): any {
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function valueToStr(type: string, value: any) {
|
export function valueToStr(type: string, value: any) {
|
||||||
|
switch (type) {
|
||||||
|
case 'json':
|
||||||
|
return value ? JSON.stringify(value) : "{}";
|
||||||
|
default:
|
||||||
return value;
|
return value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,9 +32,13 @@
|
|||||||
<config-form-list
|
<config-form-list
|
||||||
ref="configFormListRef"
|
ref="configFormListRef"
|
||||||
:config-list="configList"
|
: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>
|
</el-form>
|
||||||
</ele-card>
|
</ele-card>
|
||||||
</ele-page>
|
</ele-page>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user