Explorar el Código

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

hanchaobo hace 2 años
padre
commit
bfe411a97f

+ 8
- 0
src/api/meeting/index.js Ver fichero

23
         params: data
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 Ver fichero

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

+ 12
- 1
src/views/caseManagement/components/timeDialog.vue Ver fichero

27
 <script>
27
 <script>
28
 import { updateHeardate } from '@/api/caseManagement/caseManagement'
28
 import { updateHeardate } from '@/api/caseManagement/caseManagement'
29
 import { getToken } from "@/utils/auth";
29
 import { getToken } from "@/utils/auth";
30
-import { createRoomId, reservedConference } from '@/api/meeting/index'
30
+import { createRoomId, reservedConference, sendRoomNoMessage } from '@/api/meeting/index'
31
 import moment from "moment";
31
 import moment from "moment";
32
 export default {
32
 export default {
33
     props: ["timeVisable", "timeData", "queryParams"],
33
     props: ["timeVisable", "timeData", "queryParams"],
77
                 this.$emit("getcaseApply", this.queryParams);
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
         async submitTime() {
86
         async submitTime() {
81
             this.loanStartDate = moment(
87
             this.loanStartDate = moment(
82
                 this.loanStartDate
88
                 this.loanStartDate
91
                 id: this.timeData.id,
97
                 id: this.timeData.id,
92
                 hearDate: this.loanStartDate
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 Ver fichero

31
 </template>
31
 </template>
32
 <script>
32
 <script>
33
 import { getToken } from "@/utils/auth";
33
 import { getToken } from "@/utils/auth";
34
+import { updateTemplate } from "@/api/officialSeal/officialSeal"
34
 export default {
35
 export default {
35
     props: ["editVisable", "editData", "queryParams"],
36
     props: ["editVisable", "editData", "queryParams"],
36
     dicts: ["template_type"],
37
     dicts: ["template_type"],
41
             headers: {
42
             headers: {
42
                 Authorization: "Bearer " + getToken(),
43
                 Authorization: "Bearer " + getToken(),
43
             },
44
             },
44
-            isImg: false,
45
+            isImg: true,
45
             filedata: {},
46
             filedata: {},
46
             flagBtn: false,
47
             flagBtn: false,
47
             ruleForm: {},
48
             ruleForm: {},
77
         },
78
         },
78
         handleChange(file, fileList) {
79
         handleChange(file, fileList) {
79
             this.isImg = file.type === '.doc' || '.docx';
80
             this.isImg = file.type === '.doc' || '.docx';
81
+            this.fileList = fileList;
80
         },
82
         },
81
         UploadUrl() {
83
         UploadUrl() {
82
             return window.location.origin + "/API/deptIdentify/updateTemplate";
84
             return window.location.origin + "/API/deptIdentify/updateTemplate";
83
         },
85
         },
84
         submitUpload() {
86
         submitUpload() {
87
+            let that = this;
85
             this.$refs['ruleForm'].validate((valid) => {
88
             this.$refs['ruleForm'].validate((valid) => {
86
                 if (valid) {
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
             // this.isImg = file.type === '.doc' || '.docx'
115
             // this.isImg = file.type === '.doc' || '.docx'
102
         },
116
         },
103
         handleSuccess() {
117
         handleSuccess() {
104
-            this.$message.success('上传成功');
118
+            this.$message.success('修改成功');
105
             this.$emit("cancelEdit");
119
             this.$emit("cancelEdit");
106
             this.$emit('getList', this.queryParams);
120
             this.$emit('getList', this.queryParams);
107
         }
121
         }

+ 5
- 4
src/views/officialSeal/components/uploadSeal.vue Ver fichero

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