艺术家
2025-05-22 52756e8a22ff5d3c5e9cf90dfa5b87742c60350d
功能优化
已修改15个文件
391 ■■■■ 文件已修改
项目代码/伸缩杆.7z 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/伸缩杆/client/src/api/newapi/Parameters.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/伸缩杆/client/src/utils/index.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/伸缩杆/client/src/views/system/UserInfo.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/伸缩杆/client/src/views/tts/DataLogging/Datalogging.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/伸缩杆/client/src/views/tts/Maintenancemanagement/Maintenancemanagement.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/伸缩杆/client/src/views/tts/Parametersettings/Parametersettings.vue 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/伸缩杆/client/src/views/tts/PickAndDrop/Manualcontrol.vue 183 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/伸缩杆/client/src/views/tts/PickAndDrop/PickAndDrop.vue 119 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/伸缩杆/client/src/views/tts/UserManagement/Usermanagement.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/伸缩杆/client/vite.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/可视化大屏.7z 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/可视化大屏/client/src/utils/index.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/可视化大屏/client/src/views/system/UserInfo.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目代码/可视化大屏/client/vite.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ÏîÄ¿´úÂë/ÉìËõ¸Ë.7z
Binary files differ
ÏîÄ¿´úÂë/ÉìËõ¸Ë/client/src/api/newapi/Parameters.js
@@ -6,4 +6,8 @@
//手动伸出缩回
export const ManualOperation = (data) => http.post(`/api/Parameters/ManualOperation?position=${data.position}&ExtendedState=${data.ExtendedState}`);
//获取参数
export const GetParameter = (data) => http.post(`/api/Parameters/BackfillSpeed`);
export const GetParameter = (data) => http.post(`/api/Parameters/BackfillSpeed`);
//暂停
export const Pouse = () => http.post(`/api/Parameters/PauseButton`);
//获取当前伸缩杆位置
export const GetPosition = () => http.post(`/api/Parameters/CurrentLocation`);
ÏîÄ¿´úÂë/ÉìËõ¸Ë/client/src/utils/index.js
@@ -1,9 +1,9 @@
import { dayjs } from "element-plus";
// import XLSX from "xlsx"; //导入xlsx
export const baseUrl = "http://192.168.2.103:9093"
export const baseUrl = "http://192.168.1.103:9093"
// http://192.168.0.80:1598
// http://192.168.2.103:9093
// http://192.168.1.103:9093
//对象转FormData生成方法
ÏîÄ¿´úÂë/ÉìËõ¸Ë/client/src/views/system/UserInfo.vue
@@ -11,12 +11,12 @@
        >
          <el-image
            style="width: 100px; height: 100px"
            :src="'http://192.168.2.103:9093' + userInfo.headImageUrl"
            :src="'http://192.168.1.103:9093' + userInfo.headImageUrl"
            :fit="fit"
          />
          <!-- <img
            v-if="userInfo.headImageUrl"
            :src="'http://192.168.2.103:9093' + userInfo.headImageUrl"
            :src="'http://192.168.1.103:9093' + userInfo.headImageUrl"
            class="avatar"
          />
          <el-icon v-else class="avatar-uploader-icon">
@@ -163,7 +163,7 @@
            ref="upload"
            name="fileInput"
            class="avatar-uploader"
            action="http://192.168.2.103:9093/api/User/SaveFiles"
            action="http://192.168.1.103:9093/api/User/SaveFiles"
            list-type="picture-card"
            :auto-upload="true"
            limit="1"
ÏîÄ¿´úÂë/ÉìËõ¸Ë/client/src/views/tts/DataLogging/Datalogging.vue
@@ -106,7 +106,7 @@
            <template #default="scope">
              <el-image
                style="width: 5rem; height: 5rem"
                :src="'http://192.168.2.103:9093' + scope.row.headImageUrl"
                :src="'http://192.168.1.103:9093' + scope.row.headImageUrl"
                show-progress
                :initial-index="4"
                fit="cover"
@@ -118,8 +118,7 @@
            label="分配时间"
            align="center"
          />
          <el-table-column prop="" label="分配检修员" align="center">
            <template #default> {{ userName }} </template>
          <el-table-column prop="Creater" label="分配检修员" align="center">
          </el-table-column>
        </el-table>
