请求结果结构更新
This commit is contained in:
1 parent
c9c16e9d26
commit
bd8f8b97fa
4 files changed
+14
-14
No files matched your search
@@ -167,7 +167,7 @@ new Vue({
|
||||
* 获取user数据
|
||||
*/
|
||||
async getUserList() {
|
||||
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
|
||||
const {rows} = (await window.jianghuAxios({
|
||||
data: {
|
||||
appData: {
|
||||
pageId: 'workflowManagement',
|
||||
@@ -176,7 +176,7 @@ new Vue({
|
||||
where: {},
|
||||
}
|
||||
}
|
||||
});
|
||||
})).data.appData.resultData;
|
||||
this.constantCollection.userList = rows.map(e => {
|
||||
return {text: e.username, value: e.userId}
|
||||
})
|
||||
@@ -185,7 +185,7 @@ new Vue({
|
||||
* 获取group数据
|
||||
*/
|
||||
async getGroupList() {
|
||||
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
|
||||
const {rows} = (await window.jianghuAxios({
|
||||
data: {
|
||||
appData: {
|
||||
pageId: 'workflowManagement',
|
||||
@@ -194,7 +194,7 @@ new Vue({
|
||||
where: {},
|
||||
}
|
||||
}
|
||||
});
|
||||
})).data.appData.resultData;
|
||||
this.constantCollection.groupList = rows.map(e => {
|
||||
return {text: e.groupName, value: e.groupId}
|
||||
});
|
||||
@@ -208,7 +208,7 @@ new Vue({
|
||||
async syncEditItem() {
|
||||
this.loading = true;
|
||||
this.dialogSaveInfoAction = 'updateItem';
|
||||
const {data: {appData: {rows}}} = await window.jianghuAxios({
|
||||
const {rows} = (await window.jianghuAxios({
|
||||
data: {
|
||||
appData: {
|
||||
pageId: 'workflowManagement',
|
||||
@@ -216,7 +216,7 @@ new Vue({
|
||||
where: {id: this.editItem.id},
|
||||
}
|
||||
}
|
||||
});
|
||||
})).data.appData.resultData;
|
||||
if (!rows.length) {
|
||||
this.clearItemData();
|
||||
} else {
|
||||
@@ -243,7 +243,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',
|
||||
@@ -251,7 +251,7 @@ new Vue({
|
||||
actionData: item
|
||||
}
|
||||
}
|
||||
})
|
||||
})).data.appData.resultData;
|
||||
this.editItem.id = rows[0];
|
||||
history.pushState({}, '', `?id=${rows[0]}`);
|
||||
await window.vtoast.success("新增数据成功");
|
||||
|
||||
Reference in new issue
Block a user