Browse Source

Merge branch 'master' into dmb

newStyle
douzhuo 1 year ago
parent
commit
3b323de6e3
2 changed files with 49 additions and 7 deletions
  1. +5
    -1
      src/views/Template/wrongword.vue
  2. +44
    -6
      src/views/building/index.vue

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

@@ -297,7 +297,11 @@ export default {
this.$message.error("错误词不能与正确词相同");
return;
}
this.$api.api.correctUpdate(this.ruleForm).then((res) => {
console.log(this.searchForm.houseId)
this.$api.api.correctUpdate({
...this.ruleForm,
houseId: this.searchForm.houseId
}).then((res) => {
console.log(res);
if (res.code == 0) {
setTimeout(() => {


+ 44
- 6
src/views/building/index.vue View File

@@ -441,6 +441,14 @@
:disabled="passFlag"
></el-input>
</el-form-item>
<el-form-item label="转写方式" prop="transliterationMethod">
<el-select style="width:120px" v-model="ruleForm.transliterationMethod" placeholder="请选择项目" @change="changeFun">
<el-option v-for="(item,index) in projectlist" :label="item.name" :key="index" :value="item.code"></el-option>
</el-select>
<el-select style="width:120px" v-model="ruleForm.language" placeholder="请选择语种">
<el-option v-for="(item,index) in languageList" :label="item.name" :key="index" :value="item.code"></el-option>
</el-select>
</el-form-item>
</el-form>
</div>
<div
@@ -455,9 +463,6 @@
>
<el-button @click="addSurequxiao()">取 消</el-button>
<el-button type="primary" :loading="loadingFlag" @click="addSure">
<!-- {{
editFlag ? "编辑" : "保存"
}} -->
保存
</el-button>
</div>
@@ -877,6 +882,8 @@ export default {
offLine: ["08:00", "20:00"], // 离线推送时间段
caseShow: '0', // 优秀案例
tagMatching: '0', // 客户标签匹配
transliterationMethod: '',//转写方式
language:'',//语言
},
ruleForm1: {},
optionsagentId: [],
@@ -885,6 +892,9 @@ export default {
propertyName: [
{ required: true, message: "请填写项目名称", trigger: "change" },
],
transliterationMethod: [
{ required: true, message: "请选择转写方式", trigger: "change" },
],
managerPassword: [
{ required: true, message: "请填写密码", trigger: "blur" },
{
@@ -930,6 +940,8 @@ export default {
agentForm: {
agentId: "",
},
projectlist:[],//转写方式
languageList:[]//语言
};
},
computed: {
@@ -952,10 +964,11 @@ export default {
this.cus_build_index_change = this.permissions["cus_build_index_change"];
this.cus_build_index_sys = this.permissions["cus_build_index_sys"];
this.cus_build_index_agent = this.permissions["cus_build_index_agent"];
this.cus_build_index_bindAgent =
this.permissions["cus_build_index_bindAgent"];
this.cus_build_index_bindAgent = this.permissions["cus_build_index_bindAgent"];
this.cus_build_index_del = this.permissions["cus_build_index_del"];
this.cus_build_index_open = this.permissions["cus_build_index_open"];
// 获取转写方式数据
this.findTransferMethod()
},
mounted() {
if (this.$route.query.serviceStatus) {
@@ -994,8 +1007,33 @@ export default {
this.zkhousePage();
// 获取项目列表
this.zkhousePages();
},
methods: {
changeFun(value){
// console.log(value)
this.ruleForm.language = ''
this.projectlist.forEach(item=>{
if(item.code==value){
this.languageList = item.list
}
})
},
// 转写方式
findTransferMethod(){
axios({
url: `autoSR/zkhouse/findTransferMethod`,
method: "get",
data: {
},
}).then((res) => {
// console.log(res)
if(res.code==0){
this.projectlist = res.data||[]
this.languageList = res.data&&res.data[0].list||[]
}
});
},
// 获取当前页面的显隐
setTableOption() {
this.$db.getDataByKey(this.tableIdName).then((res) => {
@@ -1237,7 +1275,7 @@ export default {
this.$api.api
.editZkhouse(this.ruleForm)
.then((res) => {
console.log(res);
// console.log(res);
if (res.code == 0) {
this.dialogVisible = false;
setTimeout(() => {


Loading…
Cancel
Save