@@ -150,7 +149,7 @@
            <template #default="scope">
              <el-image
                style="width: 5rem; height: 5rem"
                :src="'http://192.168.2.103:9093' + scope.row.headImageUrl"
                :src="'http://192.168.1.103:9093' + scope.row.headImageUrl"
                show-progress
                :initial-index="4"
                fit="cover"
@@ -199,7 +198,7 @@
            <template #default="scope">
              <el-image
                style="width: 5rem; height: 5rem"
                :src="'http://192.168.2.103:9093' + scope.row.headImageUrl"
                :src="'http://192.168.1.103:9093' + scope.row.headImageUrl"
                show-progress
                :initial-index="4"
                fit="cover"
ÏîÄ¿´úÂë/ÉìËõ¸Ë/client/src/views/tts/Maintenancemanagement/Maintenancemanagement.vue
@@ -79,7 +79,7 @@
              <template #default="scope">
                <el-image
                  style="width: 5rem; height: 5rem"
                  :src="'http://192.168.2.103:9093' + scope.row.headImageUrl"
                  :src="'http://192.168.1.103:9093' + scope.row.headImageUrl"
                  :fit="fit"
                />
              </template>
@@ -217,7 +217,7 @@
              <template #default="scope">
                <el-image
                  style="width: 5rem; height: 5rem"
                  :src="'http://192.168.2.103:9093' + scope.row.headImageUrl"
                  :src="'http://192.168.1.103:9093' + scope.row.headImageUrl"
                  :fit="fit"
                />
              </template>
ÏîÄ¿´úÂë/ÉìËõ¸Ë/client/src/views/tts/Parametersettings/Parametersettings.vue
@@ -64,6 +64,30 @@
            v-model="ruleForm.manualRetraction"
          />
        </el-form-item>
        <el-form-item prop="leftPosition">
          <template #label>
            <span style="color: rgba(0, 9, 56, 1); font-size: 0.88rem"
              >å·¦PLC自动伸到位:</span
            >
          </template>
          <el-input
            style="height: 1.88rem"
            placeholder="请输入"
            v-model="ruleForm.leftPosition"
          />
        </el-form-item>
        <el-form-item prop="rightPosition">
          <template #label>
            <span style="color: rgba(0, 9, 56, 1); font-size: 0.88rem"
              >右PLC自动伸到位:</span
            >
          </template>
          <el-input
            style="height: 1.88rem"
            placeholder="请输入"
            v-model="ruleForm.rightPosition"
          />
        </el-form-item>
        <el-form-item>
          <div
            style="
@@ -195,10 +219,13 @@
  manualRetraction: 0,
  depid: userInfo.depid,
  account: userInfo.userName,
  leftPosition: 0,
  rightPosition: 0,
});
//保存
const submitForm = () => {
  console.log(ruleForm.value);
  AddData(ruleForm.value).then((res) => {
    if (res.code == 0) {
      ElMessage.success("保存成功");
@@ -216,9 +243,14 @@
        res.data == null ? 0 : res.data.manualExtend;
      ruleForm.value.manualRetraction =
        res.data == null ? 0 : res.data.manualRetraction;
      ruleForm.value.leftPosition =
        res.data == null ? 0 : res.data.leftPosition;
      ruleForm.value.rightPosition =
        res.data == null ? 0 : res.data.rightPosition;
    }
  });
};
onMounted(() => {
  getParameter();
});
ÏîÄ¿´úÂë/ÉìËõ¸Ë/client/src/views/tts/PickAndDrop/Manualcontrol.vue
@@ -1,6 +1,104 @@
<template>
  <div class="Manualcontrol">
    <div class="button">
      <div class="button_l">
        <el-button
          @click="handleAutoPickAndDrop('伸出')"
          type="primary"
          size="small"
          style="
            width: 14.69rem;
            height: 5.06rem;
            color: rgba(64, 253, 240, 1);
            background-color: rgba(6, 229, 231, 0.3);
            border: none;
            border-top: 0.25rem solid rgba(6, 229, 231, 1);
          "
        >
          <div class="btnicon">
            <span
              style="
                width: 1rem;
                height: 1rem;
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: 50% 50%;
                border: 0.1rem solid rgb(0, 0, 0);
                color: rgb(0, 0, 0);
                font-size: 0.75rem;
                margin-left: 0.1rem;
              "
              >i</span
            >
          </div>
          <span style="font-size: 2.25rem; text-align: center">定位伸按钮</span>
        </el-button>
        <el-button
          @click="handleAutoPickAndDrop('缩回')"
          type="primary"
          size="small"
          style="
            width: 14.69rem;
            height: 5.06rem;
            color: rgba(64, 253, 240, 1);
            background-color: rgba(6, 229, 231, 0.3);
            border: none;
            border-top: 0.25rem solid rgba(6, 229, 231, 1);
          "
        >
          <div class="btnicon">
            <span
              style="
                width: 1rem;
                height: 1rem;
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: 50% 50%;
                border: 0.1rem solid rgb(0, 0, 0);
                color: rgb(0, 0, 0);
                font-size: 0.75rem;
                margin-left: 0.1rem;
              "
              >i</span
            >
          </div>
          <span style="font-size: 2.25rem; text-align: center">定位缩按钮</span>
        </el-button>
        <el-button
          @click="handlePouse"
          type="primary"
          size="small"
          style="
            width: 14.69rem;
            height: 5.06rem;
            color: rgba(64, 253, 240, 1);
            background-color: rgba(6, 229, 231, 0.3);
            border: none;
            border-top: 0.25rem solid rgba(6, 229, 231, 1);
          "
        >
          <div class="btnicon">
            <span
              style="
                width: 1rem;
                height: 1rem;
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: 50% 50%;
                border: 0.1rem solid rgb(0, 0, 0);
                color: rgb(0, 0, 0);
                font-size: 0.75rem;
                margin-left: 0.1rem;
              "
              >i</span
            >
          </div>
          <span style="font-size: 2.25rem; text-align: center">暂停</span>
        </el-button>
      </div>
      <el-button
        @click="jumpRouter('/PickAndDrop')"
        class="btn"
