vue2-client 1.14.66 → 1.14.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,33 +37,59 @@
37
37
  <a-tab-pane key="0" tab="步骤详情">
38
38
  <a-card :bordered="false" :loading="loadingHistory">
39
39
  <!-- 当前步骤历史记录 -->
40
- <template v-if="formCompletedDataPreview">
40
+ <template v-if="formCompletedDataPreview && formCompletedDataPreview.data.length > 0">
41
41
  <a-descriptions
42
42
  v-show="formCompletedDataPreview.data"
43
43
  :column="{ xxl: 4, xl: 3, lg: 3, md: 3, sm: 2, xs: 1 }"
44
- title="步骤历史记录"
45
44
  bordered
45
+ class="descriptionPreviewItem"
46
46
  >
47
+ <p slot="title" class="descriptionTitle">
48
+ 填写历史
49
+ </p>
47
50
  <a-descriptions-item
48
- v-for="item in formCompletedDataPreview.data"
49
- :key="item.label"
51
+ v-for="(item, index) in formPreviewNoFileData"
52
+ :key="`${item.label}-${index}`"
50
53
  >
51
54
  <span slot="label" style="color: #000">{{ item.label }}</span>
52
55
  <div style="white-space: pre-wrap">{{ item.value }}</div>
53
56
  </a-descriptions-item>
54
57
  </a-descriptions>
55
- <div v-if="formCompletedDataPreview.note">
56
- <div class="ant-descriptions-title complete-data-title">备注</div>
57
- <p style="white-space: pre-wrap">{{ formCompletedDataPreview.note }}</p>
58
- </div>
59
- <div v-if="formCompletedDataPreview.images.length">
60
- <div class="ant-descriptions-title complete-data-title">图片</div>
61
- <image-item :images="formCompletedDataPreview.images" @preview="handlePreviewFile"/>
62
- </div>
63
- <div v-if="formCompletedDataPreview.files.length">
64
- <div class="ant-descriptions-title complete-data-title">附件</div>
65
- <file-item :files="formCompletedDataPreview.files" @preview="handlePreviewFile"/>
66
- </div>
58
+ <a-descriptions
59
+ v-show="formCompletedDataPreview.note"
60
+ bordered
61
+ class="descriptionPreviewItem"
62
+ >
63
+ <p slot="title" class="descriptionTitle">
64
+ 备注
65
+ </p>
66
+ <a-descriptions-item>
67
+ <span slot="label" style="color: #000">备注信息</span>
68
+ <p style="white-space: pre-wrap">{{ formCompletedDataPreview.note }}</p>
69
+ </a-descriptions-item>
70
+ </a-descriptions>
71
+ <a-descriptions
72
+ v-show="formCompletedDataPreview.images.length"
73
+ class="descriptionPreviewItem allWidth"
74
+ >
75
+ <p slot="title" class="descriptionTitle">
76
+ 图片
77
+ </p>
78
+ <a-descriptions-item>
79
+ <image-item :images="formCompletedDataPreview.images" />
80
+ </a-descriptions-item>
81
+ </a-descriptions>
82
+ <a-descriptions
83
+ v-show="formCompletedDataPreview.files.length"
84
+ class="descriptionPreviewItem allWidth"
85
+ >
86
+ <p slot="title" class="descriptionTitle">
87
+ 附件
88
+ </p>
89
+ <a-descriptions-item>
90
+ <file-item :files="formCompletedDataPreview.files" />
91
+ </a-descriptions-item>
92
+ </a-descriptions>
67
93
  </template>
68
94
  <!-- 当前步骤无记录 -->
69
95
  <template v-else>
@@ -75,7 +101,7 @@
75
101
  </template>
76
102
  <template v-else>
77
103
  <a-tab-pane key="1" tab="业务操作">
78
- <a-card :bordered="false" :loading="loadingHistory">
104
+ <a-card :bordered="false" :loading="loadingHistory" :body-style="{ paddingTop: 0 }">
79
105
  <template v-if="showTab">
80
106
  <x-tab :local-config="tabDesigner" :body-style="{ padding: 0 }" :tabBarGutter="24" default-active-key="workFlowTab">
81
107
  <a-tab-pane
@@ -226,10 +252,6 @@
226
252
  <workflow-list-resolution :workflow-project-id="workflowId" :details="details"></workflow-list-resolution>
227
253
  </a-tab-pane>
228
254
  </a-tabs>
229
- <!-- 文件预览 -->
230
- <a-modal v-model="previewFileVisible" :footer="null" :dialog-style="{ top: '20px' }" width="85%" :z-index="1001">
231
- <file-preview :path="filePath"/>
232
- </a-modal>
233
255
  </template>
234
256
  </div>
235
257
  </template>
