|
@@ -209,7 +209,7 @@ export default {
|
|
|
if (script) {
|
|
if (script) {
|
|
|
script.parentNode.removeChild(script)
|
|
script.parentNode.removeChild(script)
|
|
|
}
|
|
}
|
|
|
- /*清除缓存 */
|
|
|
|
|
|
|
+ /* 清除缓存 */
|
|
|
if (this.formDef.key) {
|
|
if (this.formDef.key) {
|
|
|
JForm.cleanEvents()
|
|
JForm.cleanEvents()
|
|
|
}
|
|
}
|
|
@@ -436,9 +436,7 @@ export default {
|
|
|
* 设置字段数据
|
|
* 设置字段数据
|
|
|
*/
|
|
*/
|
|
|
setData(name, value) {
|
|
setData(name, value) {
|
|
|
- setTimeout(() => {
|
|
|
|
|
- return this.getForm().setFieldData(name, value)
|
|
|
|
|
- }, 200);
|
|
|
|
|
|
|
+ this.getForm().setFieldData(name, value)
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 设置表单权限
|
|
* 设置表单权限
|