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();
},