瀏覽代碼

update“

pull/1/head
g7hoo 2 年之前
父節點
當前提交
9df5f3b336
共有 5 個文件被更改,包括 5 次插入5 次删除
  1. +1
    -1
      src/views/modules/job/schedule-add-or-update.vue
  2. +1
    -1
      src/views/modules/sys/dept-add-or-update.vue
  3. +1
    -1
      src/views/modules/sys/params-add-or-update.vue
  4. +1
    -1
      src/views/modules/sys/role-add-or-update.vue
  5. +1
    -1
      src/views/modules/sys/user-add-or-update.vue

+ 1
- 1
src/views/modules/job/schedule-add-or-update.vue 查看文件

@@ -85,7 +85,7 @@ export default {
if (!valid) { if (!valid) {
return false return false
} }
this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/schedule', this.dataForm).then(({ data: res }) => {
this.$http[!this.dataForm.id ? 'post' : 'put'](this.$http.adornUrl('/sys/schedule'), this.dataForm).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }


+ 1
- 1
src/views/modules/sys/dept-add-or-update.vue 查看文件

@@ -127,7 +127,7 @@ export default {
if (!valid) { if (!valid) {
return false return false
} }
this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/dept', this.dataForm)
this.$http[!this.dataForm.id ? 'post' : 'put'](this.$http.adornUrl('/sys/dept'), this.dataForm)
.then(({ data: res }) => { .then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)


+ 1
- 1
src/views/modules/sys/params-add-or-update.vue 查看文件

@@ -72,7 +72,7 @@ export default {
if (!valid) { if (!valid) {
return false return false
} }
this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/params', this.dataForm)
this.$http[!this.dataForm.id ? 'post' : 'put'](this.$http.adornUrl('/sys/params'), this.dataForm)
.then(({ data: res }) => { .then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)


+ 1
- 1
src/views/modules/sys/role-add-or-update.vue 查看文件

@@ -115,7 +115,7 @@ export default {
} }
this.dataForm.menuIdList = [...this.$refs.menuListTree.getHalfCheckedKeys(), ...this.$refs.menuListTree.getCheckedKeys()] this.dataForm.menuIdList = [...this.$refs.menuListTree.getHalfCheckedKeys(), ...this.$refs.menuListTree.getCheckedKeys()]
this.dataForm.deptIdList = this.$refs.deptListTree.getCheckedKeys() this.dataForm.deptIdList = this.$refs.deptListTree.getCheckedKeys()
this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/role', this.dataForm)
this.$http[!this.dataForm.id ? 'post' : 'put'](this.$http.adornUrl('/sys/role'), this.dataForm)
.then(({ data: res }) => { .then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)


+ 1
- 1
src/views/modules/sys/user-add-or-update.vue 查看文件

@@ -166,7 +166,7 @@ export default {
if (!valid) { if (!valid) {
return false return false
} }
this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/user', {
this.$http[!this.dataForm.id ? 'post' : 'put'](this.$http.adornUrl('/sys/user'), {
...this.dataForm, ...this.dataForm,
roleIdList: [...this.dataForm.roleIdList, ...this.roleIdListDefault] roleIdList: [...this.dataForm.roleIdList, ...this.roleIdListDefault]
}) })


Loading…
取消
儲存