vue2-client 1.14.71 → 1.14.73

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.14.71",
3
+ "version": "1.14.73",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -1,3 +1,3 @@
1
- import AmapPointRendering from './AmapPointRendering'
2
-
3
- export default AmapPointRendering
1
+ import AmapPointRendering from './AmapPointRendering'
2
+
3
+ export default AmapPointRendering
@@ -1,3 +1,3 @@
1
- import XDetailsView from './XDetailsView'
2
-
3
- export default XDetailsView
1
+ import XDetailsView from './XDetailsView'
2
+
3
+ export default XDetailsView
@@ -1,3 +1,3 @@
1
- import XFormGroupDetails from './XFormGroupDetails'
2
-
3
- export default XFormGroupDetails
1
+ import XFormGroupDetails from './XFormGroupDetails'
2
+
3
+ export default XFormGroupDetails
@@ -169,6 +169,7 @@ export default {
169
169
  runLogic,
170
170
  /* eslint-disable */
171
171
  async initDiagnosisAutocomplete (dropDownBoxParams) {
172
+ console.log('dropDownBoxParams',dropDownBoxParams)
172
173
  if (!this.editorRef || !this.editorRef.document) {
173
174
  return
174
175
  }
@@ -272,6 +273,7 @@ export default {
272
273
  this.loadFile(fileUrl, bindObject, currResData).then(async () => {
273
274
  // 文件加载完成后再初始化自动完成
274
275
  await this.initDiagnosisAutocomplete(dropDownBoxParams)
276
+ console.log("bindObject",bindObject)
275
277
  })
276
278
  this.loadResList()
277
279
  },
@@ -288,6 +290,12 @@ export default {
288
290
  }
289
291
  }
290
292
  }
293
+ // 拿取多于模板中的数据
294
+ const diff = Object.fromEntries(
295
+ Object.entries(this.bindObject)
296
+ .filter(([key]) => !(key in this.editorRef.getBindObject()))
297
+ )
298
+ this.codeData = {...this.codeData,...diff}
291
299
  this.changeMode()
292
300
  this.fileUrl = fileUrl
293
301
  if (!currResData.f_file_name) {
@@ -365,6 +373,7 @@ export default {
365
373
  logicExtraParams: this.logicExtraParams,
366
374
  dropDownBoxParams: this.dropDownBoxParams
367
375
  })
376
+ console.log('bindObject33',res.bindObject)
368
377
  })
369
378
  },
370
379
  // 切换文档
