Merge remote-tracking branch 'origin/dev_7004' into dev_7004
| | |
| | | # 页面标题
|
| | | VITE_APP_TITLE = 弘也水泥管理系统
|
| | | VITE_APP_TITLE = 中小企业数字化转型套餐包
|
| | |
|
| | | # 开发环境配置
|
| | | VITE_APP_ENV = 'development'
|
| | |
|
| | | # 弘也水泥管理系统/开发环境
|
| | | # 中小企业数字化转型套餐包/开发环境
|
| | | VITE_APP_BASE_API = '/dev-api'
|
| | |
| | | # 页面标题
|
| | | VITE_APP_TITLE = 弘也水泥管理系统
|
| | | VITE_APP_TITLE = 中小企业数字化转型套餐包
|
| | |
|
| | | # 生产环境配置
|
| | | VITE_APP_ENV = 'production'
|
| | |
|
| | | # 弘也水泥管理系统/生产环境
|
| | | # 中小企业数字化转型套餐包/生产环境
|
| | | VITE_APP_BASE_API = '/prod-api'
|
| | |
|
| | | # 是否在打包时开启压缩,支持 gzip 和 brotli
|
| | |
| | | # 页面标题
|
| | | VITE_APP_TITLE = 弘也水泥管理系统
|
| | | VITE_APP_TITLE = 中小企业数字化转型套餐包
|
| | |
|
| | | # 生产环境配置
|
| | | VITE_APP_ENV = 'staging'
|
| | |
|
| | | # 弘也水泥管理系统/生产环境
|
| | | # 中小企业数字化转型套餐包/生产环境
|
| | | VITE_APP_BASE_API = '/stage-api'
|
| | |
|
| | | # 是否在打包时开启压缩,支持 gzip 和 brotli
|
| | |
| | | <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,
|
| | |
| | | { |
| | | "name": "ruoyi", |
| | | "version": "3.8.9", |
| | | "description": "弘也水泥管理系统", |
| | | "description": "中小企业数字化转型套餐包", |
| | | "author": "若依", |
| | | "license": "MIT", |
| | | "type": "module", |
| | |
| | | }
|
| | | ]
|
| | | },
|
| | | {
|
| | | 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,
|
| | |
| | | <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;
|
| | | }
|
| | |
| | | clickFun: (row) => { |
| | | openForm("edit", row); |
| | | }, |
| | | disabled: (row) => { |
| | | return row.inspectState; |
| | | } |
| | | }, |
| | | { |
| | | name: "附件", |
| | |
| | | proxy.$modal.msgError("检验员已存在"); |
| | | } |
| | | }, |
| | | disabled: (row) => { |
| | | return row.inspectState; |
| | | } |
| | | }, |
| | | { |
| | | name: "下载", |
| | |
| | | } |
| | | |
| | | 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) |
| | | }) |
| | |
| | | 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。
|