Browse Source

init

newStyle
lancer 2 years ago
parent
commit
8521cb7726
15 changed files with 49 additions and 19 deletions
  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 View File

@@ -379,6 +379,12 @@ export function exportMethodPost(url, name, data = {}) {
responseType: "blob", responseType: "blob",
}) })
.then((res) => { .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 blob = new Blob([res], { type: "application/vnd.ms-excel" });
let date = new Date(); let date = new Date();
let time = date.toLocaleDateString(); let time = date.toLocaleDateString();


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

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


+ 21
- 0
src/views/Equipment/equipmentDetailList.vue View File

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


@@ -753,6 +756,7 @@
<script> <script>
import * as echarts from "echarts"; import * as echarts from "echarts";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
export default { export default {
data() { data() {
return { return {
@@ -874,6 +878,7 @@ export default {
}, },
created() { created() {
this.equ_ed_online = this.permissions["equ_ed_online"]; this.equ_ed_online = this.permissions["equ_ed_online"];
this.equ_ed_download = this.permissions["equ_ed_download"];
}, },
mounted() { mounted() {
// return; // return;
@@ -902,6 +907,22 @@ export default {
// this.getTableList() // this.getTableList()
}, },
methods: { 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(){ sysChange(){
this.selValue='0' this.selValue='0'
this.choicValue = ""; this.choicValue = "";


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

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


+ 5
- 5
src/views/Equipment/record.vue View File

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


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


+ 1
- 3
src/views/Equipment/state.vue View File

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


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

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


+ 1
- 1
src/views/Statistics/BuildingContrast.vue View File

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


+ 1
- 1
src/views/Statistics/ReceptionStatistical.vue View File

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


+ 1
- 1
src/views/Statistics/TheTeamCompared.vue View File

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


+ 4
- 2
src/views/Statistics/dataScreeSys.vue View File

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


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


// console.log(arr1,arr2); // console.log(arr1,arr2);


+ 3
- 3
src/views/Template/PinspeakwordsList.vue View File

@@ -47,9 +47,9 @@
>添加模板</el-button >添加模板</el-button
> >
</div> </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> <el-button @click="downLoad">导出</el-button>
</div>
</div> -->
</div> </div>
</div> </div>


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


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

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


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

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


edit(row) { edit(row) {


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

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


Loading…
Cancel
Save