提交 729f20ae 编写于 作者: yi.li's avatar yi.li

Merge remote-tracking branch 'origin/dev-yqLive-20200611' into dev-yqLive-20200611

...@@ -103,6 +103,7 @@ ...@@ -103,6 +103,7 @@
totalOrganization: 10, totalOrganization: 10,
pageSizeOrganization: 2, pageSizeOrganization: 2,
activeName:"", activeName:"",
selectionList:"",
formOrganization: { formOrganization: {
name: "", name: "",
administrativeId: "0", administrativeId: "0",
...@@ -186,6 +187,7 @@ ...@@ -186,6 +187,7 @@
}, },
//机构table中勾选一个 //机构table中勾选一个
selectOrganization(selection, row) { selectOrganization(selection, row) {
this.selectionList = selection;
console.log("select", selection, row); console.log("select", selection, row);
let flag = false; let flag = false;
for (let i = 0; i < selection.length; i++) { for (let i = 0; i < selection.length; i++) {
...@@ -212,6 +214,7 @@ ...@@ -212,6 +214,7 @@
}, },
//机构table中勾选一排 //机构table中勾选一排
selectAllOrganization(selection) { selectAllOrganization(selection) {
this.selectionList = selection;
let setList = []; let setList = [];
let selectList = []; let selectList = [];
for (let i = 0; i < vm.tableOrganization.length; i++) { for (let i = 0; i < vm.tableOrganization.length; i++) {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</base-info> </base-info>
</div> </div>
<div class="second-step" v-else-if="active === 1"> <div class="second-step" v-else-if="active === 1">
<organzation :formData="formData"></organzation> <organzation :formData="formData" ref="org"></organzation>
</div> </div>
</div> </div>
</div> </div>
...@@ -85,6 +85,10 @@ ...@@ -85,6 +85,10 @@
//完成 //完成
complete() { complete() {
if(this.$refs.org.selectionList == null || this.$refs.org.selectionList == ""){
this.$message.warning('请选择机构');
return;
}
console.log(this.formData.id); console.log(this.formData.id);
let req = { let req = {
circleId: this.formData.id, circleId: this.formData.id,
...@@ -140,8 +144,8 @@ ...@@ -140,8 +144,8 @@
vm.formData.id = res.data; vm.formData.id = res.data;
this.active = 1; this.active = 1;
this.stepData = [false, true]; this.stepData = [false, true];
} else { } else {
// //
} }
...@@ -203,4 +207,4 @@ ...@@ -203,4 +207,4 @@
} }
} }
} }
</style> </style>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册