@@ -81,6 +179,9 @@
              </div>
              <span style="font-size: 2.25rem; text-align: center">缩回</span>
            </el-button>
            <div style="color: #fff; font-size: 2rem; margin-left: 15rem">
              å³ä¾§ä¼¸ç¼©æ†
            </div>
          </div>
        </div>
        <div class="operate">
@@ -173,6 +274,9 @@
              </div>
              <span style="font-size: 2.25rem; text-align: center">缩回</span>
            </el-button>
            <div style="color: #fff; font-size: 2rem; margin-left: 15rem">
              å·¦ä¾§ä¼¸ç¼©æ†
            </div>
          </div>
        </div>
        <div class="operate">
@@ -233,7 +337,7 @@
                  >i</span
                >
              </div>
              <span style="font-size: 2.25rem; text-align: center">伸出</span>
              <span style="font-size: 2.25rem; text-align: center">点动伸</span>
            </el-button>
            <el-button
              @click="handManualOperation('å·¦', '缩回')"
@@ -265,12 +369,13 @@
                  >i</span
                >
              </div>
              <span style="font-size: 2.25rem; text-align: center">缩回</span>
              <span style="font-size: 2.25rem; text-align: center">点动缩</span>
            </el-button>
          </div>
          <div style="color: #fff; font-size: 2rem; margin-left: 20rem">
            å·¦ä¾§ä¼¸ç¼©æ†
          </div>
          <div style="color: #fff; font-size: 2rem">左侧伸缩杆</div>
          <span style="color: #fff; font-size: 2rem"
            >当前伸缩杆位置:{{ Position.right }}</span
          >
        </div>
        <div class="operate">
          <div class="item">伸到位</div>
@@ -328,7 +433,7 @@
                  >i</span
                >
              </div>
              <span style="font-size: 2.25rem; text-align: center">伸出</span>
              <span style="font-size: 2.25rem; text-align: center">点动伸</span>
            </el-button>
            <el-button
              @click="handManualOperation('右', '缩回')"
@@ -360,12 +465,13 @@
                  >i</span
                >
              </div>
              <span style="font-size: 2.25rem; text-align: center">缩回</span>
              <span style="font-size: 2.25rem; text-align: center">点动缩</span>
            </el-button>
          </div>
          <div style="color: #fff; font-size: 2rem; margin-left: 20rem">
            å³ä¾§ä¼¸ç¼©æ†
          </div>
          <div style="color: #fff; font-size: 2rem">右侧伸缩杆</div>
          <span style="color: #fff; font-size: 2rem"
            >当前伸缩杆位置:{{ Position.right }}</span
          >
        </div>
        <div class="operate">
          <div class="item">伸到位</div>
