From b843c4e69e2c408487e353b31115d99c2627565b Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Tue, 3 Jan 2023 14:22:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=BD=AC=E5=86=99=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/building/index.vue | 48 ++++++++++++++++++++++++++++++++---- 1 file changed, 43 insertions(+), 5 deletions(-) diff --git a/src/views/building/index.vue b/src/views/building/index.vue index 284745e..02afacf 100644 --- a/src/views/building/index.vue +++ b/src/views/building/index.vue @@ -441,6 +441,14 @@ :disabled="passFlag" > + + + + + + + +
取 消 - 保存
@@ -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) => { From 9e772e411a4717464094af26262968775f0b29a3 Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Tue, 3 Jan 2023 14:25:22 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=BD=AC=E5=86=99=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/building/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/building/index.vue b/src/views/building/index.vue index 02afacf..069415f 100644 --- a/src/views/building/index.vue +++ b/src/views/building/index.vue @@ -1027,7 +1027,7 @@ export default { data: { }, }).then((res) => { - console.log(res) + // console.log(res) if(res.code==0){ this.projectlist = res.data||[] this.languageList = res.data&&res.data[0].list||[] @@ -1275,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(() => {