vue2-client 1.17.41 → 1.17.42

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.
@@ -1,98 +1,98 @@
1
- <template>
2
- <a-card :bordered="false">
3
- <x-form-table
4
- title="工作日志"
5
- ref="xFormTable"
6
- service-name="af-system"
7
- :queryParamsName="queryParamsName"
8
- :fixedAddForm="fixedAddForm"
9
- :fixed-query-form="fixedQueryForm"
10
- @afterSubmit="Submit"
11
- @action="toDetail"
12
- >
13
- </x-form-table>
14
- <!-- 抽屉 -->
15
- <a-drawer
16
- :visible="visible"
17
- width="40vw"
18
- placement="right"
19
- title="查看附件"
20
- @close="visible = false, previewFileVisible=false"
21
- >
22
- <div>
23
- <file-item :files="fileList" @preview="handlePreviewFile"/>
24
- </div>
25
- <!-- 文件预览 -->
26
- <a-modal v-model="previewFileVisible" :footer="null" :dialog-style="{ top: '20px' }" width="80%" :z-index="1001">
27
- <file-preview :path="filePath"/>
28
- </a-modal>
29
- </a-drawer>
30
- </a-card>
31
- </template>
32
-
33
- <script>
34
- import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
35
- import { runLogic } from '@vue2-client/services/api/common'
36
- import fileItem from '@vue2-client/components/FileImageItem/FileItem.vue'
37
- import FilePreview from '@vue2-client/components/FilePreview/FilePreview.vue'
38
- import { mapState } from 'vuex'
39
- export default {
40
- name: '工作日志',
41
- components: {
42
- XFormTable,
43
- fileItem,
44
- FilePreview
45
- },
46
- props: {
47
- workflowId: {
48
- type: String,
49
- default: ''
50
- },
51
- details: {
52
- type: Object,
53
- required: true
54
- }
55
- },
56
- computed: {
57
- ...mapState('account', { currUser: 'user' }),
58
- },
59
- data () {
60
- return {
61
- // 查询配置文件名
62
- queryParamsName: 'worklogCRUD',
63
- visible: false,
64
- previewFileVisible: false,
65
- filePath: '',
66
- fileList: [],
67
- fixedQueryForm: {},
68
- fixedAddForm: {}
69
- }
70
- },
71
- mounted () {
72
- this.init()
73
- },
74
- methods: {
75
- init () {
76
- this.fixedQueryForm = { w_f_workflow_id: this.workflowId }
77
- this.fixedAddForm = { w_defname: this.details.f_sub_state }
78
- this.$refs.xFormTable.refreshTable(true)
79
- },
80
- toDetail (record, id) {
81
- runLogic('getfiles', { id: id, f_table_name: 't_work_log' }, 'af-system').then(res => {
82
- this.fileList = res
83
- this.visible = true
84
- })
85
- },
86
- handlePreviewFile (url) {
87
- this.filePath = url
88
- this.previewFileVisible = true
89
- },
90
- Submit (record) {
91
- record.form.id = record.id
92
- record.form.f_workflow_id = this.workflowId
93
- runLogic('updataworklogfiles', record, 'af-system')
94
- this.$refs.xFormTable.refreshTable(true)
95
- }
96
- }
97
- }
98
- </script>
1
+ <template>
2
+ <a-card :bordered="false">
3
+ <x-form-table
4
+ title="工作日志"
5
+ ref="xFormTable"
6
+ service-name="af-system"
7
+ :queryParamsName="queryParamsName"
8
+ :fixedAddForm="fixedAddForm"
9
+ :fixed-query-form="fixedQueryForm"
10
+ @afterSubmit="Submit"
11
+ @action="toDetail"
12
+ >
13
+ </x-form-table>
14
+ <!-- 抽屉 -->
15
+ <a-drawer
16
+ :visible="visible"
17
+ width="40vw"
18
+ placement="right"
19
+ title="查看附件"
20
+ @close="visible = false, previewFileVisible=false"
21
+ >
22
+ <div>
23
+ <file-item :files="fileList" @preview="handlePreviewFile"/>
24
+ </div>
25
+ <!-- 文件预览 -->
26
+ <a-modal v-model="previewFileVisible" :footer="null" :dialog-style="{ top: '20px' }" width="80%" :z-index="1001">
27
+ <file-preview :path="filePath"/>
28
+ </a-modal>
29
+ </a-drawer>
30
+ </a-card>
31
+ </template>
32
+
33
+ <script>
34
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
35
+ import { runLogic } from '@vue2-client/services/api/common'
36
+ import fileItem from '@vue2-client/components/FileImageItem/FileItem.vue'
37
+ import FilePreview from '@vue2-client/components/FilePreview/FilePreview.vue'
38
+ import { mapState } from 'vuex'
39
+ export default {
40
+ name: '工作日志',
41
+ components: {
42
+ XFormTable,
43
+ fileItem,
44
+ FilePreview
45
+ },
46
+ props: {
47
+ workflowId: {
48
+ type: String,
49
+ default: ''
50
+ },
51
+ details: {
52
+ type: Object,
53
+ required: true
54
+ }
55
+ },
56
+ computed: {
57
+ ...mapState('account', { currUser: 'user' }),
58
+ },
59
+ data () {
60
+ return {
61
+ // 查询配置文件名
62
+ queryParamsName: 'worklogCRUD',
63
+ visible: false,
64
+ previewFileVisible: false,
65
+ filePath: '',
66
+ fileList: [],
67
+ fixedQueryForm: {},
68
+ fixedAddForm: {}
69
+ }
70
+ },
71
+ mounted () {
72
+ this.init()
73
+ },
74
+ methods: {
75
+ init () {
76
+ this.fixedQueryForm = { w_f_workflow_id: this.workflowId }
77
+ this.fixedAddForm = { w_defname: this.details.f_sub_state }
78
+ this.$refs.xFormTable.refreshTable(true)
79
+ },
80
+ toDetail (record, id) {
81
+ runLogic('getfiles', { id: id, f_table_name: 't_work_log' }, 'af-system').then(res => {
82
+ this.fileList = res
83
+ this.visible = true
84
+ })
85
+ },
86
+ handlePreviewFile (url) {
87
+ this.filePath = url
88
+ this.previewFileVisible = true
89
+ },
90
+ Submit (record) {
91
+ record.form.id = record.id
92
+ record.form.f_workflow_id = this.workflowId
93
+ runLogic('updataworklogfiles', record, 'af-system')
94
+ this.$refs.xFormTable.refreshTable(true)
95
+ }
96
+ }
97
+ }
98
+ </script>
@@ -53,8 +53,9 @@ routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynami
53
53
  routerResource.example = {
54
54
  path: 'example',
55
55
  name: '示例主页面',
56
+ component: () => import('@vue2-client/base-client/components/his/HChart/demo.vue'),
56
57
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
57
- component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
58
+ // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
58
59
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
59
60
  // component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
60
61
  // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),