@@ -397,10 +503,20 @@
import { ref, onMounted, nextTick } from "vue";
import { useRouter } from "vue-router";
import { ElMessage } from "element-plus";
import { ManualOperation } from "@/api/newapi/Parameters.js";
import {
  ManualOperation,
  GetPosition,
  AutoPickAndDrop,
  Pouse,
} from "@/api/newapi/Parameters.js";
const router = useRouter();
const isMobile = ref(false);
const Position = ref({
  left: 0,
  right: 0,
});
const jumpRouter = (path) => {
  router.push(path);
};
@@ -430,6 +546,44 @@
  console.log(res);
};
const handleAutoPickAndDrop = async (val) => {
  try {
    const response = await AutoPickAndDrop({
      ExtendedState: val,
    });
    if (response.code === 0) {
      ElMessage.success(`${val}成功`);
    } else {
      ElMessage.error(`${val}失败`);
    }
  } catch (error) {
    console.error(error);
    ElMessage.error("操作失败");
  }
};
const handlePouse = async () => {
  try {
    const response = await Pouse();
    if (response.code === 0) {
      ElMessage.success(response.message);
    } else {
      ElMessage.error(response.message);
    }
  } catch (error) {
    console.error(error);
    ElMessage.error(error);
  }
};
//获取当前位置
const getPosition = () => {
  GetPosition().then((res) => {
    if (res.code == 0) {
      Position.value.left = res.data.left;
      Position.value.right = res.data.right;
    }
  });
};
onMounted(() => {
  // ç›‘听窗口大小变化
  window.addEventListener("resize", () => {
@@ -449,6 +603,7 @@
    // å¦‚果窗口宽度小于等于1080px,执行相应的操作
    isMobile.value = false;
  }
  getPosition();
});
</script>
<style lang="scss" scoped>
@@ -460,7 +615,7 @@
  .button {
    height: 7.83rem;
    display: flex;
    justify-content: center;
    justify-content: space-between;
    .btn {
      position: relative;
@@ -876,7 +1031,7 @@
      .model {
        display: flex;
        justify-content: space-between;
        .model_btn {
          display: flex;
@@ -1031,7 +1186,7 @@
      .model {
        display: flex;
        justify-content: space-between;
        .model_btn {
          display: flex;
ÏîÄ¿´úÂë/ÉìËõ¸Ë/client/src/views/tts/PickAndDrop/PickAndDrop.vue
@@ -1,7 +1,7 @@
<template>
  <div class="PickAndDrop">
    <div class="button">
      <div class="button_l">
      <!-- <div class="button_l">
        <el-button
          @click="handleAutoPickAndDrop('伸出')"
          type="primary"
@@ -32,7 +32,7 @@
              >i</span
            >
          </div>
          <span style="font-size: 2.25rem; text-align: center">伸出</span>
          <span style="font-size: 2.25rem; text-align: center">定位伸按钮</span>
        </el-button>
        <el-button
          @click="handleAutoPickAndDrop('缩回')"
@@ -64,9 +64,41 @@
              >i</span
            >
          </div>
          <span style="font-size: 2.25rem; text-align: center">缩回</span>
          <span style="font-size: 2.25rem; text-align: center">定位缩按钮</span>
        </el-button>
      </div>
        <el-button
          @click="handlePouse"
          type="primary"
          size="small"
          style="
            width: 14.69rem;
            height: 5.06rem;
            color: rgba(64, 253, 240, 1);
            background-color: rgba(6, 229, 231, 0.3);
            border: none;
            border-top: 0.25rem solid rgba(6, 229, 231, 1);
          "
        >
          <div class="btnicon">
            <span
              style="
                width: 1rem;
                height: 1rem;
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: 50% 50%;
                border: 0.1rem solid rgb(0, 0, 0);
                color: rgb(0, 0, 0);
                font-size: 0.75rem;
                margin-left: 0.1rem;
              "
              >i</span
            >
          </div>
          <span style="font-size: 2.25rem; text-align: center">暂停</span>
        </el-button>
      </div> -->
      <div class="button_r">
        <el-button
          @click="jumpRouter('/Manualcontrol')"
@@ -87,7 +119,11 @@
    </div>
    <div v-if="isMobile" class="content">
      <div class="content_l">
        <div class="model">左侧伸缩杆</div>
        <div class="model">
          <span>当前伸缩杆位置:{{ Position.right }}</span>
          <span>左侧伸缩杆</span>
          <span></span>
        </div>
        <div class="operate">
          <div class="item">伸到位</div>
          <div class="item">缩到位</div>
@@ -112,7 +148,11 @@
        </div>
      </div>
      <div class="content_r">
        <div class="model">右侧伸缩杆</div>
        <div class="model">
          <span>当前伸缩杆位置:{{ Position.right }}</span>
          <span>左侧伸缩杆</span>
          <span></span>
        </div>
        <div class="operate">
          <div class="item">伸到位</div>
          <div class="item">缩到位</div>
@@ -139,7 +179,11 @@
    </div>
    <div v-else class="content_mobile">
      <div class="content_l">
        <div class="model">左侧伸缩杆</div>
        <div class="model">
          <span>当前伸缩杆位置:{{ Position.left }}</span>
          <span>左侧伸缩杆</span>
          <span></span>
        </div>
        <div class="operate">
          <div class="item">伸到位</div>
          <div class="item">缩到位</div>
@@ -164,7 +208,11 @@
        </div>
      </div>
      <div class="content_r">
        <div class="model">右侧伸缩杆</div>
        <div class="model">
          <span>当前伸缩杆位置:{{ Position.right }}</span>
          <span>左侧伸缩杆</span>
          <span></span>
        </div>
        <div class="operate">
          <div class="item">伸到位</div>
          <div class="item">缩到位</div>
@@ -195,10 +243,18 @@
import { ref, onMounted, nextTick } from "vue";
import { useRouter } from "vue-router";
import { ElMessage } from "element-plus";
import { AutoPickAndDrop } from "@/api/newapi/Parameters.js";
import {
  AutoPickAndDrop,
  Pouse,
  GetPosition,
} from "@/api/newapi/Parameters.js";
const router = useRouter();
const isMobile = ref(false);
const Position = ref({
  left: 0,
  right: 0,
});
const jumpRouter = (path) => {
  router.push(path);
@@ -217,6 +273,29 @@
    console.error(error);
    ElMessage.error("操作失败");
  }
};
const handlePouse = async () => {
  try {
    const response = await Pouse();
    if (response.code === 0) {
      ElMessage.success(response.message);
    } else {
      ElMessage.error(response.message);
    }
  } catch (error) {
    console.error(error);
    ElMessage.error(error);
  }
};
//获取当前位置
const getPosition = () => {
  GetPosition().then((res) => {
    if (res.code == 0) {
      Position.value.left = res.data.lift;
      Position.value.right = res.data.right;
    }
  });
};
onMounted(() => {
  // ç›‘听窗口大小变化
@@ -237,6 +316,7 @@
    // å¦‚果窗口宽度小于等于1080px,执行相应的操作
    isMobile.value = false;
  }
  getPosition();
});
</script>
<style lang="scss" scoped>
@@ -248,7 +328,7 @@
  .button {
    height: 7.83rem;
    display: flex;
    justify-content: space-between;
    justify-content: center;
    .button_l {
      display: flex;
      .btnicon {
@@ -360,7 +440,9 @@
      padding: 2rem 0rem;
      .model {
        color: #fff;
        text-align: center;
        display: flex;
        justify-content: space-between;
        padding: 0rem 2rem;
        width: 100%;
        font-size: 2rem;
      }
@@ -505,7 +587,9 @@
      padding: 2rem 0rem;
      .model {
        color: #fff;
        text-align: center;
        display: flex;
        justify-content: space-between;
        padding: 0rem 2rem;
        width: 100%;
        font-size: 2rem;
      }
@@ -650,14 +734,14 @@
      box-shadow: 0rem 0.13rem 0.38rem 0rem rgba(6, 229, 231, 1);
      border: 0.06rem solid rgba(6, 229, 231, 1);
      padding: 2rem 0rem;
      .model {
        color: #fff;
        text-align: center;
        display: flex;
        justify-content: space-between;
        padding: 0rem 2rem;
        width: 100%;
        font-size: 2rem;
      }
      .operate {
        display: flex;
        flex-direction: column;
@@ -790,10 +874,11 @@
      border: 0.06rem solid rgba(6, 229, 231, 1);
      margin-top: 10%;
      padding: 2rem 0rem;
      .model {
        color: #fff;
        text-align: center;
        display: flex;
        justify-content: space-between;
        padding: 0rem 2rem;
        width: 100%;
        font-size: 2rem;
      }
ÏîÄ¿´úÂë/ÉìËõ¸Ë/client/src/views/tts/UserManagement/Usermanagement.vue
@@ -182,7 +182,7 @@
            <template #default="scope">
              <el-image
                style="width: 5rem; height: 5rem"
                :src="'http://192.168.2.103:9093' + scope.row.headImageUrl"
                :src="'http://192.168.1.103:9093' + scope.row.headImageUrl"
                show-progress
                :initial-index="4"
                fit="cover"
@@ -587,7 +587,7 @@
                ref="uploadRef"
                name="files"
                class="avatar-uploader"
                action="http://192.168.2.103:9093/api/User/SaveFiles"
                action="http://192.168.1.103:9093/api/User/SaveFiles"
                list-type="picture-card"
                limit="1"
                :auto-upload="true"
@@ -1179,12 +1179,18 @@
  await formEl.validate((valid, fields) => {
    if (valid) {
      if (formUser.value.id != undefined) {
         if (!formUser.value.userteam.includes('组')) {
          formUser.value.userteam = formUser.value.userteam + '组'
        }
        UpdateUser(formUser.value).then((res) => {
          ElMessage({ message: "修改成功", type: "success" });
          dialogVisible.value = false;
          initData();
        });
      } else {
         if (!formUser.value.userteam.includes('组')) {
          formUser.value.userteam = formUser.value.userteam + '组'
        }
        AddUser(formUser.value).then((res) => {
          ElMessage({ message: "提交成功", type: "success" });
          dialogVisible.value = false;
@@ -1274,7 +1280,7 @@
    fileList.value = [
      {
        name: "1",
        url: "http://192.168.2.103:9093" + obj.headImageUrl,
        url: "http://192.168.1.103:9093" + obj.headImageUrl,
      },
    ];
  }
ÏîÄ¿´úÂë/ÉìËõ¸Ë/client/vite.config.js
@@ -34,7 +34,7 @@
  server: {
    proxy: {
      '/api': {
        target: 'http://192.168.2.103:9093', // ç›®æ ‡æŽ¥å£çš„域名
        target: 'http://192.168.1.103:9093', // ç›®æ ‡æŽ¥å£çš„域名
        changeOrigin: true, // æ˜¯å¦è·¨åŸŸ
        rewrite: (path) => path.replace(/^\/api/, '') // è·¯å¾„重写
      }
ÏîÄ¿´úÂë/¿ÉÊÓ»¯´óÆÁ.7z
Binary files differ
ÏîÄ¿´úÂë/¿ÉÊÓ»¯´óÆÁ/client/src/utils/index.js
@@ -1,9 +1,9 @@
import { dayjs } from "element-plus";
// import XLSX from "xlsx"; //导入xlsx
export const baseUrl = "http://192.168.2.103:9093"
export const baseUrl = "http://192.168.1.103:9093"
// http://192.168.0.80:1598
// http://192.168.2.103:9093
// http://192.168.1.103:9093
//对象转FormData生成方法
ÏîÄ¿´úÂë/¿ÉÊÓ»¯´óÆÁ/client/src/views/system/UserInfo.vue
@@ -11,12 +11,12 @@
        >
          <el-image
            style="width: 100px; height: 100px"
            :src="'http://192.168.2.103:9093' + userInfo.headImageUrl"
            :src="'http://192.168.1.103:9093' + userInfo.headImageUrl"
            :fit="fit"
          />
          <!-- <img
            v-if="userInfo.headImageUrl"
            :src="'http://192.168.2.103:9093' + userInfo.headImageUrl"
            :src="'http://192.168.1.103:9093' + userInfo.headImageUrl"
            class="avatar"
          />
          <el-icon v-else class="avatar-uploader-icon">
@@ -163,7 +163,7 @@
            ref="upload"
            name="fileInput"
            class="avatar-uploader"
            action="http://192.168.2.103:9093/api/User/SaveFiles"
            action="http://192.168.1.103:9093/api/User/SaveFiles"
            list-type="picture-card"
            :auto-upload="true"
            limit="1"
ÏîÄ¿´úÂë/¿ÉÊÓ»¯´óÆÁ/client/vite.config.js
@@ -34,7 +34,7 @@
  server: {
    proxy: {
      '/api': {
        target: 'http://192.168.2.103:9093/', // ç›®æ ‡æŽ¥å£çš„域名
        target: 'http://192.168.1.103:9093/', // ç›®æ ‡æŽ¥å£çš„域名
        changeOrigin: true, // æ˜¯å¦è·¨åŸŸ
        rewrite: (path) => path.replace(/^\/api/, '') // è·¯å¾„重写
      }