mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-03 08:20:36 +00:00
improve: 必填项判断
This commit is contained in:
parent
89e287de84
commit
c83d7ead9e
@ -15,7 +15,7 @@
|
||||
:props="{ checkStrictly: true, multiple: false, emitPath: false }"
|
||||
clearable
|
||||
></el-cascader>
|
||||
<div class="tip">可选项,选择的菜单成功后会自动写入到此菜单下</div>
|
||||
<div class="tip">必选项,选择的菜单成功后会自动写入到此菜单下</div>
|
||||
</FormItem>
|
||||
<FormItem label="菜单名称">
|
||||
<Input class="form-width" v-model="foundation.menuName" placeholder="请输入表名"></Input>
|
||||
|
||||
@ -85,9 +85,8 @@ export default {
|
||||
},
|
||||
nextTab() {
|
||||
if (this.currentTab == 0) {
|
||||
if (!this.formItem.foundation.tableName) {
|
||||
return this.$Message.warning('请输入表名');
|
||||
}
|
||||
if (!this.formItem.foundation.pid) return this.$Message.warning('请选择菜单');
|
||||
if (!this.formItem.foundation.tableName) return this.$Message.warning('请输入表名');
|
||||
if (!this.formItem.foundation.isTable) {
|
||||
if (!this.$refs.Foundation.tableField.length) return this.$Message.warning('请先添加表数据');
|
||||
if (this.$refs.Foundation.tableField.length)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user