From 610b299ed7c64b48ede23c2a7553c5b90988efa5 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期二, 18 三月 2025 16:01:47 +0800 Subject: [PATCH] fix:修改后台接口问题 --- src/api/facility/facilityType.js | 19 -- src/views/screen/flow/shebei/index.vue | 13 + src/api/system/role.js | 4 src/views/screen/flow/report/index.vue | 13 + src/layout/components/Navbar.vue | 1 src/views/facility/facilityType/index.vue | 1 src/views/screen/temperature/statics/index.vue | 13 + src/views/facility/facilityList/index.vue | 46 ---- src/views/screen/flow/ecology/index.vue | 13 + src/components/UploadIcons/index.vue | 2 src/api/facility/point.js | 19 -- src/api/facility/index.js | 21 -- src/screen/flow.vue | 18 + src/api/facility/parameter.js | 6 src/router/index.js | 44 +++++ src/components/Breadcrumb/index.vue | 5 src/utils/permission.js | 1 src/views/screen/temperature/home/index.vue | 3 .env.development | 4 src/views/system/user/index.vue | 22 +- src/screen/temp.vue | 18 + src/views/login.vue | 12 src/components/Hamburger/index.vue | 1 src/api/facility/supplier.js | 21 -- src/views/screen/flow/home/index.vue | 3 src/views/screen/flow/warning/index.vue | 13 + .env.production | 2 src/layout/components/AppMain.vue | 1 src/views/screen/temperature/monitor/index.vue | 13 + src/views/screen/temperature/shebei/index.vue | 13 + src/views/screen/flow/graphic/index.vue | 13 + src/views/screen/temperature/report/index.vue | 13 + src/views/screen/temperature/graphic/index.vue | 13 + src/api/system/permission.js | 2 src/api/configuration/commonParameters/index.js | 15 - 35 files changed, 238 insertions(+), 183 deletions(-) diff --git a/.env.development b/.env.development index 7396d49..c2336b2 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,6 @@ # 页面标题 -VITE_APP_TITLE = 生态流量监测系统 +VITE_APP_TITLE = 后台管理系统 # 开发环境配置 VITE_APP_ENV = 'development' @@ -9,4 +9,4 @@ # VITE_APP_PUBLIC_REQUEST_API = 'http://113.250.189.120:8030' # VITE_APP_PUBLIC_REQUEST_API = 'http://113.250.189.120:8036' #后端本地 - VITE_APP_PUBLIC_REQUEST_API = 'http://192.168.0.200:8036' + VITE_APP_PUBLIC_REQUEST_API = 'http://192.168.0.200:8036' diff --git a/.env.production b/.env.production index d95d8b5..d5fbb8b 100644 --- a/.env.production +++ b/.env.production @@ -1,6 +1,6 @@ # 页面标题 -VITE_APP_TITLE = 生态流量监测系统 +VITE_APP_TITLE = 后台管理系统 # 开发环境配置 VITE_APP_ENV = 'production' diff --git a/src/api/configuration/commonParameters/index.js b/src/api/configuration/commonParameters/index.js index ede9f95..fac65aa 100644 --- a/src/api/configuration/commonParameters/index.js +++ b/src/api/configuration/commonParameters/index.js @@ -12,7 +12,7 @@ //公司配置信息 export default function commonParameters() { return { - //创建公司配置信息 + //创建配置信息 create: (data) => { return publicRequest({ url: '/commonParameters/create', @@ -20,14 +20,14 @@ data, }); }, - //删除公司配置信息 + //删除配置信息 remove: (id) => { return publicRequest({ url: `/commonParameters/remove?id=${id}`, method: 'get', }); }, - //编辑公司配置信息 + //编辑配置信息 modify: (data) => { return publicRequest({ url: '/commonParameters/modify', @@ -35,19 +35,12 @@ data, }); }, - //分页查询公司配置信息 + //分页查询配置信息 search: (data) => { return publicRequest({ url: '/commonParameters/search', method: 'post', data, - }); - }, - //获取公司配置信息 - get: (id) => { - return publicRequest({ - url: `/commonParameters/get?id=${id}`, - method: 'get', }); }, }; diff --git a/src/api/facility/facilityType.js b/src/api/facility/facilityType.js index 6019bbb..e09f819 100644 --- a/src/api/facility/facilityType.js +++ b/src/api/facility/facilityType.js @@ -29,29 +29,10 @@ method: 'post' }); }, - stop: (id) => { - return publicRequest({ - url: `/waterFacilityType/stop?id=${id}`, - method: 'post' - }); - }, - enable: (id) => { - return publicRequest({ - url: `/waterFacilityType/enable?id=${id}`, - method: 'post' - }); - }, search: (data) => { return publicRequest({ url: '/waterFacilityType/search', method: 'post', - data - }); - }, - getList: (data) => { - return publicRequest({ - url: `/waterFacilityType/getList`, - method: 'get', data }); }, diff --git a/src/api/facility/index.js b/src/api/facility/index.js index 9b3b604..dc31fae 100644 --- a/src/api/facility/index.js +++ b/src/api/facility/index.js @@ -30,31 +30,10 @@ data, }); }, - stop: (data) => { - return publicRequest({ - url: `/waterFacility/stop?id=${data}`, - method: 'post', - data, - }); - }, - enable: (data) => { - return publicRequest({ - url: `/waterFacility/enable?id=${data}`, - method: 'post', - data, - }); - }, search: (data) => { return publicRequest({ url: '/waterFacility/search', method: 'post', - data, - }); - }, - getList: (data) => { - return publicRequest({ - url: `/waterFacility/getList`, - method: 'get', data, }); }, diff --git a/src/api/facility/parameter.js b/src/api/facility/parameter.js index f587ec9..0bae0e4 100644 --- a/src/api/facility/parameter.js +++ b/src/api/facility/parameter.js @@ -39,12 +39,6 @@ data, }); }, - get: (id) => { - return publicRequest({ - url: `/waterFacilityParameter/get?id=${id}`, - method: 'get', - }); - }, getParam: (id) => { return publicRequest({ url: `waterFacilityParameter/getListByFacilityId?facilityId=${id}`, diff --git a/src/api/facility/point.js b/src/api/facility/point.js index 72128db..ffc596c 100644 --- a/src/api/facility/point.js +++ b/src/api/facility/point.js @@ -29,29 +29,10 @@ method: 'post' }); }, - stop: (id) => { - return publicRequest({ - url: `/waterMonitoryPoint/stop?id=${id}`, - method: 'post' - }); - }, - enable: (id) => { - return publicRequest({ - url: `/waterMonitoryPoint/enable?id=${id}`, - method: 'post' - }); - }, search: (data) => { return publicRequest({ url: '/waterMonitoryPoint/search', method: 'post', - data - }); - }, - getList: (data) => { - return publicRequest({ - url: `/waterMonitoryPoint/getList`, - method: 'get', data }); }, diff --git a/src/api/facility/supplier.js b/src/api/facility/supplier.js index edbb076..6707471 100644 --- a/src/api/facility/supplier.js +++ b/src/api/facility/supplier.js @@ -30,31 +30,10 @@ data, }); }, - stop: (data) => { - return publicRequest({ - url: `/supplierInformation/stop?id=${data}`, - method: 'post', - data, - }); - }, - enable: (data) => { - return publicRequest({ - url: `/supplierInformation/enable?id=${data}`, - method: 'post', - data, - }); - }, search: (data) => { return publicRequest({ url: '/supplierInformation/search', method: 'post', - data, - }); - }, - get: (data) => { - return publicRequest({ - url: `/supplierInformation/get?id=${data}`, - method: 'get', data, }); }, diff --git a/src/api/system/permission.js b/src/api/system/permission.js index 1ab06a7..4bf79ec 100644 --- a/src/api/system/permission.js +++ b/src/api/system/permission.js @@ -31,7 +31,7 @@ //删除权限 remove:(id) =>{ return publicRequest({ - url: `/admin/permission/remove?powerId=${id}`, + url: `/admin/permission/remove/${id}`, method: 'get', }) }, diff --git a/src/api/system/role.js b/src/api/system/role.js index d00930a..3ff4563 100644 --- a/src/api/system/role.js +++ b/src/api/system/role.js @@ -39,7 +39,7 @@ //删除角色 remove:(id) =>{ return publicRequest({ - url: `/admin/role/remove?roleId=${id}`, + url: `/admin/role/remove/${id}`, method: 'post', }) }, @@ -54,7 +54,7 @@ //获取角色菜单权限列表 getListMenuAndPermission:(id) =>{ return publicRequest({ - url: `/admin/role/getListMenuAndPermission?roleId=${id}`, + url: `/admin/role/getListMenuAndPermission/${id}`, method: 'get', }) }, diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 489cba1..2a6e4cc 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -59,8 +59,11 @@ margin-left: 8px; .no-redirect { - color: #97a8be; + color: #fff; cursor: text; } + .el-breadcrumb__inner a{ + color: #fff; + } } </style> \ No newline at end of file diff --git a/src/components/Hamburger/index.vue b/src/components/Hamburger/index.vue index 18c201e..a403426 100644 --- a/src/components/Hamburger/index.vue +++ b/src/components/Hamburger/index.vue @@ -7,6 +7,7 @@ xmlns="http://www.w3.org/2000/svg" width="64" height="64" + fill="#fff" > <path d="M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z" /> </svg> diff --git a/src/components/UploadIcons/index.vue b/src/components/UploadIcons/index.vue index 8c2d25c..7f77c39 100644 --- a/src/components/UploadIcons/index.vue +++ b/src/components/UploadIcons/index.vue @@ -67,7 +67,7 @@ let form = new FormData(); form.append("file1", params.file); form.append("fileId", params.file.lastModified); - form.append("path", 'operation'); + form.append("path", 'hydropower'); //发出上传文件请求 let res = await upload().uploadFile(form) if(res.code == 200){ diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index bcdf5cf..ef7b361 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -20,7 +20,6 @@ </template> <script setup> -import { onMounted } from "vue"; import iframeToggle from "./IframeToggle/index" import useTagsViewStore from '@/store/modules/tagsView' diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index fe6e175..3b8f805 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -97,7 +97,6 @@ cursor: pointer; transition: background 0.3s; -webkit-tap-highlight-color: transparent; - &:hover { background: rgba(250, 250, 250, 0.025); } diff --git a/src/router/index.js b/src/router/index.js index 7fc95f4..2a61bcd 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -70,7 +70,27 @@ { path: 'home', component: () => import('@/views/screen/flow/home/index.vue') - } + }, + { + path: 'ecology', + component: () => import('@/views/screen/flow/ecology/index.vue') + }, + { + path: 'graphic', + component: () => import('@/views/screen/flow/graphic/index.vue') + }, + { + path: 'shebei', + component: () => import('@/views/screen/flow/shebei/index.vue') + }, + { + path: 'warning', + component: () => import('@/views/screen/flow/warning/index.vue') + }, + { + path: 'report', + component: () => import('@/views/screen/flow/report/index.vue') + }, ] }, ] @@ -85,7 +105,27 @@ { path: 'home', component: () => import('@/views/screen/temperature/home/index.vue') - } + }, + { + path: 'shebei', + component: () => import('@/views/screen/temperature/shebei/index.vue') + }, + { + path: 'monitor', + component: () => import('@/views/screen/temperature/monitor/index.vue') + }, + { + path: 'graphic', + component: () => import('@/views/screen/temperature/graphic/index.vue') + }, + { + path: 'statics', + component: () => import('@/views/screen/temperature/statics/index.vue') + }, + { + path: 'report', + component: () => import('@/views/screen/temperature/report/index.vue') + }, ] } ] diff --git a/src/screen/flow.vue b/src/screen/flow.vue index 942f633..3d7067f 100644 --- a/src/screen/flow.vue +++ b/src/screen/flow.vue @@ -17,12 +17,12 @@ const router = useRouter() const route = ref(useRoute()) const btnList = ref([ - {name:'总览',url:'/flow/home'}, - {name:'生态流量',url:''}, - {name:'图像监测', url:''}, - {name:'设备管理',url:''}, - {name:'报警管理',url:''}, - {name:'报表管理',url:''}, + {name:'首页总览',url:'/flow/home'}, + {name:'生态流量',url:'/flow/ecology'}, + {name:'图像监测', url:'/flow/graphic'}, + {name:'设备管理',url:'/flow/shebei'}, + {name:'报警管理',url:'/flow/warning'}, + {name:'报表管理',url:'/flow/report'}, ]) const navTo = (item) =>{ router.push(item.url) @@ -37,6 +37,8 @@ .header{ width: 100%; height: 14%; + background-color: rgb(82, 120, 128); + position: relative; .top{ height: 60%; display: flex; @@ -45,10 +47,14 @@ font-size: 38px; font-weight: 700; color: #fff; + position: relative; + z-index: 100; } .nav{ display: flex; height: 40%; + position: relative; + z-index: 100; .plain{ flex-grow: 1; height: 100%; diff --git a/src/screen/temp.vue b/src/screen/temp.vue index 1613cc7..de31101 100644 --- a/src/screen/temp.vue +++ b/src/screen/temp.vue @@ -1,7 +1,7 @@ <template> <div class="main"> <div class="header"> - <div class="top">金川水电站生态流量监测系统 </div> + <div class="top">金川水电站水温监测系统 </div> <div class="nav"> <div v-for="(item,index) in btnList" :key="index" @click="navTo(item)" class="plain" :class="item.url === route.path ? 'active' : ''">{{ item.name }}</div> </div> @@ -18,11 +18,11 @@ const route = ref(useRoute()) const btnList = ref([ {name:'总览',url:'/temp/home'}, - {name:'设备管理',url:''}, - {name:'实时监测', url:''}, - {name:'图形分析',url:''}, - {name:'汇总统计',url:''}, - {name:'报表管理',url:''}, + {name:'设备管理',url:'/temp/shebei'}, + {name:'实时监测', url:'/temp/monitor'}, + {name:'图形分析',url:'/temp/graphic'}, + {name:'汇总统计',url:'/temp/statics'}, + {name:'报表管理',url:'/temp/report'}, {name:'系统管理',url:'/user'}, ]) const navTo = (item) =>{ @@ -38,6 +38,8 @@ .header{ width: 100%; height: 14%; + background-color: rgb(82, 120, 128); + position: relative; .top{ height: 60%; display: flex; @@ -46,10 +48,14 @@ font-size: 38px; font-weight: 700; color: #fff; + position: relative; + z-index: 100; } .nav{ display: flex; height: 40%; + position: relative; + z-index: 100; .plain{ flex-grow: 1; height: 100%; diff --git a/src/utils/permission.js b/src/utils/permission.js index d870057..5b9e2a5 100644 --- a/src/utils/permission.js +++ b/src/utils/permission.js @@ -22,6 +22,7 @@ } function permsJudge(value) { let perms = JSON.parse(localStorage.getItem("listPermission")|| '0'); + console.log(value, perms) for (let i in perms) { if(typeof value == 'object'){ let val = value[0] diff --git a/src/views/facility/facilityList/index.vue b/src/views/facility/facilityList/index.vue index a35c9be..096d421 100644 --- a/src/views/facility/facilityList/index.vue +++ b/src/views/facility/facilityList/index.vue @@ -39,15 +39,9 @@ facilityCode: '设备编号', facilityName: '设备名称', facilityTypeName: '设备类型', - longitude: '经度', - latitude: '纬度', pointName: '设备监控点', - networkType:'网络类型', facilityUrl: '设备图片', - producedDate:'出厂日期', installDate:'安装日期', - supplier: '设备供应商', - createTimeView: '创建时间' }) /** 获取权限列表 */ @@ -68,12 +62,8 @@ facilityCode: '设备编号', facilityName: '设备名称', facilityType: '设备类型', - longitude: '经度', - latitude: '纬度', pointId: '设备监控点', facilityUrl: '设备图片', - supplier: '设备供应商', - networkType:'网络类型', remark:'备注信息', createTimeView: '创建时间' }) @@ -91,7 +81,7 @@ //查询监控点 const pointList = ref(); const getPoint = async () => { - await pointApi().search({limit: 10000, page: 1}).then((res) => { + await pointApi().search({limit: 100, page: 1}).then((res) => { pointList.value = res.data.list }) } @@ -99,7 +89,7 @@ //查询供应商 const supplierList = ref(); const getSupplier = async () => { - await supplierApi().search({limit: 10000, page: 1}).then((res) => { + await supplierApi().search({limit: 100, page: 1}).then((res) => { console.log("供应商" + res.data.list); supplierList.value = res.data.list }) @@ -108,7 +98,7 @@ //查询设备类型 const facilityTypeList = ref(); const getFacilityTypeList = async () => { - await facilityTypeApi().search({limit: 10000, page: 1}).then((res) => { + await facilityTypeApi().search({limit: 100, page: 1}).then((res) => { facilityTypeList.value = res.data.list }) } @@ -353,18 +343,12 @@ /> <!-- 添加/修改表单 --> <el-dialog :title="title" v-model="open" append-to-body center> - <el-form class="form-box" ref="facilityTypeRef" :model="form" :rules="rules" label-width='auto' > + <el-form class="form-box" ref="facilityTypeRef" :model="form" :rules="rules" label-width='120' > <el-form-item :label="formLabel.facilityCode" prop="facilityCode"> <el-input v-model="form.facilityCode" :placeholder="inpTip+formLabel.facilityCode"/> </el-form-item> <el-form-item :label="formLabel.facilityName" prop="facilityName"> <el-input v-model="form.facilityName" :placeholder="inpTip+formLabel.facilityName"/> - </el-form-item> - <el-form-item :label="formLabel.longitude" prop="longitude"> - <el-input v-model="form.longitude" :placeholder="inpTip+formLabel.longitude"/> - </el-form-item> - <el-form-item :label="formLabel.latitude" prop="latitude"> - <el-input v-model="form.latitude" :placeholder="inpTip+formLabel.latitude"/> </el-form-item> <el-form-item label="选择设备类型" prop="facilityType"> <el-select v-model="form.facilityType" :placeholder="inpTip+formLabel.facilityType"> @@ -386,19 +370,6 @@ ></el-option> </el-select> </el-form-item> - <el-form-item label="选择供应商" prop="supplier"> - <el-select v-model="form.supplier" :placeholder="inpTip+formLabel.supplier"> - <el-option - v-for="(item,index) in supplierList" - :label="item.name" - :value="item.name" - :key="index" - ></el-option> - </el-select> - </el-form-item> - <el-form-item label="设备出厂日期" prop="producedDate"> - <el-input v-model="form.producedDate" placeholder="请输入出厂日期(格式:xxxx年xx月xx日)" /> - </el-form-item> <el-form-item label="安装日期" prop="installDate"> <el-date-picker v-model="form.installDate" @@ -408,21 +379,15 @@ value-format="YYYY-MM-DD" :disabled="isDetail ? true : false" /> - <!-- <el-input v-model="item.installTime" :disabled="isDetail ? true : false"></el-input> --> - </el-form-item> - <el-form-item :label="formLabel.networkType" prop="networkType"> - <el-input v-model="form.networkType" :placeholder="inpTip+formLabel.networkType" /> </el-form-item> <el-form-item :label="formLabel.remark" prop="remark"> <el-input v-model="form.remark" :placeholder="inpTip+formLabel.remark" /> </el-form-item> - <el-form-item><br></el-form-item> <el-form-item label="资料上传" prop="facilityUrl"> <upload-icons @uploadData="uploadData" :imageList="form.facilityUrl" :limit="1" :disabled='isDetail ? true : false'></upload-icons> <span style="display: block;">(请上传1张设备图片)</span> </el-form-item> - <el-form-item></el-form-item> </el-form> <template #footer> <div class="dialog-footer"> @@ -459,5 +424,8 @@ max-width: 100px; height: 50px; } +.form-box{ + justify-content: normal; +} </style> \ No newline at end of file diff --git a/src/views/facility/facilityType/index.vue b/src/views/facility/facilityType/index.vue index c48047f..5c40409 100644 --- a/src/views/facility/facilityType/index.vue +++ b/src/views/facility/facilityType/index.vue @@ -42,7 +42,6 @@ let tableHeader = ref({ name: '类型名称', code: '类型编号', - facilityType: '设备类型', createTimeView: '创建时间' }) diff --git a/src/views/login.vue b/src/views/login.vue index 581be80..90bfe44 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -241,12 +241,12 @@ } function getCookie() { - const userName = Cookies.get("userName"); - const password = decrypt(Cookies.get("password")); - const rememberMe = Cookies.get("rememberMe"); - loginForm.userName = userName === undefined ? loginForm.userName : userName; - loginForm.password = password === undefined ? loginForm.password : password; - loginForm.rememberMe = rememberMe === undefined ? loginForm.rememberMe : rememberMe; + const userName = Cookies.get("userName") || ''; + const password = decrypt(Cookies.get("password")) || ''; + const rememberMe = Cookies.get("rememberMe") || false; + loginForm.userName = userName ? userName : loginForm.userName; + loginForm.password = password ? password : loginForm.password; + loginForm.rememberMe = rememberMe ? rememberMe : loginForm.rememberMe; } onMounted(() => { diff --git a/src/views/screen/flow/ecology/index.vue b/src/views/screen/flow/ecology/index.vue new file mode 100644 index 0000000..be8b55d --- /dev/null +++ b/src/views/screen/flow/ecology/index.vue @@ -0,0 +1,13 @@ +<script setup> + +</script> + +<template> + <div> + 生态流量 + </div> +</template> + +<style scoped lang="scss"> + +</style> \ No newline at end of file diff --git a/src/views/screen/flow/graphic/index.vue b/src/views/screen/flow/graphic/index.vue new file mode 100644 index 0000000..6893c19 --- /dev/null +++ b/src/views/screen/flow/graphic/index.vue @@ -0,0 +1,13 @@ +<script setup> + +</script> + +<template> + <div> + 图像监测 + </div> +</template> + +<style scoped lang="scss"> + +</style> \ No newline at end of file diff --git a/src/views/screen/flow/home/index.vue b/src/views/screen/flow/home/index.vue index cc83e75..5d8d975 100644 --- a/src/views/screen/flow/home/index.vue +++ b/src/views/screen/flow/home/index.vue @@ -67,12 +67,13 @@ height: 100%; background: url("@/assets/images/map-bg.png") no-repeat; background-size: 100% 100%; - z-index: -1; + z-index: 11; } .home-c{ width: 100%; height: 100%; position: relative; + z-index: 20; .point{ position: absolute; left: 58%; diff --git a/src/views/screen/flow/report/index.vue b/src/views/screen/flow/report/index.vue new file mode 100644 index 0000000..678bffa --- /dev/null +++ b/src/views/screen/flow/report/index.vue @@ -0,0 +1,13 @@ +<script setup> + +</script> + +<template> + <div> + 报表管理 + </div> +</template> + +<style scoped lang="scss"> + +</style> \ No newline at end of file diff --git a/src/views/screen/flow/shebei/index.vue b/src/views/screen/flow/shebei/index.vue new file mode 100644 index 0000000..2ccc251 --- /dev/null +++ b/src/views/screen/flow/shebei/index.vue @@ -0,0 +1,13 @@ +<script setup> + +</script> + +<template> + <div> + 设备管理 + </div> +</template> + +<style scoped lang="scss"> + +</style> \ No newline at end of file diff --git a/src/views/screen/flow/warning/index.vue b/src/views/screen/flow/warning/index.vue new file mode 100644 index 0000000..e80b3ed --- /dev/null +++ b/src/views/screen/flow/warning/index.vue @@ -0,0 +1,13 @@ +<script setup> + +</script> + +<template> + <div> + 预警管理 + </div> +</template> + +<style scoped lang="scss"> + +</style> \ No newline at end of file diff --git a/src/views/screen/temperature/graphic/index.vue b/src/views/screen/temperature/graphic/index.vue new file mode 100644 index 0000000..5efa2d0 --- /dev/null +++ b/src/views/screen/temperature/graphic/index.vue @@ -0,0 +1,13 @@ +<script setup> + +</script> + +<template> + <div> + 图形分析 + </div> +</template> + +<style scoped lang="scss"> + +</style> \ No newline at end of file diff --git a/src/views/screen/temperature/home/index.vue b/src/views/screen/temperature/home/index.vue index 8ba481c..7613418 100644 --- a/src/views/screen/temperature/home/index.vue +++ b/src/views/screen/temperature/home/index.vue @@ -42,12 +42,13 @@ height: 100%; background: url("@/assets/images/map-bg.png") no-repeat; background-size: 100% 100%; - z-index: -1; + z-index: 11; } .home-c{ width: 100%; height: 100%; position: relative; + z-index: 20; .point{ position: absolute; left: 58%; diff --git a/src/views/screen/temperature/monitor/index.vue b/src/views/screen/temperature/monitor/index.vue new file mode 100644 index 0000000..18de0f5 --- /dev/null +++ b/src/views/screen/temperature/monitor/index.vue @@ -0,0 +1,13 @@ + <script setup> + +</script> + +<template> + <div> + 实时监测 + </div> +</template> + +<style scoped lang="scss"> + +</style> \ No newline at end of file diff --git a/src/views/screen/temperature/report/index.vue b/src/views/screen/temperature/report/index.vue new file mode 100644 index 0000000..678bffa --- /dev/null +++ b/src/views/screen/temperature/report/index.vue @@ -0,0 +1,13 @@ +<script setup> + +</script> + +<template> + <div> + 报表管理 + </div> +</template> + +<style scoped lang="scss"> + +</style> \ No newline at end of file diff --git a/src/views/screen/temperature/shebei/index.vue b/src/views/screen/temperature/shebei/index.vue new file mode 100644 index 0000000..2ccc251 --- /dev/null +++ b/src/views/screen/temperature/shebei/index.vue @@ -0,0 +1,13 @@ +<script setup> + +</script> + +<template> + <div> + 设备管理 + </div> +</template> + +<style scoped lang="scss"> + +</style> \ No newline at end of file diff --git a/src/views/screen/temperature/statics/index.vue b/src/views/screen/temperature/statics/index.vue new file mode 100644 index 0000000..63edf7c --- /dev/null +++ b/src/views/screen/temperature/statics/index.vue @@ -0,0 +1,13 @@ +<script setup> + +</script> + +<template> + <div> + 汇总统计 + </div> +</template> + +<style scoped lang="scss"> + +</style> \ No newline at end of file diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 9554149..3437d9d 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -43,8 +43,8 @@ align="center" > <template #default="scope"> - <div v-if="key.toString() == 'headImg'" style="width: 50px;height: 50px;margin: 0 auto"> - <img :src="preUrl + scope.row.headImg" class="table-headImg"/> + <div v-if="key === 'userType'"> + {{userTypeList.filter(fil => fil.dictValue == scope.row.userType.toString())[0].dictLabel}} </div> </template> </el-table-column> @@ -153,8 +153,6 @@ /** * Table表格权限数据列表相关 */ - - let preUrl = ref(PREURL) const pageParam = ref({ total:0, limit:0, @@ -162,14 +160,12 @@ }) const tableData = ref([]); let tableHeader = ref({ - userName: '用户名称', - nickName: '昵称', - // headImg:'头像', - userTypeView:'用户类型', - // userTypeView:'用户角色', - contact:'联系方式', - email:'邮箱地址', - createTimeView:'创建时间' + userName: '用户名称', + nickName: '昵称', + userType:'用户类型', + contact:'联系方式', + email:'邮箱地址', + createTimeView:'创建时间' }) /** 获取列表 */ async function getList(val) { @@ -227,7 +223,6 @@ password: [{ required: true, message: "请输入密码", trigger: "blur" }], nickName: [{ required: true, message: "请输入昵称", trigger: "blur" }], userType: [{ required: true, message: "请选择用户类型", trigger: "blur" }], - // userRelId: [{ required: true, message: "请选择用户角色", trigger: "blur" }], contact: [{ required: true, message: "请输入联系方式", trigger: "blur" }], email: [{ required: true, message: "请输入邮箱地址", trigger: "blur" }], headImg: [{ required: true, message: "请上传用户头像", trigger: "blur" }], @@ -287,7 +282,6 @@ nickName: '', headImg:undefined, userType:undefined, - // userRelId:undefined, contact:'', email:'', }; -- Gitblit v1.9.3