瀏覽代碼

[feat][生涯决策][决策平衡单]

hizhangling 1 月之前
父節點
當前提交
0c4574c8be

+ 4 - 0
src/assets/styles/global.css

@@ -1,3 +1,7 @@
 .common-img-button{
     cursor: pointer;
+}
+
+.common-container{
+    touch-action: none;
 }

+ 3 - 2
src/views/xjc-integratedmachine/components/xjc_keyboard.vue

@@ -8,7 +8,8 @@
     import { ref, onMounted, watch, nextTick, onUnmounted } from 'vue'
     import Keyboard from 'simple-keyboard'
     import 'simple-keyboard/build/css/index.css'
-
+    // 支持中文输入
+    import layout from 'simple-keyboard-layouts/build/layouts/chinese';
     const props = defineProps({
         keyboardClass: {
             type: String,
@@ -25,7 +26,7 @@
     const keyboardEl = ref(null)
     const keyboard = ref(null)
     const currentLayout = ref('default')
-    const isChineseMode = ref(false)
+    const isChineseMode = ref(true)
     const isShiftOn = ref(false)
     const chineseLayoutModule = ref(null)
 

+ 72 - 1
src/views/xjc-integratedmachine/decision/balance_sheet/decision_balance_sheet.vue

@@ -4,9 +4,21 @@
         <div class="page-content">
             <div class="page-box">
                 <div>
-
+                    <div v-for="(rowList, rowIndex) in list" :key="rowIndex" style="display: flex;justify-content: center">
+                        <div v-for="(item, index) in rowList" :key="index">
+                            <div v-if="item.type == 0">
+                                <el-rate v-model="list[rowIndex][index].value"/>
+                            </div>
+                            <div v-else>
+                                <el-input-number v-model="list[rowIndex][index].value" :min="-5" :max="5" @change="handleChange"/>
+                            </div>
+                        </div>
+                    </div>
                 </div>
             </div>
+            <div v-if="visible">
+                <el-slider v-model="value2" :step="1" show-stops />
+            </div>
             <drag_component></drag_component>
         </div>
     </div>
@@ -30,6 +42,65 @@
         }
     }
 
+    // 数据列表
+    let list = ref([
+        [
+            {
+                type: 0,
+                value: '',
+            },
+            {
+                type: 1,
+                value: '',
+            },
+            {
+                type: 1,
+                value: '',
+            },
+            {
+                type: 1,
+                value: '',
+            },
+            {
+                type: 1,
+                value: '',
+            },
+            {
+                type: 1,
+                value: '',
+            }
+        ],
+        [
+            {
+                type: 0,
+                value: '3',
+            },
+            {
+                type: 1,
+                value: '-5',
+            },
+            {
+                type: 1,
+                value: '4',
+            },
+            {
+                type: 1,
+                value: '0',
+            },
+            {
+                type: 1,
+                value: '3',
+            },
+            {
+                type: 1,
+                value: '5',
+            }
+        ],
+    ])
+
+    // 显示隐藏标识
+    let visible = ref(false)
+
     onMounted(() => {
         setHeadinfo()
     })

+ 1 - 1
src/views/xjc-integratedmachine/login/student_login.vue

@@ -30,7 +30,7 @@
                         v-model.trim="loginForm.password"
                         type="password"
                         size="large"
-                        auto-complete="off"
+                        auto-complete="new-password"
                         placeholder="密码"
                         show-password
                         class="form-box-input1"