|
|
@@ -0,0 +1,30 @@ |
|
|
|
/** |
|
|
|
* Created by 1 at 2022-07-26 17:18:17 |
|
|
|
* 注册事件类【行政区划管理】,参看event.defaultEvent.js |
|
|
|
*/ |
|
|
|
window.$swEvent.setup("bpm.sys.user.area.area_list", { |
|
|
|
setup(page){ |
|
|
|
const { $params,$refs, $widgets, $model, $utils, $tabRouter, $api } = page || {}; |
|
|
|
const { $$message, $$http } = $utils || {}; |
|
|
|
const custom = {}; |
|
|
|
// |
|
|
|
const focusName = () => { |
|
|
|
custom.name = $model.areacard.getFormVal("ar_name"); |
|
|
|
}; |
|
|
|
const changeName = (value) => { |
|
|
|
if ($model.areacard.getFormVal("ar_full_name") === custom.name) |
|
|
|
$model.areacard.setFormVal("ar_full_name", value); |
|
|
|
}; |
|
|
|
|
|
|
|
const focusCode = () => { |
|
|
|
custom.code = $model.areacard.getFormVal("ar_code"); |
|
|
|
}; |
|
|
|
const changeCode = (value) => { |
|
|
|
if ($model.areacard.getFormVal("ar_seq") === custom.code) |
|
|
|
$model.areacard.setFormVal("ar_seq", value); |
|
|
|
}; |
|
|
|
return { |
|
|
|
focusName, changeName, focusCode, changeCode |
|
|
|
} |
|
|
|
} |
|
|
|
}); |