Просмотр исходного кода

feat: 增加条款查询弹窗组件

johnsen 5 месяцев назад
Родитель
Сommit
d3d791951e

+ 8 - 1
src/business/platform/data/components/search-form/index.vue

@@ -128,6 +128,7 @@
                     @keyup.enter.native.stop="handleEnter"
                 /> -->
         <!-- 日期范围-->
+
         <ibps-date-range
           v-else-if="item.fieldType === 'yearrange'"
           v-model="params[item.modelValue]"
@@ -135,7 +136,13 @@
           :disabled="item.disabled"
           :readonly="item.readonly"
           :editable="item.editable"
-          :placeholder="item.placeholder"
+          :startPlaceholder="
+            item.field_options &&
+            item.field_options.placeholder &&
+            item.field_options.placeholder !== '请选择'
+              ? item.field_options.placeholder
+              : ''
+          "
           :style="
             itemStyle +
             (item.itemWidth ? `width: ${item.itemWidth}px;` : 'width: 150px')

+ 10 - 0
src/business/platform/form/formrender/dynamic-form/mixins/StatisOrRecordTable.vue

@@ -1,6 +1,9 @@
 <!-- 表单内预览统计页面及记录合资页面 -->
 <template>
   <div class="relev">
+    <!-- type: "Statis",
+        title: "数据统计",
+        show: [1, 5, 7, 6, 17], -->
     <div
       v-for="(el, index) in list"
       :key="index"
@@ -62,6 +65,9 @@ export default {
         Record: {
           setting: {}
         },
+        clauses: {
+          setting: {}
+        },
         normal: {
           setting: {
             center: true
@@ -93,6 +99,8 @@ export default {
                     import(
                       '@/views/platform/data/dataTemplate/template-list.vue'
                     )
+                : type === 'clauses'
+                ? () => import('@/views/docManages/clauses.vue')
                 : () => import('@/views/platform/bpmn/bpmInstHis/list.vue')
           },
           data() {
@@ -107,6 +115,8 @@ export default {
           template:
             type === 'normal'
               ? `<template-list v-if="type === 'normal'" :template-id="templateId" :height="height" :dynamic-params="dynamicParams" />`
+              : type === 'clauses'
+              ? `<div style="height:600px;"><template-list v-if="type === 'clauses'" propWidth='0' :temId="templateId" /></div>`
               : `<div style="height:600px;"><template-list v-if="type === 'Record'" location="absolute" /></div>`
         },
         {

+ 14 - 2
src/views/docManages/clauses.vue

@@ -11,8 +11,9 @@
         @expand-collapse="handleExpandCollapse"
       />
     </div>
-    <ibps-container :margin-left="width + 'px'" class="page">
+    <ibps-container :margin-left="(propWidth || width) + 'px'" class="page">
       <template-list
+        :height="height"
         :template-id="templateId"
         :dynamic-params="dynamicParams"
       />
@@ -24,12 +25,23 @@ import ActionUtils from '@/utils/action'
 import FixHeight from '@/mixins/height'
 import TemplateList from '@/views/platform/data/dataTemplate/template-list.vue'
 import { queryPaperOpRecod, removePaperOpRecod } from '@/api/business/general'
+import height from '@/mixins/height'
 
 export default {
   components: {
     TemplateList,
     IbpsTypeTree: () => import('./left-tree.vue')
   },
+  props: {
+    temId: {
+      type: String,
+      default: ''
+    },
+    propWidth: {
+      type: String,
+      default: ''
+    }
+  },
   provide() {
     return {
       registerGrandChildMethod: (method) => {
@@ -192,7 +204,7 @@ export default {
   },
   created() {
     this.pageKey = this.$route?.meta?.name
-    this.templateId = this.pageKey.split('_')[1] || ''
+    this.templateId = this.temId || this.pageKey.split('_')[1] || ''
   },
   // mounted() {
   //   this.loadData()