Commit 4b74bb74 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 22b6a871 459aeeb3
> 1% > 1%
last 2 versions last 2 versions
not dead not ie <= 10
.DS_Store .DS_Store
node_modules node_modules
/dist /dist
样表终端系统.zip
# local env files # local env files
.env.local .env.local
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"dev": "vue-cli-service serve", "dev": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build --mode production",
"lint": "vue-cli-service lint", "lint": "vue-cli-service lint",
"test": "vue-cli-service build --mode test", "test": "vue-cli-service build --mode test",
"build:prod": "vue-cli-service build --model prod" "build:prod": "vue-cli-service build --model prod"
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
"@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",
......
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
right: 200px; right: 200px;
} }
.el-icon-circle-close { .el-icon-circle-close {
font-size: 20px; font-size: 30px;
} }
:deep(.el-input__inner) { :deep(.el-input__inner) {
height: 72px; height: 72px;
......
...@@ -440,7 +440,7 @@ export default { ...@@ -440,7 +440,7 @@ export default {
right: 200px; right: 200px;
} }
.el-icon-circle-close { .el-icon-circle-close {
font-size: 20px; font-size: 30px;
} }
.search-btn { .search-btn {
width: 167px; width: 167px;
......
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,
assetsDir: 's', lintOnSave: false,
// webpack 插件
lintOnSave:false, configureWebpack: {
plugins: [...plugins],
},
transpileDependencies: true,
// 打包输出目录
outputDir: "dist/dist",
publicPath: "./",
devServer: { devServer: {
port: 9086, port: 9086,
hot: "only",//自动保存 hot: "only", //自动保存
proxy: { proxy: {
'/sampleform': { "/sampleform": {
target: 'http://localhost:17002', target: "http://localhost:17002",
changeOrigin: true, changeOrigin: true,
secure: false, secure: false,
cookieDomainRewrite: 'localhost', cookieDomainRewrite: "localhost",
} },
} },
} },
}) });
This diff is collapsed.
> 1% > 1%
last 2 versions last 2 versions
not dead not ie <= 10
#开发环境 #开发环境
NODE_ENV = "development" NODE_ENV = "development"
VUE_APP_API_BASE_URL=http://192.168.0.98:11078 VUE_APP_API_BASE_URL=http://192.168.0.98:11078
#VUE_APP_API_BASE_URL=http://192.168.0.98:11071/zwfw \ No newline at end of file
#VUE_APP_API_BASE_URL=http://192.168.0.98:11023
#VUE_APP_API_BASE_URL=http://192.168.0.217:17311
\ No newline at end of file
#生产环境 #生产环境
NODE_ENV = "production" NODE_ENV = "production"
VUE_APP_API_BASE_URL=http://192.168.0.98:17008 VUE_APP_API_BASE_URL=/basics_api
#基础设置
VUE_APP_API_basics_URL=/basics_api/base
#门户
VUE_APP_API_portal_URL=/portal_home
#开发环境 #开发环境
NODE_ENV = "test" NODE_ENV = "test"
VUE_APP_API_BASE_URL=http://192.168.0.98:11078 VUE_APP_API_BASE_URL=/basics_api
\ No newline at end of file #基础设置
VUE_APP_API_basics_URL=/basics_api/base
#门户
VUE_APP_API_portal_URL=/portal_home
\ No newline at end of file
.DS_Store .DS_Store
node_modules node_modules
/dist /dist
样表管理系统.zip
# local env files # local env files
.env.local .env.local
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"scripts": { "scripts": {
"dev": "vue-cli-service serve", "dev": "vue-cli-service serve",
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build --mode production",
"test": "vue-cli-service build --mode test", "test": "vue-cli-service build --mode test",
"lint": "vue-cli-service lint", "lint": "vue-cli-service lint",
"stage": "vue-cli-service build --mode stage", "stage": "vue-cli-service build --mode stage",
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
"@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",
......
...@@ -329,4 +329,4 @@ export default { ...@@ -329,4 +329,4 @@ export default {
.el-switch .el-switch__label { .el-switch .el-switch__label {
width: 60px !important; /*开关按钮的宽度大小*/ width: 60px !important; /*开关按钮的宽度大小*/
} }
</style> </style>
\ No newline at end of file
...@@ -8,7 +8,7 @@ import local from "@/utils/local"; ...@@ -8,7 +8,7 @@ import local from "@/utils/local";
export default { export default {
data() { data() {
return { return {
portal: process.env.VUE_APP_API_portal_URL + "/#/", portal: process.env.VUE_APP_API_portal_URL,
}; };
}, },
created() { created() {
......
...@@ -251,6 +251,7 @@ export default { ...@@ -251,6 +251,7 @@ export default {
if (code === 1) { if (code === 1) {
this.$message.success(msg); this.$message.success(msg);
this.getPbuList(); this.getPbuList();
this.$refs.multipleTable.clearSelection();
this.selectKeys = []; this.selectKeys = [];
} }
}) })
......
...@@ -504,6 +504,7 @@ export default { ...@@ -504,6 +504,7 @@ export default {
this.$message.success(msg); this.$message.success(msg);
this.getMaterialsList(); this.getMaterialsList();
this.getWriteMatterList(); this.getWriteMatterList();
this.$refs.rightTable.clearSelection();
this.rightSelectedRowKeys = []; this.rightSelectedRowKeys = [];
} }
}) })
......
...@@ -471,6 +471,8 @@ export default { ...@@ -471,6 +471,8 @@ export default {
let { code, msg } = res.data; let { code, msg } = res.data;
if (code === 1) { if (code === 1) {
this.$message.success(msg); this.$message.success(msg);
this.$refs.leftTable.clearSelection();
this.leftSelectedRowKeys = [];
this.getWriteMatterList(); this.getWriteMatterList();
this.getMatterSubList(); this.getMatterSubList();
} }
......
...@@ -77,23 +77,24 @@ export default { ...@@ -77,23 +77,24 @@ export default {
methods: { methods: {
// 选择使用皮肤 // 选择使用皮肤
async changeSkin(device, row) { async changeSkin(device, row) {
if (row.check === "1") { // if (row.check === "1") {
// let obj = { // // let obj = {
// skin_id: "", // // skin_id: "",
// css_path: "", // // css_path: "",
// skin_name: "", // // skin_name: "",
// previewImagePath: "", // // previewImagePath: "",
// skinFieldList: "", // // skinFieldList: "",
// device, // // device,
// }; // // };
row.check = "0"; // row.check = "0";
console.log(check, device); // console.log(check, device);
// if (code === 1) { // // if (code === 1) {
// this.$message.success("设置" + msg); // // this.$message.success("设置" + msg);
// } // // }
} else { // } else {
row.check = "1"; // row.check = "1";
} // }
console.log(device, row);
}, },
// 预览皮肤 // 预览皮肤
handlePreview(url) { handlePreview(url) {
......
...@@ -2,6 +2,7 @@ import Vue from "vue"; ...@@ -2,6 +2,7 @@ import Vue from "vue";
import VueRouter from "vue-router"; import VueRouter from "vue-router";
import Layouts from "@/pages/layouts/Layouts.vue"; import Layouts from "@/pages/layouts/Layouts.vue";
import store from "@/store"; import store from "@/store";
import local from "@/utils/local";
// 解决重复点击同一个路由报错 // 解决重复点击同一个路由报错
const originalPush = VueRouter.prototype.push; const originalPush = VueRouter.prototype.push;
VueRouter.prototype.push = function (location) { VueRouter.prototype.push = function (location) {
...@@ -30,6 +31,21 @@ const router = new VueRouter({ ...@@ -30,6 +31,21 @@ const router = new VueRouter({
routes, routes,
}); });
// 前置路由卫士
router.beforeEach((to, from, next) => {
let islogin = local.getLocal("sampleToken") ? true : false;
if (islogin) {
next();
} else {
if (to.path === "/jump") {
next();
} else {
location.href = process.env.VUE_APP_API_portal_URL;
// next({ path: "/login" });
}
}
});
// 动态菜单 // 动态菜单
const dynamicRouter = [ const dynamicRouter = [
{ {
......
...@@ -40,7 +40,7 @@ axios.interceptors.response.use( ...@@ -40,7 +40,7 @@ axios.interceptors.response.use(
message: msg, message: msg,
}); });
setTimeout(() => { setTimeout(() => {
location.href = process.env.VUE_APP_API_portal_URL + "/#/"; location.href = process.env.VUE_APP_API_portal_URL;
}, 2000); }, 2000);
} }
} }
......
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,
assetsDir: 's', // webpack 插件
configureWebpack: {
lintOnSave:false, plugins: [...plugins],
devServer: { },
port: 8086, transpileDependencies: true,
hot: "only",//自动保存 // 打包输出目录
proxy: { outputDir: "dist/dist",
'/sampleform': { publicPath: "./",
target: 'http://localhost:17215', });
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