Browse Source

提交日报周报页面

newStyle
douzhuo 2 years ago
parent
commit
67b22234cf
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      src/api/modules/api.js
  2. +1
    -1
      src/views/building/sugDetail.vue

+ 2
- 2
src/api/modules/api.js View File

@@ -1227,7 +1227,7 @@ export function byWeekMonthData(data) {
export function insertSelective(data) { export function insertSelective(data) {
return request({ return request({
url: '/autoSR/api/zkMessage/insertSelective', url: '/autoSR/api/zkMessage/insertSelective',
method: 'get',
params: data
method: 'post',
data: data
}) })
} }

+ 1
- 1
src/views/building/sugDetail.vue View File

@@ -151,7 +151,7 @@ export default {
this.ruleForm.messageType = this.type; this.ruleForm.messageType = this.type;
console.log("231", this.ruleForm); console.log("231", this.ruleForm);
this.$api.api.insertSelective(this.ruleForm).then((res) => { this.$api.api.insertSelective(this.ruleForm).then((res) => {
if (res.data.code == 10000) {
if (res.code == 10000) {
this.$message.success("操作成功"); this.$message.success("操作成功");
this.$router.go(-1) this.$router.go(-1)
} }


Loading…
Cancel
Save