diff --git a/src/assets/fonts/iconfont.css b/src/assets/fonts/iconfont.css new file mode 100644 index 0000000..c8307c2 --- /dev/null +++ b/src/assets/fonts/iconfont.css @@ -0,0 +1,77 @@ +@font-face { + font-family: "iconfont"; /* Project id */ + src: url('iconfont.ttf?t=1709789909096') format('truetype'); +} + +.iconfont { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-1wenhe:before { + content: "\e653"; +} + +.icon-paizhao:before { + content: "\e6ba"; +} + +.icon-paizhao-xianxing:before { + content: "\e8d1"; +} + +.icon-tuiguanglishitupianjinqun:before { + content: "\e613"; +} + +.icon-gongsi:before { + content: "\e62e"; +} + +.icon-shudianxianlu:before { + content: "\e60a"; +} + +.icon-dianli:before { + content: "\e649"; +} + +.icon-dianlihangye:before { + content: "\e791"; +} + +.icon-shexiangtoulixian:before { + content: "\e7b2"; +} + +.icon-video-camera:before { + content: "\e962"; +} + +.icon-qixiang:before { + content: "\e67c"; +} + +.icon-shexiangtou-lixian:before { + content: "\ef1c"; +} + +.icon-shexiangtou-zaixian:before { + content: "\ef1d"; +} + +.icon-shudianxianlu_2722010801:before { + content: "\efed"; +} + +.icon-tupian_normal:before { + content: "\e681"; +} + +.icon-fubing:before { + content: "\e7ac"; +} + diff --git a/src/assets/fonts/iconfont.ttf b/src/assets/fonts/iconfont.ttf new file mode 100644 index 0000000..f88f6d5 Binary files /dev/null and b/src/assets/fonts/iconfont.ttf differ diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index a8e480d..870841d 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -29,18 +29,18 @@ export default { path: "/upgradation", name: "上传APK/OTA", }, - // { - // path: "/upgradationOta", - // name: "上传Ota", - // }, + // { + // path: "/upgradationOta", + // name: "上传Ota", + // }, { path: "/activity", name: "活动列表", }, - + // { - // path: "/userlist", - // name: "用户列表", + // path: "/deviceConfig", + // name: "设备配置", // }, ], }; diff --git a/src/main.js b/src/main.js index b592b15..6b58739 100644 --- a/src/main.js +++ b/src/main.js @@ -6,7 +6,7 @@ import ElementUI from "element-ui"; import "umy-ui/lib/theme-chalk/index.css"; // 引入样式 // import "element-ui/lib/theme-chalk/index.css"; import "../src/assets/css/theme/index.css"; //cac主题 - +import "./assets/fonts/iconfont.css"; //按钮 Vue.use(ElementUI, { size: "small", }); diff --git a/src/router/index.js b/src/router/index.js index ac8ba79..c2fab26 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -4,7 +4,6 @@ import VueRouter from "vue-router"; Vue.use(VueRouter); const routes = [ - { path: "/login", name: "login", @@ -61,7 +60,7 @@ const routes = [ keepAlive: true, }, }, - + { path: "/activity", component: () => import("../views/activityList/index.vue"), @@ -71,6 +70,15 @@ const routes = [ keepAlive: true, }, }, + { + path: "/deviceConfig", + component: () => import("../views/deviceConfig/index.vue"), + name: "deviceConfig", + meta: { + title: "设备配置", + keepAlive: true, + }, + }, { path: "/userlist", component: () => import("../views/userList/index.vue"), diff --git a/src/utils/api/index.js b/src/utils/api/index.js index 9594337..faee4ad 100644 --- a/src/utils/api/index.js +++ b/src/utils/api/index.js @@ -7,6 +7,14 @@ export function loginJoggle(data) { data, }); } +//获取树状结构 +export function getdyTreeListJoggle(data) { + return request({ + url: "/xymanager/getdyTreeList", + method: "post", + data, + }); +} //获取用户装置信息 export function getTerminalJoggle(data) { @@ -21,11 +29,10 @@ export function exportTerminalApi(data) { url: "/xymanager/terminal/exportForMaintain", method: "get", params: data, - responseType: 'blob' + responseType: "blob", }); } - //获取规约 export function getProtocolList(data) { return request({ @@ -34,7 +41,7 @@ export function getProtocolList(data) { params: data, }); } -//获取 电压 线路 杆塔 +//获取 电压 线路 杆塔 export function getSearchInfo(data) { return request({ url: "/xymanager/getLineAndGt", @@ -106,7 +113,6 @@ export function cmdActlistApi(data) { }); } - //查询已经下发的命令 export function cmdActHislistApi(data) { return request({ @@ -155,7 +161,6 @@ export function logDeleteApi(data) { }); } - //获取升级列表 export function upgradeListApi(data) { return request({ @@ -196,22 +201,3 @@ export function upgradeDeleteApi(data) { }, }); } - - - - - - - - - - - - - - - - - - - diff --git a/src/views/deviceConfig/components/sideBar.vue b/src/views/deviceConfig/components/sideBar.vue new file mode 100644 index 0000000..9a946a5 --- /dev/null +++ b/src/views/deviceConfig/components/sideBar.vue @@ -0,0 +1,240 @@ + + + diff --git a/src/views/deviceConfig/index.vue b/src/views/deviceConfig/index.vue new file mode 100644 index 0000000..64793e6 --- /dev/null +++ b/src/views/deviceConfig/index.vue @@ -0,0 +1,46 @@ + + + diff --git a/src/views/homePage/index.vue b/src/views/homePage/index.vue index b6a1d4b..44a9206 100644 --- a/src/views/homePage/index.vue +++ b/src/views/homePage/index.vue @@ -297,7 +297,23 @@ export default { this.formdata = jsonSearch; console.log(this.formdata); } else { - this.formdata = jsonSearch; + this.formdata = { + dyId: -1, + lineId: -1, + towerId: -1, + isonline: -1, + protocol: -1, + mntn: 1, + activityId: -1, + oid: "", + oidExclude: 0, + cmdid: "", + cmdidExclude: 0, + cma: "", + cmaExclude: 0, + version: "", + versionExclude: 0, + }; } // this.formdata = // JSON.parse(localStorage.getItem("searchParams")) !== null diff --git a/src/views/upgradation/index.vue b/src/views/upgradation/index.vue index a785880..f2f7c82 100644 --- a/src/views/upgradation/index.vue +++ b/src/views/upgradation/index.vue @@ -8,7 +8,8 @@ v-for="item in typeOptions" :key="item.value" :label="item.label" - :value="item.value"> + :value="item.value" + > @@ -45,7 +46,6 @@ >上传到服务器 -
@@ -70,19 +70,12 @@ > @@ -138,7 +131,7 @@ import { upgradeListApi, upgradeUpLoadApi, upgradeDeleteApi, - upgradeTitleApi + upgradeTitleApi, } from "@/utils/api/index"; export default { @@ -150,15 +143,18 @@ export default { fileList: [], reportData: { title: "", - type:0, + type: 0, }, - typeOptions:[{ + typeOptions: [ + { value: 0, - label: 'APK' - }, { - value:1, - label:'OTA' - }], + label: "APK", + }, + { + value: 1, + label: "OTA", + }, + ], fileData: [], //数据列表 fileloading: false, editShow: false, @@ -183,19 +179,19 @@ export default { methods: { //双击选中复制 handleClick(row) { - console.log(row) - // 创建一个新的a标签元素 - const a = document.createElement('a'); - // 设置a标签的href属性为文件的URL - a.href = '/apk/'+row.path; - console.log(a.href) - // 设置文件名(可选,取决于服务器配置) - a.download = row.fileName; // 你希望保存的文件名 - // 触发点击事件 - document.body.appendChild(a); - a.click(); - // 然后移除a标签 - document.body.removeChild(a); + console.log(row); + // 创建一个新的a标签元素 + const a = document.createElement("a"); + // 设置a标签的href属性为文件的URL + a.href = "/apk/" + row.path; + console.log(a.href); + // 设置文件名(可选,取决于服务器配置) + a.download = row.fileName; // 你希望保存的文件名 + // 触发点击事件 + document.body.appendChild(a); + a.click(); + // 然后移除a标签 + document.body.removeChild(a); }, //上传进度 handleProgress(event, file, fileList) { @@ -212,19 +208,19 @@ export default { beforeUpload(file) { const fileName = file.name; console.log(fileName); - if (fileName.toLowerCase().includes('apk')) { - this.reportData.type=0 + if (fileName.toLowerCase().includes("apk")) { + this.reportData.type = 0; } - if (fileName.toLowerCase().includes('zip')) { - this.reportData.type=1 - } - if (fileName.length > 19) { - this.$message.error("文件名长度不能超过 19 个字符!"); - return false; // 阻止文件自动上传 + if (fileName.toLowerCase().includes("zip")) { + this.reportData.type = 1; } + // if (fileName.length > 19) { + // this.$message.error("文件名长度不能超过 19 个字符!"); + // return false; // 阻止文件自动上传 + // } return true; // 允许文件继续上传 }, - + //上传apk submitUpload() { //console.log(); @@ -264,7 +260,6 @@ export default { this.getUpgradeList(); this.progressLoading = false; } else { - this.$message({ duration: 1500, showClose: true, @@ -278,7 +273,7 @@ export default { }) .catch((error) => {}); }, - + getUpgradeList() { this.fileloading = true; upgradeListApi() @@ -353,7 +348,7 @@ export default { height: calc(100% - 24px); width: calc(100% - 24px); padding: 12px; - + .upgradeBox { height: 32px; line-height: 32px; @@ -457,12 +452,12 @@ export default { .el-table::before { height: 1px !important; } - .buttonText{ - color:#169e8c; + .buttonText { + color: #169e8c; cursor: pointer; &:hover { - text-decoration: underline; - } + text-decoration: underline; + } } } .el-dialog__headerbtn {