From 30ee3eccaf15859197bb44d71f70c7fcf983753c Mon Sep 17 00:00:00 2001
From: corala <18339694416@163.com>
Date: Wed, 4 Jan 2023 15:08:33 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BD=AC=E5=86=99=E6=96=B9?=
=?UTF-8?q?=E5=BC=8F=E5=9B=9E=E6=98=BE=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/building/index.vue | 51 ++++++++++++++++++++----------------
1 file changed, 29 insertions(+), 22 deletions(-)
diff --git a/src/views/building/index.vue b/src/views/building/index.vue
index 069415f..65b1368 100644
--- a/src/views/building/index.vue
+++ b/src/views/building/index.vue
@@ -266,22 +266,20 @@
:visible.sync="dialogVisible"
@close="dialogClose"
width="600px"
- :center="true"
+ center
>
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -940,7 +940,7 @@ export default {
agentForm: {
agentId: "",
},
- projectlist:[],//转写方式
+ projectList:[],//转写方式
languageList:[]//语言
};
},
@@ -1013,7 +1013,7 @@ export default {
changeFun(value){
// console.log(value)
this.ruleForm.language = ''
- this.projectlist.forEach(item=>{
+ this.projectList.forEach(item=>{
if(item.code==value){
this.languageList = item.list
}
@@ -1029,7 +1029,7 @@ export default {
}).then((res) => {
// console.log(res)
if(res.code==0){
- this.projectlist = res.data||[]
+ this.projectList = res.data||[]
this.languageList = res.data&&res.data[0].list||[]
}
});
@@ -1269,18 +1269,21 @@ export default {
this.loadingFlag = false;
return;
}
+ if (this.ruleForm.language=='') {
+ this.$message.error("请选择转写语言");
+ this.loadingFlag = false;
+ return;
+ }
this.ruleForm.offLine = this.ruleForm.offLine.join("~");
// 编辑
if (this.editFlag) {
this.$api.api
.editZkhouse(this.ruleForm)
.then((res) => {
- // console.log(res);
if (res.code == 0) {
this.dialogVisible = false;
setTimeout(() => {
this.loadingFlag = false;
- console.log("防重");
}, 1);
this.$message.success("编辑成功");
this.zkhousePage();
@@ -1294,12 +1297,10 @@ export default {
this.$api.api
.addZkhouse(this.ruleForm)
.then((res) => {
- console.log(res);
if (res.code == 0) {
this.dialogVisible = false;
setTimeout(() => {
this.loadingFlag = false;
- console.log("防重");
}, 1);
this.$message.success("新增项目成功");
this.zkhousePage();
@@ -1409,9 +1410,15 @@ export default {
if (row.offLine && row.offLine.indexOf('~') != -1) {
this.ruleForm.offLine = row.offLine.split('~')
}
-
+ if(row.transliterationMethod){
+ this.projectList.forEach(item=>{
+ if(item.code==row.transliterationMethod){
+ this.languageList = item.list
+ }
+ })
+ }else{
+ }
this.editFlag = true;
-
this.dialogVisible = true;
this.$forceUpdate();
},