mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
56 lines
1.7 KiB
JavaScript
56 lines
1.7 KiB
JavaScript
/**
|
|
入驻小区
|
|
**/
|
|
(function (vc) {
|
|
var DEFAULT_PAGE = 1;
|
|
var DEFAULT_ROWS = 100;
|
|
vc.extends({
|
|
data: {
|
|
newOaWorkflowFormInfo: {
|
|
formJson: {},
|
|
conditions: {
|
|
}
|
|
}
|
|
},
|
|
_initMethod: function () {
|
|
vc.component._listOaWorkflowForm(DEFAULT_PAGE, DEFAULT_ROWS);
|
|
},
|
|
_initEvent: function () {
|
|
|
|
vc.on('newOaWorkflowForm', 'listNewOaWorkflow', function (_param) {
|
|
vc.component._listNewOaWorkflows(DEFAULT_PAGE, DEFAULT_ROWS);
|
|
});
|
|
},
|
|
methods: {
|
|
_listOaWorkflowForm: function (_page, _rows) {
|
|
var param = {
|
|
params: {
|
|
page: 1,
|
|
row: 1,
|
|
flowId: vc.getParam('flowId')
|
|
}
|
|
};
|
|
|
|
//发送get请求
|
|
vc.http.apiGet('/oaWorkflow/queryOaWorkflowForm',
|
|
param,
|
|
function (json, res) {
|
|
let _newOaWorkflowFormInfo = JSON.parse(json);
|
|
$that.newOaWorkflowFormInfo.formJson = JSON.parse(_newOaWorkflowFormInfo.data[0].formJson);
|
|
$that._initForm();
|
|
}, function (errInfo, error) {
|
|
console.log('请求失败处理');
|
|
}
|
|
);
|
|
},
|
|
_initForm: function () {
|
|
const container = document.querySelector('#form');
|
|
FormViewer.createForm({
|
|
container,
|
|
schema: $that.newOaWorkflowFormInfo.formJson
|
|
});
|
|
}
|
|
}
|
|
});
|
|
})(window.vc);
|