Ver código fonte

feat: #帮助内容页面逻辑调整

loki 3 anos atrás
pai
commit
24a1cc7e16

+ 1 - 0
src/containers/ToolbarContainer.vue

@@ -76,6 +76,7 @@
             <IssueTypeSelect
               v-if="field.type === 'issueTypeSelect'"
               v-model="form[field.name]"
+              :props="{ checkStrictly: true }"
             ></IssueTypeSelect>
           </el-form-item>
         </el-col>

+ 5 - 2
src/containers/issueType/IssueTypeSelect.vue

@@ -3,9 +3,10 @@
     :value="vModel"
     :options="options"
     :clearable="true"
-    :show-all-levels="false"
+    v-bind="$attrs"
     @change="onChange"
   ></el-cascader>
+  <!-- :show-all-levels="false" -->
 </template>
 
 <script>
@@ -63,7 +64,9 @@ export default {
   methods: {
     onChange(value) {
       console.log(value);
-      this.$emit('input', value[1] || null);
+      if (value.length) {
+      }
+      this.$emit('input', value[value.length - 1] || null);
     },
 
     async loadData() {

+ 3 - 1
src/views/helpInfo/information/index.vue

@@ -38,7 +38,9 @@ export default {
         {
           key: 'helpGroupName',
           name: '分类名称',
-          width: '180'
+          width: '180',
+          render: (h, { row }) =>
+            h('span', `${row.parentHelpGroupName}/${row.helpGroupName}`)
         },
         {
           key: 'name',

+ 2 - 2
src/views/sceneManagement/sceneList/index.vue

@@ -3,9 +3,9 @@
     <toolbar @on-filter="filterData" @on-reset="filterData" />
 
     <div class="m-10 bg-w p-20 br-10">
-      <el-button type="primary" icon="el-icon-plus" @click="handleAdd"
+      <!-- <el-button type="primary" icon="el-icon-plus" @click="handleAdd"
         >新增</el-button
-      >
+      > -->
       <base-table
         :columns="columns"
         :items="items"