jufubao-base 1.0.382 → 1.0.383

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": "jufubao-base",
3
- "version": "1.0.382",
3
+ "version": "1.0.383",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+ /**
3
+ * @description 接口配置,
4
+ * 在设置方法名字当时候,别忘记加上【模块名字】:Feed
5
+ * @type {*[]}
6
+ */
7
+ module.exports = [
8
+ {
9
+ //设置方法名字当别忘记加上【模块名字】:Feed
10
+ mapFnName: 'createFeedback',
11
+ title: '用户提交反馈内容',
12
+ path: '/aftersale/v1/feedback/create',
13
+ isRule: false,
14
+ data: {
15
+ feedback_content: ['反馈内容,最大500字', 'String', true ],
16
+ feedback_images: ['反馈图片,最多5张', 'JSON数组字符串,如 `["url1","url2"]`', false ],
17
+ contact_info: ['联系方式', 'String', false ],
18
+ is_anonymous: ['是否匿名', 'N`=否,`Y`=是,默认`N`', false ]
19
+ },
20
+ isConsole: true,
21
+ disabled: true,
22
+ },
23
+ {
24
+ mapFnName: "getConOssSign",
25
+ title: "获取上传参数",
26
+ path: "/common-user/v1/h5-oss/sign",
27
+ isRule: false,
28
+ data: {
29
+ },
30
+ isConsole: true,
31
+ disabled: true,
32
+ },
33
+ {
34
+ title: "获取反馈类型列表",
35
+ path: "/aftersale/v1/feedback/feedback-type/options",
36
+ mapFnName: "getFeedbackTypeOptions",
37
+ isRule: false,
38
+ params: {},
39
+ isConsole: true,
40
+ disabled: true,
41
+ }
42
+ ];
@@ -0,0 +1,125 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [
10
+ {
11
+ ele: 'title',
12
+ label: '基础',
13
+ size: 'small',
14
+ groupKey:'content',
15
+ },
16
+ {
17
+ label: '反馈内容',
18
+ ele: 'xd-cus-switch',
19
+ valueKey: 'fbContentShow',
20
+ value: data['fbContentShow'] || 'Y',
21
+ className: 'input100',
22
+ groupKey:'content',
23
+ labelInline:true,
24
+ setting: {
25
+ tips:['显示','隐藏'],
26
+ isBackType: 'string'
27
+ },
28
+ },
29
+ {
30
+ label: '上传图片',
31
+ ele: 'xd-cus-switch',
32
+ valueKey: 'fbImagesShow',
33
+ value: data['fbImagesShow'] || 'Y',
34
+ className: 'input100',
35
+ groupKey:'content',
36
+ labelInline:true,
37
+ setting: {
38
+ tips:['显示','隐藏'],
39
+ isBackType: 'string'
40
+ },
41
+ },
42
+ {
43
+ label: '联系方式',
44
+ ele: 'xd-cus-switch',
45
+ valueKey: 'fbContactShow',
46
+ value: data['fbContactShow'] || 'Y',
47
+ className: 'input100',
48
+ groupKey:'content',
49
+ labelInline:true,
50
+ setting: {
51
+ tips:['显示','隐藏'],
52
+ isBackType: 'string'
53
+ },
54
+ },
55
+ { ele: 'group_start' },
56
+ {
57
+ label: "提示",
58
+ ele: "el-input",
59
+ valueKey: "contactPlaceholder",
60
+ value: data.contactPlaceholder || '',
61
+ groupKey: 'content',
62
+ className: 'input80',
63
+ placeholder: "请输入手机号/邮箱",
64
+ notice: '未设置时,默认请输入手机号/邮箱',
65
+ labelInline:true,
66
+ inline: false,
67
+ },
68
+ { ele: 'group_end' },
69
+ {
70
+ label: '匿名反馈',
71
+ ele: 'xd-cus-switch',
72
+ valueKey: 'fbAnonymousShow',
73
+ value: data['fbAnonymousShow'] || 'Y',
74
+ className: 'input100',
75
+ groupKey:'content',
76
+ labelInline:true,
77
+ setting: {
78
+ tips:['显示','隐藏'],
79
+ isBackType: 'string'
80
+ },
81
+ },
82
+
83
+ {
84
+ label: '提交反馈',
85
+ ele: 'xd-select-pages-path',
86
+ valueKey: 'submitPath',
87
+ placeholder: '请选择提交反馈跳转地址',
88
+ labelInline: true,
89
+ className: 'input100',
90
+ value: data.submitPath || null,
91
+ groupKey:'advanced',
92
+ setting: {
93
+ mode:'new',
94
+ router: XdBus.getParentApi('getPagesTree'),
95
+ },
96
+ inline: false,
97
+ },
98
+ {
99
+ label: '反馈记录',
100
+ ele: 'xd-select-pages-path',
101
+ valueKey: 'fbListPath',
102
+ placeholder: '请选择反馈记录跳转地址',
103
+ labelInline: true,
104
+ className: 'input100',
105
+ value: data.fbListPath || null,
106
+ groupKey:'advanced',
107
+ setting: {
108
+ mode:'new',
109
+ router: XdBus.getParentApi('getPagesTree'),
110
+ },
111
+ inline: false,
112
+ },
113
+ {
114
+ label: '版本号:',
115
+ ele: 'el-input',
116
+ type: 'text',
117
+ groupKey: 'advanced',
118
+ valueKey: 'version',
119
+ value: 'v2.0',
120
+ hidden: true,
121
+ },
122
+ ].filter(i=>i)
123
+ },
124
+ advanced: [],
125
+ };