Commit c68fda6c authored by Smile's avatar Smile

Merge remote-tracking branch 'origin/jd_dev' into jd_dev

parents 352f6a27 ce16acd2
...@@ -239,7 +239,7 @@ ...@@ -239,7 +239,7 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item :label="$t('年度发货量')"> <el-form-item :label="$t('年度发货量')">
<el-input-number v-model="form.weightYearly" :min="1" /> <el-input-number v-model="form.weightYearly" :min="0" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item :label="$t('年度发货次数')"> <el-form-item :label="$t('年度发货次数')">
<el-input-number v-model="form.numYearly" :min="1" /> <el-input-number v-model="form.numYearly" :min="0" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
......
...@@ -910,6 +910,12 @@ export default { ...@@ -910,6 +910,12 @@ export default {
} }
}, },
computed: { computed: {
isMobile() {
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
// 匹配常见的移动设备标识
const mobileIdentifiers = ['Android', 'webOS', 'iPhone', 'iPad', 'iPod', 'BlackBerry', 'Windows Phone'];
return mobileIdentifiers.some(identifier => userAgent.includes(identifier));
},
path() { path() {
return this.$route.path return this.$route.path
}, },
...@@ -1538,17 +1544,19 @@ export default { ...@@ -1538,17 +1544,19 @@ export default {
}, },
//表格高度自适应 //表格高度自适应
getHeight() { getHeight() {
this.$refs.multipleTable.doLayout() if(!this.isMobile) {
let getHeightFromBottom = (element, variableHeight) => { this.$refs.multipleTable.doLayout()
const elementRect = element.getBoundingClientRect().top; let getHeightFromBottom = (element, variableHeight) => {
const windowHeight = window.innerHeight; const elementRect = element.getBoundingClientRect().top;
const elementHeightFromBottom = windowHeight - elementRect; const windowHeight = document.documentElement.clientHeight;
const result = elementHeightFromBottom - variableHeight; const elementHeightFromBottom = windowHeight - elementRect;
return result; const result = elementHeightFromBottom - variableHeight;
return result;
}
const element = document.getElementById('dataTable');
const variableHeight = 70; // 给定的变量高度 一般留于分页器高度
this.autoHeight =getHeightFromBottom(element, variableHeight);
} }
const element = document.getElementById('dataTable');
const variableHeight = 70; // 给定的变量高度 一般留于分页器高度
this.autoHeight =getHeightFromBottom(element, variableHeight) ;
}, },
} }
} }
......
...@@ -444,6 +444,12 @@ export default { ...@@ -444,6 +444,12 @@ export default {
CustomerSetting CustomerSetting
}, },
computed: { computed: {
isMobile() {
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
// 匹配常见的移动设备标识
const mobileIdentifiers = ['Android', 'webOS', 'iPhone', 'iPad', 'iPod', 'BlackBerry', 'Windows Phone'];
return mobileIdentifiers.some(identifier => userAgent.includes(identifier));
},
isChinese() { isChinese() {
return this.$i18n.locale === "zh_CN" return this.$i18n.locale === "zh_CN"
}, },
...@@ -975,17 +981,19 @@ export default { ...@@ -975,17 +981,19 @@ export default {
}, },
//表格高度自适应 //表格高度自适应
getHeight() { getHeight() {
this.$refs.multipleTable.doLayout() if(!this.isMobile) {
let getHeightFromBottom = (element, variableHeight) => { this.$refs.multipleTable.doLayout()
const elementRect = element.getBoundingClientRect().top; let getHeightFromBottom = (element, variableHeight) => {
const windowHeight = window.innerHeight; const elementRect = element.getBoundingClientRect().top;
const elementHeightFromBottom = windowHeight - elementRect; const windowHeight = document.documentElement.clientHeight;
const result = elementHeightFromBottom - variableHeight; const elementHeightFromBottom = windowHeight - elementRect;
return result; const result = elementHeightFromBottom - variableHeight;
return result;
}
const element = document.getElementById('dataTable');
const variableHeight = 70; // 给定的变量高度 一般留于分页器高度
this.autoHeight =getHeightFromBottom(element, variableHeight);
} }
const element = document.getElementById('dataTable');
const variableHeight = 70; // 给定的变量高度 一般留于分页器高度
this.autoHeight =getHeightFromBottom(element, variableHeight) ;
}, },
}, },
watch: { watch: {
......
...@@ -703,6 +703,12 @@ export default { ...@@ -703,6 +703,12 @@ export default {
} }
}, },
computed: { computed: {
isMobile() {
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
// 匹配常见的移动设备标识
const mobileIdentifiers = ['Android', 'webOS', 'iPhone', 'iPad', 'iPod', 'BlackBerry', 'Windows Phone'];
return mobileIdentifiers.some(identifier => userAgent.includes(identifier));
},
isChinese() { isChinese() {
return this.$i18n.locale === "zh_CN"; return this.$i18n.locale === "zh_CN";
}, },
...@@ -1078,17 +1084,19 @@ export default { ...@@ -1078,17 +1084,19 @@ export default {
}, },
//表格高度自适应 //表格高度自适应
getHeight() { getHeight() {
this.$refs.multipleTable.doLayout() if(!this.isMobile) {
let getHeightFromBottom = (element, variableHeight) => { this.$refs.multipleTable.doLayout()
const elementRect = element.getBoundingClientRect().top; let getHeightFromBottom = (element, variableHeight) => {
const windowHeight = window.innerHeight; const elementRect = element.getBoundingClientRect().top;
const elementHeightFromBottom = windowHeight - elementRect; const windowHeight = document.documentElement.clientHeight;
const result = elementHeightFromBottom - variableHeight; const elementHeightFromBottom = windowHeight - elementRect;
return result; const result = elementHeightFromBottom - variableHeight;
return result;
}
const element = document.getElementById('dataTable');
const variableHeight = 70; // 给定的变量高度 一般留于分页器高度
this.autoHeight =getHeightFromBottom(element, variableHeight);
} }
const element = document.getElementById('dataTable');
const variableHeight = 70; // 给定的变量高度 一般留于分页器高度
this.autoHeight =getHeightFromBottom(element, variableHeight) ;
}, },
}, },
}; };
......
...@@ -199,7 +199,7 @@ export default { ...@@ -199,7 +199,7 @@ export default {
nextTime: ["", ""], nextTime: ["", ""],
customerCreateTime: ["", ""] customerCreateTime: ["", ""]
}, },
autoHeight: 500 autoHeight: null
} }
}, },
created() { created() {
...@@ -219,6 +219,12 @@ export default { ...@@ -219,6 +219,12 @@ export default {
// return t.join(":") // return t.join(":")
// } // }
// }, // },
isMobile() {
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
// 匹配常见的移动设备标识
const mobileIdentifiers = ['Android', 'webOS', 'iPhone', 'iPad', 'iPod', 'BlackBerry', 'Windows Phone'];
return mobileIdentifiers.some(identifier => userAgent.includes(identifier));
},
isChinese() { isChinese() {
return this.$i18n.locale === "zh_CN" return this.$i18n.locale === "zh_CN"
}, },
...@@ -338,17 +344,19 @@ export default { ...@@ -338,17 +344,19 @@ export default {
}, },
//表格高度自适应 //表格高度自适应
getHeight() { getHeight() {
this.$refs.multipleTable.doLayout() if(!this.isMobile) {
let getHeightFromBottom = (element, variableHeight) => { this.$refs.multipleTable.doLayout()
const elementRect = element.getBoundingClientRect().top; let getHeightFromBottom = (element, variableHeight) => {
const windowHeight = window.innerHeight; const elementRect = element.getBoundingClientRect().top;
const elementHeightFromBottom = windowHeight - elementRect; const windowHeight = document.documentElement.clientHeight;
const result = elementHeightFromBottom - variableHeight; const elementHeightFromBottom = windowHeight - elementRect;
return result; const result = elementHeightFromBottom - variableHeight;
return result;
}
const element = document.getElementById('dataTable');
const variableHeight = 70; // 给定的变量高度 一般留于分页器高度
this.autoHeight =getHeightFromBottom(element, variableHeight);
} }
const element = document.getElementById('dataTable');
const variableHeight = 70; // 给定的变量高度 一般留于分页器高度
this.autoHeight =getHeightFromBottom(element, variableHeight) ;
}, },
} }
} }
......
...@@ -844,7 +844,7 @@ export default { ...@@ -844,7 +844,7 @@ export default {
key: "eqPickRatio", key: "eqPickRatio",
value: "" value: ""
}, },
autoHeight: 500 autoHeight: null
} }
}, },
watch: { watch: {
...@@ -1000,6 +1000,12 @@ export default { ...@@ -1000,6 +1000,12 @@ export default {
} }
}, },
computed: { computed: {
isMobile() {
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
// 匹配常见的移动设备标识
const mobileIdentifiers = ['Android', 'webOS', 'iPhone', 'iPad', 'iPod', 'BlackBerry', 'Windows Phone'];
return mobileIdentifiers.some(identifier => userAgent.includes(identifier));
},
// 导出的权限字符串 // 导出的权限字符串
exportPermiString() { exportPermiString() {
let arr = ["ecw:order:export"] let arr = ["ecw:order:export"]
...@@ -1508,17 +1514,19 @@ export default { ...@@ -1508,17 +1514,19 @@ export default {
}, },
//表格高度自适应 //表格高度自适应
getHeight() { getHeight() {
this.$refs.dataTable.doLayout() if(!this.isMobile) {
let getHeightFromBottom = (element, variableHeight) => { this.$refs.dataTable.doLayout()
const elementRect = element.getBoundingClientRect().top; let getHeightFromBottom = (element, variableHeight) => {
const windowHeight = window.innerHeight; const elementRect = element.getBoundingClientRect().top;
const elementHeightFromBottom = windowHeight - elementRect; const windowHeight = document.documentElement.clientHeight;
const result = elementHeightFromBottom - variableHeight; const elementHeightFromBottom = windowHeight - elementRect;
return result; const result = elementHeightFromBottom - variableHeight;
return result;
}
const element = document.getElementById('dataTable');
const variableHeight = 70; // 给定的变量高度 一般留于分页器高度
this.autoHeight =getHeightFromBottom(element, variableHeight) ;
} }
const element = document.getElementById('dataTable');
const variableHeight = 70; // 给定的变量高度 一般留于分页器高度
this.autoHeight =getHeightFromBottom(element, variableHeight) ;
}, },
} }
} }
......
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