Procházet zdrojové kódy

24.上课准备,上课教练改select √

Changpeng Duan před 5 roky
rodič
revize
e7f833cf19

+ 9 - 9
pc/src/views/Member.vue

@@ -275,7 +275,7 @@
                         <el-form-item label="体重" :required="true">
                             <el-input v-model="form.weight" placeholder="kg" type="number"></el-input>
                         </el-form-item>
-                        <el-form-item label="静态心率" :required="true">
+                        <el-form-item label="静态心率" >
                         <el-input v-model="form.staticHr " placeholder="请输入" type="number"></el-input>
                         </el-form-item>
                         <el-form-item label="性别" :required="true">
@@ -893,10 +893,10 @@
                     this.$message.error('错了哦,体重不能为空');
                     return false
                 }
-                if (!that.form.staticHr) {
-                    this.$message.error('错了哦,静态心率不能为空');
-                    return false
-                }
+                // if (!that.form.staticHr) {
+                //     this.$message.error('错了哦,静态心率不能为空');
+                //     return false
+                // }
                 if (!that.form.birthday) {
                     this.$message.error('错了哦,出生年份不能为空');
                     return false
@@ -977,10 +977,10 @@
                     this.$message.error('错了哦,体重不能为空');
                     return false
                 }
-                if (!that.form.staticHr) {
-                    this.$message.error('错了哦,静态心率不能为空');
-                    return false
-                }
+                // if (!that.form.staticHr) {
+                //     this.$message.error('错了哦,静态心率不能为空');
+                //     return false
+                // }
                 if (!that.form.birthday) {
                     this.$message.error('错了哦,出生年份不能为空');
                     return false

+ 11 - 3
pc/src/views/courses.vue

@@ -154,7 +154,7 @@
                     @current-change="pageChange"
             ></el-pagination>
         </div>
-        <el-dialog :title="dialogTitle" :visible.sync="dialogMemberVisible" width="960px">
+        <el-dialog :title="dialogTitle" :visible.sync="dialogMemberVisible" width="650px">
             <div class="dialogContent">
                 <h5 class="classNames">{{className}}</h5>
                 <div class="">
@@ -191,8 +191,16 @@
                         </el-form-item>
                         <!--选教练,非必选-->
                         <el-form-item label="上课教练">
-                            <el-transfer filterable v-model="dialogCoachValue" :data="form.dialogCoachdata"
-                                         :titles="['教练列表', '已添加教练']"></el-transfer>
+                            <!--<el-transfer filterable v-model="dialogCoachValue" :data="form.dialogCoachdata"-->
+                                         <!--:titles="['教练列表', '已添加教练']"></el-transfer>-->
+                            <el-select v-model="dialogCoachValue" filterable placeholder="请选择" >
+                                <el-option
+                                        v-for="item in form.dialogCoachdata"
+                                        :key="item.key"
+                                        :label="item.label"
+                                        :value="item.value">
+                                </el-option>
+                            </el-select>
                         </el-form-item>
                     </el-form>
                 </div>

+ 2 - 2
pc/src/views/versionControlMefisto.vue

@@ -99,7 +99,7 @@
                 formdata.append('file', req.file);
                 formdata.append('version', that.upload.version);
                 formdata.append('updateContent', that.upload.updateContent);
-                this.axios.post(this.trueApi.UpVueFramework, formdata, config).then(res => {
+                this.axios.post(this.falseApi.UpVueFramework, formdata, config).then(res => {
                   console.log(res.data);
                 })
 
@@ -118,7 +118,7 @@
                     token: localStorage.token,
                 };
                 let postdata = qs.stringify(param);
-                let url = that.trueApi.QueryVueFramework;
+                let url = that.falseApi.QueryVueFramework;
                 axios.post(url, postdata).then(function (data) {
                     let json = data.data;
                     if (json.Code == 0) {

+ 3 - 3
tv/README.md

@@ -71,11 +71,11 @@ http://192.168.0.162:9000/Hello
 5.生日的时候学生有个生日小帽子     IsBirthday 1 过生日 0 不过生日 √ 
 10.新学员上课时有个倒数6秒的欢迎页面  -欢迎入伙  √   
 20.跨店用户管理,加商家列表,给用户列表传入0做结果集的筛选  √ 
-
+22.404 给微信 X
+24.上课准备,上课教练改select √ 
 
 19.等待页面的数字使用图片替换 todo
-21.无感知更新wgt文件
-22.404 给微信
+21.无感知更新wgt文件 (刷新后重进,上传被限制文件大小 todo *上传路径未更换真实路径
 
 
 

+ 6 - 5
tv/src/main.js

@@ -10,11 +10,12 @@ import axios from 'axios'
 
 import VConsole from 'vconsole/dist/vconsole.min.js' //import vconsole
 
-if(process.env.NODE_ENV === 'development'){
-    // let vConsole = new VConsole() // 初始化
+if (process.env.NODE_ENV === 'development') {
+    // 显示控制台
+    let vConsole = new VConsole();
     // 演示版本数据
     require('./Mock/index.js');
-}else{
+} else {
 
 }
 
@@ -24,8 +25,8 @@ Vue.use(ElementUI);
 
 // store,
 new Vue({
-  router,
+    router,
 
-  render: h => h(App)
+    render: h => h(App)
 }).$mount('#app');
 

+ 20 - 13
tv/src/views/Index.vue

@@ -51,6 +51,7 @@
                 //浏览器默认的
                 localStorage.eqSn = '30:9C:23:0C:8B:1E';
                 localStorage.version = '1.1.0';
+
                 function plusReady() {
                     if (typeof plus == 'undefined') return false;
                     // 获取本地应用资源版本号
@@ -60,6 +61,7 @@
 
                         //首发版本 '1.1.0' 在线版不需要自动升级
                         that.checkUpdate(that.curVersion); //开启自动升级
+
                     });
 
                     //   获取手机UUID
@@ -107,12 +109,17 @@
                     let json = res;
                     if (json.Code == 0) {
                         if (version != json.Version) {
-                            let url = "http://cal.beswell.com:85/v1/Sensors/DownloadVueFramework";
-                            that.downWgt(url, json.Version);
-                            that.$notify({
-                                title: '升级提醒',
-                                message: h('i', {style: 'color: teal'}, '检测到新的版本,正在下载最新版本')
-                            });
+                            // 正式
+                            // let url = "http://cal.beswell.com:85/v1/Sensors/DownloadVueFramework";
+                            // 测试
+                            let url = "http://192.168.0.162/wgt/H5BB8BEB3.wgt";
+                            console.log('Version'+ json.Version);
+                            console.log(json);
+                            that.downWgt(url,json.Version);
+                            // that.$notify({
+                            //     title: '升级提醒',
+                            //     message: h('i', {style: 'color: teal'}, '检测到新的版本,正在下载最新版本')
+                            // });
                         }
                     }
                 })
@@ -121,29 +128,29 @@
                 let that = this;
                 plus.downloader.createDownload(url, {filename: "_doc/update/"}, function (d, status) {
                     // plus.downloader.createDownload(url, {}, function (d, status) {
-                    console.log(status);
                     if (status == 200) {
+                        console.log(d);
                         console.log("下载wgt成功:" + d.filename);
                         that.installWgt(d.filename); // 安装wgt包
                     } else {
                         console.log("下载wgt失败!");
-                        plus.nativeUI.alert("下载wgt失败!");
+                        // plus.nativeUI.alert("下载wgt失败!");
                     }
                     plus.nativeUI.closeWaiting();
                 }).start();
             },
             installWgt(path) {
-                plus.nativeUI.showWaiting("安装wgt文件...");
+                // plus.nativeUI.showWaiting("安装wgt文件...");
                 plus.runtime.install(path, {}, function () {
                     plus.nativeUI.closeWaiting();
                     console.log("安装wgt文件成功!");
-                    plus.nativeUI.alert("应用资源更新完成!", function () {
-                        plus.runtime.restart();
-                    });
+                    // plus.nativeUI.alert("应用资源更新完成!", function () {
+                    plus.runtime.restart();
+                    // });
                 }, function (e) {
                     plus.nativeUI.closeWaiting();
                     console.log("安装wgt文件失败[" + e.code + "]:" + e.message);
-                    plus.nativeUI.alert("安装wgt文件失败[" + e.code + "]:" + e.message);
+                    // plus.nativeUI.alert("安装wgt文件失败[" + e.code + "]:" + e.message);
                 });
             }
 

+ 1 - 1
tv/src/views/pk.vue

@@ -191,7 +191,7 @@
     export default {
         data() {
             return {
-                trueDate: false,//真实数据 true false
+                trueDate: true,//真实数据 true false
                 studentsClassName: [],
                 students: {
                     redUnite: [],

+ 1 - 1
tv/src/views/threepk.vue

@@ -258,7 +258,7 @@
     export default {
         data() {
             return {
-                trueDate: false,//启用真实数据 true / false
+                trueDate: true,//启用真实数据 true / false
                 RedstudentsClassName: '',
                 BluestudentsClassName: '',
                 YellowstudentsClassName: '',