Explorar el Código

解决代码丢失问题

newStyle
douzhuo hace 2 años
padre
commit
0ffeab62df
Se han modificado 29 ficheros con 194 adiciones y 87 borrados
  1. +0
    -3
      src/App.vue
  2. +2
    -0
      src/const/crud/admin/log.js
  3. +2
    -3
      src/router/axios.js
  4. +6
    -1
      src/views/Customer/AgentManagement.vue
  5. +7
    -2
      src/views/Customer/CompanyRecord.vue
  6. +6
    -1
      src/views/Customer/Companymanagement.vue
  7. +5
    -1
      src/views/Customer/SalesStage.vue
  8. +7
    -0
      src/views/Customer/index.vue
  9. +6
    -1
      src/views/Equipment/batch.vue
  10. +6
    -2
      src/views/Equipment/equipmentOnlineRecordList.vue
  11. +5
    -1
      src/views/Equipment/record.vue
  12. +6
    -0
      src/views/Equipment/state.vue
  13. +6
    -0
      src/views/File/index.vue
  14. +6
    -0
      src/views/ReceivingRecords/index.vue
  15. +6
    -0
      src/views/Scheduling/index.vue
  16. +1
    -1
      src/views/Statistics/BuildingContrast.vue
  17. +5
    -2
      src/views/Statistics/Insightintothedetails.vue
  18. +14
    -12
      src/views/Statistics/MentoringAbility.vue
  19. +6
    -6
      src/views/Statistics/ReceptionStatistical.vue
  20. +9
    -2
      src/views/Statistics/index.vue
  21. +7
    -2
      src/views/Template/PinspeakwordsList.vue
  22. +6
    -1
      src/views/Template/taboo.vue
  23. +6
    -1
      src/views/Template/wrongword.vue
  24. +21
    -19
      src/views/admin/log/log.vue
  25. +6
    -0
      src/views/admin/user/index.vue
  26. +8
    -8
      src/views/building/Count.vue
  27. +21
    -13
      src/views/building/index.vue
  28. +1
    -1
      src/views/houseData/count.vue
  29. +7
    -4
      vue.config.js

+ 0
- 3
src/App.vue Ver fichero

@@ -30,9 +30,6 @@ export default {
background-color: #2671E2 !important;
border-color: #2671E2 !important;
}
.el-scrollbar__wrap{
height: 100vh ;
}
.el-table__row{
font-size: 14px!important;
}


+ 2
- 0
src/const/crud/admin/log.js Ver fichero

