自定义字段名称不能包含顿号
This commit is contained in:
parent
949d8fd61e
commit
988b4ebb83
|
@ -141,6 +141,10 @@ export default {
|
||||||
this.$refs.form.validate((valid) => {
|
this.$refs.form.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let param = {};
|
let param = {};
|
||||||
|
if (this.form.name.indexOf('.') > -1) {
|
||||||
|
this.$error("名称不能包含'.'号");
|
||||||
|
return;
|
||||||
|
}
|
||||||
Object.assign(param, this.form);
|
Object.assign(param, this.form);
|
||||||
param.workspaceId = getCurrentWorkspaceId();
|
param.workspaceId = getCurrentWorkspaceId();
|
||||||
if (['select','multipleSelect','radio','checkbox'].indexOf(param.type) > -1) {
|
if (['select','multipleSelect','radio','checkbox'].indexOf(param.type) > -1) {
|
||||||
|
|
Loading…
Reference in New Issue