|
@@ -41,7 +41,7 @@
|
|
<!-- 研究中心 -->
|
|
<!-- 研究中心 -->
|
|
<van-popup v-model="cliklss" position="bottom">
|
|
<van-popup v-model="cliklss" position="bottom">
|
|
<div style="minHeight:300px;">
|
|
<div style="minHeight:300px;">
|
|
- <van-checkbox class="userCheckbox" v-for="(item) in ause" :key="item.id" v-model="item.isChecked" >{{item.name}}</van-checkbox>
|
|
|
|
|
|
+ <van-checkbox class="userCheckbox" v-for="(item) in ause" :key="item.id" v-model="item.isChecked" @change="fuxuan()" @click="ddd()">{{item.name}}</van-checkbox>
|
|
<van-button style="width:100%;" @click="refreshParticipatess();cliklss=false">确定</van-button>
|
|
<van-button style="width:100%;" @click="refreshParticipatess();cliklss=false">确定</van-button>
|
|
</div>
|
|
</div>
|
|
</van-popup>
|
|
</van-popup>
|
|
@@ -82,10 +82,21 @@
|
|
created() {
|
|
created() {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ fuxuan() {
|
|
|
|
+ console.log(this.ause)
|
|
|
|
+ },
|
|
|
|
+ ddd() {
|
|
|
|
+ let aes = this.ause
|
|
|
|
+ this.ause = aes
|
|
|
|
+ console.log(this.ause, '12345')
|
|
|
|
+ },
|
|
yanjiuzx() {
|
|
yanjiuzx() {
|
|
this.$axios.post("/report-extra-degree/getAll", {})
|
|
this.$axios.post("/report-extra-degree/getAll", {})
|
|
.then(res => {
|
|
.then(res => {
|
|
if(res.code == "ok") {
|
|
if(res.code == "ok") {
|
|
|
|
+ for(var i in res.data) {
|
|
|
|
+ res.data[i].isChecked = false
|
|
|
|
+ }
|
|
this.ause = res.data
|
|
this.ause = res.data
|
|
} else {
|
|
} else {
|
|
this.$toast.fail('获取失败');
|
|
this.$toast.fail('获取失败');
|
|
@@ -173,7 +184,12 @@
|
|
.then(res => {
|
|
.then(res => {
|
|
if(res.code == "ok") {
|
|
if(res.code == "ok") {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
- this.userList = res.data.records;
|
|
|
|
|
|
+ var sj = res.data.records
|
|
|
|
+ for (var i in sj) {
|
|
|
|
+ sj[i].isChecked = false
|
|
|
|
+ }
|
|
|
|
+ // this.userList = res.data.records;
|
|
|
|
+ this.userList = sj;
|
|
this.allUserList = res.data.records;
|
|
this.allUserList = res.data.records;
|
|
} else {
|
|
} else {
|
|
this.$toast.fail('获取失败');
|
|
this.$toast.fail('获取失败');
|