spring
2025-08-13 5e3f6dc1253883bbdef87974cfa950171f87f9ec
Merge remote-tracking branch 'origin/dev_7004' into dev_7004
已修改9个文件
95 ■■■■ 文件已修改
.env.development 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.production 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.staging 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
index.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/qualityManagement/rawMaterialInspection/index.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vite.config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 弘也水泥管理系统
VITE_APP_TITLE = 中小企业数字化转型套餐包
# 开发环境配置
VITE_APP_ENV = 'development'
# 弘也水泥管理系统/开发环境
# 中小企业数字化转型套餐包/开发环境
VITE_APP_BASE_API = '/dev-api'
.env.production
@@ -1,10 +1,10 @@
# 页面标题
VITE_APP_TITLE = 弘也水泥管理系统
VITE_APP_TITLE = 中小企业数字化转型套餐包
# 生产环境配置
VITE_APP_ENV = 'production'
# 弘也水泥管理系统/生产环境
# 中小企业数字化转型套餐包/生产环境
VITE_APP_BASE_API = '/prod-api'
# 是否在打包时开启压缩,支持 gzip 和 brotli
.env.staging
@@ -1,10 +1,10 @@
# 页面标题
VITE_APP_TITLE = 弘也水泥管理系统
VITE_APP_TITLE = 中小企业数字化转型套餐包
# 生产环境配置
VITE_APP_ENV = 'staging'
# 弘也水泥管理系统/生产环境
# 中小企业数字化转型套餐包/生产环境
VITE_APP_BASE_API = '/stage-api'
# 是否在打包时开启压缩,支持 gzip 和 brotli
index.html
@@ -6,8 +6,8 @@
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="renderer" content="webkit">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <link rel="icon" href="/HYSNico.ico">
  <title>弘也水泥管理系统</title>
  <link rel="icon" href="/favicon.ico">
  <title>中小企业数字化转型套餐包</title>
  <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
  <style>
    html,
package.json
@@ -1,7 +1,7 @@
{
  "name": "ruoyi",
  "version": "3.8.9",
  "description": "弘也水泥管理系统",
  "description": "中小企业数字化转型套餐包",
  "author": "若依",
  "license": "MIT",
  "type": "module",
src/router/index.js
@@ -71,33 +71,33 @@
      }
    ]
  },
  {
    path: '/equipment',
    component: Layout,
    redirect: '/equipment/iot-monitor',
    children: [
      {
        path: 'iot-monitor',
        component: () => import('@/views/equipmentManagement/iotMonitor/index.vue'),
        name: 'IoTMonitor',
        meta: { title: 'IoT监控', icon: 'monitor', noCache: true }
      }
    ]
  },
  {
    path: '/main/MobileChat',
    component: Layout,
    redirect: '',
    hidden: true,
    children: [
      {
        path: '',
        component: () => import('@/views/chatHome/chatHomeIndex/MobileChat'),
        name: 'MobileChat',
        meta: { title: 'AI对话', icon: 'dashboard', affix: true}
      }
    ]
  },
  // {
  //   path: '/equipment',
  //   component: Layout,
  //   redirect: '/equipment/iot-monitor',
  //   children: [
  //     {
  //       path: 'iot-monitor',
  //       component: () => import('@/views/equipmentManagement/iotMonitor/index.vue'),
  //       name: 'IoTMonitor',
  //       meta: { title: 'IoT监控', icon: 'monitor', noCache: true }
  //     }
  //   ]
  // },
  // {
  //   path: '/main/MobileChat',
  //   component: Layout,
  //   redirect: '',
  //   hidden: true,
  //   children: [
  //     {
  //       path: '',
  //       component: () => import('@/views/chatHome/chatHomeIndex/MobileChat'),
  //       name: 'MobileChat',
  //       meta: { title: 'AI对话', icon: 'dashboard', affix: true}
  //     }
  //   ]
  // },
  {
    path: '/user',
    component: Layout,
src/views/login.vue
@@ -181,7 +181,7 @@
<style lang='scss' scoped>
.login {
  height: 100%;
  background-image: url("../assets/indexViews/HYSNView.png");
  background-image: url("../assets/indexViews/ZQHXView.png");
  background-size: cover;
  position: relative;
}
src/views/qualityManagement/rawMaterialInspection/index.vue
@@ -168,6 +168,9 @@
        clickFun: (row) => {
          openForm("edit", row);
        },
        disabled: (row) => {
          return row.inspectState;
        }
      },
      {
        name: "附件",
@@ -193,6 +196,9 @@
            proxy.$modal.msgError("检验员已存在");
          }
        },
        disabled: (row) => {
          return row.inspectState;
        }
      },
      {
        name: "下载",
@@ -354,19 +360,18 @@
}
const downLoadFile = (row) => {
  downloadQualityInspect({id: row.id}).then(res => {
    // 创建 blob 对象
    const blob = new Blob([res.data], {type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'})
  downloadQualityInspect({ id: row.id }).then((blobData) => {
    const blob = new Blob([blobData], {
      type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
    })
    const downloadUrl = window.URL.createObjectURL(blob)
    // 创建临时 <a> 标签进行下载
    const link = document.createElement('a')
    link.href = downloadUrl
    link.download = '检验报告.docx' // 这里和后端一致
    link.download = '检验报告.docx'
    document.body.appendChild(link)
    link.click()
    // 清理
    document.body.removeChild(link)
    window.URL.revokeObjectURL(downloadUrl)
  })
vite.config.js
@@ -8,8 +8,8 @@
  const { VITE_APP_ENV } = env;
  const baseUrl =
    VITE_APP_ENV == "development"
      ? "http://114.132.189.42:8092" // 开发环境后端接口
      : "http://114.132.189.42:8092"; // 生产环境后端接口
      ? "http://114.132.189.42:8089" // 开发环境后端接口
      : "http://114.132.189.42:8089"; // 生产环境后端接口
  return {
    // 部署生产环境和开发环境下的URL。