@@ -394,6 +403,7 @@ export default {
394
403
  // 验证必须输入项
395
404
  if (this.editorRef.validate()) {
396
405
  // 获取HTML文档和结构化数据(JSON)
406
+ console.log('save',this.editorRef.getBindObject())
397
407
  const data = {
398
408
  doc: this.editorRef.getHtml(),
399
409
  dataObject: {
@@ -1,47 +1,90 @@
1
+ <template>
2
+ <a-card :bordered="false">
3
+ <x-form-table
4
+ title="示例页面"
5
+ :queryParamsName="queryParamsName"
6
+ :fixed-query-form="{
7
+ users_f_handler_id: currUser.id,
8
+ }"
9
+ @action="toDetail">
10
+ <template slot="button">
11
+ <a-button @click="add">
12
+ <a-icon type="plus"/>
13
+ 发起报建
14
+ </a-button>
15
+ </template>
16
+ </x-form-table>
17
+ <a-modal
18
+ v-model="applyAddFlag"
19
+ :footer="null"
20
+ :dialog-style="{ top: '5rem' }"
21
+ :z-index="1001"
22
+ title="发起报建"
23
+ :destroyOnClose="true">
24
+ <x-add-native-form ref="xForm" @onSubmit="applySubmit"/>
25
+ </a-modal>
26
+ <WorkflowDetail ref="workFlow" @success="success"></WorkflowDetail>
27
+ </a-card>
28
+ </template>
29
+
1
30
  <script>
2
31
  import WorkflowDetail from '@vue2-client/pages/WorkflowDetail/WorkflowDetail.vue'
32
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
33
+ import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
34
+ import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
35
+ import { mapState } from 'vuex'
3
36
 
4
37
  export default {
5
- name: 'WorkFlowDemo',
6
- components: { WorkflowDetail },
7
- mounted () {
8
- this.$refs.workFlow.init({
9
- workflowId: '11'
10
- })
38
+ name: 'Apply',
39
+ components: {
40
+ XFormTable,
41
+ XAddNativeForm,
42
+ WorkflowDetail
43
+ },
44
+ data () {
45
+ return {
46
+ // 查询配置文件名
47
+ queryParamsName: 'applyCRUD',
48
+ // 发起报建弹框控制
49
+ applyAddFlag: false
50
+ }
51
+ },
52
+ computed: {
53
+ ...mapState('account', { currUser: 'user' }),
11
54
  },
12
55
  methods: {
13
- /**
14
- * 流程详情页成功
15
- * @param note 备注信息
16
- * @param form 表单信息
17
- * @param workflowId
18
- */
19
- success ({ note, form, workflowId }) {
20
- console.log('success', note, form, workflowId)
56
+ add () {
57
+ this.applyAddFlag = true
58
+ this.$nextTick(
59
+ () => {
60
+ getConfigByName('addApplyForm', 'af-apply', (res) => {
61
+ this.$refs.xForm.init({
62
+ businessType: '新增',
63
+ title: '发起报建',
64
+ ...res
65
+ })
66
+ })
67
+ }
68
+ )
69
+ },
70
+ applySubmit (formData) {
71
+ runLogic('addApply', formData).then(
72
+ res => {
73
+ this.$message.success('发起报建成功')
74
+ this.applyAddFlag = false
75
+ }
76
+ ).catch(() => {
77
+ this.applyAddFlag = false
78
+ })
21
79
  },
22
- /**
23
- * 流程详情页成功
24
- * @param note 备注信息
25
- * @param form 表单信息
26
- * @param workflowId 工作流id
27
- * @param fromStepId 起ID
28
- * @param toStepId 往ID
29
- * @param successStepId 完成步骤id
30
- * @param successStep 完成步骤名称
31
- * @param fromStep 起步骤名称
32
- * @param toStep 往步骤名称
33
- */
34
- nextClick ({ note, form, workflowId, fromStepId, toStepId, fromStep, toStep, successStepId, successStep }) {
35
- console.log('success', note, form, workflowId, fromStepId, toStepId, fromStep, toStep, successStepId, successStep)
80
+ success () {
81
+ console.log('完工')
82
+ },
83
+ toDetail (record, id) {
84
+ this.$refs.workFlow.init({
85
+ workflowId: record.twf_id
86
+ })
36
87
  }
37
88
  }
38
89
  }
39
90
  </script>
40
-
41
- <template>
42
- <WorkflowDetail ref="workFlow" @success="success" @nextClick="nextClick"></WorkflowDetail>
43
- </template>
44
-
45
- <style scoped lang="less">
46
-
47
- </style>
@@ -302,14 +302,12 @@ export default {
302
302
  return false
303
303
  }
304
304
  const step = this.stepsForChild[this.currentStepId - 1]
305
+ // 检查handler是否包含当前用户
306
+ if (step && step.handler) {
307
+ return step.handler.includes(this.currUser.name)
308
+ }
305
309
  // 检查角色和部门权限
306
310
  if (step && step.properties && step.properties.chargePerson) {
307
- // chargePerson 改造 旧数据类型是 {chrgePerson: {role: '1', department: '1'}}
308
- // 如果是旧的格式 转换成新的格式后再作处理
309
- if (step.properties.chargePerson.role || step.properties.chargePerson.department) {
310
- step.properties.chargePerson.needSelectPerson = true
311
- step.properties.chargePerson.personList = [{ type: step.properties.chargePerson.role ? 'role' : 'department', name: step.properties.chargePerson.role || step.properties.chargePerson.department }]
312
- }
313
311
  if (step.properties.chargePerson.personList && step.properties.chargePerson.personList.length > 0) {
314
312
  // 使用some方法判断当前人员是否满足任一条件
315
313
  return step.properties.chargePerson.personList.some(item => {
@@ -325,12 +323,6 @@ export default {
325
323
  })
326
324
  }
327
325
  }
328
-
329
- // 检查handler是否包含当前用户
330
- if (step && step.handler) {
331
- return step.handler.includes(this.currUser.name)
332
- }
333
-
334
326
  return false
335
327
  },
336
328
  formPreviewNoFileData () {
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://aote-office.8866.org:31567'
14
+ const v3Server = 'http://192.168.50.67: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://aote-office.8866.org:31567'
19
+ const revenue = 'http://192.168.50.67:31567'
20
20
  // const OSSServerProd = 'http://192.168.50.67:31351'
21
21
  // const testUploadLocal = 'http://127.0.0.1:9001'
22
22
  // v3 铜川