Browse Source

init

newStyle
lancer 3 years ago
parent
commit
f3a6a0a092
14 changed files with 233 additions and 1 deletions
  1. +35
    -0
      src/util/util.js
  2. +9
    -0
      src/views/Customer/index.vue
  3. +16
    -0
      src/views/ReceivingRecords/index.vue
  4. +31
    -0
      src/views/Statistics/BuildingContrast.vue
  5. +21
    -0
      src/views/Statistics/ConsultantBrand.vue
  6. +22
    -0
      src/views/Statistics/MentoringAbility.vue
  7. +26
    -0
      src/views/Statistics/ReceptionStatistical.vue
  8. +25
    -0
      src/views/Statistics/TheTeamCompared.vue
  9. +12
    -0
      src/views/Statistics/TrendAnalysis.vue
  10. +12
    -0
      src/views/Template/PinspeakwordsList.vue
  11. +12
    -0
      src/views/Template/taboo.vue
  12. +10
    -0
      src/views/Template/wrongword.vue
  13. +1
    -0
      src/views/admin/user/index.vue
  14. +1
    -1
      src/views/building/index.vue

+ 35
- 0
src/util/util.js View File

@@ -370,3 +370,38 @@ export function getQueryString(url, paraName) {
return '' return ''
} }
} }
// 导出.Excel公用方法
export function exportMethodPost(url, name, data = {}) {
axios({
method: "get",
url: url,
params:data,
responseType: "blob",
})
.then((res) => {
let blob = new Blob([res], { type: "application/vnd.ms-excel" });
let date = new Date();
let time = date.toLocaleDateString();
// console.log(time, "时间");
if ("download" in document.createElement("a")) {
const link = document.createElement("a");
link.style.display = "none";
link.href = URL.createObjectURL(blob);
// link.download = res.headers['content-disposition'] //下载后文件名
link.download = (name || "导出文件") + time + ".xlsx"; //下载的文件名
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
} else {
// console.log("--------------------jingla")
let fileName = (name || "导出文件") + time + ".xlsx"; //下载的文件名
navigator.msSaveBlob(blob, fileName);
}
})
.catch((error) => {
// Message.error({
// message: '网络连接错误'
// })
console.log(error);
});
}

+ 9
- 0
src/views/Customer/index.vue View File

@@ -213,6 +213,9 @@
<el-button type="primary" @click="screen">筛选</el-button> <el-button type="primary" @click="screen">筛选</el-button>
<el-button @click="clearScreen">清空筛选条件</el-button> <el-button @click="clearScreen">清空筛选条件</el-button>
</div> </div>
<div style="margin-left: auto;margin-right:10px;" v-if="cus_index_downLoad">
<el-button @click="downLoad">导出</el-button>
</div>
</div> </div>
</div> </div>


@@ -310,6 +313,7 @@


