1.修复字典查询的方式,改为模糊查询
2.修改新增字段的bug
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
<a-row :gutter="10">
|
<a-row :gutter="10">
|
||||||
<a-col :md="8" :sm="12">
|
<a-col :md="8" :sm="12">
|
||||||
<a-form-item label="名称">
|
<a-form-item label="名称">
|
||||||
<a-input style="width: 120px;" placeholder="请输入名称" v-model="queryParam.itemText"></a-input>
|
<j-input style="width: 120px;" placeholder="请输入名称" v-model="queryParam.itemText"></j-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="9" :sm="24">
|
<a-col :md="9" :sm="24">
|
||||||
|
|||||||
@@ -7,12 +7,12 @@
|
|||||||
<a-row :gutter="12">
|
<a-row :gutter="12">
|
||||||
<a-col :md="7" :sm="8">
|
<a-col :md="7" :sm="8">
|
||||||
<a-form-item label="字典名称" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}">
|
<a-form-item label="字典名称" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}">
|
||||||
<a-input placeholder="请输入字典名称" v-model="queryParam.dictName"></a-input>
|
<j-input placeholder="请输入字典名称" v-model="queryParam.dictName"></j-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="7" :sm="8">
|
<a-col :md="7" :sm="8">
|
||||||
<a-form-item label="字典编号" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}">
|
<a-form-item label="字典编号" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}">
|
||||||
<a-input placeholder="请输入字典编号" v-model="queryParam.dictCode"></a-input>
|
<j-input placeholder="请输入字典编号" v-model="queryParam.dictCode"></j-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="7" :sm="8">
|
<a-col :md="7" :sm="8">
|
||||||
|
|||||||
@@ -114,9 +114,7 @@
|
|||||||
this.model.dictName = (this.model.dictName || '').trim()
|
this.model.dictName = (this.model.dictName || '').trim()
|
||||||
this.model.dictCode = (this.model.dictCode || '').trim()
|
this.model.dictCode = (this.model.dictCode || '').trim()
|
||||||
this.model.description = (this.model.description || '').trim()
|
this.model.description = (this.model.description || '').trim()
|
||||||
let formData = Object.assign(this.model, values)
|
|
||||||
let obj
|
let obj
|
||||||
console.log(formData)
|
|
||||||
if (!this.model.id) {
|
if (!this.model.id) {
|
||||||
obj = addDict(this.model)
|
obj = addDict(this.model)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user