diff --git a/src/components/SelectTree/index.vue b/src/components/SelectTree/index.vue
index ba6d544f..e2c21db9 100644
--- a/src/components/SelectTree/index.vue
+++ b/src/components/SelectTree/index.vue
@@ -124,7 +124,7 @@ export default {
},
filterNode(value, data) {
if (!value) return true;
- console.log(data);
+ // console.log(data);
return data[this.props.label].indexOf(value) !== -1;
}
},
diff --git a/src/components/XdTable/SingleListIndex.vue b/src/components/XdTable/SingleListIndex.vue
index 2389f083..4afe18db 100644
--- a/src/components/XdTable/SingleListIndex.vue
+++ b/src/components/XdTable/SingleListIndex.vue
@@ -179,7 +179,7 @@ export default {
// 更多操作触发
handleAdjustTableSize(command) {
//size:mini/small/medium;
- console.log(this.config);
+ // console.log(this.config);
switch (command) {
case "small":
this.config.attrs.size='small';
diff --git a/src/components/XdTable/index.vue b/src/components/XdTable/index.vue
index f830957b..074b86c8 100644
--- a/src/components/XdTable/index.vue
+++ b/src/components/XdTable/index.vue
@@ -178,13 +178,13 @@ export default {
},
methods: {
handleSelectionChange(rows) {
- console.log(rows)
+ // console.log(rows)
},
onCopySelectCell(){
},
onMousedown(event) {
- console.log(event)
+ // console.log(event)
const table = this.$refs.table
const cell = event.target.closest('td')
if (cell) {
@@ -202,7 +202,7 @@ export default {
}
},
onMousemove(event) {
- console.log(event)
+ // console.log(event)
if (this.isDragging) {
const table = this.$refs.table
const cell = event.target.closest('td')
@@ -412,7 +412,7 @@ export default {
// @cell-click="cellClick"
// @row-click="clickTableRow"
- console.log(this.config);
+ // console.log(this.config);
// 通过key值触发表格刷新,避免拖拽由于数组长度一致导致diff算法无法识别
this.config.key = Math.random() + ''
diff --git a/src/i18n/index copy.js b/src/i18n/index copy.js
index 79890181..15643ebe 100755
--- a/src/i18n/index copy.js
+++ b/src/i18n/index copy.js
@@ -57,7 +57,7 @@ class I18n extends VueI18n {
oMessages,
res.data,
);
- console.log(oMessages)
+ // console.log(oMessages)
}
if(sLang == 'zh-CN'){
diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue
index af66f1e4..e10f95d2 100644
--- a/src/layout/components/AppMain.vue
+++ b/src/layout/components/AppMain.vue
@@ -51,10 +51,7 @@ export default {
},
computed: {
cachedViews() {
- let cv=this.$store.state.tagsView.cachedViews;
- console.log(cv)
-
- return cv
+ return this.$store.state.tagsView.cachedViews;
},
key() {
return this.$route.path
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index f2e66b16..854c1e04 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -187,7 +187,6 @@ export default {
// location.href = '/index';
let indexUrl=this.$store.state.permission.indexPage;
location.href = indexUrl;
-
})
}).catch(() => {});
},
diff --git a/src/layout/components/TopTagsView/index.vue b/src/layout/components/TopTagsView/index.vue
index 6133b2e2..ef5eaeaa 100644
--- a/src/layout/components/TopTagsView/index.vue
+++ b/src/layout/components/TopTagsView/index.vue
@@ -59,7 +59,7 @@ export default {
return this.$store.state.tagsView.visitedViews
},
set (val) {
- console.log("222=>"+val)
+ // console.log("222=>"+val)
// this.$store.commit(['setInputValue', val])
}
},
diff --git a/src/layout/index的副本.vue b/src/layout/index的副本.vue
index 5f4e195b..9097724a 100644
--- a/src/layout/index的副本.vue
+++ b/src/layout/index的副本.vue
@@ -86,7 +86,7 @@ export default {
setTimeout(() => {
// 判断token有效性
checkToken().then(res => {
- console.log(res);
+ // console.log(res);
}).catch((err) => {
// logout().then(() => {
// Message.error(err || '已成功退出')
diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js
index 2799e8b2..55752c88 100644
--- a/src/store/modules/permission.js
+++ b/src/store/modules/permission.js
@@ -71,7 +71,6 @@ const permission = {
function getFirstUrl(data){
let indexUrl='/'
if(data){
- // console.log(data);
if(data.length > 0){
if(data[0].children){
if(data[0].path=='/'){
@@ -88,7 +87,6 @@ function getFirstUrl(data){
}
}
- console.log(indexUrl)
return indexUrl;
}
diff --git a/src/utils/custom.js b/src/utils/custom.js
index 5ee5c1bf..eec45837 100644
--- a/src/utils/custom.js
+++ b/src/utils/custom.js
@@ -517,3 +517,53 @@ export function getLocalIp(callback){
});
}, 1000);
}
+
+export function getLocalIPs(callback) {
+ var ips = [];
+
+ var RTCPeerConnection = window.RTCPeerConnection ||
+ window.webkitRTCPeerConnection || window.mozRTCPeerConnection;
+
+ var pc = new RTCPeerConnection({
+ // Don't specify any stun/turn servers, otherwise you will
+ // also find your public IP addresses.
+ iceServers: []
+ });
+ // Add a media line, this is needed to activate candidate gathering.
+ pc.createDataChannel('');
+
+ // onicecandidate is triggered whenever a candidate has been found.
+ pc.onicecandidate = function(e) {
+ if (!e.candidate) { // Candidate gathering completed.
+ pc.close();
+ callback(ips);
+ return;
+ }
+ var ip = /^candidate:.+ (\S+) \d+ typ/.exec(e.candidate.candidate)[1];
+ if (ips.indexOf(ip) == -1) // avoid duplicate entries (tcp/udp)
+ ips.push(ip);
+ };
+ pc.createOffer(function(sdp) {
+ pc.setLocalDescription(sdp);
+ }, function onerror() {});
+}
+
+
+export function getIpAddress() {
+ window.RTCPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
+ var pc = new RTCPeerConnection({
+ iceServers: []
+ }),
+ noop = function() {};
+ pc.createDataChannel(''); //create a bogus data channel
+ pc.createOffer(pc.setLocalDescription.bind(pc), noop); // create offer andsetlocaldescription
+ pc.onicecandidate = function(ice) {
+ if (ice && ice.candidate && ice.candidate.candidate) {
+ var myIP = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/.exec(ice.candidate.candidate)[1];
+ console.log('my IP: ', myIP); //【注:Chrome浏览器下ice.candidate.address也可以拿到值,火狐浏览器不可以】
+ pc.onicecandidate = noop;
+ return myIP;
+ }
+ };
+return null;
+}
diff --git a/src/views/emis/emisQuoteExpression/quoteExpressionPanel.vue b/src/views/emis/emisQuoteExpression/quoteExpressionPanel.vue
index 3bb0ca58..bdcc31fe 100644
--- a/src/views/emis/emisQuoteExpression/quoteExpressionPanel.vue
+++ b/src/views/emis/emisQuoteExpression/quoteExpressionPanel.vue
@@ -152,6 +152,9 @@ export default {
quoteId:{
type:Number
},
+ isCopy:{
+ type:Boolean
+ }
},
watch: {
value(newVal) {
@@ -308,7 +311,7 @@ export default {
this.$refs["form"].validate(valid => {
if (valid) {
// 如果是已经存在的报价,直接更新
- if(this.quoteId != null){
+ if(this.quoteId != null && this.isCopy){
this.submitFormByQuoteId()
}else{
this.submitFormByNew();
diff --git a/src/views/emis/emisQuotePrice/emisQuotePriceForm.vue b/src/views/emis/emisQuotePrice/emisQuotePriceForm.vue
index 93c1be4b..a96a31fc 100644
--- a/src/views/emis/emisQuotePrice/emisQuotePriceForm.vue
+++ b/src/views/emis/emisQuotePrice/emisQuotePriceForm.vue
@@ -186,7 +186,7 @@