mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
34 lines
1.0 KiB
JavaScript
34 lines
1.0 KiB
JavaScript
(function (vc) {
|
|
|
|
vc.extends({
|
|
data: {
|
|
chooseFlowElementConditionInfo: {
|
|
flag: 'Auto',
|
|
condition: '',
|
|
}
|
|
},
|
|
_initMethod: function () {
|
|
},
|
|
_initEvent: function () {
|
|
vc.on('chooseFlowElementCondition', 'openModal', function (_param) {
|
|
$that.clearAddActivitiesRuleInfo();
|
|
vc.copyObject(_param, $that.chooseFlowElementConditionInfo);
|
|
$('#chooseFlowElementConditionModel').modal('show');
|
|
});
|
|
},
|
|
methods: {
|
|
chooseFlowCondition: function () {
|
|
vc.emit('bpmnjs', 'index', $that.chooseFlowElementConditionInfo);
|
|
$('#chooseFlowElementConditionModel').modal('hide');
|
|
},
|
|
clearAddActivitiesRuleInfo: function () {
|
|
vc.component.chooseFlowElementConditionInfo = {
|
|
condition: '',
|
|
flag: 'Auto',
|
|
};
|
|
}
|
|
}
|
|
});
|
|
|
|
})(window.vc);
|