@@ -271,7 +293,7 @@ export default {
271
293
  ...mapState('account', { currUser: 'user' }),
272
294
  canSubmit () {
273
295
  // 对于超级管理员直接认为可以提交
274
- if (this.currUser.ename === '1') {
296
+ if (this.currUser.name === '超级管理员') {
275
297
  return true
276
298
  }
277
299
  // currentStepId可能还没初始化,此处拿不到先返回false
@@ -309,6 +331,9 @@ export default {
309
331
  }
310
332
 
311
333
  return false
334
+ },
335
+ formPreviewNoFileData () {
336
+ return this.formCompletedDataPreview.data.filter(item => item.label !== '附件上传')
312
337
  }
313
338
  },
314
339
  data () {
@@ -391,9 +416,6 @@ export default {
391
416
  deadlineHelp: '',
392
417
  // 当前任务是否延期
393
418
  // taskIsOverdue: moment().isAfter(this.completeTime, 'day'),
394
- // 预览图片弹框
395
- previewFileVisible: false,
396
- filePath: '',
397
419
  // 操作类型,提交到下一步或跳过
398
420
  operationType: 'submit',
399
421
  // 获取微信推送是否成功信息
@@ -873,7 +895,7 @@ export default {
873
895
  if (this.checkedChargePerson) {
874
896
  // 使用 value 找到对应的 label
875
897
  stepHandler = this.chargePersonOptions.find(item => item.value === this.checkedChargePerson).label
876
- } else if (this.chargePerson.personList.length > 0) {
898
+ } else if (this.chargePerson.personList && this.chargePerson.personList.length > 0) {
877
899
  stepHandler = this.chargePerson.personList.map(item => item.name).join(',')
878
900
  }
879
901
  return stepHandler
@@ -907,11 +929,6 @@ export default {
907
929
  ...extra
908
930
  })
909
931
  },
910
- // 文件预览
911
- handlePreviewFile (url) {
912
- this.filePath = url
913
- this.previewFileVisible = true
914
- },
915
932
  // 获取默认截止时间
916
933
  getDefaultDeadline () {
917
934
  const date = new Date()
@@ -1064,4 +1081,30 @@ export default {
1064
1081
  :deep(.ant-result){
1065
1082
  padding: 0;
1066
1083
  }
1084
+ .descriptionPreviewItem {
1085
+ margin-bottom: 22px;
1086
+ :deep(.ant-descriptions-view) {
1087
+ overflow: visible;
1088
+ }
1089
+ }
1090
+ .allWidth {
1091
+ :deep(.ant-descriptions-item-content) {
1092
+ width: 100%;
1093
+ }
1094
+ }
1095
+ .descriptionTitle {
1096
+ position: relative;
1097
+ padding-left: 12px;
1098
+ &::before {
1099
+ content: '';
1100
+ position: absolute;
1101
+ left: 0;
1102
+ top: 50%;
1103
+ transform: translateY(-50%);
1104
+ width: 4px;
1105
+ height: 16px;
1106
+ background-color: @primary-color;
1107
+ border-radius: 2px;
1108
+ }
1109
+ }
1067
1110
  </style>
@@ -154,7 +154,7 @@ export default {
154
154
  line-height: 8px;
155
155
  }
156
156
  .ant-steps-item-content {
157
- min-width: 200px;
157
+ min-width: 195px;
158
158
  margin-top: 24px;
159
159
  .ant-steps-item-description {
160
160
  text-align: left;
@@ -56,7 +56,7 @@ routerResource.example = {
56
56
  path: 'example',
57
57
  name: '示例主页面',
58
58
  // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
59
- component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
59
+ // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
60
60
  // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
61
61
  // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
62
62
  // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
@@ -65,7 +65,7 @@ routerResource.example = {
65
65
  // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
66
66
  // component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
67
67
  // component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
68
- // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
68
+ component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
69
69
  // component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
70
70
  // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
71
71
  // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
@@ -55,7 +55,9 @@ const workFlowViewApi = {
55
55
  // 根据人查询对应的t_workflow_step中字段f_workflow_id的数据组
56
56
  getWorkFlowStepWorkFlowId: '/logic/getWorkFlowStepWorkFlowId',
57
57
  // 表单提交到下一步
58
- submitToNextStep: '/logic/submitToNextStep'
58
+ submitToNextStep: '/logic/submitToNextStep',
59
+ // 获取指定工作流的附件列表
60
+ getWorkFlowAttachments: '/logic/getWorkFlowAttachments',
59
61
  }
60
62
 
61
63
  export { workFlowViewApi }
package/vue.config.js CHANGED
@@ -11,12 +11,12 @@ const productionGzipExtensions = ['js', 'css']
11
11
  const isProd = process.env.NODE_ENV === 'production'
12
12
 
13
13
  // v4 产品演示
14
- const v3Server = 'http://192.168.50.67:31567'
14
+ const v3Server = 'http://aote-office.8866.org:31567'
15
15
  // const gateway = 'http://192.168.50.67:31467'
16
16
  // const testUpload = 'http://123.60.214.109:8406'
17
17
  const OSSServerDev = 'http://192.168.50.67:30351'
18
18
  // const revenue = 'http://aote-office.8866.org:31567'
19
- const revenue = 'http://192.168.50.67:31567'
19
+ const revenue = 'http://aote-office.8866.org:31567'
20
20
  // const OSSServerProd = 'http://192.168.50.67:31351'
21
21
  // const testUploadLocal = 'http://127.0.0.1:9001'
22
22
  // v3 铜川