Ver código fonte

init

newStyle
lancer 2 anos atrás
pai
commit
8521cb7726
15 arquivos alterados com 49 adições e 19 exclusões
  1. +6
    -0
      src/util/util.js
  2. +1
    -1
      src/views/Customer/index.vue
  3. +21
    -0
      src/views/Equipment/equipmentDetailList.vue
  4. +1
    -1
      src/views/Equipment/index.vue
  5. +5
    -5
      src/views/Equipment/record.vue
  6. +1
    -3
      src/views/Equipment/state.vue
  7. +1
    -1
      src/views/ReceivingRecords/index.vue
  8. +1
    -1
      src/views/Statistics/BuildingContrast.vue
  9. +1
    -1
      src/views/Statistics/ReceptionStatistical.vue
  10. +1
    -1
      src/views/Statistics/TheTeamCompared.vue
  11. +4
    -2
      src/views/Statistics/dataScreeSys.vue
  12. +3
    -3
      src/views/Template/PinspeakwordsList.vue
  13. +1
    -0
      src/views/Template/taboo.vue
  14. +1
    -0
      src/views/Template/wrongword.vue
  15. +1
    -0
      src/views/building/index.vue

+ 6
- 0
src/util/util.js Ver arquivo

@@ -379,6 +379,12 @@ export function exportMethodPost(url, name, data = {}) {
responseType: "blob",
})
.then((res) => {
console.log(res,'数据');
if(res.size==0){
this.$message.warning('当前报表没数据')
console.log('没数据');
return
}
let blob = new Blob([res], { type: "application/vnd.ms-excel" });
let date = new Date();
let time = date.toLocaleDateString();


+ 1
- 1
src/views/Customer/index.vue Ver arquivo

@@ -449,7 +449,7 @@ export default {
methods: {
downLoad(){
// this.searchForm
// exportMethodPost()
exportMethodPost('autoSR/customer/customerManagementExport','客户管理',this.searchForm)
},
// 跳转接待详情
Receivedetailsabout(row){


+ 21
- 0
src/views/Equipment/equipmentDetailList.vue Ver arquivo

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

@@ -753,6 +756,7 @@
<script>
import * as echarts from "echarts";
import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
export default {
data() {
return {
@@ -874,6 +878,7 @@ export default {
},
created() {
this.equ_ed_online = this.permissions["equ_ed_online"];
this.equ_ed_download = this.permissions["equ_ed_download"];
},
mounted() {
// return;
@@ -902,6 +907,22 @@ export default {
// this.getTableList()
},
methods: {
downLoad(){
// this.searchForm
let obj = {
startDate: this.page.openTime,
endDate: this.page.closeTime,
agentId: localStorage.getItem("orgType")==1?localStorage.getItem("agentId"):this.selValue == 0 ? this.houseId : null,
orgCode: localStorage.getItem("orgType")==2?localStorage.getItem("orgCode"):this.selValue == 1 ? this.houseId : null,
houseId: localStorage.getItem("orgType")==3?localStorage.getItem("houseId"):this.selValue == 2 ? this.houseId : null,
timeType: this.timeType,
orgType: localStorage.getItem("orgType"),
queryOrgType:this.selValue/1+1,
houseTypes: this.houseTypes,
};
obj.timeType == -1 ? (obj.timeType = "") : (obj.timeType = obj.timeType);
exportMethodPost('autoSR/zk/equipment/detail/equipmentCountDetailExport','设备使用统计',obj)
},
sysChange(){
this.selValue='0'
this.choicValue = "";


+ 1
- 1
src/views/Equipment/index.vue Ver arquivo

@@ -910,7 +910,7 @@ export default {
houseId: localStorage.getItem("houseId"),
...this.searchForm,
};
// exportMethodPost()
exportMethodPost('autoSR/zk/equipment/equipmentManagementExport','设备使用统计',obj)
},
//转写设置
zhuanxeishezhi(row){


+ 5
- 5
src/views/Equipment/record.vue Ver arquivo

@@ -50,9 +50,9 @@
<div style="margin-left: 20px">
<el-button @click="clascreen">清空筛选条件</el-button>
</div>
<!-- <div style="margin-left: 20px">
<div style="margin-right: 20px;margin-left:auto;">
<el-button @click="exportFile">导出</el-button>
</div> -->
</div>
</div>
</div>

@@ -196,14 +196,14 @@ export default {
this.equipReceiveFindByPage();
},
exportFile() {
this.exportMethodPost("autoSR/equipReceive/findByPage", "领用记录");
this.exportMethodPost("autoSR/equipReceive/pageExport", "领用记录",this.searchForm);
},
// 导出.Excel公用方法
exportMethodPost(url, name, data = {}) {
axios({
method: "post",
method: "get",
url: url,
data,
params:data,
responseType: "blob",
})
.then((res) => {


+ 1
- 3
src/views/Equipment/state.vue Ver arquivo

@@ -841,8 +841,6 @@ export default {
methods: {
downLoad(){
let obj = {
size: this.size,
current: this.currentPage,
timeType:2,
agentId: localStorage.getItem("orgType")==1?localStorage.getItem("agentId"):this.selValue == 0 ? this.choicValue : null,
orgCode: localStorage.getItem("orgType")==2?localStorage.getItem("orgCode"):this.selValue == 1 ? this.choicValue : null,
@@ -852,7 +850,7 @@ export default {
...this.searchForm,
houseTypes: this.houseTypes,
};
// exportMethodPost()
exportMethodPost('autoSR/zk/equipment/pageExport','设备监控',obj)
},
sysChange(){
this.choicValue=''


+ 1
- 1
src/views/ReceivingRecords/index.vue Ver arquivo

@@ -475,7 +475,7 @@ export default {
obj.dateType = this.searchForm.staDate
? null
: this.searchForm.dateType
// exportMethodPost()
exportMethodPost('autoSR/customer/pageExport','接待记录',obj)
},
// 跳转接待详情
Receivedetailsabout(row){


+ 1
- 1
src/views/Statistics/BuildingContrast.vue Ver arquivo

@@ -341,7 +341,7 @@ export default {
}else{
pamaet.dateType=this.TimetoAhoose
}
// exportMethodPost()
exportMethodPost('autoSR/cusStageStatistics/houseTableExport','楼盘对比',pamaet)
},
sysChange() {
this.gethouseData()


+ 1
- 1
src/views/Statistics/ReceptionStatistical.vue Ver arquivo

@@ -343,7 +343,7 @@ export default {
dateType: this.dateType == 7 ? null : this.dateType,
type:1
};
// exportMethodPost()
exportMethodPost('autoSR/cusStageStatistics/receptionStatisticsExport','接待统计',obj)
},
houseChange(){
this.customtime=[];


+ 1
- 1
src/views/Statistics/TheTeamCompared.vue Ver arquivo

@@ -326,7 +326,7 @@ export default {
}else{
pamaet.dateType=this.TimetoAhoose
}
// exportMethodPost()
exportMethodPost('autoSR/cusStageStatistics/teamTableExport','团队对比',pamaet)
},
zkhousePage() {
this.$api.api


+ 4
- 2
src/views/Statistics/dataScreeSys.vue Ver arquivo

@@ -1051,6 +1051,7 @@ export default {
let arr=[]
let Strname = [];
if(this.customtime1[0]){
Strname = ["时段一"];
arr = [
{
name: Strname[0],
@@ -1060,8 +1061,9 @@ export default {
},

];
Strname = ["时段一"];
}else{
Strname = ["时段一", "时段二"];
arr = [
{
name: Strname[0],
@@ -1076,7 +1078,7 @@ export default {
smooth: true,
},
];
Strname = ["时段一", "时段二"];
}

// console.log(arr1,arr2);


+ 3
- 3
src/views/Template/PinspeakwordsList.vue Ver arquivo

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

@@ -180,7 +180,7 @@ export default {
houseId:this.projectId,
status:this.statetest
}
// exportMethodPost()
},
goinfo(row){
this.nodelist=[]


+ 1
- 0
src/views/Template/taboo.vue Ver arquivo

@@ -159,6 +159,7 @@ export default {
words: this.words,
};
// exportMethodPost()
exportMethodPost('autoSR/sensitivewords/export','禁忌话术',obj)
},
houseChange() {
this.Page = 1;


+ 1
- 0
src/views/Template/wrongword.vue Ver arquivo

@@ -194,6 +194,7 @@ export default {
downLoad(){
// this.searchForm
// exportMethodPost()
exportMethodPost('autoSR/zk/correct/indexExport','常错词',this.searchForm)
},

edit(row) {


+ 1
- 0
src/views/building/index.vue Ver arquivo

@@ -967,6 +967,7 @@ export default {
this.searchForm.endWorking = this.starTime[1];
this.searchForm.serviceStatus = this.$route.query.serviceStatus;
this.searchForm.houseType = "0";
this.searchForm.timeType='1'
}
if(this.$route.query.time){
this.starTime=[this.$route.query.time,this.$route.query.time]


Carregando…
Cancelar
Salvar