| @@ -441,6 +441,14 @@ | |||||
| :disabled="passFlag" | :disabled="passFlag" | ||||
| ></el-input> | ></el-input> | ||||
| </el-form-item> | </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> | </el-form> | ||||
| </div> | </div> | ||||
| <div | <div | ||||
| @@ -455,9 +463,6 @@ | |||||
| > | > | ||||
| <el-button @click="addSurequxiao()">取 消</el-button> | <el-button @click="addSurequxiao()">取 消</el-button> | ||||
| <el-button type="primary" :loading="loadingFlag" @click="addSure"> | <el-button type="primary" :loading="loadingFlag" @click="addSure"> | ||||
| <!-- {{ | |||||
| editFlag ? "编辑" : "保存" | |||||
| }} --> | |||||
| 保存 | 保存 | ||||
| </el-button> | </el-button> | ||||
| </div> | </div> | ||||
| @@ -877,6 +882,8 @@ export default { | |||||
| offLine: ["08:00", "20:00"], // 离线推送时间段 | offLine: ["08:00", "20:00"], // 离线推送时间段 | ||||
| caseShow: '0', // 优秀案例 | caseShow: '0', // 优秀案例 | ||||
| tagMatching: '0', // 客户标签匹配 | tagMatching: '0', // 客户标签匹配 | ||||
| transliterationMethod: '',//转写方式 | |||||
| language:'',//语言 | |||||
| }, | }, | ||||
| ruleForm1: {}, | ruleForm1: {}, | ||||
| optionsagentId: [], | optionsagentId: [], | ||||
| @@ -885,6 +892,9 @@ export default { | |||||
| propertyName: [ | propertyName: [ | ||||
| { required: true, message: "请填写项目名称", trigger: "change" }, | { required: true, message: "请填写项目名称", trigger: "change" }, | ||||
| ], | ], | ||||
| transliterationMethod: [ | |||||
| { required: true, message: "请选择转写方式", trigger: "change" }, | |||||
| ], | |||||
| managerPassword: [ | managerPassword: [ | ||||
| { required: true, message: "请填写密码", trigger: "blur" }, | { required: true, message: "请填写密码", trigger: "blur" }, | ||||
| { | { | ||||
| @@ -930,6 +940,8 @@ export default { | |||||
| agentForm: { | agentForm: { | ||||
| agentId: "", | agentId: "", | ||||
| }, | }, | ||||
| projectlist:[],//转写方式 | |||||
| languageList:[]//语言 | |||||
| }; | }; | ||||
| }, | }, | ||||
| computed: { | computed: { | ||||
| @@ -952,10 +964,11 @@ export default { | |||||
| this.cus_build_index_change = this.permissions["cus_build_index_change"]; | 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_sys = this.permissions["cus_build_index_sys"]; | ||||
| this.cus_build_index_agent = this.permissions["cus_build_index_agent"]; | 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_del = this.permissions["cus_build_index_del"]; | ||||
| this.cus_build_index_open = this.permissions["cus_build_index_open"]; | this.cus_build_index_open = this.permissions["cus_build_index_open"]; | ||||
| // 获取转写方式数据 | |||||
| this.findTransferMethod() | |||||
| }, | }, | ||||
| mounted() { | mounted() { | ||||
| if (this.$route.query.serviceStatus) { | if (this.$route.query.serviceStatus) { | ||||
| @@ -994,8 +1007,33 @@ export default { | |||||
| this.zkhousePage(); | this.zkhousePage(); | ||||
| // 获取项目列表 | // 获取项目列表 | ||||
| this.zkhousePages(); | this.zkhousePages(); | ||||
| }, | }, | ||||
| methods: { | 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() { | setTableOption() { | ||||
| this.$db.getDataByKey(this.tableIdName).then((res) => { | this.$db.getDataByKey(this.tableIdName).then((res) => { | ||||