@@ -1,6 +1,7 @@
export const tableOption = {
border: true,
index: true,
height: 527,
indexLabel: "序号",
stripe: true,
menuAlign: "center",
@@ -81,6 +82,7 @@ export const tableOption1 = {
index: true,
indexLabel: "序号",
stripe: true,
height: 527,
menuAlign: "center",
menuWidth: 150,
menu:false,


+ 2
- 3
src/router/axios.js Ver fichero

@@ -63,12 +63,11 @@ axios.interceptors.response.use(res => {
NProgress.done()
const status = Number(res.status) || 200
const message = res.data.msg || errorCode[status] || errorCode['default']

if (status === 401) {
if (status === 401 || status === 500) {
idx++
if(idx==1){
Message({
message: message,
message: '当前登录状态异常,请重新登录~',
type: 'error'
})
}


+ 6
- 1
src/views/Customer/AgentManagement.vue Ver fichero

@@ -56,7 +56,7 @@

<!-- 表格 -->
<div class="cen-tab">
<el-table :header-cell-style="{background:'#F5F7FA',color:'#333333'}" :data="tableData" stripe style="width: 100%">
<el-table ref="table" :header-cell-style="{background:'#F5F7FA',color:'#333333'}" :data="tableData" height="500px" stripe style="width: 100%">
<el-table-column :show-overflow-tooltip="true" width="120" prop="agentName" label="代理商" align="center">
</el-table-column>
<el-table-column :show-overflow-tooltip="true" width="140" prop="provinceName,cityName" label="地区"
@@ -1080,6 +1080,11 @@ export default {
.then((res) => {
this.tableData = res.data.records;
this.total = res.data.total;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
});
},
handleSizeChange(val) {


+ 7
- 2
src/views/Customer/CompanyRecord.vue Ver fichero

@@ -67,7 +67,7 @@

<!-- 表格 -->
<div class="cen-tab">
<el-table :header-cell-style="{background:'#F5F7FA',color:'#333333'}" :data="tableData" stripe style="width: 100%">
<el-table ref="table" :header-cell-style="{background:'#F5F7FA',color:'#333333'}" height="572px" :data="tableData" stripe style="width: 100%">
<el-table-column :show-overflow-tooltip="true" width="120px" prop="name" label="公司名称" align="center">
</el-table-column>
<el-table-column prop="operatorName" label="代理商" align="center">
@@ -180,7 +180,7 @@
</el-select>
</el-form-item> -->
<el-form-item label="详细地址:" prop="address">
<el-input v-model="addagentobj.address" placeholder="详细地址"type="textarea" maxlength="60" show-word-limit></el-input>
<el-input v-model="addagentobj.address" placeholder="详细地址" type="textarea" maxlength="60" show-word-limit></el-input>
</el-form-item>
<!-- <el-form-item label="运营人员:" prop="operationStaff">
<el-select v-model="addagentobj.operationStaff" placeholder="请选择">
@@ -1119,6 +1119,11 @@ export default {
console.log(res.data);
this.tableData = res.data.records;
this.total = res.data.total;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
});
},
handleSizeChange(val) {


+ 6
- 1
src/views/Customer/Companymanagement.vue Ver fichero

@@ -86,7 +86,7 @@

<!-- 表格 -->
<div class="cen-tab">
<el-table :header-cell-style="{background:'#F5F7FA',color:'#333333'}" :data="tableData" stripe style="width: 100%">
<el-table :header-cell-style="{background:'#F5F7FA',color:'#333333'}" height="572px" ref="table" :data="tableData" stripe style="width: 100%">
<el-table-column prop="name" label="公司名称" align="center">
</el-table-column>
<el-table-column
@@ -997,6 +997,11 @@ export default {
console.log(res.data);
this.tableData = res.data.records;
this.total = res.data.total;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
});
},
locationsChange1(e) {


+ 5
- 1
src/views/Customer/SalesStage.vue Ver fichero

@@ -38,7 +38,7 @@
</div>
<!-- 表格 -->
<div class="cen-tab">
<el-table :data="tableData" stripe style="width: 100%" :header-cell-style="{background:'#F5F7FA',color:'#333333'}">
<el-table :data="tableData" height="527px" ref="table" stripe style="width: 100%" :header-cell-style="{background:'#F5F7FA',color:'#333333'}">
<el-table-column prop="houseName" label="项目名称" align="center">
</el-table-column>
<el-table-column prop="stageName" label="阶段名称" align="center">
@@ -162,6 +162,10 @@ computed: {
};
this.$api.api.lifeTrackDefineList(obj).then((res) => {
this.tableData = res.data;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
});
},
//删除


+ 7
- 0
src/views/Customer/index.vue Ver fichero

@@ -271,6 +271,8 @@
<div class="cen-tab">
<el-table
:data="tableData"
height="572px"
ref="table"
stripe
style="width: 100%"
@selection-change="handleSelectionChange"
@@ -704,6 +706,11 @@ export default {
// console.log(res)
this.tableData = res.data.records;
this.total = res.data.total;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
});
},
clearScreen() {


+ 6
- 1
src/views/Equipment/batch.vue Ver fichero

@@ -31,7 +31,8 @@
<el-table
:data="tableData"
stripe
height="390"
ref="table"
height="550px"
style="width: 100%">
<el-table-column
prop="batchId"
@@ -261,6 +262,10 @@ export default {
console.log(res.data);
this.tableData=res.data.records;
this.total=res.data.total
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
});
},
handleSizeChange(val) {


+ 6
- 2
src/views/Equipment/equipmentOnlineRecordList.vue Ver fichero

@@ -97,7 +97,7 @@
</div>
<div class="tablebox" v-if="activeTotal == 0">
<template>
<el-table :data="tableData" style="width: 100%" :header-cell-style="{background:'#F5F7FA',color:'#333333'}">
<el-table height="450px" :data="tableData" ref="table" style="width: 100%" :header-cell-style="{background:'#F5F7FA',color:'#333333'}">
<el-table-column prop="index" label="序号" width="100" align="center">
</el-table-column>
<el-table-column prop="imei" label="设备编号" align="center">
@@ -223,7 +223,7 @@
</div>
<div class="tablebox" v-if="activeTotal == 1">
<template>
<el-table :data="tableData" style="width: 100%" :header-cell-style="{background:'#F5F7FA',color:'#333333'}">
<el-table height="450px" :data="tableData" style="width: 100%" :header-cell-style="{background:'#F5F7FA',color:'#333333'}">
<el-table-column prop="index" label="序号" width="100" align="center">
</el-table-column>
<el-table-column prop="imei" label="设备编号" align="center">
@@ -537,6 +537,10 @@ export default {
});
this.tableData = res.data.records;
this.page.total = res.data.total;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
});
},
},


