升级jianhujs版本到3.0.72

调整请求代码
This commit is contained in:
jam committed 2022-10-14 15:17:55 +08:00
1 parent e1812351ed
commit b9c93647dc
5 files changed
+22 -28

No files matched your search

+2 -2
View File
@@ -177,7 +177,7 @@
async refreshTableData() {
this.isTableLoading = true;
const serverSearchInput = _.pickBy(this.serverSearchInput, value => !!value);
const { data: { appData: { resultData: {rows} } } } = await window.jianghuAxios({
const { rows } = (await window.jianghuAxios({
data: {
appData: {
pageId: 'taskCreateManagement',
@@ -188,7 +188,7 @@
orderBy: [{ column: 'operationAt', order: 'desc' }]
}
}
});
})).data.appData.resultData;
rows.forEach(row => {
if(row.workflowConfig) {
row.workflowConfig = JSON.parse(row.workflowConfig).nodeList.map(item => [item.label, item.lineTypeList]);
+9 -15
View File
@@ -199,20 +199,14 @@ new Vue({
*/
async getTaskHistoryList() {
const {
data: {
appData: {
resultData: {
taskHistoryList,
taskStepperList,
taskTpl,
isAccess,
nextLineList,
step,
currentNode
}
}
}
} = await window.jianghuAxios({
taskHistoryList,
taskStepperList,
taskTpl,
isAccess,
nextLineList,
step,
currentNode
} = (await window.jianghuAxios({
data: {
appData: {
pageId: 'taskHistoryManagement',
@@ -220,7 +214,7 @@ new Vue({
actionData: {taskId: this.taskId},
}
}
});
})).data.appData.resultData;
this.taskHistoryList = taskHistoryList;
this.taskTpl = taskTpl;
this.taskStepperList = taskStepperList;
+8 -8
View File
@@ -170,7 +170,7 @@ new Vue({
* 获取表格数据
*/
async getUserList() {
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
const { rows } = (await window.jianghuAxios({
data: {
appData: {
pageId: 'workflowManagement',
@@ -179,7 +179,7 @@ new Vue({
where: {},
}
}
});
})).data.appData.resultData;
this.constantCollection.userList = rows.map(e => {
return {text: e.username, value: e.userId}
})
@@ -188,7 +188,7 @@ new Vue({
* 获取表格数据
*/
async getGroupList() {
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
const { rows } = (await window.jianghuAxios({
data: {
appData: {
pageId: 'workflowManagement',
@@ -197,7 +197,7 @@ new Vue({
where: {},
}
}
});
})).data.appData.resultData;
this.constantCollection.groupList = rows.map(e => {
return {text: e.groupName, value: e.groupId}
});
@@ -213,7 +213,7 @@ new Vue({
const _this = this;
this.loading = true;
this.dialogSaveInfoAction = 'updateItem';
const {data: {appData: {rows}}} = await window.jianghuAxios({
const { rows } = (await window.jianghuAxios({
data: {
appData: {
pageId: 'workflowManagement',
@@ -221,7 +221,7 @@ new Vue({
where: {id: this.editItem.id},
}
}
});
})).data.appData.resultData;
if (!rows.length) {
this.clearItemData();
} else {
@@ -249,7 +249,7 @@ new Vue({
delete this.editItem.id;
const item = this.buildEditItem();
await window.vtoast.loading("新增数据");
const { data: { appData: { resultData: { rows } } } } = await window.jianghuAxios({
const { rows } = (await window.jianghuAxios({
data: {
appData: {
pageId: 'workflowManagement',
@@ -257,7 +257,7 @@ new Vue({
actionData: item
}
}
})
})).data.appData.resultData;
this.editItem.id = rows[0];
history.pushState({}, '', `?id=${rows[0]}`);
await window.vtoast.success("新增数据成功");
+2 -2
View File
@@ -119,7 +119,7 @@ new Vue({
async refreshTableData() {
this.isTableLoading = true;
const serverSearchInput = _.pickBy(this.serverSearchInput, value => !!value);
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
const { rows } = (await window.jianghuAxios({
data: {
appData: {
pageId: 'workflowManagement',
@@ -130,7 +130,7 @@ new Vue({
orderBy: [{column: 'operationAt', order: 'desc'}]
}
}
});
})).data.appData.resultData;
for (const item of rows) {
item.workflowConfig = item.workflowConfig ? JSON.parse(item.workflowConfig) : null;
item.workflowForm = item.workflowForm ? JSON.parse(item.workflowForm) : [];