guhongwei 4 лет назад
Родитель
Сommit
856019fe2f

+ 6 - 6
src/views/techolchat/list/detail-model/fields.js

@@ -21,7 +21,7 @@ export const three = [
       { label: '与公司关系', model: 'relation', list: 'chargeRelation', type: 'select' },
       { label: '年龄', model: 'age', list: 'age', type: 'select' },
       { label: '学历', model: 'edu', list: 'edu', type: 'select' },
-      { label: '技术职称', model: 'teckRank', list: 'teckRank', type: 'select' },
+      { label: '职称', model: 'teckRank', list: 'teckRank', type: 'select' },
       { label: '专业', model: 'major', list: 'major', type: 'select' },
       { label: '专业契合度', model: 'agreePer', list: 'agreePer', type: 'select' },
     ],
@@ -34,7 +34,7 @@ export const three = [
       { label: '负责人', model: 'charge', list: 'gCharge', type: 'select' },
       { label: '年龄', model: 'gage', list: 'age', type: 'select' },
       { label: '学历', model: 'gedu', list: 'edu', type: 'select' },
-      { label: '技术职称', model: 'gteckRank', list: 'teckRank', type: 'select' },
+      { label: '职称', model: 'gteckRank', list: 'teckRank', type: 'select' },
       { label: '专业', model: 'gmajor', list: 'major', type: 'select' },
       { label: '专业契合度', model: 'gagreePer', list: 'agreePer', type: 'select' },
     ],
@@ -44,10 +44,10 @@ export const three = [
     model: 'gw_group',
     type: 'object',
     children: [
-      { label: '技术顾问团', model: 'gnum', list: 'gwNum', type: 'select' },
-      { label: '平均年龄', model: 'gwage', list: 'age', type: 'select' },
-      { label: '最高学历', model: 'gwedu', list: 'edu', type: 'select' },
-      { label: '技术职称', model: 'gwteckRank', list: 'teckRank', type: 'select' },
+      { label: '负责人', model: 'gnum', list: 'gwNum', type: 'select' },
+      { label: '年龄', model: 'gwage', list: 'age', type: 'select' },
+      { label: '学历', model: 'gwedu', list: 'edu', type: 'select' },
+      { label: '职称', model: 'gwteckRank', list: 'teckRank', type: 'select' },
       { label: '专业', model: 'gwmajor', list: 'major', type: 'select' },
       { label: '专业契合度', model: 'gwagreePer', list: 'agreePer', type: 'select' },
     ],

+ 47 - 17
src/views/techolchat/list/detail-model/parts-models/thr.vue

@@ -3,25 +3,23 @@
     <el-row>
       <el-col :span="24" class="main">
         <el-form :model="form" :rules="rules" ref="form" label-width="90px">
-          <template v-for="(i, index) in question">
-            <el-col :span="24" :key="`question${index}`">
-              <el-col :span="3">
-                {{ i.label }}
-              </el-col>
-              <el-col :span="21">
-                <el-col :span="8" v-for="(f, index) in i.children" :key="`children${index}`">
-                  <el-col :span="24">
-                    {{ f.label }}
-                  </el-col>
-                  <el-col :span="24">
-                    <el-select v-model="form[f.model]" :disabled="disabled[f.model]" @change="toChange">
-                      <el-option v-for="(item, index) in getList(f.list)" :key="index" :value="item" :label="item"></el-option>
-                    </el-select>
-                  </el-col>
+          <el-col :span="24" class="thrList" v-for="(i, index) in question" :key="`thr${index}`">
+            <el-col :span="2" class="label">
+              {{ i.label }}
+            </el-col>
+            <el-col :span="21" class="select">
+              <el-col :span="4" class="chiList" v-for="(f, index) in i.children" :key="`children${index}`">
+                <el-col :span="24" class="chi_label">
+                  {{ f.label }}
+                </el-col>
+                <el-col :span="24" class="chi_select">
+                  <el-select v-model="form[f.model]" :disabled="disabled[f.model]" @change="toChange">
+                    <el-option v-for="(item, index) in getList(f.list)" :key="index" :value="item" :label="item"></el-option>
+                  </el-select>
                 </el-col>
               </el-col>
             </el-col>
-          </template>
+          </el-col>
         </el-form>
       </el-col>
     </el-row>
@@ -102,4 +100,36 @@ export default {
 };
 </script>
 
-<style lang="less" scoped></style>
+<style lang="less" scoped>
+.main {
+  .thrList {
+    padding: 10px 0;
+    border-bottom: 1px solid #ccc;
+    .label {
+      font-size: 14px;
+      color: #606266;
+      margin: 0 7px 0 0;
+      padding: 5px 0;
+    }
+    .select {
+      width: 90.8%;
+      .chiList {
+        width: 15.6%;
+        margin: 0 10px 0 0;
+        .chi_label {
+          text-align: center;
+          font-size: 14px;
+          color: #606266;
+          padding: 5px 0;
+        }
+      }
+      .chiList:last-child {
+        margin: 0;
+      }
+    }
+  }
+  .thrList:last-child {
+    border-bottom: none;
+  }
+}
+</style>