|
|
|
@ -79,18 +79,14 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="规约" class="gybox">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="formdata.protocol"
|
|
|
|
|
filterable
|
|
|
|
|
@keyup.enter.native="onSubmit()"
|
|
|
|
|
>
|
|
|
|
|
<el-select v-model="formdata.protocol" @change="changeprotocol">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in protocolOptions"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
>
|
|
|
|
|
{{ item.name }}-{{ item.id }}
|
|
|
|
|
{{ item.name }} - {{ item.id }}
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -227,7 +223,7 @@
|
|
|
|
|
@keyup.enter.native="onSubmit()"
|
|
|
|
|
v-model="formdata.activityId"
|
|
|
|
|
filterable
|
|
|
|
|
@change="changeActive"
|
|
|
|
|
@change="changeActive2"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in activityOptions"
|
|
|
|
@ -502,6 +498,7 @@ export default {
|
|
|
|
|
getProtocolList()
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.protocolOptions = [{ id: -1, name: "全部" }];
|
|
|
|
|
this.protocolOptions = this.protocolOptions.concat(res.data.list);
|
|
|
|
|
this.formdata.protocol = this.protocolOptions[0].id;
|
|
|
|
|
})
|
|
|
|
@ -528,11 +525,20 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
|
changeprotocol(val) {
|
|
|
|
|
console.log(val);
|
|
|
|
|
this.formdata.protocol = val;
|
|
|
|
|
},
|
|
|
|
|
changeActive(val) {
|
|
|
|
|
console.log(this.activityOptions);
|
|
|
|
|
console.log(val);
|
|
|
|
|
localStorage.setItem("activeId", JSON.stringify(val));
|
|
|
|
|
},
|
|
|
|
|
changeActive2(val) {
|
|
|
|
|
console.log(this.activityOptions);
|
|
|
|
|
console.log(val);
|
|
|
|
|
localStorage.setItem("activeId", JSON.stringify(val));
|
|
|
|
|
},
|
|
|
|
|
onSubmit() {
|
|
|
|
|
this.tableLoaidng = true;
|
|
|
|
|
|
|
|
|
|