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