+ 5
- 1
src/views/Equipment/record.vue Ver fichero

@@ -58,7 +58,7 @@

<!-- 表格 -->
<div class="cen-tab">
<el-table :data="tableData" stripe style="width: 100%" height="640" :header-cell-style="{background:'#F5F7FA',color:'#333333'}">
<el-table :data="tableData" ref="table" stripe style="width: 100%" height="540" :header-cell-style="{background:'#F5F7FA',color:'#333333'}">
<el-table-column prop="equipImei" label="设备编号" align="center">
</el-table-column>
<el-table-column prop="userName" label="领用人" align="center">
@@ -251,6 +251,10 @@ export default {
// console.log(res);
this.tableData = res.data.records;
this.total = res.data.total;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
});
},
handleSelectionChange(val) {


+ 6
- 0
src/views/Equipment/state.vue Ver fichero

@@ -342,6 +342,8 @@
</div>
<el-table
:data="tableData"
ref="table"
height="527px"
stripe
@selection-change="handleSelectionChange"
style="width: 100%"
@@ -1101,6 +1103,10 @@ export default {
this.offLineCount = res.data.offLineCount;
this.workingCount = res.data.workingCount;
this.total = res.data.list.total;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
});
},
valuechange() {


+ 6
- 0
src/views/File/index.vue Ver fichero

@@ -40,6 +40,8 @@
<el-table
:data="tableData"
stripe
ref="table"
height="527px"
style="width: 100%">
<el-table-column
type="selection"
@@ -245,6 +247,10 @@ export default {
})
this.tableData=res.data.records;
this.total=res.data.total
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
})
},
handleSizeChange(val) {


+ 6
- 0
src/views/ReceivingRecords/index.vue Ver fichero

@@ -305,7 +305,9 @@
<div class="cen-tab">
<el-table
:header-cell-style="{ background: '#F5F7FA', color: '#333333' }"
ref="table"
:data="tableData"
height="550px"
stripe
style="width: 100%"
>
@@ -754,6 +756,10 @@ export default {
// console.log(res)
this.tableData = res.data.records;
this.total = res.data.total;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
});
},
clearScreen() {


+ 6
- 0
src/views/Scheduling/index.vue Ver fichero

@@ -84,6 +84,8 @@
<div class="cen-tab">
<el-table
:data="tableData"
ref="table"
height="572px"
stripe
@selection-change="handleSelectionChange"
style="width: 100%"
@@ -522,6 +524,10 @@ export default {
console.log(res);
this.tableData = res.data.records;
this.total = res.data.total;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
});
},
screening(){


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

@@ -67,7 +67,7 @@

<!-- 表格 -->
<div class="cen-tab">
<el-table :header-cell-style="{background:'#F5F7FA',color:'#333333'}" :data="tableData" stripe style="width: 100%" @sort-change="customTabLast">
<el-table height="527px" :header-cell-style="{background:'#F5F7FA',color:'#333333'}" :data="tableData" stripe style="width: 100%" @sort-change="customTabLast">
<el-table-column prop="batchId" label="序号" align="center">
<template slot-scope="scope">
{{


+ 5
- 2
src/views/Statistics/Insightintothedetails.vue Ver fichero

@@ -163,12 +163,15 @@ export default {
// 权限
this.sta_idx_download = this.permissions["sta_idx_download"];
var isnull=this.$route.query.flag;
this.TimetoAhoose=isnull.TimetoAhoose;
this.customtime=isnull.customtime;
if (isnull.TimetoAhoose) this.TimetoAhoose=isnull.TimetoAhoose;
if (isnull.customtime) this.customtime=isnull.customtime;
this.fromobj.starttime=isnull.starttime;
this.fromobj.endoftime=isnull.endoftime;
this.fromobj.projectId=isnull.houseId;
this.fromobj.keywords=isnull.keywordsId;
if (!isnull.TimetoAhoose && isnull.starttime && isnull.endoftime) {
this.TimetoAhoose = 6
}
this.Accesstolevel()
},
computed: {


+ 14
- 12
src/views/Statistics/MentoringAbility.vue Ver fichero

@@ -122,10 +122,7 @@
</div>
</div>

<div
:style="{ 'margin-top': role != 3 ? '150px' : '110px' }"
v-if="consultantlistid"
>
<div v-if="consultantlistid">
<div class="app-box-san">
<div class="zuo">
<div class="title">
@@ -340,7 +337,9 @@
<el-table
:header-cell-style="{ background: '#F5F7FA', color: '#333333' }"
:data="tableData"
height="527px"
stripe
ref="table"
style="width: 100%"
>
<el-table-column prop="statDate" label="日期" align="center">
@@ -686,6 +685,10 @@ export default {
})
.then((res) => {
this.tableData = res.data.records;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
// 数据处理
// 需要两个数组,一个用来展示
this.deailDate();
@@ -1292,9 +1295,9 @@ export default {
//切换时间
tabtimetap(index) {
this.TimetoAhoose = index;
if (index == 0) {
this.customtime = []
this.customtime = [];
}
if (index == 4) {
let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7;
@@ -1388,17 +1391,16 @@ export default {
.app-top {
// width: 100%;
// width: calc(100% - 270px);
position: fixed;
position: sticky;
top: 0;
z-index: 999;
margin-top: -16px;
// margin-top: -16px;
background: #ffffff;
box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.04);
box-shadow: 0px 0px 10px 0px #dadada;
border-radius: 4px;
padding-top: 15px;
padding-bottom: 15px;
left: 255px;
right: 15px;
.app-titel {
width: 100%;
display: flex;
@@ -1567,13 +1569,13 @@ export default {
height: 500px;
background: #fff;
text-align: center;
margin-top: 110px;
margin-top: 20px;
overflow: hidden;
}
.imgboxc {
margin-top: 100px;
color: #999999;
.imgboxc-img{
.imgboxc-img {
width: 120px;
height: 120px;
}


+ 6
- 6
src/views/Statistics/ReceptionStatistical.vue Ver fichero

@@ -115,12 +115,7 @@
</div>
<!-- 表格 -->
<div class="cen-tab">
<el-table
:header-cell-style="{ background: '#F5F7FA', color: '#333333' }"
:data="tableData"
style="width: 100%"
@sort-change="customTabLast"
>
<el-table @sort-change="customTabLast" ref="table" height="527px" :header-cell-style="{background:'#F5F7FA',color:'#333333'}" :data="tableData" style="width: 100%">
<el-table-column prop="batchId" width="120" label="序号" align="center">
<template slot-scope="scope">
{{
@@ -560,6 +555,11 @@ export default {
})
.then((res) => {
this.tableData = res.data.records;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
// 数据处理
// 需要两个数组,一个用来展示
this.deailDate();


+ 9
- 2
src/views/Statistics/index.vue Ver fichero

@@ -335,13 +335,18 @@ export default {
},
Toview(item, index) {
let Userrecord = {
TimetoAhoose: this.TimetoAhoose,
keywordsId: item.matchKeywords[index].keywordsId,
customtime: this.customtime,
starttime: this.fromobj.starttime,
endoftime: this.fromobj.endoftime,
houseId: this.houseId,
};
if (this.TimetoAhoose == 0) {
Userrecord.TimetoAhoose = this.TimetoAhoose
}
if (this.TimetoAhoose == 4) {
Userrecord.TimetoAhoose = 2
}
this.$router.push({
path: "/Statistics/Insightintothedetails",
query: { flag: Userrecord },
@@ -464,6 +469,7 @@ export default {
legend: {
show: true,
bottom: "0",
type: 'scroll',
},
graphic: [
{
@@ -501,8 +507,9 @@ export default {
name: "",
type: "pie",
radius: ["48%", "70%"],
avoidLabelOverlap: false,
avoidLabelOverlap: true,
data: objoptlis,
},
],
};


+ 7
- 2
src/views/Template/PinspeakwordsList.vue Ver fichero

@@ -31,7 +31,7 @@

<!-- 表格 -->
<div class="cen-tab">
<el-table :header-cell-style="{background:'#F5F7FA',color:'#333333'}" :data="tableData" stripe style="width: 100%">
<el-table :header-cell-style="{background:'#F5F7FA',color:'#333333'}" height="572px" ref="table" :data="tableData" stripe style="width: 100%">
<el-table-column prop="houseName" label="项目名称" align="center">
</el-table-column>
<el-table-column prop="name" label="状态" align="center">
@@ -315,7 +315,12 @@ export default {
}
this.$api.http.templatefindByPage(parmest).then((res) => {
this.tableData = res.data.records;
this.total = res.data.total
this.total = res.data.total;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
});
},
//templatedel删除模板


+ 6
- 1
src/views/Template/taboo.vue Ver fichero

@@ -47,7 +47,7 @@

<!-- 表格 -->
<div class="cen-tab">
<el-table :header-cell-style="{background:'#F5F7FA',color:'#333333'}" :data="tableData" stripe style="width: 100%">
<el-table :header-cell-style="{background:'#F5F7FA',color:'#333333'}" height="572px" ref="table" :data="tableData" stripe style="width: 100%">
<el-table-column prop="words" label="敏感词" align="center">
</el-table-column>
<el-table-column prop="houseName" label="项目名称" align="center">
@@ -201,6 +201,11 @@ export default {
return item.words;
});
this.total = res.data.total;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
});
},
screening() {


+ 6
- 1
src/views/Template/wrongword.vue Ver fichero

@@ -63,7 +63,7 @@

<!-- 表格 -->
<div class="cen-tab">
<el-table :header-cell-style="{background:'#F5F7FA',color:'#333333'}" :data="tableData" stripe style="width: 100%">
<el-table :header-cell-style="{background:'#F5F7FA',color:'#333333'}" height="572px" ref="table" :data="tableData" stripe style="width: 100%">
<el-table-column type="index" label="序号" width="50">
</el-table-column>
<el-table-column prop="correctWord" label="正确词" align="center">
@@ -417,6 +417,11 @@ export default {
this.total = res.data.total;

console.log(this.mistakenList, this.correctList);
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
});
},
addinfo() {


+ 21
- 19
src/views/admin/log/log.vue Ver fichero

@@ -3,6 +3,7 @@
<div class="log">
<basic-container>
<avue-crud
height="100px"
ref="crud"
:page.sync="page"
:data="tableData"
@@ -25,7 +26,7 @@
import { delObj, fetchList1 } from "@/api/admin/log";
import { tableOption } from "@/const/crud/admin/log";
import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
import { exportMethodPost } from "@/util/util";

export default {
name: "Log",
@@ -41,7 +42,7 @@ export default {
flag: "1",
name: "",
params: "",
title:''
title: "",
},
page: {
total: 0, // 总页数
@@ -60,22 +61,23 @@ export default {
};
},
},
created() {
created() {
this.admin_log_downLoad = this.permissions["admin_log_downLoad"];
},
methods: {
downLoad(){
let obj=Object.assign(
{
descs: "create_time",
orgType: localStorage.getItem("orgType"),
orgCode: localStorage.getItem("orgCode"),
agentId: localStorage.getItem("agentId"),
houseId: localStorage.getItem("houseId"),
},
this.searchForm)
downLoad() {
let obj = Object.assign(
{
descs: "create_time",
orgType: localStorage.getItem("orgType"),
orgCode: localStorage.getItem("orgCode"),
agentId: localStorage.getItem("agentId"),
houseId: localStorage.getItem("houseId"),
},
this.searchForm
);
// exportMethodPost()
exportMethodPost('/admin/log/operateLogPageExport','操作日志',obj)
exportMethodPost("/admin/log/operateLogPageExport", "操作日志", obj);
},
selChange(e) {
this.value = "";
@@ -117,10 +119,10 @@ export default {
remoteAddr: "",
name: "",
params: "",
title:''
title: "",
};
this.value = "";
this.time=[]
this.time = [];
this.getList(this.page);
},
timeChange(e) {
@@ -227,8 +229,8 @@ export default {
.div-inp {
width: 250px;
}
/deep/ .el-button--primary{
background: #2671E2 !important;
border: 1px solid #2671E2 !important;
/deep/ .el-button--primary {
background: #2671e2 !important;
border: 1px solid #2671e2 !important;
}
</style>

+ 6
- 0
src/views/admin/user/index.vue Ver fichero

@@ -190,6 +190,8 @@
<div v-if="choseFlag">
<el-table
:data="tableData"
ref="table"
height="533px"
border
@selection-change="handleSelectionChange"
style="width: 100%"
@@ -1726,6 +1728,10 @@ export default {
if (res.code == 0) {
this.tableData1 = res.data.records;
this.page.total = res.data.total;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
} else {
this.$message.waring(res.msg);
}


+ 8
- 8
src/views/building/Count.vue Ver fichero

@@ -1,11 +1,6 @@
<template>
<div class="box-center">
<div style="
width: calc(100% - 270px);
position: fixed;
z-index: 999;
margin-top: -16px;
">
<div>
<div class="toptab" style="cursor: pointer" v-if="orgType != 2">
<div @click="tapclickyab(0)" :class="{ activecllasscet: activeTotal == 0 }"
:style="{ background: activeTotal == 0 ? '#2671E2' : '#ffffff' }">
@@ -125,12 +120,13 @@
<el-button @click="downLoad" icon="el-icon-download">导出</el-button>
</div>
</div>
</div>
</div>

<!-- 表格 -->
<div class="cen-tab" :style="{ marginTop: orgType != 2 ? '230px' : '170px' }">
<el-table :header-cell-style="{ background: '#F5F7FA', color: '#333333' }" v-if="activeTotal == 0" :data="tableData"
<div class="cen-tab">
<el-table height="427px" ref="table" :header-cell-style="{ background: '#F5F7FA', color: '#333333' }" v-if="activeTotal == 0" :data="tableData"
stripe style="width: 100%">
<el-table-column prop="propertyName" width="120" label="项目名称" align="center">
</el-table-column>
@@ -620,6 +616,10 @@ export default {
// console.log(res);
this.tableData = res.data.records;
this.total = res.data.total;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
});
}
},


+ 21
- 13
src/views/building/index.vue Ver fichero

@@ -246,19 +246,8 @@

<!-- 表格 -->
<div class="cen-tab">
<el-table
:header-cell-style="{ background: '#F5F7FA', color: '#333333' }"
:data="tableData"
stripe
style="width: 100%"
>
<el-table-column
prop="propertyName"
:show-overflow-tooltip="true"
width="120px"
label="项目名称"
align="center"
>
<el-table :header-cell-style="{background:'#F5F7FA',color:'#333333'}" :data="tableData" ref="table" height="572px" stripe style="width: 100%">
<el-table-column prop="propertyName" :show-overflow-tooltip="true" width="120px" label="项目名称" align="center">
</el-table-column>

<el-table-column
@@ -579,6 +568,9 @@
clearable
></el-input>
</el-form-item>
<el-form-item label="接待时长" prop="linkman">
<el-input v-model="ruleForm.closeTime" maxlength="10" placeholder="接待时长(分钟)" clearable></el-input>
</el-form-item>
<el-form-item label="联系手机" prop="linkmanPhone">
<el-input
v-model="ruleForm.linkmanPhone"
@@ -1059,6 +1051,7 @@ export default {
cityId: "", //市id
agentId: localStorage.getItem("agentId"),
time: "22:00", // 日报推送时间
closeTime: '120', // 接待时长(自动结束)
},
ruleForm1: {},
optionsagentId: [],
@@ -1339,6 +1332,16 @@ export default {
return;
}
this.loadingFlag = true;
if (this.ruleForm.closeTime && this.ruleForm.closeTime < 30) {
this.$message.error('自动结束接待时长限制最小为30分钟')
this.loadingFlag = false;
return
}
if (this.ruleForm.closeTime && this.ruleForm.closeTime > 720) {
this.$message.error('自动结束接待时长限制最大为720分钟')
this.loadingFlag = false;
return
}
// 编辑
if (this.editFlag) {
this.$api.api
@@ -1581,6 +1584,11 @@ export default {
this.$api.api.zkhousePage(obj).then((res) => {
// console.log(res)
this.tableData = res.data.records;
// 表格中设置ref属性,在数据渲染之后或者updated()之后
this.$nextTick(() => {
this.$refs.table.doLayout();
});
this.total = res.data.total;
});
},


+ 1
- 1
src/views/houseData/count.vue Ver fichero

@@ -54,7 +54,7 @@

<!-- 表格 -->
<div class="cen-tab">
<el-table :header-cell-style="{background:'#F5F7FA',color:'#333333'}" :data="tableData" stripe style="width: 100%" height="640">
<el-table height="527px" :header-cell-style="{background:'#F5F7FA',color:'#333333'}" :data="tableData" stripe style="width: 100%">
<el-table-column prop="operationName" label="运营" align="center" sortable></el-table-column>
<el-table-column prop="houseQuantityInService" label="项目数" width="120" align="center" sortable></el-table-column>
<el-table-column prop="wrongWordAddCount" width="120" label="常错词添加数" align="center" sortable></el-table-column>


+ 7
- 4
vue.config.js Ver fichero

@@ -3,11 +3,14 @@
* https://cli.vuejs.org/zh/config/
*/
// const url = 'http://192.168.31.161:9999' //长龙
// const url = 'http://192.168.31.147:9999' // 胜浩
// const url = 'https://zanyong.hfju.com' // 正式域名
// const url = 'http://192.168.31.149:9999' // 胜浩
// const url = 'http://127.0.0.1:9999' // 本地
const url = 'http://81.70.55.170:9999' // 新测试
// const url = 'http://82.156.35.22:9999' // 新正式ip

const url = 'http://81.70.55.170:9999' // 测试服务器

// const url = 'http://62.234.122.43:9999' //正式服务器1
// const url = 'http://82.156.35.22:9999' // 正式服务器2
// const url = 'https://zanyong.hfju.com' // 正式域名
const CompressionWebpackPlugin = require('compression-webpack-plugin')
const productionGzipExtensions = ['js', 'css']
module.exports = {


Cargando…
Cancelar
Guardar