Commit 4ccc37a9 authored by xishifeng's avatar xishifeng

取消跟进上传图片大小限制

parent be3d8664
...@@ -226,12 +226,13 @@ require(['vue', 'vconsole', 'css!style/customerinfo_sub_page.css', 'css!style/cu ...@@ -226,12 +226,13 @@ require(['vue', 'vconsole', 'css!style/customerinfo_sub_page.css', 'css!style/cu
layerTipsX('目前最多只能上传一张'); layerTipsX('目前最多只能上传一张');
return false; return false;
}else{ }else{
if(e.target.files[0].size > 1000000){ // if(e.target.files[0].size > 1000000){
layerTipsX('图片过大,请重新选择'); // layerTipsX('图片过大,请重新选择');
return false; // return false;
}else{ // }else{
_fd.append('image', e.target.files[0]); // _fd.append('image', e.target.files[0]);
}; // };
_fd.append('image', e.target.files[0]);
}; };
$.ajax({ $.ajax({
url: ServerHostTempC + "/chat/uploadImg", url: ServerHostTempC + "/chat/uploadImg",
......
...@@ -32,6 +32,9 @@ export default { ...@@ -32,6 +32,9 @@ export default {
} else { } else {
return str; return str;
} }
},
jineComma(str) {
}, },
dealJineNum(num) { dealJineNum(num) {
if(isFinite(num)) { if(isFinite(num)) {
......
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
<div> <div>
<header-pulic :data="headerData"></header-pulic> <header-pulic :data="headerData"></header-pulic>
<nav> <nav>
<div v-for="(item, index) in mainData" :key="item.title" :class="{active:index === initTabNumMain}" @click="tabMain(index)">{{item.title}}</div> <div class="nav-main">
<div v-for="(item, index) in mainData" :key="item.title" :class="{active:index === initTabNumMain}" @click="tabMain(index)">{{item.title}}</div>
</div>
<div class="nav-seat"></div>
</nav> </nav>
<main> <main>
...@@ -11,9 +14,11 @@ ...@@ -11,9 +14,11 @@
<li v-for="(item2, index2) in item.listData"> <li v-for="(item2, index2) in item.listData">
<achieve-fork-li :data="item2" :dataindex="index2"></achieve-fork-li> <achieve-fork-li :data="item2" :dataindex="index2"></achieve-fork-li>
</li> </li>
<li class="self-achieve-li" v-if="mainData[index].selfData">
<achieve-fork-li :data="mainData[index].selfData" :dataindex="mainData[index].selfData.index_-1"></achieve-fork-li>
</li>
</ul> </ul>
<footer class="oh achieve-footer"> <footer class="oh achieve-footer">
<achieve-fork-li :data="mainData[index].selfData" :dataindex="mainData[index].selfData.index_-1"></achieve-fork-li>
<p class="time-title tc">统计时间:{{statisticsStartTime+'-'+statisticsEndTime}}</p> <p class="time-title tc">统计时间:{{statisticsStartTime+'-'+statisticsEndTime}}</p>
<div class="btn-area"> <div class="btn-area">
<div class="oh"> <div class="oh">
...@@ -31,12 +36,10 @@ ...@@ -31,12 +36,10 @@
</template> </template>
<script> <script>
import headerPulic from '@/components/publicEg/headPublic';
import achieveForkLi from '@/components/achieveMain/achieveForkLi'; import achieveForkLi from '@/components/achieveMain/achieveForkLi';
import '@/assets/js/layer041002.js'; import '@/assets/js/layer041002.js';
export default { export default {
components: { components: {
'header-pulic': headerPulic,
'achieve-fork-li': achieveForkLi 'achieve-fork-li': achieveForkLi
}, },
data: () => ({ data: () => ({
...@@ -68,10 +71,7 @@ ...@@ -68,10 +71,7 @@
'title': '部门排行', 'title': '部门排行',
'isLoad': false, 'isLoad': false,
'topLineNum': Number.POSITIVE_INFINITY, 'topLineNum': Number.POSITIVE_INFINITY,
'listData': [], 'listData': []
'selfData': {
'index_': 4
}
}], }],
statisticsStartTime: '', statisticsStartTime: '',
statisticsEndTime: '', statisticsEndTime: '',
...@@ -105,36 +105,40 @@ ...@@ -105,36 +105,40 @@
let _this = this; let _this = this;
_this.initTabNumMain = index; _this.initTabNumMain = index;
if(!_this.mainData[index].isLoad) { if(!_this.mainData[index].isLoad) {
_this.ajaxMainNum(function() { _this.ajaxUl();
if(!_this.tabsMain[index].data[0].isLoadSub) { };
Vue.set(_this.tabsMain[index].data[0], 'isLoadSub', true);
_this.ajaxUl();
} else {
console.log(_this.tabsMain[index].data[0].isLoadSub);
};
});
}
}, },
ajaxUl() { ajaxUl() {
let _this = this; let _this = this;
let _index = _this.initTabNumMain;
_this.axios({ _this.axios({
method: 'get', method: 'get',
url: '/broker/selectPerformanceByTime', url: '/broker/selectPerformanceByTime',
responseType: 'json', responseType: 'json',
data: { data: {
'agent_id': _this.userid, 'agent_id': _this.userid,
'type': 1, 'type': _index + 1,
'AuthToken': _this.token 'AuthToken': _this.token
} }
}) })
.then(function(response) { .then(function(response) {
if(response.data.code == 200) { if(response.data.code == 200) {
_this.mainData[_index].isLoad = true;
_this.statisticsStartTime = response.data.data.start_time.replace(/-/g, '.'); _this.statisticsStartTime = response.data.data.start_time.replace(/-/g, '.');
_this.statisticsEndTime = response.data.data.end_time.replace(/-/g, '.'); _this.statisticsEndTime = response.data.data.end_time.replace(/-/g, '.');
_this.mainData[0].listData = response.data.data.list; _this.mainData[_index].listData = response.data.data.list.slice(0, _this.mainData[_index].topLineNum);
_this.mainData[0].selfData = response.data.data.list.filter(function(item, index, array) { if(_index < 2){
return(item.agent_id === item.is_my); //部门业绩(即区域业绩)时不需要这个
})[0]; _this.mainData[_index].selfData = response.data.data.list.filter(function(item, index, array) {
if(_index === 0){
//人员排行
return(item.agent_id === item.is_my);
}else if(_index === 1){
//门店排行
return(item.store_id === item.is_my);
}else{};
})[0];
};
} else { } else {
layer.tipsX(response.data.msg); layer.tipsX(response.data.msg);
} }
...@@ -148,26 +152,33 @@ ...@@ -148,26 +152,33 @@
</script> </script>
<style> <style>
nav { nav>.nav-main {
display: flex; display: flex;
box-sizing: border-box;
background-color: white; background-color: white;
width: 100%;
height: .9rem; height: .9rem;
line-height: .9rem; line-height: .9rem;
padding: 0 .3rem; padding: 0 .3rem;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
position: fixed;
left: 0;
top: .88rem;
} }
nav>.nav-seat {
nav>div { height: .9rem;
}
nav>.nav-main>div {
flex: 1; flex: 1;
text-align: center; text-align: center;
} }
nav>div.active { nav>.nav-main>div.active {
color: rgb(255, 148, 25); color: rgb(255, 148, 25);
position: relative; position: relative;
} }
nav>div.active::after { nav>.nav-main>div.active::after {
content: ''; content: '';
position: absolute; position: absolute;
left: 50%; left: 50%;
...@@ -178,6 +189,15 @@ ...@@ -178,6 +189,15 @@
border-radius: .03rem; border-radius: .03rem;
background-color: rgb(255, 161, 50); background-color: rgb(255, 161, 50);
} }
.main-sec{
min-height: 100%;
}
.main-sec>ul{
padding-bottom: 2.2rem;
}
.self-achieve-li{
margin-top: .2rem;
}
footer{ footer{
background-color: white; background-color: white;
border-top: 1px solid #ccc; border-top: 1px solid #ccc;
......
...@@ -48,10 +48,12 @@ axios.interceptors.response.use((res) => { ...@@ -48,10 +48,12 @@ axios.interceptors.response.use((res) => {
Vue.use(VueAxios, axios); Vue.use(VueAxios, axios);
//Vue.use(VueAwesomeSwiper); //Vue.use(VueAwesomeSwiper);
Vue.prototype.common = common; Vue.prototype.common = common;
//Vue.prototype.$qs = qs;
//把common注册到Vue全局 //把common注册到Vue全局
Vue.config.productionTip = true; Vue.config.productionTip = true;
import headerPulic from '@/components/publicEg/headPublic';
Vue.component('header-pulic', headerPulic);//注册全局组件
/* eslint-disable no-new */ /* eslint-disable no-new */
new Vue({ new Vue({
el: '#app', el: '#app',
......
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