<script> <script>
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
export default { export default {
data() { data() {
return { return {
@@ -436,12 +440,17 @@ export default {
this.cus_index_take = this.permissions["cus_index_take"]; this.cus_index_take = this.permissions["cus_index_take"];
this.cus_index_del = this.permissions["cus_index_del"]; this.cus_index_del = this.permissions["cus_index_del"];
this.cus_index_visit = this.permissions["cus_index_visit"]; this.cus_index_visit = this.permissions["cus_index_visit"];
this.cus_index_downLoad = this.permissions["cus_index_downLoad"];
}, },
mounted() { mounted() {
// 获取楼盘列表 // 获取楼盘列表
this.zkhousePage(); this.zkhousePage();
}, },
methods: { methods: {
downLoad(){
// this.searchForm
// exportMethodPost()
},
// 跳转接待详情 // 跳转接待详情
Receivedetailsabout(row){ Receivedetailsabout(row){
this.$api.http.findByCusIdcusId({cusId:row.id}).then((res) => { this.$api.http.findByCusIdcusId({cusId:row.id}).then((res) => {


+ 16
- 0
src/views/ReceivingRecords/index.vue View File

@@ -251,6 +251,9 @@
<div style="margin-left: 20px"> <div style="margin-left: 20px">
<el-button @click="clearScreen">清空筛选条件</el-button> <el-button @click="clearScreen">清空筛选条件</el-button>
</div> </div>
<div style="margin-left: auto;margin-right:10px;" v-if="rec_index_downLoad">
<el-button @click="downLoad">导出</el-button>
</div>
</div> </div>
</div> </div>


@@ -328,6 +331,7 @@


<script> <script>
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
export default { export default {
data() { data() {
return { return {
@@ -454,6 +458,7 @@ export default {
this.rec_index_show = this.permissions["rec_index_show"]; this.rec_index_show = this.permissions["rec_index_show"];
this.rec_index_text = this.permissions["rec_index_text"]; this.rec_index_text = this.permissions["rec_index_text"];
this.rec_index_voice = this.permissions["rec_index_voice"]; this.rec_index_voice = this.permissions["rec_index_voice"];
this.rec_index_downLoad = this.permissions["rec_index_downLoad"];
}, },
mounted() { mounted() {


@@ -461,6 +466,17 @@ export default {
this.zkhousePage(); this.zkhousePage();
}, },
methods: { methods: {
downLoad(){
let obj = {
type: 1,
...this.searchForm,
};
obj.keywordIds = obj.keywordsId.join(",");
obj.dateType = this.searchForm.staDate
? null
: this.searchForm.dateType
// exportMethodPost()
},
// 跳转接待详情 // 跳转接待详情
Receivedetailsabout(row){ Receivedetailsabout(row){
this.$api.http.findByCusIdcusId({cusId:row.id}).then((res) => { this.$api.http.findByCusIdcusId({cusId:row.id}).then((res) => {


+ 31
- 0
src/views/Statistics/BuildingContrast.vue View File

@@ -42,6 +42,9 @@
> >
</el-option> </el-option>
</el-select> </el-select>
<div style="margin-left: auto;margin-right:10px;" v-if="sta_bui_downLoad">
<el-button @click="downLoad">导出</el-button>
</div>
</div> </div>


<!-- 表格 --> <!-- 表格 -->
@@ -247,6 +250,8 @@
</template> </template>


<script> <script>
import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
export default { export default {
data() { data() {
return { return {
@@ -305,6 +310,12 @@ export default {


}; };
}, },
computed: {
...mapGetters(["permissions"]),
},
created() {
this.sta_bui_downLoad = this.permissions["sta_bui_downLoad"];
},
mounted() { mounted() {
this.role=localStorage.getItem("orgType"); this.role=localStorage.getItem("orgType");
this.houseId = localStorage.getItem("houseId"); this.houseId = localStorage.getItem("houseId");
@@ -312,6 +323,26 @@ export default {
this.gethouseData() this.gethouseData()
}, },
methods: { methods: {
downLoad(){
let pamaet={
orgType:this.role,
dateType:0,
statDateStart:this.statDateStart,
statDateEnd:this.statDateEnd,
houseTypes: this.houseTypes,
}
if(this.role==3){
pamaet.houseId=this.houseId
}else{
pamaet.orgCode=this.orgCode
}
if(this.TimetoAhoose==7){
pamaet.dateType=null
}else{
pamaet.dateType=this.TimetoAhoose
}
// exportMethodPost()
},
sysChange() { sysChange() {
this.gethouseData() this.gethouseData()
}, },


+ 21
- 0
src/views/Statistics/ConsultantBrand.vue View File

@@ -72,6 +72,9 @@
违禁统计 违禁统计
</div> </div>
</div> </div>
<div style="margin-left: auto;margin-right:10px;" v-if="sta_men_downLoad">
<el-button @click="downLoad">导出</el-button>
</div>
</div> </div>
<el-table max-height="300" :data="tableData" stripe style="width: 100%"> <el-table max-height="300" :data="tableData" stripe style="width: 100%">
<el-table-column prop="batchId" label="序号" align="center"> <el-table-column prop="batchId" label="序号" align="center">
@@ -353,6 +356,8 @@


<script> <script>
import * as echarts from "echarts"; import * as echarts from "echarts";
import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
export default { export default {
data() { data() {
return { return {
@@ -400,6 +405,12 @@ export default {
role:'' role:''
}; };
}, },
computed: {
...mapGetters(["permissions"]),
},
created() {
this.sta_men_downLoad = this.permissions["sta_men_downLoad"];
},
mounted() { mounted() {
this.role=localStorage.getItem("orgType"); this.role=localStorage.getItem("orgType");
if(this.role==3){ if(this.role==3){
@@ -413,6 +424,16 @@ export default {


}, },
methods: { methods: {
downLoad(){
let obj={
houseId: this.houseId,
statDateStart: this.statDateStart,
statDateEnd: this.statDateEnd,
deptId: this.deptId,
dateType: this.dateType == 7 ? null : this.dateType,
}
// exportMethodPost()
},
houseChange(){ houseChange(){
this.customtime=[]; this.customtime=[];
this.TimetoAhoose=4; this.TimetoAhoose=4;


+ 22
- 0
src/views/Statistics/MentoringAbility.vue View File

@@ -227,6 +227,9 @@
违禁统计 违禁统计
</div> </div>
</div> </div>
<div style="margin-left: auto;margin-right:10px;" v-if="sta_men_downLoad">
<el-button @click="downLoad">导出</el-button>
</div>
</div> </div>
<el-table max-height="300" :data="tableData" stripe style="width: 100%;"> <el-table max-height="300" :data="tableData" stripe style="width: 100%;">
<el-table-column prop="statDate" label="日期" align="center"> <el-table-column prop="statDate" label="日期" align="center">
@@ -329,6 +332,8 @@


<script> <script>
import * as echarts from "echarts"; import * as echarts from "echarts";
import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
export default { export default {
data() { data() {
return { return {
@@ -394,6 +399,13 @@ export default {
role:'', role:'',


}; };
},
computed: {
...mapGetters(["permissions"]),
},
created() {

this.sta_men_downLoad = this.permissions["sta_men_downLoad"];
}, },
mounted() { mounted() {
this.role=localStorage.getItem("orgType"); this.role=localStorage.getItem("orgType");
@@ -405,6 +417,16 @@ export default {
} }
}, },
methods: { methods: {
downLoad(){
let obj={
houseId:this.houseId,
statDateStart:this.statDateStart,
statDateEnd:this.statDateEnd,
accountId:this.consultantlistid,
dateType:this.TimetoAhoose==7?null:this.TimetoAhoose
}
// exportMethodPost()
},
init(){ init(){
this.getAccount() this.getAccount()
this.teamAllLeve() this.teamAllLeve()


+ 26
- 0
src/views/Statistics/ReceptionStatistical.vue View File

@@ -85,6 +85,9 @@
> >
<el-button type="primary" size="small" @click="reset()">清空</el-button> <el-button type="primary" size="small" @click="reset()">清空</el-button>
</div> </div>
<div style="margin-left: auto;margin-right:10px;" v-if="sta_rec_downLoad">
<el-button @click="downLoad">导出</el-button>
</div>
</div> </div>
</div> </div>
<!-- 表格 --> <!-- 表格 -->
@@ -268,6 +271,8 @@
</template> </template>


<script> <script>
import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
export default { export default {
data() { data() {
return { return {
@@ -308,6 +313,13 @@ export default {
role:'' role:''
}; };
}, },
computed: {
...mapGetters(["permissions"]),
},
created() {

this.sta_rec_downLoad = this.permissions["sta_rec_downLoad"];
},
mounted() { mounted() {
this.role=localStorage.getItem("orgType"); this.role=localStorage.getItem("orgType");
if(this.role==3){ if(this.role==3){
@@ -319,6 +331,20 @@ export default {
} }
}, },
methods: { methods: {
downLoad(){
let obj = {
houseId: this.houseId,
statDateStart: this.statDateStart,
statDateEnd: this.statDateEnd,
// current: this.current,
// size: this.size,
deptId: this.deptId,
accountId: this.accountId,
dateType: this.dateType == 7 ? null : this.dateType,
type:1
};
// exportMethodPost()
},
houseChange(){ houseChange(){
this.customtime=[]; this.customtime=[];
this.TimetoAhoose=4; this.TimetoAhoose=4;


+ 25
- 0
src/views/Statistics/TheTeamCompared.vue View File

@@ -43,6 +43,9 @@
> >
</el-date-picker> </el-date-picker>
</div> </div>
<div style="margin-left: auto;margin-right:10px;" v-if="sta_team_downLoad">
<el-button @click="downLoad">导出</el-button>
</div>
</div> </div>
</div> </div>
<!-- 表格 --> <!-- 表格 -->
@@ -252,6 +255,8 @@


<script> <script>
import * as echarts from "echarts"; import * as echarts from "echarts";
import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
export default { export default {
data() { data() {
return { return {
@@ -292,6 +297,12 @@ export default {
isshowcd:true, isshowcd:true,
isshowcd2:true isshowcd2:true
}; };
},
computed: {
...mapGetters(["permissions"]),
},
created() {
this.sta_team_downLoad = this.permissions["sta_team_downLoad"];
}, },
mounted() { mounted() {
this.role=localStorage.getItem("orgType"); this.role=localStorage.getItem("orgType");
@@ -303,6 +314,20 @@ export default {
} }
}, },
methods: { methods: {
downLoad(){
let pamaet={
houseId:this.houseId,
dateType:0,
statDateStart:this.statDateStart,
statDateEnd:this.statDateEnd,
}
if(this.TimetoAhoose==7){
pamaet.dateType=null
}else{
pamaet.dateType=this.TimetoAhoose
}
// exportMethodPost()
},
zkhousePage() { zkhousePage() {
this.$api.api this.$api.api
.findHouseByUser({ .findHouseByUser({


+ 12
- 0
src/views/Statistics/TrendAnalysis.vue View File

@@ -398,6 +398,8 @@


<script> <script>
import * as echarts from "echarts"; import * as echarts from "echarts";
import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
export default { export default {
data() { data() {
return { return {
@@ -439,6 +441,12 @@ export default {
houseList: [], houseList: [],
role: "", role: "",
}; };
},
computed: {
...mapGetters(["permissions"]),
},
created() {
this.sta_tre_downLoad = this.permissions["sta_tre_downLoad"];
}, },
mounted() { mounted() {
this.role = localStorage.getItem("orgType"); this.role = localStorage.getItem("orgType");
@@ -451,6 +459,10 @@ export default {
} }
}, },
methods: { methods: {
downLoad(){
// exportMethodPost()
},
houseChange() { houseChange() {
this.customtime = []; this.customtime = [];
this.TimetoAhoose = 4; this.TimetoAhoose = 4;


+ 12
- 0
src/views/Template/PinspeakwordsList.vue View File

@@ -47,6 +47,9 @@
>添加模板</el-button >添加模板</el-button
> >
</div> </div>
<div style="margin-left: auto;margin-right:10px;" v-if="tem_pwl_downLoad">
<el-button @click="downLoad">导出</el-button>
</div>
</div> </div>
</div> </div>


@@ -136,6 +139,7 @@


<script> <script>
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
export default { export default {
data() { data() {
return { return {
@@ -165,11 +169,19 @@ export default {
this.tem_pwl_edit = this.permissions["tem_pwl_edit"]; this.tem_pwl_edit = this.permissions["tem_pwl_edit"];
this.tem_pwl_stop = this.permissions["tem_pwl_stop"]; this.tem_pwl_stop = this.permissions["tem_pwl_stop"];
this.tem_pwl_del = this.permissions["tem_pwl_del"]; this.tem_pwl_del = this.permissions["tem_pwl_del"];
this.tem_pwl_downLoad = this.permissions["tem_pwl_downLoad"];
}, },
mounted() { mounted() {
this.zkhousePage() this.zkhousePage()
}, },
methods: { methods: {
downLoad(){
let parmest={
houseId:this.projectId,
status:this.statetest
}
// exportMethodPost()
},
goinfo(row){ goinfo(row){
this.nodelist=[] this.nodelist=[]
this.newlist=[] this.newlist=[]


+ 12
- 0
src/views/Template/taboo.vue View File

@@ -41,6 +41,9 @@
>新增</el-button >新增</el-button
> >
</div> </div>
<div style="margin-left: auto;margin-right:10px;" v-if="tem_tab_downLoad">
<el-button @click="downLoad">导出</el-button>
</div>
</div> </div>
</div> </div>


@@ -110,6 +113,7 @@


<script> <script>
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
export default { export default {
data() { data() {
return { return {
@@ -143,11 +147,19 @@ export default {
this.tem_tab_add = this.permissions["tem_tab_add"]; this.tem_tab_add = this.permissions["tem_tab_add"];
this.tem_tab_del = this.permissions["tem_tab_del"]; this.tem_tab_del = this.permissions["tem_tab_del"];
this.tem_tab_edit = this.permissions["tem_tab_edit"]; this.tem_tab_edit = this.permissions["tem_tab_edit"];
this.tem_tab_downLoad = this.permissions["tem_tab_downLoad"];
}, },
mounted() { mounted() {
this.zkhousePage(); this.zkhousePage();
}, },
methods: { methods: {
downLoad(){
let obj = {
houseId: this.houseId,
words: this.words,
};
// exportMethodPost()
},
houseChange() { houseChange() {
this.Page = 1; this.Page = 1;
this.words = ""; this.words = "";


+ 10
- 0
src/views/Template/wrongword.vue View File

@@ -49,6 +49,9 @@
>新增</el-button >新增</el-button
> >
</div> </div>
<div style="margin-left: auto;margin-right:10px;" v-if="tem_ww_downLoad">
<el-button @click="downLoad">导出</el-button>
</div>
</div> </div>
</div> </div>


@@ -134,6 +137,7 @@


<script> <script>
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
export default { export default {
data() { data() {
return { return {
@@ -180,12 +184,18 @@ export default {
this.tem_ww_add = this.permissions["tem_ww_add"]; this.tem_ww_add = this.permissions["tem_ww_add"];
this.tem_ww_del = this.permissions["tem_ww_del"]; this.tem_ww_del = this.permissions["tem_ww_del"];
this.tem_ww_edit = this.permissions["tem_ww_edit"]; this.tem_ww_edit = this.permissions["tem_ww_edit"];
this.tem_ww_downLoad = this.permissions["tem_ww_downLoad"];
}, },
mounted() { mounted() {
// 获取楼盘列表 // 获取楼盘列表
this.zkhousePage(); this.zkhousePage();
}, },
methods: { methods: {
downLoad(){
// this.searchForm
// exportMethodPost()
},

edit(row) { edit(row) {
this.ruleForm = Object.assign({}, row); this.ruleForm = Object.assign({}, row);
this.editFlag = true; this.editFlag = true;


+ 1
- 0
src/views/admin/user/index.vue View File

@@ -965,6 +965,7 @@ import {
putObj, putObj,
} from "@/api/admin/user"; } from "@/api/admin/user";
import { getStore, setStore } from "@/util/store"; import { getStore, setStore } from "@/util/store";
import { exportMethodPost} from "@/util/util";
import { deptRoleList } from "@/api/admin/role"; import { deptRoleList } from "@/api/admin/role";
import { fetchTree } from "@/api/admin/dept"; import { fetchTree } from "@/api/admin/dept";
import { tableOption } from "@/const/crud/admin/user"; import { tableOption } from "@/const/crud/admin/user";


+ 1
- 1
src/views/building/index.vue View File

@@ -802,7 +802,7 @@ export default {
serviceStatus: "", serviceStatus: "",
houseType: "", houseType: "",
timeType:'0', timeType:'0',
residueTime: 7,
// residueTime: 7,
startWorking: "", startWorking: "",
endWorking: "", endWorking: "",
agentName: "", agentName: "",


Loading…
Cancel
Save