diff --git a/src/api/common.js b/src/api/common.js index 320e2b7..54d1a90 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -130,3 +130,13 @@ export function getDepartmentTreeList(params) { params }) } +export function deleteDefinitionFn(params) { + return api({ + url: '/definition', + method: 'delete', + params: params, + paramsSerializer: function(data) { + return require('qs').stringify(data, { indices: false }) + } + }) +} diff --git a/src/views/archive/archive_info.vue b/src/views/archive/archive_info.vue index f8a8776..01fd841 100644 --- a/src/views/archive/archive_info.vue +++ b/src/views/archive/archive_info.vue @@ -77,8 +77,11 @@ export default { }, getList() { this.server({ - url: '/archive/archive/getArchiveInfo/' + this.id, - method: 'get' + url: '/archive', + method: 'get', + params: { + id: this.id + } }).then(data => { this.archive = data.archive this.paramList = data.paramList diff --git a/src/views/archive/archive_scan.vue b/src/views/archive/archive_scan.vue index 750e2af..98043db 100644 --- a/src/views/archive/archive_scan.vue +++ b/src/views/archive/archive_scan.vue @@ -91,7 +91,10 @@ export default { this.jianyijiahao = this.frameNums if (this.isAppend) { this.api({ - url: '/archive/getArchiveInfo/' + this.id, + url: '/archive', + params: { + id: this.id + }, method: 'get' }).then(data => { this.archive = data.archive diff --git a/src/views/dic/category.vue b/src/views/dic/category.vue index 03096f6..5abca87 100644 --- a/src/views/dic/category.vue +++ b/src/views/dic/category.vue @@ -22,7 +22,7 @@ { - this.leftList = data + this.leftList = data.list }) }, closeDialog() { diff --git a/src/views/dic/dic_data.vue b/src/views/dic/dic_data.vue index cc6d5ad..7840f45 100644 --- a/src/views/dic/dic_data.vue +++ b/src/views/dic/dic_data.vue @@ -153,7 +153,7 @@ export default { }, getDicType() { this.api({ - url: '/dicType/getAllDicType', + url: '/dicType/all', method: 'get' }).then(data => { this.dicTypeList = data diff --git a/src/views/dic/dic_type.vue b/src/views/dic/dic_type.vue index 305a163..4c1fa93 100644 --- a/src/views/dic/dic_type.vue +++ b/src/views/dic/dic_type.vue @@ -409,7 +409,7 @@ export default { }, getDicType() { this.api({ - url: '/dicType/getAllDicType', + url: '/dicType/all', method: 'get' }).then(data => { this.dicTypeList = data diff --git a/src/views/flow/definition.vue b/src/views/flow/definition.vue index 266f468..eaecff5 100644 --- a/src/views/flow/definition.vue +++ b/src/views/flow/definition.vue @@ -119,6 +119,7 @@