Commit fac0d394 authored by “yiyousong”'s avatar “yiyousong”

pref:修改页面

parent b9b7d099
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
"element-china-area-data": "^5.0.2", "element-china-area-data": "^5.0.2",
"element-ui": "^2.15.10", "element-ui": "^2.15.10",
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"hammerjs": "^2.0.8",
"moment": "^2.29.4", "moment": "^2.29.4",
"npm": "^6.13.7", "npm": "^6.13.7",
"secure-ls": "^1.2.6", "secure-ls": "^1.2.6",
...@@ -46,7 +47,6 @@ ...@@ -46,7 +47,6 @@
"@vue/cli-service": "~5.0.0", "@vue/cli-service": "~5.0.0",
"eslint": "^7.32.0", "eslint": "^7.32.0",
"eslint-plugin-vue": "^8.0.3", "eslint-plugin-vue": "^8.0.3",
"filemanager-webpack-plugin": "^8.0.0",
"less": "^4.0.0", "less": "^4.0.0",
"less-loader": "^8.0.0", "less-loader": "^8.0.0",
"svg-sprite-loader": "^4.1.6", "svg-sprite-loader": "^4.1.6",
......
...@@ -64,8 +64,8 @@ export default { ...@@ -64,8 +64,8 @@ export default {
devicenum: "18-93-7F-C0-AD-B5", devicenum: "18-93-7F-C0-AD-B5",
// devicenum: "B8-13-32-86-9F-04", // devicenum: "B8-13-32-86-9F-04",
}; };
local.setLocal(obj.devicenum); local.setLocal("devicenum", obj.devicenum);
this.SET_deviceCodet(obj.devicenum); this.SET_deviceCode(obj.devicenum);
this.WebSocketMq(obj); this.WebSocketMq(obj);
} }
}, },
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
"SET_homeInfo", "SET_homeInfo",
"SET_datumList", "SET_datumList",
"SET_matterList", "SET_matterList",
"SET_deviceCodet", "SET_deviceCode",
]), ]),
// 简析url // 简析url
urlGet() { urlGet() {
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
let { devicenum } = routeQuery; let { devicenum } = routeQuery;
this.devicenum = devicenum; this.devicenum = devicenum;
local.setLocal("devicenum", devicenum); local.setLocal("devicenum", devicenum);
this.SET_deviceCodet(devicenum); this.SET_deviceCode(devicenum);
} }
}, },
// 获取首页信息 // 获取首页信息
...@@ -143,7 +143,6 @@ export default { ...@@ -143,7 +143,6 @@ export default {
this.linkDom = link; this.linkDom = link;
link.rel = "stylesheet"; link.rel = "stylesheet";
link.href = data[0].cssFilePath; link.href = data[0].cssFilePath;
console.log(data[0]);
// document.getElementsByTagName("head")[0].appendChild(link); // document.getElementsByTagName("head")[0].appendChild(link);
document.head.appendChild(link); document.head.appendChild(link);
} }
......
...@@ -107,13 +107,14 @@ ...@@ -107,13 +107,14 @@
import Header from "@/components/Header.vue"; import Header from "@/components/Header.vue";
import { getMaterialsList, checkMaterials } from "@/api"; import { getMaterialsList, checkMaterials } from "@/api";
import local from "@/utils/local"; import local from "@/utils/local";
// import Hammer from "hammerjs";
export default { export default {
components: { components: {
Header, Header,
}, },
data() { data() {
return { return {
api: local.getLocal("serverUrl") + "/", api: local.getLocal("serverUrl"),
matterInfo: {}, matterInfo: {},
matterName: "", // 事项名称 matterName: "", // 事项名称
matterId: this.$route.query.matterId, // 事项id matterId: this.$route.query.matterId, // 事项id
...@@ -127,9 +128,11 @@ export default { ...@@ -127,9 +128,11 @@ export default {
}, },
created() { created() {
this.getMaterialsList(); this.getMaterialsList();
// this.materailsList=this.matterInfo.matterDatumList; // this.materailsList=this.matterInfo.matterDatumList;
}, },
mounted() {
// this.handleScale();
},
methods: { methods: {
handleBackHome() { handleBackHome() {
...@@ -212,6 +215,25 @@ export default { ...@@ -212,6 +215,25 @@ export default {
row.materialFullName row.materialFullName
); );
}, },
// 手势放大缩小
// handleScale() {
// setTimeout(() => {
// let _this = this;
// const img = this.$refs.PreviewImg;
// const PreviewImg = new Hammer(img);
// PreviewImg.get("pinch").set({ enable: true });
// PreviewImg.on("pinchmove", function (e) {
// if (e.scale > 1) {
// _this.scale += 5;
// if (_this.scale > 200) {
// _this.scale = 200;
// }
// } else if (e.scale <= 1) {
// _this.scale = 100;
// }
// });
// }, 100);
// },
}, },
}; };
</script> </script>
...@@ -270,12 +292,12 @@ export default { ...@@ -270,12 +292,12 @@ export default {
.icon1 { .icon1 {
width: 26px; width: 26px;
height: 26px; height: 26px;
background: var(--main-assist-color); // background: var(--main-assist-color);
background: #fff;
border-radius: 50%; border-radius: 50%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: #fff;
i { i {
font-size: 16px; font-size: 16px;
color: var(--main-theme-color); color: var(--main-theme-color);
...@@ -290,7 +312,7 @@ export default { ...@@ -290,7 +312,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: var(--main-theme-color); color: #fff;
position: absolute; position: absolute;
right: 28px; right: 28px;
cursor: pointer; cursor: pointer;
......
...@@ -31,7 +31,7 @@ export default new Vuex.Store({ ...@@ -31,7 +31,7 @@ export default new Vuex.Store({
SET_matterList(state, matterList) { SET_matterList(state, matterList) {
state.matterList = matterList; state.matterList = matterList;
}, },
SET_deviceCodet(state, deviceCode) { SET_deviceCode(state, deviceCode) {
state.deviceCode = deviceCode; state.deviceCode = deviceCode;
}, },
}, },
......
const { defineConfig } = require("@vue/cli-service"); const { defineConfig } = require("@vue/cli-service");
const FileManagerPlugin = require("filemanager-webpack-plugin"); // 压缩文件夹
const isDev = process.env.NODE_ENV === "development";
let plugins = [];
// 避免本地启项目时自动打zip包
if (!isDev) {
plugins.push(
new FileManagerPlugin({
events: {
onEnd: {
// mkdir: ["./dist"],
delete: ["./样表终端系统.zip"],
archive: [{ source: "./dist", destination: "./样表终端系统.zip" }],
},
},
})
);
}
module.exports = defineConfig({ module.exports = defineConfig({
transpileDependencies: true, transpileDependencies: true,
productionSourceMap: false, productionSourceMap: false,
...@@ -24,20 +7,6 @@ module.exports = defineConfig({ ...@@ -24,20 +7,6 @@ module.exports = defineConfig({
outputDir: "dist", outputDir: "dist",
publicPath: "./", publicPath: "./",
// webpack 插件 // webpack 插件
configureWebpack: { configureWebpack: {},
plugins: [...plugins],
},
transpileDependencies: true, transpileDependencies: true,
devServer: {
port: 9086,
hot: "only", //自动保存
proxy: {
"/sampleform": {
target: "http://localhost:17002",
changeOrigin: true,
secure: false,
cookieDomainRewrite: "localhost",
},
},
},
}); });
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment