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