@@ -1,7 +1,15 @@ | |||
<template> | |||
<div class="box-center"> | |||
<!-- 顾问 --> | |||
<div | |||
v-if="isAdviser" | |||
style="text-align: center; font-size: 30px; margin: 300px auto" | |||
> | |||
欢迎光临 | |||
</div> | |||
<div class="house-only" v-if="isHouse"> | |||
<!-- 项目后台 --> | |||
<!-- 楼盘后台 --> | |||
<div class="app-titel"> | |||
<div class="titel-text">时间</div> | |||
<div class="toptimeqhuan"> | |||
@@ -464,7 +472,7 @@ | |||
</div> | |||
<div class="pagechen" @click="jumpto('2')"> | |||
<div class="pageboxtitle1">45天到期的项目</div> | |||
<div class="pageboxtitle1">45天到期的楼盘</div> | |||
<div class="pageboxtitle3"> | |||
{{ sysTop.matuityOfHouse || 0 }} | |||
</div> | |||
@@ -520,7 +528,7 @@ | |||
<!-- 卡片部分 --> | |||
<div class="page-container"> | |||
<div class="pagechen"> | |||
<div class="pageboxtitle1">新增项目数</div> | |||
<div class="pageboxtitle1">新增楼盘数</div> | |||
<div class="pageboxtitle2"> | |||
<div class="span1">{{ sysSec.newAddHouseQuantity || 0 }}</div> | |||
<div class="span2"> | |||
@@ -539,7 +547,7 @@ | |||
</div> | |||
</div> | |||
<div class="pagechen"> | |||
<div class="pageboxtitle1">活跃项目数</div> | |||
<div class="pageboxtitle1">活跃楼盘数</div> | |||
<div class="pageboxtitle2"> | |||
<div class="span1">{{ sysSec.activeHouseQuantity || 0 }}</div> | |||
<div class="span2"> | |||
@@ -926,7 +934,7 @@ | |||
</div> | |||
<div class="pagechen"> | |||
<div class="pageboxtitle1">活跃项目数</div> | |||
<div class="pageboxtitle1">活跃楼盘数</div> | |||
<div class="pageboxtitle2"> | |||
<div class="span1">{{ sysSec.activeHouseQuantity || 0 }}</div> | |||
<div class="span2"> | |||
@@ -951,7 +959,7 @@ | |||
<div class="zuo"> | |||
<div class="title1" style="cursor: pointer"> | |||
<div> | |||
{{ role == 2 ? "项目排名(TOP10)" : "公司排名(TOP10)" }} | |||
{{ role == 2 ? "楼盘排名(TOP10)" : "公司排名(TOP10)" }} | |||
</div> | |||
<div style="display: flex"> | |||
<div | |||
@@ -980,7 +988,7 @@ | |||
>> | |||
<el-table-column | |||
prop="companyName" | |||
:label="role == 2 ? '项目名称' : '公司名称'" | |||
:label="role == 2 ? '楼盘名称' : '公司名称'" | |||
align="center" | |||
> | |||
<template slot-scope="{ row }"> | |||
@@ -1018,7 +1026,7 @@ | |||
<div class="you"> | |||
<div class="title1" style="cursor: pointer"> | |||
<div> | |||
{{ role == 2 ? "顾问排名(TOP10)" : "项目排名(TOP10)" }} | |||
{{ role == 2 ? "顾问排名(TOP10)" : "楼盘排名(TOP10)" }} | |||
</div> | |||
<div style="display: flex"> | |||
<div | |||
@@ -1048,7 +1056,7 @@ | |||
>> | |||
<el-table-column | |||
prop="houseName" | |||
:label="role == 2 ? '顾问名称' : '项目名称'" | |||
:label="role == 2 ? '顾问名称' : '楼盘名称'" | |||
align="center" | |||
> | |||
<template slot-scope="{ row }"> | |||
@@ -1100,7 +1108,7 @@ export default { | |||
houseId: "", | |||
houseList: [], | |||
houseRank: [], | |||
allHouseRank: {}, // 全部的项目排名 | |||
allHouseRank: {}, // 全部的楼盘排名 | |||
companyRank: [], | |||
allCompanyRank: {}, // 全部的排名列表 | |||
classatec: 1, | |||
@@ -1136,30 +1144,29 @@ export default { | |||
computed: { | |||
...mapGetters(["permissions"]), | |||
// 获取用户信息 | |||
// 获取用户信息 | |||
userInfo() { | |||
return this.$store.state.user.userInfo | |||
return this.$store.state.user.userInfo; | |||
}, | |||
// 是否楼盘后台 | |||
isHouse() { | |||
return this.userInfo.userRoleType == null && this.role == 3 | |||
return this.userInfo.userRoleType == null && this.role == 3; | |||
}, | |||
// 是否系统后台 | |||
isSystem() { | |||
return this.role != 3 && this.userInfo.userRoleType == 1 | |||
return this.role != 3 && this.userInfo.userRoleType == 1; | |||
}, | |||
// 是否顾问 | |||
isAdviser() { | |||
return this.userInfo.userRoleType == 6 | |||
} | |||
return this.userInfo.userRoleType == 6; | |||
}, | |||
}, | |||
mounted() { | |||
this.role = localStorage.getItem("orgType"); | |||
if (this.role == 3) { | |||
this.houseId = localStorage.getItem("houseId"); | |||
this.getgicd(); | |||
@@ -1279,7 +1286,7 @@ export default { | |||
let gettime = yy + "-" + mm + "-" + dd; | |||
return gettime; | |||
}, | |||
//切换项目 | |||
//切换楼盘 | |||
houseChange() { | |||
this.TimetoAhoose = 0; | |||
this.statDateStart = ""; | |||
@@ -1324,7 +1331,7 @@ export default { | |||
}); | |||
}, | |||
// 选择公司类型切换 classatec1 公司/项目 classatec2 项目/顾问 | |||
// 选择公司类型切换 classatec1 公司/楼盘 classatec2 楼盘/顾问 | |||
chooseCompanyRank(keys, index) { | |||
this[keys] = index; | |||
console.log(keys); | |||
@@ -1360,7 +1367,7 @@ export default { | |||
} | |||
}, | |||
//获取项目 | |||
//获取楼盘 | |||
zkhousePage() { | |||
this.$api.api | |||
.findHouseByUser({ | |||
@@ -1777,3 +1784,4 @@ export default { | |||
top: 10px; | |||
} | |||
</style> | |||
Powered by Gitea 当前版本: 1.12.4 页面: 104ms 模板: 8ms JavaScript licenses API 官方网站 Go1.14.8 |
@@ -128,11 +128,7 @@ | |||
<el-option | |||
v-for="item in keywordsList" | |||
:key="item.keywordsId" | |||
:label=" | |||
item.isInterval == 0 | |||
? item.name + '-' + item.endName + item.unit | |||
: item.name | |||
" | |||
:label="item.name" | |||
:value="item.keywordsId" | |||
> | |||
</el-option> | |||
@@ -319,7 +315,12 @@ | |||
{{ row.clientStageName || "--" }} | |||
</template> | |||
</el-table-column> | |||
<el-table-column prop="pickCount" label="客户标签命中数" width="150" align="center"></el-table-column> | |||
<el-table-column | |||
prop="pickCount" | |||
label="客户标签命中数" | |||
width="150" | |||
align="center" | |||
></el-table-column> | |||
<el-table-column prop="visitRecord" label="到访次数" align="center"> | |||
<template slot-scope="{ row }"> | |||
{{ row.visitRecord || "0" }} | |||
@@ -679,6 +680,7 @@ export default { | |||
...this.searchForm, | |||
}; | |||
obj.keywordIds = obj.keywordsId.join(","); | |||
console.log(obj, '入参') | |||
obj.sensitiveWords = JSON.stringify(obj.sensitiveWords); | |||
(obj.dateType = this.searchForm.staDate | |||
? null | |||
@@ -729,7 +731,6 @@ export default { | |||
houseId: this.searchForm.projectId, | |||
}; | |||
this.$api.api.sensitivewordsList(obj).then((res) => { | |||
console.log(res, "suhju"); | |||
this.sensitiveList = res.data; | |||
}); | |||
}, | |||
@@ -762,6 +763,7 @@ export default { | |||
type: this.type, | |||
}) | |||
.then((res) => { | |||
console.log(res, "画像标签"); | |||
this.keywordsList = res.data; | |||
}); | |||
}, | |||
@@ -803,7 +805,7 @@ export default { | |||
this.searchForm.endDate = ""; | |||
// this.$set(this, "time", null); | |||
this.searchForm.dateType = idx; | |||
this.time = '' | |||
this.time = ""; | |||
this.houseChange(); | |||
}, | |||
timestampToTime(timestamp) { | |||
@@ -9,6 +9,7 @@ | |||
<el-select | |||
v-model="houseId" | |||
placeholder="请选择" | |||
filterable | |||
@change="houseChange" | |||
> | |||
<el-option | |||
@@ -5,7 +5,7 @@ | |||
<div class="app-titel" v-if="role!=3" style="margin-bottom:10px;"> | |||
<div class="titel-text">项目选择:</div> | |||
<div style="margin-left: 26px"> | |||
<el-select v-model="houseId" placeholder="请选择" @change="houseChange"> | |||
<el-select v-model="houseId" placeholder="请选择" filterable @change="houseChange"> | |||
<el-option | |||
v-for="item in houseList" | |||
:key="item.id" | |||
@@ -8,6 +8,7 @@ | |||
<el-select | |||
v-model="houseId" | |||
placeholder="请选择" | |||
filterable | |||
@change="houseChange" | |||
> | |||
<el-option | |||
@@ -297,7 +297,7 @@ export default { | |||
if(res.code==0){ | |||
this.$message({ | |||
type: 'success', | |||
message: '启用成功!' | |||
message: res.msg | |||
}); | |||
this.getcompanyList() | |||
}else{ | |||
@@ -2,7 +2,7 @@ | |||
<div class="box-center"> | |||
<!-- 头 --> | |||
<div class="app-top"> | |||
<div class="app-titel" v-if="orgType!=3"> | |||
<div class="app-titel" v-if="orgType != 3"> | |||
<div class="label" style="color: #32363d; font-weight: 400"> | |||
项目选择: | |||
</div> | |||
@@ -27,29 +27,35 @@ | |||
<div class="app-titel" style="margin-top: 10px"> | |||
<div class="label">正确词:</div> | |||
<div> | |||
<el-input maxlength="8" clearable v-model="searchForm.correctWord"></el-input> | |||
<el-input | |||
maxlength="8" | |||
clearable | |||
v-model="searchForm.correctWord" | |||
></el-input> | |||
</div> | |||
<div class="label">错误词:</div> | |||
<div> | |||
<el-input maxlength="8" clearable v-model="searchForm.wrongWord"></el-input> | |||
<el-input | |||
maxlength="8" | |||
clearable | |||
v-model="searchForm.wrongWord" | |||
></el-input> | |||
</div> | |||
<div style="margin-left: 20px"> | |||
<el-button type="primary" @click="screen" | |||
>筛选</el-button | |||
> | |||
<el-button type="primary" @click="screen">筛选</el-button> | |||
</div> | |||
<div style="margin-left: 20px"> | |||
<el-button @click="clascreen">清空筛选条件</el-button> | |||
</div> | |||
<div style="margin-left: 20px"> | |||
<el-button | |||
@click="addinfo()" | |||
type="primary" | |||
v-if="tem_ww_add" | |||
<el-button @click="addinfo()" type="primary" v-if="tem_ww_add" | |||
>新增</el-button | |||
> | |||
</div> | |||
<div style="margin-left: auto;margin-right:10px;" v-if="tem_ww_downLoad"> | |||
<div | |||
style="margin-left: auto; margin-right: 10px" | |||
v-if="tem_ww_downLoad" | |||
> | |||
<el-button @click="downLoad">导出</el-button> | |||
</div> | |||
</div> | |||
@@ -73,8 +79,12 @@ | |||
<!-- scope --> | |||
<el-table-column label="操作" align="center"> | |||
<template slot-scope="{ row }"> | |||
<el-button v-if="tem_ww_edit" type="text" @click="edit(row)">修改</el-button> | |||
<el-button v-if="tem_ww_del" type="text" @click="del(row)">删除</el-button> | |||
<el-button v-if="tem_ww_edit" type="text" @click="edit(row)" | |||
>修改</el-button | |||
> | |||
<el-button v-if="tem_ww_del" type="text" @click="del(row)" | |||
>删除</el-button | |||
> | |||
</template> | |||
</el-table-column> | |||
</el-table> | |||
@@ -106,26 +116,37 @@ | |||
style="width: 60%; margin: 0 auto" | |||
> | |||
<el-form-item label="正确词" prop="correctWord"> | |||
<el-input v-model="ruleForm.correctWord" maxlength="8" clearable></el-input> | |||
<el-input | |||
v-model="ruleForm.correctWord" | |||
maxlength="8" | |||
clearable | |||
></el-input> | |||
</el-form-item> | |||
<el-form-item label="错误词" prop="wrongWord"> | |||
<el-input v-model="ruleForm.wrongWord" maxlength="8" clearable></el-input> | |||
<el-input | |||
v-model="ruleForm.wrongWord" | |||
maxlength="8" | |||
clearable | |||
></el-input> | |||
</el-form-item> | |||
</el-form> | |||
<div slot="footer" class="dialog-footer"> | |||
<el-button @click="dialogVisible = false">取 消</el-button> | |||
<el-button type="primary" :loading="loadingFlag" @click="addSure()">保存</el-button> | |||
<el-button type="primary" :loading="loadingFlag" @click="addSure()" | |||
>保存</el-button | |||
> | |||
</div> | |||
</el-dialog> | |||
<el-dialog | |||
title="删除" | |||
:visible.sync="dialogVisible2" | |||
> | |||
<div class="delclass"> | |||
<div> <el-radio v-model="radiovalue" label="0">直接删除</el-radio></div> | |||
<div style="margin-top:10px;"> <el-radio v-model="radiovalue" label="1">删除,同时恢复历史纠错内容</el-radio></div> | |||
</div> | |||
<el-dialog title="删除" :visible.sync="dialogVisible2"> | |||
<div class="delclass"> | |||
<div><el-radio v-model="radiovalue" label="0">直接删除</el-radio></div> | |||
<div style="margin-top: 10px"> | |||
<el-radio v-model="radiovalue" label="1" | |||
>删除,同时恢复历史纠错内容</el-radio | |||
> | |||
</div> | |||
</div> | |||
<div slot="footer" class="dialog-footer"> | |||
<el-button @click="dialogVisible2 = false">取 消</el-button> | |||
@@ -137,16 +158,18 @@ | |||
<script> | |||
import { mapGetters } from "vuex"; | |||
import { exportMethodPost} from "@/util/util"; | |||
import { exportMethodPost } from "@/util/util"; | |||
export default { | |||
data() { | |||
return { | |||
currentPage: 4, | |||
orgType:localStorage.getItem('orgType'), | |||
orgType: localStorage.getItem("orgType"), | |||
value: "", | |||
input: "", | |||
tableData: [], | |||
multipleSelection: [], | |||
mistakenList: [], // 常错词数组 | |||
correctList: [], // 正确词数组 | |||
dialogVisible: false, | |||
loadingFlag: false, | |||
houseList: [], | |||
@@ -172,10 +195,9 @@ export default { | |||
{ required: true, message: "请填写错误词", trigger: "change" }, | |||
], | |||
}, | |||
dialogVisible2:false, | |||
radiovalue:'0', | |||
delid:'' | |||
dialogVisible2: false, | |||
radiovalue: "0", | |||
delid: "", | |||
}; | |||
}, | |||
computed: { | |||
@@ -192,10 +214,14 @@ export default { | |||
this.zkhousePage(); | |||
}, | |||
methods: { | |||
downLoad(){ | |||
// this.searchForm | |||
// exportMethodPost() | |||
exportMethodPost('autoSR/zk/correct/indexExport','常错词',this.searchForm) | |||
downLoad() { | |||
// this.searchForm | |||
// exportMethodPost() | |||
exportMethodPost( | |||
"autoSR/zk/correct/indexExport", | |||
"常错词", | |||
this.searchForm | |||
); | |||
}, | |||
edit(row) { | |||
@@ -203,23 +229,27 @@ export default { | |||
this.editFlag = true; | |||
this.dialogVisible = true; | |||
}, | |||
delSure(){ | |||
axios({ | |||
url: `/autoSR/zk/correct/deleteCorrectWord?id=`+this.delid+'&deleteType='+this.radiovalue, | |||
method: "GET", | |||
}).then((res) => { | |||
if (res.code == 0) { | |||
this.$message.success("操作成功"); | |||
this.dialogVisible2=false; | |||
this.correctFindbypage(); | |||
} else { | |||
this.$message.warning(res.resMsg); | |||
} | |||
}) | |||
delSure() { | |||
axios({ | |||
url: | |||
`/autoSR/zk/correct/deleteCorrectWord?id=` + | |||
this.delid + | |||
"&deleteType=" + | |||
this.radiovalue, | |||
method: "GET", | |||
}).then((res) => { | |||
if (res.code == 0) { | |||
this.$message.success("操作成功"); | |||
this.dialogVisible2 = false; | |||
this.correctFindbypage(); | |||
} else { | |||
this.$message.warning(res.resMsg); | |||
} | |||
}); | |||
}, | |||
del(row) { | |||
this.delid=row.id; | |||
this.dialogVisible2=true; | |||
this.delid = row.id; | |||
this.dialogVisible2 = true; | |||
// this.$confirm(`是否删除该常错词?`, "提示", { | |||
// confirmButtonText: "确定", | |||
// cancelButtonText: "取消", | |||
@@ -251,21 +281,39 @@ export default { | |||
}; | |||
}, | |||
addSure() { | |||
// console.log(this.addressOptions) | |||
this.$refs.ruleForm.validate((valid) => { | |||
if (valid) { | |||
this.loadingFlag=true | |||
console.log(this.ruleForm); | |||
// this.loadingFlag = true; | |||
this.ruleForm.correctWord = this.ruleForm.correctWord.replace( | |||
/[\ |\~|\`|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\-|\_|\+|\=|\||\\|\[|\]|\{|\}|\;|\:|\"|\'|\,|\<|\.|\>|\/|\?/\,/\。/\;/\:/\“/\”/\》/\《/\|/\{/\}/\、/\!/\~/\`]/g, | |||
"" | |||
); | |||
this.ruleForm.wrongWord = this.ruleForm.wrongWord.replace( | |||
/[\ |\~|\`|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\-|\_|\+|\=|\||\\|\[|\]|\{|\}|\;|\:|\"|\'|\,|\<|\.|\>|\/|\?/\,/\。/\;/\:/\“/\”/\》/\《/\|/\{/\}/\、/\!/\~/\`]/g, | |||
"" | |||
); | |||
// mistakenList: [], // 常错词数组 | |||
// correctList: [], // 正确词数组 | |||
// 编辑 | |||
// return; | |||
if (this.editFlag) { | |||
console.log("编辑"); | |||
if (this.mistakenList.indexOf(this.ruleForm.correctWord) != -1) { | |||
this.$message.error("正确词不能与错误词相同"); | |||
return; | |||
} | |||
if (this.correctList.indexOf(this.ruleForm.wrongWord) != -1) { | |||
this.$message.error("错误词不能与正确词相同"); | |||
return; | |||
} | |||
this.$api.api.correctUpdate(this.ruleForm).then((res) => { | |||
console.log(res); | |||
if (res.code == 0) { | |||
setTimeout(() => { | |||
this.loadingFlag=false | |||
console.log('防重') | |||
this.loadingFlag = false; | |||
console.log("防重"); | |||
}, 1); | |||
this.dialogVisible = false; | |||
this.$message.success("编辑成功"); | |||
@@ -274,8 +322,16 @@ export default { | |||
}); | |||
} else { | |||
// 添加 | |||
console.log("添加"); | |||
// return; | |||
if (this.correctList.indexOf(this.ruleForm.correctWord) != -1) { | |||
this.$message.error("正确词已添加过~"); | |||
return; | |||
} | |||
if (this.mistakenList.indexOf(this.ruleForm.wrongWord) != -1) { | |||
this.$message.error("错误词已添加过~"); | |||
return; | |||
} | |||
this.$api.api | |||
.correctAdd({ | |||
houseId: this.searchForm.houseId, | |||
@@ -285,9 +341,9 @@ export default { | |||
console.log(res); | |||
if (res.code == 0) { | |||
setTimeout(() => { | |||
this.loadingFlag=false | |||
console.log('防重') | |||
}, 1); | |||
this.loadingFlag = false; | |||
console.log("防重"); | |||
}, 1); | |||
this.dialogVisible = false; | |||
this.$message.success("新增常错词成功"); | |||
this.correctFindbypage(); | |||
@@ -304,8 +360,11 @@ export default { | |||
clascreen() { | |||
this.searchForm.wrongWord = ""; | |||
this.searchForm.correctWord = ""; | |||
this.searchForm.houseId=this.orgType==3? localStorage.getItem('houseId'):this.houseList[0].id, | |||
this.currentPage = 1; | |||
(this.searchForm.houseId = | |||
this.orgType == 3 | |||
? localStorage.getItem("houseId") | |||
: this.houseList[0].id), | |||
(this.currentPage = 1); | |||
this.correctFindbypage(); | |||
}, | |||
houseChange() { | |||
@@ -339,7 +398,15 @@ export default { | |||
this.$api.api.correctFindbypage(obj).then((res) => { | |||
console.log(res); | |||
this.tableData = res.data.records; | |||
this.mistakenList = res.data.records.map((item) => { | |||
return item.wrongWord; | |||
}); | |||
this.correctList = res.data.records.map((item) => { | |||
return item.correctWord; | |||
}); | |||
this.total = res.data.total; | |||
console.log(this.mistakenList, this.correctList); | |||
}); | |||
}, | |||
addinfo() { | |||
@@ -373,7 +440,7 @@ export default { | |||
min-width: 1000px; | |||
padding-bottom: 100px; | |||
} | |||
.delclass{ | |||
.delclass { | |||
width: 400px; | |||
// border: 1px solid red; | |||
margin: 0 auto; | |||
@@ -189,13 +189,29 @@ | |||
<div class="div-lab"> | |||
<div class="label">项目名称:</div> | |||
<el-input | |||
<el-select | |||
class="div-inp" | |||
v-model="searchForm.propertyName" | |||
filterable | |||
clearable | |||
@change="houseChange" | |||
placeholder="请选择项目" | |||
> | |||
<el-option | |||
v-for="item in houseList" | |||
:key="item.id" | |||
:label="item.propertyName" | |||
:value="item.propertyName" | |||
> | |||
</el-option> | |||
</el-select> | |||
<!-- <el-input | |||
class="div-inp" | |||
v-model="searchForm.propertyName" | |||
placeholder="请输入内容" | |||
maxlength="30" | |||
clearable | |||
></el-input> | |||
></el-input> --> | |||
</div> | |||
</div> | |||
<!-- <div class="app-titel" style="margin-top: 10px"> | |||
@@ -911,6 +927,7 @@ export default { | |||
}, | |||
], | |||
}, | |||
houseList: [], // 项目列表 | |||
ruleForm: { | |||
orgCode: "", //公司标识 | |||
houseType: 0, //项目类型 | |||
@@ -1010,8 +1027,25 @@ export default { | |||
// this.getCityList(); | |||
// 获取列表数据 | |||
this.zkhousePage(); | |||
// 获取项目列表 | |||
this.zkhousePages(); | |||
}, | |||
methods: { | |||
//切换项目 | |||
houseChange() { | |||
this.currentPage = 1; | |||
this.zkhousePage(); | |||
}, | |||
//获取项目 | |||
zkhousePages() { | |||
this.$api.api | |||
.findHouseByUser({ | |||
orgType: localStorage.getItem("orgType"), | |||
}) | |||
.then((res) => { | |||
this.houseList = res.data; | |||
}); | |||
}, | |||
getOperaList() { | |||
if (this.orgType == 1) { | |||
this.$api.http | |||
@@ -7,8 +7,8 @@ | |||
// const url = 'http://192.168.31.167:9999' //长龙 | |||
// const url = 'http://192.168.31.134:9999' //嘉豪 | |||
// const url = 'http://192.168.31.100:9999' //王笑 | |||
// const url = 'http://62.234.122.43:9999' //正式 | |||
const url = 'https://zanyong.hfju.com' // 正式域名 | |||
const url = 'http://62.234.122.43:9999' //正式 | |||
// const url = 'https://zanyong.hfju.com' // 正式域名 | |||
const CompressionWebpackPlugin = require('compression-webpack-plugin') | |||
const productionGzipExtensions = ['js', 'css'] | |||
module.exports = { | |||