提交 b559ed1b authored 作者: yuanyufei's avatar yuanyufei

列表滚轮的优化

上级 bc9ebaf0
...@@ -5,8 +5,8 @@ ENV = 'development' ...@@ -5,8 +5,8 @@ ENV = 'development'
#VUE_APP_BASE_API = 'http://sj.jxhh.com/api/v1' #VUE_APP_BASE_API = 'http://sj.jxhh.com/api/v1'
# 测试环境 # 测试环境
VUE_APP_BASE_API = 'http://192.168.26.179:6605/api/v1' #VUE_APP_BASE_API = 'http://192.168.26.179:6605/api/v1'
#VUE_APP_BASE_API = 'http://192.168.111.240:6605/api/v1' VUE_APP_BASE_API = 'http://192.168.111.240:6605/api/v1'
# 文档模块 直接调用 sys开放接口 # 文档模块 直接调用 sys开放接口
VUE_APP_BASE_SYS_API = 'http://sysapi.jxhh.com' VUE_APP_BASE_SYS_API = 'http://sysapi.jxhh.com'
......
...@@ -171,7 +171,6 @@ ...@@ -171,7 +171,6 @@
// 如果包含了,英文逗号,说明有多个,就校验个数 // 如果包含了,英文逗号,说明有多个,就校验个数
if (value.indexOf(',') > -1) { if (value.indexOf(',') > -1) {
let arrLength = value.split(',').length; let arrLength = value.split(',').length;
console.log(value.split(','));
if (arrLength > 5) { if (arrLength > 5) {
callback(new Error("商品关键词,不能超过5个")); callback(new Error("商品关键词,不能超过5个"));
} else { } else {
...@@ -288,7 +287,6 @@ ...@@ -288,7 +287,6 @@
}, },
methods: { methods: {
handchange() {//图片拖动结束 handchange() {//图片拖动结束
console.log(this.goodsImgFileList)
this.goodsInfoForm.imgs = [] this.goodsInfoForm.imgs = []
this.goodsImgFileList.forEach(item => { this.goodsImgFileList.forEach(item => {
this.goodsInfoForm.imgs.push(item.url) this.goodsInfoForm.imgs.push(item.url)
...@@ -342,16 +340,13 @@ ...@@ -342,16 +340,13 @@
} }
}).catch((err) => { }).catch((err) => {
console.log(err)
}); });
}, },
vedioerror(err, file, fileList) { vedioerror(err, file, fileList) {
console.log(err, file, fileList)
}, },
onEnd() { onEnd() {
// debugger // debugger
console.log(this.goodsImgFileList)
this.drag = false this.drag = false
}, },
//显示删除图片的图标 //显示删除图片的图标
...@@ -423,7 +418,7 @@ ...@@ -423,7 +418,7 @@
}, },
getSSQArea() { getSSQArea() {
let limboNode = { id: 0 }; let limboNode = { id: 0 }
NewGetCategoryData(limboNode).then(res => { NewGetCategoryData(limboNode).then(res => {
this.fuckoptions = res.data; this.fuckoptions = res.data;
}); });
...@@ -452,12 +447,10 @@ ...@@ -452,12 +447,10 @@
}, },
// 类目修改 // 类目修改
handGoodsChang(val){ handGoodsChang(val){
console.log(val,'newval')
this.SSQGoodsList = val this.SSQGoodsList = val
}, },
SSQGoodsChange(value) { SSQGoodsChange(value) {
this.valdata=[] this.valdata=[]
console.log(value,'ccc')
let limboNode = { let limboNode = {
parent_id:value[value.length - 1] parent_id:value[value.length - 1]
} }
...@@ -469,7 +462,6 @@ ...@@ -469,7 +462,6 @@
} }
this.valdata.push(val) this.valdata.push(val)
}) })
console.log(this.valdata)
if(value.length==1){ if(value.length==1){
this.fuckoptions.forEach((item,index)=>{ this.fuckoptions.forEach((item,index)=>{
...@@ -492,7 +484,6 @@ ...@@ -492,7 +484,6 @@
}) })
} }
}); });
console.log(this.SSQGoodsList,'aaaaa')
}, },
// 确认 修改 商品分类 // 确认 修改 商品分类
saveType() { saveType() {
...@@ -564,7 +555,6 @@ ...@@ -564,7 +555,6 @@
}, },
// 上传 商品图片 // 上传 商品图片
uploadGoodsImg(param) { uploadGoodsImg(param) {
//console.log(327,param);
this.getBase64(param.file).then(res => { this.getBase64(param.file).then(res => {
let result = res.split(","); let result = res.split(",");
this.Base64img = result[1]; this.Base64img = result[1];
...@@ -636,7 +626,6 @@ ...@@ -636,7 +626,6 @@
if (Array.isArray(cateList) && cateList.length > 0) { if (Array.isArray(cateList) && cateList.length > 0) {
data.category_id = cateList[0]; data.category_id = cateList[0];
} }
// console.log(8888,data);
getByCategoryData(data).then(res => { getByCategoryData(data).then(res => {
if (res.code == 1) { if (res.code == 1) {
this.cateFee = res.data.service_fee_ratio ? res.data.service_fee_ratio : '' this.cateFee = res.data.service_fee_ratio ? res.data.service_fee_ratio : ''
......
...@@ -78,7 +78,6 @@ ...@@ -78,7 +78,6 @@
:label="item.spec_name" :label="item.spec_name"
> >
<!-- <template slot-scope="scope"> <!-- <template slot-scope="scope">
</template> --> </template> -->
</el-table-column> </el-table-column>
<el-table-column align="center" prop="js_price" label="协议价"> <el-table-column align="center" prop="js_price" label="协议价">
...@@ -162,17 +161,12 @@ ...@@ -162,17 +161,12 @@
/> />
<span class="span-img-del el-icon-delete del-span-block" @click="delSingleSpecImg(scope.$index,scope.row)"></span> <span class="span-img-del el-icon-delete del-span-block" @click="delSingleSpecImg(scope.$index,scope.row)"></span>
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<input type="file" style="display: none;" ref="guideupimg" accept="image/*" <input type="file" style="display: none;" ref="guideupimg" accept="image/*"
@change="changeIMG()"> @change="changeIMG()">
</div> </div>
</div> </div>
</template> </template>
...@@ -226,26 +220,20 @@ export default { ...@@ -226,26 +220,20 @@ export default {
}, },
watch:{ watch:{
'parameterdata': function(val) { 'parameterdata': function(val) {
console.log('更新')
this.orgGoodsPam = val; this.orgGoodsPam = val;
if(val.pamNameList){ if(val.pamNameList){
this.spacArr = val.pamNameList this.spacArr = val.pamNameList
console.log(val)
} }
}, },
}, },
created() { created() {
this.cateFee = this.$store.state.user.cateFee; this.cateFee = this.$store.state.user.cateFee;
debugger
}, },
mounted() { mounted() {
this.isradioguide = this.parameterdata.isradioguide ? this.parameterdata.isradioguide:1 this.isradioguide = this.parameterdata.isradioguide ? this.parameterdata.isradioguide:1
console.log(this.parameterdata) console.log(this.parameterdata)
this.getSpanArr(this.parameterdata); this.getSpanArr(this.parameterdata);
debugger
this.keyvalue++ this.keyvalue++
if(this.parameterdata.singleSpecTable && this.parameterdata.singleSpecTable.length === 1 ) { if(this.parameterdata.singleSpecTable && this.parameterdata.singleSpecTable.length === 1 ) {
this.singleSpecTable = this.parameterdata.singleSpecTable this.singleSpecTable = this.parameterdata.singleSpecTable
} }
...@@ -260,7 +248,6 @@ export default { ...@@ -260,7 +248,6 @@ export default {
this.orgGoodsPam = {}; this.orgGoodsPam = {};
//this.singleSpecTable = //this.singleSpecTable =
}, },
// ------ 无规格,上传图片相关 ------ // ------ 无规格,上传图片相关 ------
limit5() { limit5() {
this.$message({type: 'warning',message: '只能上传5张图片'}); this.$message({type: 'warning',message: '只能上传5张图片'});
......
...@@ -470,13 +470,12 @@ ...@@ -470,13 +470,12 @@
let spggData = spggRef.speData; let spggData = spggRef.speData;
spggRef.upDateDom(); spggRef.upDateDom();
// return; // return;
// 商品售价,通过获取的数据,分别进行判断 // 商品售价,通过获取的数据,分别进行判断
let isGoodsPrice = true; let isGoodsPrice = true;
let goodsPriceMsg = ''; let goodsPriceMsg = '';
let spsjData1 = JSON.parse(JSON.stringify(this.$refs.goodsparameter.singleSpecTable)); let spsjData1 = JSON.parse(JSON.stringify(this.$refs.goodsparameter.singleSpecTable));
let spsjData2 = JSON.parse(JSON.stringify(this.$refs.goodsparameter.parameterdata)); let spsjData2 = JSON.parse(JSON.stringify(this.$refs.goodsparameter.parameterdata));
// debugger
// 如果有,则说明有规格组合数据 // 如果有,则说明有规格组合数据
if ( this.radioguide==2&&spsjData2.specs_group && spsjData2.specs_group.length > 0 ) { if ( this.radioguide==2&&spsjData2.specs_group && spsjData2.specs_group.length > 0 ) {
// debugger // debugger
...@@ -566,7 +565,7 @@ ...@@ -566,7 +565,7 @@
return return
} }
debugger
// 所有校验通过,整理数据 // 所有校验通过,整理数据
// 获取 商品信息数据 // 获取 商品信息数据
let spxxData = this.$refs.goodsInfo.goodsInfoForm; let spxxData = this.$refs.goodsInfo.goodsInfoForm;
...@@ -606,7 +605,6 @@ debugger ...@@ -606,7 +605,6 @@ debugger
this.goodsAllData['specs_group'] = [] this.goodsAllData['specs_group'] = []
this.goodsAllData['specs'] = [] this.goodsAllData['specs'] = []
} }
debugger
// 商品详情 数据 // 商品详情 数据
// let spxqData = this.$refs.goodsdetailsimg.goodsDeForm; // let spxqData = this.$refs.goodsdetailsimg.goodsDeForm;
...@@ -630,7 +628,6 @@ debugger ...@@ -630,7 +628,6 @@ debugger
break; break;
} }
} }
debugger
console.log(569,ssffData); console.log(569,ssffData);
if (ssffData.delay_compensate == 72) { if (ssffData.delay_compensate == 72) {
......
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card class="box-card box-cardone"> <el-card class="box-cardone">
<div style="position: relative;" class="clearfixall"> <div style="position: relative;" class="clearfixall">
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane name="first"> <el-tab-pane name="first">
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
</el-tooltip> </el-tooltip>
</div> </div>
</div> </div>
<div class="overMain">
<div class="form-box"> <div class="form-box">
<el-form class="form-params" ref="form" :model="form" label-width="120px" :inline="true" size="small"> <el-form class="form-params" ref="form" :model="form" label-width="120px" :inline="true" size="small">
<el-form-item label="总订单号:"> <el-form-item label="总订单号:">
...@@ -130,7 +131,7 @@ ...@@ -130,7 +131,7 @@
</el-table> </el-table>
</div> </div>
<div class="table-all-con box-card"> <div class="table-all-con">
<el-card v-for="(item, index) in tableDataList" :key="index" class="order-card"> <el-card v-for="(item, index) in tableDataList" :key="index" class="order-card">
<div slot="header" class="el-card-header-spe"> <div slot="header" class="el-card-header-spe">
<div style="float:left;"> <div style="float:left;">
...@@ -218,6 +219,7 @@ ...@@ -218,6 +219,7 @@
:total="total"> :total="total">
</el-pagination> </el-pagination>
</div> </div>
</div>
</el-card> </el-card>
<!-- 订单详情 对话框 --> <!-- 订单详情 对话框 -->
<el-dialog title="订单详情" width="85%" :close-on-click-modal="false" :destroy-on-close="true" <el-dialog title="订单详情" width="85%" :close-on-click-modal="false" :destroy-on-close="true"
...@@ -968,19 +970,29 @@ ...@@ -968,19 +970,29 @@
</script> </script>
<style scoped> <style scoped>
.box-cardone{
height: 100%;
}
/deep/ .el-range-editor.el-input__inner { /deep/ .el-range-editor.el-input__inner {
width: 100%; width: 100%;
} }
/deep/ .el-card__body { /deep/ .el-card__body {
height: calc(100% - 50px); height: calc(100% - 50px);
/* overflow: auto; */
}
.overMain{
height: 729px;
overflow: auto;
padding-top: 15px;
} }
.scollbox { .scollbox {
height: calc(100% - 50px); /* height: calc(100% - 50px); */
overflow-y: hidden; /* overflow-y: hidden; */
}
/deep/ .el-tabs__header{
margin: 0;
} }
.form-box { .form-box {
/*margin-bottom: 20px;*/ /*margin-bottom: 20px;*/
/*padding-top: 10px;*/ /*padding-top: 10px;*/
...@@ -1001,7 +1013,13 @@ ...@@ -1001,7 +1013,13 @@
.footer_pagination { .footer_pagination {
text-align: center; text-align: center;
/* width: 100%; */
margin-top: 15px; margin-top: 15px;
/* position: fixed;
bottom: 50px;
left: 35%;
z-index: 1000;
background-color: white; */
} }
.delivery-data-con { .delivery-data-con {
...@@ -1068,12 +1086,13 @@ ...@@ -1068,12 +1086,13 @@
} }
.table-all-con { .table-all-con {
height: calc(100% - 190px); /* height: calc(100% - 190px); */
overflow: auto; /* margin-bottom: 40px; */
/* overflow: auto; */
} }
.el-card-header-spe { .el-card-header-spe {
overflow: hidden; /* overflow: hidden; */
} }
.ml10 { .ml10 {
......
...@@ -514,7 +514,9 @@ ...@@ -514,7 +514,9 @@
/* height: 100%;*/ /* height: 100%;*/
/* overflow: hidden;*/ /* overflow: hidden;*/
/*}*/ /*}*/
/deep/ .el-tabs__header{
margin: 0;
}
/deep/ .after-sale-tabs .el-tabs__item { /deep/ .after-sale-tabs .el-tabs__item {
line-height: 30px; line-height: 30px;
} }
...@@ -526,6 +528,7 @@ ...@@ -526,6 +528,7 @@
.table-all-con { .table-all-con {
height: calc(100% - 40px); height: calc(100% - 40px);
overflow: auto; overflow: auto;
padding-top: 15px;
} }
.table-all-body-con { .table-all-body-con {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论