Просмотр исходного кода

Merge branch 'hcb' of SH-Arbitrate/Arbitrate-Frontend into dev

hanchaobo 2 лет назад
Родитель
Сommit
bfe411a97f

+ 8
- 0
src/api/meeting/index.js Просмотреть файл

@@ -23,4 +23,12 @@ export function reserveConferenceList(data) {
23 23
         params: data
24 24
     })
25 25
 }
26
+// 发送房间号短信
27
+export function sendRoomNoMessage(data) {
28
+    return request({
29
+        url: '/caseApplication/sendRoomNoMessage',
30
+        method: 'post',
31
+        data: data
32
+    })
33
+}
26 34
 

+ 1
- 1
src/api/officialSeal/officialSeal.js Просмотреть файл

@@ -78,7 +78,7 @@ export function updateTemplate(data) {
78 78
     return request({
79 79
         url: '/deptIdentify/updateTemplate',
80 80
         method: 'post',
81
-        data: data
81
+        params: data
82 82
     })
83 83
 }
84 84
 // 删除模板

+ 12
- 1
src/views/caseManagement/components/timeDialog.vue Просмотреть файл

@@ -27,7 +27,7 @@
27 27
 <script>
28 28
 import { updateHeardate } from '@/api/caseManagement/caseManagement'
29 29
 import { getToken } from "@/utils/auth";
30
-import { createRoomId, reservedConference } from '@/api/meeting/index'
30
+import { createRoomId, reservedConference, sendRoomNoMessage } from '@/api/meeting/index'
31 31
 import moment from "moment";
32 32
 export default {
33 33
     props: ["timeVisable", "timeData", "queryParams"],
@@ -77,6 +77,12 @@ export default {
77 77
                 this.$emit("getcaseApply", this.queryParams);
78 78
             })
79 79
         },
80
+        // 发送房间号短信
81
+        async sendRoomNoMessageFn(data) {
82
+            sendRoomNoMessage(data).then(res => {
83
+                console.log(res, "PPPPPPPPPPPPPPPPPPPPPPPPP");
84
+            })
85
+        },
80 86
         async submitTime() {
81 87
             this.loanStartDate = moment(
82 88
                 this.loanStartDate
@@ -91,6 +97,11 @@ export default {
91 97
                 id: this.timeData.id,
92 98
                 hearDate: this.loanStartDate
93 99
             })
100
+            await sendRoomNoMessageFn({
101
+                id: this.timeData.id,
102
+                roomNo: this.roomId,
103
+                scheduleStartTime: this.loanStartDate
104
+            })
94 105
         }
95 106
     },
96 107
 };

+ 22
- 8
src/views/officialSeal/components/editTemplate.vue Просмотреть файл

@@ -31,6 +31,7 @@
31 31
 </template>
32 32
 <script>
33 33
 import { getToken } from "@/utils/auth";
34
+import { updateTemplate } from "@/api/officialSeal/officialSeal"
34 35
 export default {
35 36
     props: ["editVisable", "editData", "queryParams"],
36 37
     dicts: ["template_type"],
@@ -41,7 +42,7 @@ export default {
41 42
             headers: {
42 43
                 Authorization: "Bearer " + getToken(),
43 44
             },
44
-            isImg: false,
45
+            isImg: true,
45 46
             filedata: {},
46 47
             flagBtn: false,
47 48
             ruleForm: {},
@@ -77,19 +78,32 @@ export default {
77 78
         },
78 79
         handleChange(file, fileList) {
79 80
             this.isImg = file.type === '.doc' || '.docx';
81
+            this.fileList = fileList;
80 82
         },
81 83
         UploadUrl() {
82 84
             return window.location.origin + "/API/deptIdentify/updateTemplate";
83 85
         },
84 86
         submitUpload() {
87
+            let that = this;
85 88
             this.$refs['ruleForm'].validate((valid) => {
86 89
                 if (valid) {
87
-                    this.filedata.id = this.editData.id;
88
-                    this.filedata.temName = this.ruleForm.temName;
89
-                    if (this.isImg) {
90
-                        this.$refs.upload.submit();
91
-                    }else{
92
-                        this.$message.error('只能上传doc,docx格式的文件')
90
+                    if (that.fileList.length > 0) {
91
+                        that.filedata.id = that.editData.id;
92
+                        that.filedata.temName = that.ruleForm.temName;
93
+                        if (that.isImg) {
94
+                            that.$refs.upload.submit();
95
+                        } else {
96
+                            that.$message.error('只能上传doc,docx格式的文件')
97
+                        }
98
+                    } else {
99
+                        updateTemplate({
100
+                            id: that.editData.id,
101
+                            temName: that.ruleForm.temName
102
+                        }).then(res => {
103
+                            that.$message.success('修改成功');
104
+                            that.$emit("cancelEdit");
105
+                            that.$emit('getList', that.queryParams);
106
+                        })
93 107
                     }
94 108
                 }
95 109
             });
@@ -101,7 +115,7 @@ export default {
101 115
             // this.isImg = file.type === '.doc' || '.docx'
102 116
         },
103 117
         handleSuccess() {
104
-            this.$message.success('上传成功');
118
+            this.$message.success('修改成功');
105 119
             this.$emit("cancelEdit");
106 120
             this.$emit('getList', this.queryParams);
107 121
         }

+ 5
- 4
src/views/officialSeal/components/uploadSeal.vue Просмотреть файл

@@ -7,7 +7,7 @@
7 7
                     <el-input v-model="ruleForm.sealName"></el-input>
8 8
                 </el-form-item>
9 9
             </el-form>
10
-            <el-upload class="avatar-uploader" :before-upload="beforeUpload" :on-success="handleSuccess" ref="upload"
10
+            <el-upload class="avatar-uploader" accept="image/png" :before-upload="beforeUpload" :on-success="handleSuccess" ref="upload"
11 11
                 :action="UploadUrl()" :headers="headers" :data="filedata" :on-remove="handleRemove"
12 12
                 :on-change="handleChange" :show-file-list="false" :file-list="fileList" :auto-upload="false">
13 13
                 <img v-if="imageUrl" :src="imageUrl" class="avatar">
@@ -47,7 +47,8 @@ export default {
47 47
     watch: {
48 48
         uploadVisable(val) {
49 49
             if (val) {
50
-                this.imageUrl = ""
50
+                this.imageUrl = "",
51
+                this.ruleForm = {}
51 52
             }
52 53
         }
53 54
     },
@@ -86,8 +87,8 @@ export default {
86 87
         },
87 88
         handleSuccess(response) {
88 89
             if (response.code == 200) {
89
-                this.$message.success('上传成功')
90
-                this.$emit("cancelUpload");
90
+                this.$message.success('上传成功');
91
+                this.cancel()
91 92
             } else {
92 93
                 this.$message.error(response.msg);
93 94
             }