{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\jenkins\\workspace\\xq-web-bpm\\src\\api\\form.js","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\api\\form.js","mtime":1675071990819},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport req from \"@/request.js\";\nvar form = window.context.form;\nvar portal = window.context.portal;\nexport default {\n //刷新外部表元数据\n reloadByEntId: function reloadByEntId(id, alias) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/bo/def/v1/reload?id=\".concat(id, \"&alias=\").concat(alias)).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n saveTemplateData: function saveTemplateData(data) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/dataTemplate/v1/save\", data).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n // 通过别名获取关联查询\n getByAliasCq: function getByAliasCq(alias, cb) {\n req.post(form + \"/form/customQuery/v1/getByAlias\", alias).then(function (response) {\n cb(response.data);\n });\n },\n //获取数据视图变量\n getDataTemplateVarList: function getDataTemplateVarList(id) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/form/dataTemplate/v1/getVarList\").then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getPageJson: function getPageJson(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/form/v1/list\", param).then(function (response) {\n resolve(response.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n //数据建模分类树数据\n getBusinessObjTree: function getBusinessObjTree(param, cb) {\n req.get(portal + \"/sys/sysType/v1/getTypesByKey?typeKey=\".concat(param)).then(function (response) {\n cb(response);\n });\n },\n //获取数据建模数据\n getBusinessObjData: function getBusinessObjData(param) {\n return new Promise(function (resovle, rejct) {\n req.post(form + \"/bo/def/v1/list\", param).then(function (resp) {\n resovle(resp.data);\n }, function (error) {\n rejct(error);\n });\n });\n },\n //获取数据视图\n getDataformation: function getDataformation(param, cb) {\n req.get(form + \"/bo/def/v1/getBoJson?alias=\".concat(param)).then(function (resp) {\n cb(resp);\n });\n },\n //修改数据建模状态\n updateBusinessObjStatus: function updateBusinessObjStatus(id, status) {\n return new Promise(function (resolve, rejct) {\n req.get(form + \"/bo/def/v1/setStatus?id=\".concat(id, \"&status=\").concat(status)).then(function (resp) {\n resolve(resp);\n }, function (error) {\n rejct(error);\n });\n });\n },\n //删除建模数据\n removeBusinessObj: function removeBusinessObj(id) {\n return new Promise(function (resolve, rejct) {\n req.remove(form + \"/bo/def/v1/removes?ids=\".concat(id)).then(function (resp) {\n resolve(resp);\n }, function (error) {\n rejct(error);\n });\n });\n },\n //获取分类\n getCategory: function getCategory(type, cb) {\n req.get(portal + \"/sys/sysType/v1/getByGroupKey?groupKey=\".concat(type)).then(function (resp) {\n cb(resp);\n });\n },\n //修改分类\n updateCategory: function updateCategory(ids, categoryId, categoryName) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/bo/def/v1/updateCategory?ids=\".concat(ids, \"&categoryId=\").concat(categoryId, \"&categoryName=\").concat(categoryName)).then(function (resp) {\n resolve(resp);\n }, function (error) {\n reject(error);\n });\n });\n },\n //获取表单\n getEntData: function getEntData(id, cb) {\n req.get(form + \"/bo/def/v1/getJson?id=\".concat(id)).then(function (resp) {\n cb(resp);\n });\n },\n //保存实体\n saveEntData: function saveEntData(json) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/bo/def/v1/createTableForm\", json).then(function (resp) {\n resolve(resp);\n }, function (error) {\n reject(error);\n });\n });\n },\n //逻辑删除字段\n removeAttr: function removeAttr(attr, alias) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/bo/def/v1/removeAttr?alias=\" + alias, attr).then(function (resp) {\n resolve(resp);\n }, function (error) {\n reject(error);\n });\n });\n },\n //还原删除字段\n recovery: function recovery(attr, alias) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/bo/def/v1/recovery?alias=\" + alias, attr).then(function (resp) {\n resolve(resp);\n }, function (error) {\n reject(error);\n });\n });\n },\n //发布\n deploy: function deploy(id) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/bo/def/v1/deploy?id=\".concat(id)).then(function (resp) {\n resolve(resp);\n }, function (error) {\n reject(error);\n });\n });\n },\n //数据源\n getDataSource: function getDataSource() {\n return new Promise(function (resolve, reject) {\n req.get(context.portal + \"/sys/sysDataSource/v1/getDataSources\").then(function (resp) {\n resolve(resp);\n }, function (error) {\n reject(error);\n });\n });\n },\n //选中外部表\n getTableList: function getTableList(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/customQuery/v1/getByDsObjectName\", param).then(function (resp) {\n resolve(resp);\n }, function (error) {\n reject(error);\n });\n });\n },\n //外部表切换\n changeTableName: function changeTableName(param, flag) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/customQuery/v1/getTable?flag=\" + flag, param).then(function (resp) {\n resolve(resp);\n }, function (error) {\n reject(error);\n });\n });\n },\n //模板管理数据\n templateListData: function templateListData(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/template/v1/list\", param).then(function (resp) {\n resolve(resp);\n }, function (error) {\n reject(error);\n });\n });\n },\n //设置默认模板\n setDefault: function setDefault(id, type) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/form/template/v1/setDefault?id=\".concat(id, \"&type=\").concat(type)).then(function (resp) {\n resolve(resp);\n }, function (error) {\n reject(error);\n });\n });\n },\n //模板复制\n copyTemplate: function copyTemplate(id, name, alias) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/template/v1/copyTemplate?templateId=\".concat(id, \"&newTemplateName=\").concat(name, \"&newAlias=\").concat(alias)).then(function (resp) {\n resolve(resp);\n }, function (error) {\n reject(error);\n });\n });\n },\n //初始化模板\n initTemplate: function initTemplate() {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/template/v1/init\").then(function (resp) {\n resolve(resp);\n }, function (error) {\n reject(error);\n });\n });\n },\n //根据别名判断表单模板是否已经存在 返回结果:true:不存在,false:存在\n isTemplateByAlias: function isTemplateByAlias(alias) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/form/template/v1/isTemplateByAlias?alias=\" + alias).then(function (resp) {\n resolve(resp);\n });\n });\n },\n //获取绑定数据\n getBindData: function getBindData(id, alias) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/bo/def/v1/getBindData?id=\".concat(id, \"&alias=\").concat(alias)).then(function (resp) {\n resolve(resp);\n }, function (error) {\n reject(error);\n });\n });\n },\n //获取业务数据模板列表数据\n getDataTemplateData: function getDataTemplateData(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/dataTemplate/v1/listToJson\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n //获取表单列表数据\n getFormData: function getFormData(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/form/v1/list?formType=pc&status=deploy\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n //根据表单别名获取数据视图数据\n getBpmDataTemplate: function getBpmDataTemplate(formKey, boId) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/form/dataTemplate/v1/getBpmDataTemplate?formKey=\".concat(formKey, \"&boId=\").concat(boId)).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getBpmDataTemplateById: function getBpmDataTemplateById(id, boId) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/form/dataTemplate/v1/getByTemplateId?id=\".concat(id, \"&boId=\").concat(boId)).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getBpmDataTemplateInfo: function getBpmDataTemplateInfo(alias) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/form/dataTemplate/v1/getBpmDataTemplateInfo?alias=\" + alias).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getTemplateDataListForm: function getTemplateDataListForm(alias) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/dataTemplate/v1/dataList_\" + alias, {}).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n saveTemplateHtml: function saveTemplateHtml(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/dataTemplate/v1/saveTemplate?id=\" + param.id, param.templateHtml).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n //获取业务数据列表\n getBpmTemplateByPagination: function getBpmTemplateByPagination(data) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/dataTemplate/v1/listJson/\" + data.templateId, data.pagination).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getCustomDialogs: function getCustomDialogs() {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/customDialog/v1/getAll\", {}).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getCustomDialogByAlias: function getCustomDialogByAlias(alias) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/form/customDialog/v1/getByAlias?alias=\" + alias).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getCustomChartList: function getCustomChartList(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/customChart/v1/list\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getCustomChartById: function getCustomChartById(id) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/form/customChart/v1/get/\" + id).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n saveCustomChart: function saveCustomChart(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/customChart/v1/save\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n checkSql: function checkSql(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/query/querySqldef/checkSql\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getQuerySqlDef: function getQuerySqlDef(alias) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/form/query/querySqldef/getJson?alias=\" + alias).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getTable: function getTable(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/customChart/v1/getTable\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getListData: function getListData(alias, params) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/customChart/v1/getListData?alias=\" + alias, params).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getCustomViewList: function getCustomViewList(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/query/querySqldef/listJson\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getCustomViewById: function getCustomViewById(id) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/form/query/querySqldef/getJson?id=\" + id).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getViewList: function getViewList(param, alias) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/query/queryView/listJson?sqlAlias=\" + alias, param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getViewById: function getViewById(id) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/form/query/queryView/getJson?id=\" + id).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getTemplateList: function getTemplateList() {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/query/queryView/getTempList\", {}).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n refreshFields: function refreshFields(id) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/form/query/querySqldef/refreshFields?id=\" + id).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n saveCustomView: function saveCustomView(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/query/querySqldef/save\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getCustomDialog: function getCustomDialog() {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/customDialog/v1/getAll\", {}).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getQueryViewTemplate: function getQueryViewTemplate(id) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/form/query/queryView/getJson?id=\" + id).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n saveQueryViewTemplate: function saveQueryViewTemplate(id, param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/query/queryView/saveTemplate?id=\" + id, param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n saveView: function saveView(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/query/queryView/save\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getComVarList: function getComVarList(param) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/form/dataTemplate/v1/getVarList\").then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n } //保存引入脚本和样式对象\n ,\n saveFormJs: function saveFormJs(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/form/v1/saveFormJs\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n importCustomSql: function importCustomSql(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/query/querySqldef/import\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n importCustomDialog: function importCustomDialog(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/customDialog/v1/import\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n importCustomQuery: function importCustomQuery(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + '/form/customQuery/v1/import', param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n //物理删除字段\n deleteAttr: function deleteAttr(id) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/bo/def/v1/deleteAttr?id=\".concat(id)).then(function (resp) {\n resolve(resp);\n }, function (error) {\n reject(error);\n });\n });\n },\n getCustomDialogList: function getCustomDialogList(param) {\n return new Promise(function (resolve, reject) {\n req.post(window.context.form + \"/form/customDialog/v1/list\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getBindRelation: function getBindRelation(defId, formKey) {\n return new Promise(function (resolve, reject) {\n req.get(window.context.form + \"/form/form/v1/getBindRelation?defId=\".concat(defId, \"&formKey=\").concat(formKey)).then(function (resp) {\n resolve(resp);\n }, function (error) {\n reject(error);\n });\n });\n },\n getBODefByFormId: function getBODefByFormId(formId) {\n return new Promise(function (resolve, reject) {\n req.get(window.context.form + \"/form/dataTemplate/v1/getBODefByFormId?formId=\".concat(formId)).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getHideAttr: function getHideAttr(tableName) {\n return new Promise(function (resolve, reject) {\n req.get(window.context.form + \"/bo/def/v1/getHideAttr?tableName=\".concat(tableName)).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getViewManageList: function getViewManageList(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/viewManage/v1/listJson\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n createPhysicalViewByViewMngId: function createPhysicalViewByViewMngId(id) {\n return new Promise(function (resolve, reject) {\n req.get(form + \"/form/viewManage/v1/createPhysicalView/\" + id).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n savePrintTemplate: function savePrintTemplate(data) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/form/v1/savePrintTemplate\", data).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getCustomViews: function getCustomViews(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/query/queryView/listJson\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n // 通过别名获取对话框\n getDialogByAlias: function getDialogByAlias(alias, cb) {\n req.get(form + \"/form/customDialog/v1/getByAlias?alias=\".concat(alias)).then(function (response) {\n cb(response.data);\n });\n },\n\n /* biz start\r\n ------------- -------------------------- */\n //获取自定义sql视图数据\n getQuerySqlView: function getQuerySqlView(data, cb) {\n req.get(form + \"/form/query/queryView/getJson?sqlAlias=\" + data.sqlAlias + \"&alias=\" + data.alias).then(function (response) {\n cb(response);\n });\n },\n //获取自定义sql查询视图数据列表\n getQuerySqlViewByPagination: function getQuerySqlViewByPagination(data, cb) {\n req.post(form + \"/form/query/queryView/data_\" + data.sqlAlias + \"/\" + data.alias, data.pagination).then(function (response) {\n cb(response);\n });\n },\n // dialogAPI\n getlistJson: function getlistJson(data, cb) {\n if (data.requestType == \"POST\" || data.dsType == \"dataSource\") {\n req.post(data.queryUrl, data.pageBean).then(function (response) {\n cb(response);\n });\n }\n },\n getTreeData: function getTreeData(data, cb) {\n if (data.requestType == \"GET\") {\n req.get(data.url).then(function (response) {\n cb(response);\n });\n }\n },\n getPermissionList: function getPermissionList(cb) {\n req.get(\"${bpmModel}/flow/defAuthorize/v1/getPermissionList\").then(function (response) {\n cb(response.data);\n });\n },\n //biz获取业务数据模板信息\n bizGetBpmDataTemplateInfo: function bizGetBpmDataTemplateInfo(data, cb) {\n var needDisplayFileds = data.needDisplayFileds ? true : false;\n req.get(form + \"/form/dataTemplate/v1/getBpmDataTemplateInfo?alias=\" + data.templateKey + \"&needDisplayFileds=\" + needDisplayFileds).then(function (response) {\n cb(response);\n });\n },\n //获取业务数据模板列表模板html\n bizGetTemplateDataListForm: function bizGetTemplateDataListForm(data, cb) {\n req.post(form + \"/form/dataTemplate/v1/dataList_\" + data, {}).then(function (response) {\n cb(response);\n });\n },\n //业务数据模板导出\n templateExport: function templateExport(data, cb) {\n req.post(form + \"/form/dataTemplate/v1/export?formKey=\" + data.boAlias + \"&getType=\" + data.getType + \"&filterKey=\" + data.filterKey + \"&expField=\" + data.expField, data.query, \"arraybuffer\").then(function (response) {\n cb(response.data);\n });\n },\n getSubDataPagination: function getSubDataPagination(data, cb) {\n req.post(form + \"/form/dataTemplate/v1/getSubDataPagination?alias=\" + data.name + \"&refId=\" + data.refId, data.pagination).then(function (response) {\n cb(response);\n });\n },\n //获取业务数据列表\n bizGetBpmTemplateByPagination: function bizGetBpmTemplateByPagination(data, cb) {\n var dataTemplateQueryVo = {\n templateId: data.templateId,\n queryFilter: data.pagination\n };\n\n if (data.isJoinFlow && data.taskType && data.defKey) {\n dataTemplateQueryVo.isJoinFlow = data.isJoinFlow;\n dataTemplateQueryVo.taskType = data.taskType;\n dataTemplateQueryVo.defKey = data.defKey;\n }\n\n if (data.selectField) {\n dataTemplateQueryVo.selectField = data.selectField;\n dataTemplateQueryVo.selectValue = data.selectValue;\n }\n\n if (data.selectList) {\n dataTemplateQueryVo.selectList = data.selectList;\n }\n\n dataTemplateQueryVo.refIdValue = data.refIdValue;\n req.post(form + \"/form/dataTemplate/v1/listJson\", dataTemplateQueryVo).then(function (response) {\n cb(response);\n });\n },\n //获取业务数据模板信息\n boSave: function boSave(data, cb) {\n if (data.formKey) {\n data.boData.formKey = data.formKey;\n }\n\n if (data.templateKey) {\n data.boData.templateKey = data.templateKey;\n }\n\n req.post(form + \"/form/dataTemplate/v1/boSave/\" + data.boAlias + \"?delDraftId=\".concat(data.delDraftId || ''), data.boData).then(function (response) {\n cb(response);\n });\n },\n //获取业务数据模板信息\n batchUpdateTemplateData: function batchUpdateTemplateData(data, cb) {\n req.post(form + \"/form/dataTemplate/v1/boBatchUpdate/\" + data.boAlias, data.boData).then(function (response) {\n cb(response);\n });\n },\n //删除业务数据模板bo数据\n deleteTemplateDataById: function deleteTemplateDataById(data, cb) {\n req.remove(form + \"/form/dataTemplate/v1/boDel/\" + data.boAlias + \"?ids=\" + data.ids).then(function (response) {\n cb(response);\n });\n },\n downloadMainTempFile: function downloadMainTempFile(data, cb) {\n req.post(form + \"/form/dataTemplate/v1/downloadMainTempFile/\" + data, data, \"arraybuffer\").then(function (response) {\n cb(response.data);\n });\n },\n //获取业务数据模板表单数据\n getTemplateForm: function getTemplateForm(data, cb) {\n req.get(form + \"/form/dataTemplate/v1/getForm/\" + data.formKey + \"/\" + data.boAlias + \"?id=\" + data.id + \"&action=\" + data.action + \"&recordId=\" + data.recordId + \"&dataKey=\" + data.dataKey).then(function (response) {\n cb(response);\n });\n },\n //获取业务数据模板表单草稿数据\n getTempDraftData: function getTempDraftData(data, cb) {\n req.get(form + \"/form/dataTemplate/v1/getTempDraftData/\" + data).then(function (response) {\n cb(response);\n });\n },\n //保存业务数据模板草稿数据\n boSaveDraft: function boSaveDraft(data, cb) {\n req.post(form + \"/form/dataTemplate/v1/boSaveDraft\", data).then(function (response) {\n cb(response);\n });\n },\n //获取我的报表草稿\n getMyTemplateDraftList: function getMyTemplateDraftList(param) {\n return new Promise(function (resolve, reject) {\n req.post(form + \"/form/dataTemplate/v1/getMyDraftList\", param).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n removeTempDraft: function removeTempDraft(ids) {\n return new Promise(function (resolve, reject) {\n req.remove(form + \"/form/dataTemplate/v1/removeTempDraft?ids=\" + ids).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n taskDetail: function taskDetail(data, cb) {\n if (data.taskId) {\n req.get(bpmRumtime + \"/runtime/task/v1/taskDetailBo?taskId=\" + data.taskId + \"&reqParams=&leaderId=\" + data.leaderId).then(function (response) {\n cb(response.data);\n });\n } else {\n req.get(bpmRumtime + \"/runtime/task/v1/taskDetailBo?taskId=\" + data + \"&reqParams=\").then(function (response) {\n cb(response.data);\n });\n }\n },\n //根据isntId查找表单数据andBo\n getInstFormAndBO: function getInstFormAndBO(data, cb) {\n if (data.instId) {\n req.get(bpmRumtime + \"/runtime/instance/v1/getInstFormAndBO?proInstId=\" + data.instId + \"&nodeId=\" + (data.nodeId || \"\") + \"&formId=\" + (data.formId || \"\") + \"&includData=\" + (data.includData || true) + \"&getStartForm=\" + (data.getStartForm || false)).then(function (response) {\n cb(response.data);\n });\n } else {\n req.get(bpmRumtime + \"/runtime/instance/v1/getInstFormAndBO?proInstId=\" + data + \"&nodeId=&includData=true\").then(function (response) {\n cb(response.data);\n });\n }\n },\n //流程启动时获取bo和表单\n getFormAndBO: function getFormAndBO(data, cb) {\n req.post(bpmRumtime + '/runtime/instance/v1/getFormAndBO', data).then(function (response) {\n cb(response.data);\n });\n },\n //后台管理预览VUE表单\n previewDesignVue: function previewDesignVue(id, cb) {\n req.get(form + '/form/form/v1/previewDesignVue?formId=' + id).then(function (response) {\n cb(response.data);\n });\n },\n //获取表单明显\n preview: function preview(id, cb) {\n req.get(form + '/form/form/v1/getFormById?id=' + id).then(function (response) {\n cb(response.data);\n });\n }\n /* biz end\r\n ------------- -------------------------- */\n\n};",null]}