Lijy %!s(int64=3) %!d(string=hai) anos
pai
achega
9cebd9b11f

+ 18 - 2
fhKeeper/formulahousekeeper/timesheet_h5/src/views/project/index.vue

@@ -41,7 +41,7 @@
             <!-- 研究中心 -->
             <van-popup v-model="cliklss" position="bottom">
                 <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>
                 </div>
             </van-popup>
@@ -82,10 +82,21 @@
         created() {
         },
         methods: {
+            fuxuan() {
+                console.log(this.ause)
+            },
+            ddd() {
+                let aes = this.ause
+                this.ause = aes 
+                console.log(this.ause, '12345')
+            },
             yanjiuzx() {
                 this.$axios.post("/report-extra-degree/getAll", {})
                 .then(res => {
                     if(res.code == "ok") {
+                        for(var i in res.data) {
+                            res.data[i].isChecked = false
+                        }
                         this.ause = res.data
                     } else {
                         this.$toast.fail('获取失败');
@@ -173,7 +184,12 @@
                 .then(res => {
                     if(res.code == "ok") {
                         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;
                     } else {
                         this.$toast.fail('获取失败');