接口code

This commit is contained in:
2025-03-18 14:53:52 +08:00
parent 3aa5342397
commit c3282a0c40
6 changed files with 11 additions and 11 deletions

View File

@@ -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

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',