接口code
This commit is contained in:
@@ -272,7 +272,7 @@
|
||||
method: 'get',
|
||||
params: this.$http.adornParams()
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 200) {
|
||||
if (data && data.code === 0) {
|
||||
this.dynamiForm = data.data
|
||||
this.users = data.users
|
||||
this.roles = data.roles
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
method: 'get',
|
||||
params: this.$http.adornParams({isUsed: true})
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 200) {
|
||||
if (data && data.code === 0) {
|
||||
this.depts = data.content.map(function(obj) {
|
||||
if (obj.hasChildren) {
|
||||
obj.children = null
|
||||
@@ -180,7 +180,7 @@
|
||||
method: this.dataForm.deptId !== null ? 'put' :'post',
|
||||
data: this.$http.adornData(this.dataForm)
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 200) {
|
||||
if (data && data.code === 0) {
|
||||
this.$message({
|
||||
message: '操作成功',
|
||||
type: 'success',
|
||||
|
||||
@@ -142,7 +142,7 @@ export default {
|
||||
'isUsed': this.dataForm.isUsed
|
||||
})
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 200) {
|
||||
if (data && data.code === 0) {
|
||||
this.dataList = data.content
|
||||
this.totalPage = data.totalElements
|
||||
} else {
|
||||
@@ -203,7 +203,7 @@ export default {
|
||||
method: 'DELETE',
|
||||
data: ids
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 200) {
|
||||
if (data && data.code === 0) {
|
||||
this.$message({
|
||||
message: '操作成功',
|
||||
type: 'success',
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
method: this.dataForm.dictId !== null ? 'put' :'post',
|
||||
data: this.$http.adornData(this.dataForm)
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 200) {
|
||||
if (data && data.code === 0) {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: 'success',
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
'blurry': this.dataForm.blurry
|
||||
})
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 200) {
|
||||
if (data && data.code === 0) {
|
||||
this.dataList = data.content
|
||||
this.totalPage = data.totalElements
|
||||
} else {
|
||||
@@ -212,7 +212,7 @@
|
||||
method: 'DELETE',
|
||||
data: ids
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 200) {
|
||||
if (data && data.code === 0) {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: 'success',
|
||||
@@ -247,7 +247,7 @@
|
||||
'code': this.query.code
|
||||
})
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 200) {
|
||||
if (data && data.code === 0) {
|
||||
this.detailList = data.content
|
||||
this.detailTotalPage = data.totalElements
|
||||
} else {
|
||||
@@ -287,7 +287,7 @@
|
||||
method: 'DELETE',
|
||||
data: this.$http.adornData()
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 200) {
|
||||
if (data && data.code === 0) {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: 'success',
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
method: 'post',
|
||||
data: this.$http.adornData(this.dataForm)
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 200) {
|
||||
if (data && data.code === 0) {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: 'success',
|
||||
|
||||
Reference in New Issue
Block a user