![]()
diff --git a/src/utils/request.ts b/src/utils/request.ts
index 9719205..1b4c424 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -44,9 +44,10 @@ service.interceptors.response.use(
ElMessageBox.alert('你已被登出,请重新登录', '提示', {})
.then(() => {})
.catch(() => {});
- }else if(res.code === 502 && res.errorMsg){
- return res;
}
+ // else if(res.code === 502 && res.errorMsg){
+ // return res;
+ // }
return Promise.reject(service.interceptors.response);
} else {
return res;
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 6483f43..0f7ca31 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -1,13 +1,13 @@
-
+
diff --git a/src/views/message/dialog.vue b/src/views/message/dialog.vue
index 7614a29..d32f105 100644
--- a/src/views/message/dialog.vue
+++ b/src/views/message/dialog.vue
@@ -16,6 +16,9 @@
{{ state.ruleForm.message }}
+
+
+ {{ state.ruleForm.replay }}
@@ -41,7 +44,8 @@ const state = reactive({
phone: "",
type: "",
message: "",
- createtime: []
+ createtime: [],
+ replay: null
},
dialog: {
isShowDialog: false,
diff --git a/src/views/message/index.vue b/src/views/message/index.vue
index 488d730..1bb0684 100644
--- a/src/views/message/index.vue
+++ b/src/views/message/index.vue
@@ -28,7 +28,7 @@
查看详情
- 回复
+ 回复
@@ -47,6 +47,24 @@
+
+
+
+
+
+ {{ state.replayDialog.message }}
+
+
+
+
+
+
+
+
@@ -71,6 +89,19 @@ const state = reactive({
size: 10,
},
},
+ replayDialog: {
+ loading: false,
+ form: {
+ id: '',
+ replay: '',
+ },
+ show: false,
+ title: '回复',
+ message: '',
+ rules: {
+ replay: { required: true, message: '回复内容不能为空', trigger: 'blur' }
+ }
+ }
});
// 类型列表
@@ -111,6 +142,37 @@ const toShowDetail = (id: any) => {
messageDialogRef.value.openDialog(id);
}
+const replayFormRef = ref();
+
+// 回复
+const replay = (row: any) => {
+ state.replayDialog.message = row.message;
+ state.replayDialog.form.id = row.id;
+ state.replayDialog.show = true;
+}
+
+// 提交回复
+const commitReplay = () => {
+ try {
+ state.replayDialog.loading = true;
+ replayFormRef.value.validate(async(valid: boolean) => {
+ if (valid){
+ let res = await mesApi.updateMessage(state.replayDialog.form);
+ if(res?.success){
+ ElMessage.success('回复成功!');
+ state.replayDialog.show = false;
+ }else{ElMessage.error('回复失败!');}
+ }else{
+ ElMessage.error('请完善信息!');
+ }
+ });
+ } catch (error) {
+ ElMessage.error('回复失败!');
+ }finally{
+ state.replayDialog.loading = false;
+ }
+}
+
// 日期格式化
const dateFormatter = (row: any, column: TableColumnCtx
) => {
if(row.createtime === null) return '暂无';
@@ -148,4 +210,14 @@ onMounted(() => {
}
}
}
+.dialog-content{
+ padding: 0;
+ display: flex;
+ flex-direction: column;
+}
+.dialog-footer{
+ margin-top: 20px;
+ display: flex;
+ justify-content: flex-end;
+}
\ No newline at end of file
diff --git a/src/views/photos/index.vue b/src/views/photos/index.vue
index ae469b5..2edd9cb 100644
--- a/src/views/photos/index.vue
+++ b/src/views/photos/index.vue
@@ -463,11 +463,6 @@ const download = async(row:any) =>{
newPath = newPath.includes('http://localhost:8888/') ? newPath : viteUrl + newPath
try{
await downloadPhoto(newPath);
-
- ElMessage({
- message: '图片下载成功!',
- type: 'success',
- });
}catch(error){
console.error(error);
ElMessage.error('图片下载失败!')
diff --git a/src/views/service/apply/index.vue b/src/views/service/apply/index.vue
index a33187d..8a5a203 100644
--- a/src/views/service/apply/index.vue
+++ b/src/views/service/apply/index.vue
@@ -95,6 +95,8 @@ import { defineAsyncComponent, onMounted, reactive, ref } from 'vue';
// 基本路径
const viteUrl = import.meta.env.VITE_API_URL;
+console.log('viteUrl:',viteUrl);
+
// upload/Attachment/20241207/0fb6372ed5cd4fb9be68315301093f57.png
const defaultIcon:string = 'static/pixel/home/default-work.png';