马宇豪
2024-01-12 c6177c2463d9ff59b886d7c7952e99cd2c6d353b
修复弹窗bug
已修改3个文件
28 ■■■■ 文件已修改
src/util/request.js 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Admin/components/msgDetailMod.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Admin/components/userMod.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/util/request.js
@@ -10,7 +10,7 @@
const { baseUrl } = require('../../config/env.' + process.env.NODE_ENV)
const http= axios.create({
    baseURL: baseUrl,
    timeout: 5000,//响应时间
    timeout: 50000,//响应时间
    // headers:{"Content-Type":"application/json;charset=utf-8"},
})
@@ -59,17 +59,17 @@
    (error) => {
        // 对响应错误做点什么
        if (error.message.indexOf('timeout') != -1) {
            message.error('网络超时');
            setTimeout(() => {
                Session.clear()
                window.location.href = '/';
            }, 1000);
            message.error('网络超时')
            // setTimeout(() => {
            //     Session.clear()
            //     window.location.href = '/'
            // }, 1000)
        } else if (error.message == 'Network Error') {
            message.error('网络连接错误');
            setTimeout(() => {
                Session.clear();
                window.location.href = '/';
            }, 1000);
            message.error('网络连接错误')
            // setTimeout(() => {
            //     Session.clear()
            //     window.location.href = '/'
            // }, 1000)
        } else {
            if (error.response.data) message.error(error.response.data.error);
            else message.error('接口路径找不到');
src/views/Admin/components/msgDetailMod.vue
@@ -41,8 +41,8 @@
      <a-row :gutter="24" v-if="details.acceptingUnitIds && details.acceptingUnitIds.length>0">
        <a-col :span="4">接收人</a-col>
        <a-col :span="20">
          <b>本次共发送信息给 {{details.acceptingUnitIds.length}}人:</b><br/><br/>
          {{details.acceptingUnitIds.map(i=>i.recipienterName + '(' + i.recipienterPhone.replace(/(\d{3})\d{4}(\d+)/, "$1****$2") + ')').join(',')}}
          <b>本次共发送信息给 {{details.acceptingUnitIds.length + details.peerRecipientIds.length}}人:</b><br/><br/>
          {{details.acceptingUnitIds.map(i=>i.recipienterName + '(' + i.recipienterPhone.replace(/(\d{3})\d{4}(\d+)/, "$1****$2") + ')').join(',').concat(details.peerRecipientIds.map(i=>i.recipienterName + '(' + i.recipienterPhone.replace(/(\d{3})\d{4}(\d+)/, "$1****$2") + ')').join(','))}}
        </a-col>
      </a-row>
      <a-row :gutter="24" v-if="details.attachments && details.attachments.length > 0"><a-col :span="4">附件内容</a-col>
src/views/Admin/components/userMod.vue
@@ -63,7 +63,7 @@
        </a-tree-select>
      </a-form-model-item>
      <a-form-model-item label="所属单位">
        <a-input v-model="form.company" readOnly/>
        <a-input v-model="form.company"/>
      </a-form-model-item>
      <a-form-model-item label="角色" prop="roleId">
        <a-select v-model="form.roleId" placeholder="角色">