-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{lists.row.enabled==true?"暂停":"发布"}}
-
-
- 编辑
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/src/views/inventory/detail/table1.vue b/src/views/inventory/detail/table1.vue
index 8b1164c..758f8fa 100644
--- a/src/views/inventory/detail/table1.vue
+++ b/src/views/inventory/detail/table1.vue
@@ -125,5 +125,3 @@ export default {
background: #fff;
}
-
-
diff --git a/src/views/inventory/list/index.vue b/src/views/inventory/list/index.vue
index f59c852..716bc07 100644
--- a/src/views/inventory/list/index.vue
+++ b/src/views/inventory/list/index.vue
@@ -113,9 +113,7 @@ export default {
}
}
.option-span {
- color: #409eff;
+ color: #a90500;
cursor: pointer;
}
-
-
diff --git a/src/views/lists/index.vue b/src/views/lists/index.vue
index 7060392..47c67f1 100644
--- a/src/views/lists/index.vue
+++ b/src/views/lists/index.vue
@@ -258,7 +258,7 @@
background: #fff;
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
}
diff --git a/src/views/location/AddDevice2location.vue b/src/views/location/AddDevice2location.vue
index 7200ee0..d7985dc 100644
--- a/src/views/location/AddDevice2location.vue
+++ b/src/views/location/AddDevice2location.vue
@@ -125,14 +125,14 @@ export default {
leftStyle() {
return {
color: "#fff",
- background: this.isClickLeft ? "#409EFF" : "#bfcbd9",
+ background: this.isClickLeft ? "#a90500" : "#bfcbd9",
cursor: this.isClickLeft ? "pointer" : "not-allowed"
};
},
rightStyle() {
return {
color: "#fff",
- background: this.isClickRight ? "#409EFF" : "#bfcbd9",
+ background: this.isClickRight ? "#a90500" : "#bfcbd9",
cursor: this.isClickRight ? "pointer" : "not-allowed"
};
},
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 5553a5c..d23e20a 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -9,7 +9,7 @@
label-position="left"
>
-
趣匣后台管理系统
+ 大唐后台管理系统
@@ -117,16 +117,17 @@ export default {
this.passwordType = "password";
}
},
+ // 登录
handleLogin() {
this.$refs.loginForm.validate(valid => {
if (valid) {
this.loading = true;
this.$store
.dispatch("LoginByUsername", this.loginForm)
- .then(access_token => {
+ .then(res => {
this.loading = false;
- if (access_token) {
- setCookie("access_token", access_token);
+ if (res.token) {
+ setCookie("access_token", res.token);
this.$store.state.user.user = this.loginForm.username;
setCookie("LoginByUsername", JSON.stringify(this.loginForm));
this.$router.push({
diff --git a/src/views/marketingCenter/couponManagement/index.vue b/src/views/marketingCenter/couponManagement/index.vue
index 63b1dc4..ea63ff9 100644
--- a/src/views/marketingCenter/couponManagement/index.vue
+++ b/src/views/marketingCenter/couponManagement/index.vue
@@ -472,7 +472,7 @@
background: #fff;
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
}
diff --git a/src/views/marketingCenter/luckyDraw/index.vue b/src/views/marketingCenter/luckyDraw/index.vue
index 2e58109..aaef8ff 100644
--- a/src/views/marketingCenter/luckyDraw/index.vue
+++ b/src/views/marketingCenter/luckyDraw/index.vue
@@ -262,7 +262,7 @@
background: #fff;
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
}
diff --git a/src/views/marketingCenter/luckyDraw/luckyDrawDetails.vue b/src/views/marketingCenter/luckyDraw/luckyDrawDetails.vue
index c5193a2..db47b31 100644
--- a/src/views/marketingCenter/luckyDraw/luckyDrawDetails.vue
+++ b/src/views/marketingCenter/luckyDraw/luckyDrawDetails.vue
@@ -461,7 +461,7 @@
}
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
diff --git a/src/views/marketingCenter/luckyFree/index.vue b/src/views/marketingCenter/luckyFree/index.vue
index c59a55c..8a967d8 100644
--- a/src/views/marketingCenter/luckyFree/index.vue
+++ b/src/views/marketingCenter/luckyFree/index.vue
@@ -262,7 +262,7 @@
background: #fff;
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
}
diff --git a/src/views/marketingCenter/noviceCourtesy/index.vue b/src/views/marketingCenter/noviceCourtesy/index.vue
index 852dbc6..01c49fc 100644
--- a/src/views/marketingCenter/noviceCourtesy/index.vue
+++ b/src/views/marketingCenter/noviceCourtesy/index.vue
@@ -325,7 +325,7 @@
background: #fff;
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
}
diff --git a/src/views/marketingCenter/paymentOfCourtesy/index.vue b/src/views/marketingCenter/paymentOfCourtesy/index.vue
index cf1a03b..7fb2595 100644
--- a/src/views/marketingCenter/paymentOfCourtesy/index.vue
+++ b/src/views/marketingCenter/paymentOfCourtesy/index.vue
@@ -261,7 +261,7 @@
background: #fff;
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
}
diff --git a/src/views/marketingCenter/salesPromotion/index.vue b/src/views/marketingCenter/salesPromotion/index.vue
index a4b22ce..06e1da5 100644
--- a/src/views/marketingCenter/salesPromotion/index.vue
+++ b/src/views/marketingCenter/salesPromotion/index.vue
@@ -321,7 +321,7 @@
background: #fff;
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
}
diff --git a/src/views/order/luckyFree/index.vue b/src/views/order/luckyFree/index.vue
index 1830c59..fe0e878 100644
--- a/src/views/order/luckyFree/index.vue
+++ b/src/views/order/luckyFree/index.vue
@@ -158,7 +158,7 @@
background: #fff;
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
}
diff --git a/src/views/order/salesOrder/index.vue b/src/views/order/salesOrder/index.vue
index 61df85c..e4c8c9c 100644
--- a/src/views/order/salesOrder/index.vue
+++ b/src/views/order/salesOrder/index.vue
@@ -191,7 +191,7 @@
background: #fff;
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
}
diff --git a/src/views/orgManage/orgManage/index.vue b/src/views/orgManage/orgManage/index.vue
index 08d34e8..4cb0975 100644
--- a/src/views/orgManage/orgManage/index.vue
+++ b/src/views/orgManage/orgManage/index.vue
@@ -413,7 +413,7 @@
padding: 0 20px 0 20px;
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
}
diff --git a/src/views/privilegeManagement/account/index.vue b/src/views/privilegeManagement/account/index.vue
index 743ef4b..4288a3b 100644
--- a/src/views/privilegeManagement/account/index.vue
+++ b/src/views/privilegeManagement/account/index.vue
@@ -365,7 +365,7 @@
background: #fff;
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
}
diff --git a/src/views/privilegeManagement/role/index.vue b/src/views/privilegeManagement/role/index.vue
index e316ba9..7dcb481 100644
--- a/src/views/privilegeManagement/role/index.vue
+++ b/src/views/privilegeManagement/role/index.vue
@@ -189,7 +189,7 @@
height: 100%;
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
@@ -203,7 +203,7 @@
border-right: 1px solid #d9d9d9;
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
}
diff --git a/src/views/privilegeManagement/role/permissions.vue b/src/views/privilegeManagement/role/permissions.vue
index 2f83ba6..fba71e1 100644
--- a/src/views/privilegeManagement/role/permissions.vue
+++ b/src/views/privilegeManagement/role/permissions.vue
@@ -395,7 +395,7 @@
border-right: 1px solid #d9d9d9;
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
}
diff --git a/src/views/richText/index.vue b/src/views/richText/index.vue
index 7060392..47c67f1 100644
--- a/src/views/richText/index.vue
+++ b/src/views/richText/index.vue
@@ -258,7 +258,7 @@
background: #fff;
.option-span {
- color: #409EFF;
+ color: #a90500;
cursor: pointer;
}
}
diff --git a/src/views/shelfs/list/putawayShelf/centerBtns.vue b/src/views/shelfs/list/putawayShelf/centerBtns.vue
index 7599751..4fbfb28 100644
--- a/src/views/shelfs/list/putawayShelf/centerBtns.vue
+++ b/src/views/shelfs/list/putawayShelf/centerBtns.vue
@@ -34,14 +34,14 @@ export default {
leftStyle() {
return {
color: "#fff",
- background: this.isClickLeft ? "#409EFF" : "#bfcbd9",
+ background: this.isClickLeft ? "#a90500" : "#bfcbd9",
cursor: this.isClickLeft ? "pointer" : "not-allowed"
};
},
rightStyle() {
return {
color: "#fff",
- background: this.isClickRight ? "#409EFF" : "#bfcbd9",
+ background: this.isClickRight ? "#a90500" : "#bfcbd9",
cursor: this.isClickRight ? "pointer" : "not-allowed"
};
},
@@ -80,4 +80,3 @@ export default {
}
}
-
diff --git a/src/views/shelfs/list/table.vue b/src/views/shelfs/list/table.vue
index 7a6d503..d124ade 100644
--- a/src/views/shelfs/list/table.vue
+++ b/src/views/shelfs/list/table.vue
@@ -14,7 +14,7 @@
{{scope.row.name}}
@@ -31,13 +31,13 @@
上架
删除
@@ -140,4 +140,3 @@ export default {
}
};
-
diff --git a/src/views/shelfs/replenishment/quxia.vue b/src/views/shelfs/replenishment/quxia.vue
index 7dc4624..afb5e1e 100644
--- a/src/views/shelfs/replenishment/quxia.vue
+++ b/src/views/shelfs/replenishment/quxia.vue
@@ -48,7 +48,7 @@
diff --git a/src/views/shelfs/status/table.vue b/src/views/shelfs/status/table.vue
index dac1521..ebfc011 100644
--- a/src/views/shelfs/status/table.vue
+++ b/src/views/shelfs/status/table.vue
@@ -33,7 +33,7 @@
{{scope.row.name}}
@@ -152,4 +152,3 @@ header {
}
}
-
diff --git a/src/views/valueAddedManagement/valueAddedAtatistics/index.vue b/src/views/valueAddedManagement/valueAddedAtatistics/index.vue
index be86054..dc25255 100644
--- a/src/views/valueAddedManagement/valueAddedAtatistics/index.vue
+++ b/src/views/valueAddedManagement/valueAddedAtatistics/index.vue
@@ -88,7 +88,7 @@
- 详情
+ 详情
@@ -278,7 +278,7 @@
}
.active {
- border-bottom: 2px solid #409EFF;
+ border-bottom: 2px solid #a90500;
}
}
diff --git a/vue.config.js b/vue.config.js
index 6927552..628093c 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,22 +1,26 @@
// vue.config.js
-var path = require("path")
+var path = require("path");
+
+const BASE_API = "https://test.tall.wiki/datang/v1.0"
+const proxyUrl = '/datang/v1.0'
const port = 8080
module.exports = {
- // devServer: {
- // port,
- // proxy: {
- // change xxx-api/login => mock/login
- // detail: https://cli.vuejs.org/config/#devserver-proxy
- // ['/api']: {
- // target: `http://localhost:${port}/mock`,
- // changeOrigin: true,
- // ['^' + "/api"]: ''
- // pathRewrite: {
- // }
- // }
- // },
+ devServer: {
+ open: true,
+ overlay: {
+ warnings: false,
+ errors: true,
+ },
+ proxy: {
+ [proxyUrl]: {
+ target: BASE_API, // 代理接口
+ changeOrigin: true,
+ pathRewrite: { [`^${proxyUrl}`]: '' },
+ },
+ },
+ },
// after(app) {
// const baseConfig = require('./babel.config')
// require('babel-register')({
@@ -38,16 +42,16 @@ module.exports = {
// }
// },
chainWebpack: config => {
- //配置 alias
+ //配置 alias
config.resolve.alias.set("~", path.resolve(__dirname, './public'))
- //处理 前端资源的image 都转base64 file-loader
+ //处理 前端资源的image 都转base64 file-loader
config.module
.rule('images')
.use('url-loader')
.loader('url-loader')
.tap(options => Object.assign(options, { limit: 10240 }))
- // html plugin
+ // html plugin
config.plugin('html')
.tap(args => {
args[0].minify = {
@@ -56,4 +60,4 @@ module.exports = {
return args
})
}
-}
\ No newline at end of file
+}