前端问题修改
This commit is contained in:
parent
caa1d0881f
commit
baebb94716
|
|
@ -41,6 +41,9 @@ import DictData from '@/components/DictData'
|
||||||
import JsonExcel from 'vue-json-excel'
|
import JsonExcel from 'vue-json-excel'
|
||||||
Vue.prototype.$eventBus = new Vue()
|
Vue.prototype.$eventBus = new Vue()
|
||||||
|
|
||||||
|
|
||||||
|
import global_ from '@/utils/globalUrl'
|
||||||
|
|
||||||
// 全局方法挂载
|
// 全局方法挂载
|
||||||
Vue.prototype.getDicts = getDicts
|
Vue.prototype.getDicts = getDicts
|
||||||
Vue.prototype.getConfigKey = getConfigKey
|
Vue.prototype.getConfigKey = getConfigKey
|
||||||
|
|
@ -52,6 +55,7 @@ Vue.prototype.selectDictLabels = selectDictLabels
|
||||||
Vue.prototype.download = download
|
Vue.prototype.download = download
|
||||||
Vue.prototype.downloadJson = downloadJson
|
Vue.prototype.downloadJson = downloadJson
|
||||||
Vue.prototype.handleTree = handleTree
|
Vue.prototype.handleTree = handleTree
|
||||||
|
Vue.prototype.globalUrl = global_
|
||||||
|
|
||||||
// 全局组件挂载
|
// 全局组件挂载
|
||||||
Vue.component('DictTag', DictTag)
|
Vue.component('DictTag', DictTag)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
|
||||||
|
// const qrUrl = 'http://192.168.0.14:21624/qrCode/qrCodePage?qrCode='; //测试
|
||||||
|
const qrUrl = 'http://112.29.103.165:21626/qrCode/qrCodePage?qrCode='; //重庆
|
||||||
|
// const qrUrl = 'http://112.29.103.165:21624/qrCode/qrCodePage?qrCode='; //宁夏
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default {
|
||||||
|
qrUrl,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -507,12 +507,11 @@ export default {
|
||||||
codeId: true,
|
codeId: true,
|
||||||
isShowQrCode: -1,
|
isShowQrCode: -1,
|
||||||
labelmaCode: '',
|
labelmaCode: '',
|
||||||
qrUrl:'http://192.168.0.14:21624/qrCode/qrCodePage?qrCode=',
|
qrUrl:this.globalUrl.qrUrl,
|
||||||
json_fields:{"二维码地址":'exportUrl',"标签编号":'labelCode',"设备编码":'maCode'},
|
json_fields:{"二维码地址":'exportUrl',"标签编号":'labelCode',"设备编码":'maCode'},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
console.log(this.userInfo.id)
|
|
||||||
this.getList();
|
this.getList();
|
||||||
this.getType()
|
this.getType()
|
||||||
this.getTypeList();
|
this.getTypeList();
|
||||||
|
|
|
||||||
|
|
@ -183,7 +183,7 @@ export default {
|
||||||
rowObj: {},
|
rowObj: {},
|
||||||
labelmaCode: '',
|
labelmaCode: '',
|
||||||
uploadOpen: false,
|
uploadOpen: false,
|
||||||
qrUrl:'http://192.168.0.14:21624/qrCode/qrCodePage?qrCode=',
|
qrUrl:this.globalUrl.qrUrl,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
|
||||||
|
|
@ -384,7 +384,7 @@ export default {
|
||||||
title: "",
|
title: "",
|
||||||
uploadOpen: false,
|
uploadOpen: false,
|
||||||
qrCode: '',
|
qrCode: '',
|
||||||
qrUrl:'http://192.168.0.14:21624/qrCode/qrCodePage?qrCode=',
|
qrUrl:this.globalUrl.qrUrl,
|
||||||
rowObj:{},
|
rowObj:{},
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
open: false,
|
open: false,
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ module.exports = {
|
||||||
lintOnSave: process.env.NODE_ENV === 'development',
|
lintOnSave: process.env.NODE_ENV === 'development',
|
||||||
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
|
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
|
||||||
productionSourceMap: false,
|
productionSourceMap: false,
|
||||||
|
qrUrl:'http://192.168.0.14:21624/qrCode/qrCodePage?qrCode=',
|
||||||
// webpack-dev-server 相关配置
|
// webpack-dev-server 相关配置
|
||||||
devServer: {
|
devServer: {
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
|
|
@ -37,18 +38,18 @@ module.exports = {
|
||||||
[process.env.VUE_APP_BASE_API]: {
|
[process.env.VUE_APP_BASE_API]: {
|
||||||
// target: `http://112.29.103.165:21626`,//线上环境-重庆
|
// target: `http://112.29.103.165:21626`,//线上环境-重庆
|
||||||
// target: `http://112.29.103.165:21624`,//线上环境-宁夏 打包前放开数据大屏的路由
|
// target: `http://112.29.103.165:21624`,//线上环境-宁夏 打包前放开数据大屏的路由
|
||||||
// target: `http://192.168.0.14:21624`,//线上环境
|
// target: `http://192.168.0.14:21624`,//线上环境/
|
||||||
// target: `http://1.12.248.179:23028`,//线上环境-南网
|
// target: `http://1.12.248.179:23028`,//线上环境-南网
|
||||||
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网
|
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网
|
||||||
// target: `https://z.csgmall.com.cn`,
|
// target: `https://z.csgmall.com.cn`,
|
||||||
|
|
||||||
target: `http://10.40.92.12:8080`,//超
|
// target: `http://10.40.92.8:8080`,//超
|
||||||
// target: `http://10.40.92.253:8080`,//韩
|
// target: `http://10.40.92.253:8080`,//韩
|
||||||
// target: `http://10.40.92.209:8080`,//川/
|
// target: `http://10.40.92.209:8080`,//川/
|
||||||
|
|
||||||
//******** 注意事项 ********* */
|
//******** 注意事项 ********* */
|
||||||
//1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址;
|
//1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址;
|
||||||
//qrUrl:'http://112.29.103.165:21624/qrCode/qrCodePage?qrCode='
|
//qrUrl:'http://192.168.0.14:21624/qrCode/qrCodePage?qrCode='
|
||||||
//2.打开view文件夹根目录dashboard.vue 更换大屏项目发布的跳转地址,打开大屏项目config/index.js更改请求地址,大屏打包node<16.0.0;
|
//2.打开view文件夹根目录dashboard.vue 更换大屏项目发布的跳转地址,打开大屏项目config/index.js更改请求地址,大屏打包node<16.0.0;
|
||||||
//3.只有南网项目产线gl发布打包时候需要注意:
|
//3.只有南网项目产线gl发布打包时候需要注意:
|
||||||
// 将 assetsDir:'static' 改为 assetsDir:'gl/static',还有env.development和env.production中的VUE_APP_BASE_API改为'/gl/dev-api';登录跳转地址从/login换成/gl/;
|
// 将 assetsDir:'static' 改为 assetsDir:'gl/static',还有env.development和env.production中的VUE_APP_BASE_API改为'/gl/dev-api';登录跳转地址从/login换成/gl/;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue