-
Notifications
You must be signed in to change notification settings - Fork 15.4k
下拉搜索框在编辑时下拉name无法带过来 #971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
好像是因为我的值是不是string的原因. |
请配合截图说明 |
截图已补充 |
收录 |
下载附件覆盖 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
版本号:2.1.4
问题描述:
在online配置的下拉搜索框,生成的对应代码model中的标签为:
<j-search-select-tag>
在数据上点击编辑,这个时候下拉框回填的值是实际存储值,并不是显示的值.
另外还有一个小问题,下拉框使用数据字典的话,数据字典的项的值不能有0的,如果有0的话,在新增的时候选择这个保存后,再点击编辑,这个时候下拉框回显没有值内容为空
截图&代码:
<j-search-select-tag v-decorator="['neTypeId', validatorRules.neTypeId]" dict="sys_category,name,code" />
table列表里展示的信息如下:

这里是获取的通过系统字典翻译过来的值,即 _dictText 的值,实际存储的值是个数字,这里显示正常
点击表格最后一栏操作的"编辑"按钮,弹出框的内容为如下:

这里就有些问题了,下拉框中应该显示"MRFP",而不是具体存的值"25",这是使用j-search-select-tag时出现的问题,如果使用j-dict-select-tag的话,就没有问题,但是我这里的下来内容比较多,必须要使用j-search-select-tag这种的带搜索的下拉框
点击下拉的时候,下来内容是正常的,如下:

友情提示: 未按格式要求发帖,会直接删掉。
The text was updated successfully, but these errors were encountered: