jufubao-base 1.0.279-beta101 → 1.0.279-beta103

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.
Files changed (24) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseCard/JfbBaseCard.vue +6 -0
  3. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +6 -0
  4. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +6 -0
  5. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +6 -0
  6. package/src/components/JfbBaseChangeCompany/Api.js +3 -43
  7. package/src/components/JfbBaseChangeCompany/Attr.js +8 -38
  8. package/src/components/JfbBaseChangeCompany/JfbBaseChangeCompany.vue +170 -80
  9. package/src/components/JfbBaseChangeCompany/Mock.js +1 -7
  10. package/src/components/JfbBaseChangeCompany/cusAttr/advanced.js +24 -0
  11. package/src/components/JfbBaseChangeCompany/cusAttr/content.js +27 -0
  12. package/src/components/JfbBaseChangeCompany/cusAttr/style.js +127 -0
  13. package/src/components/JfbBaseChoseCompany/Api.js +11 -36
  14. package/src/components/JfbBaseChoseCompany/Attr.js +8 -38
  15. package/src/components/JfbBaseChoseCompany/JfbBaseChoseCompany.vue +318 -79
  16. package/src/components/JfbBaseChoseCompany/Mock.js +2 -6
  17. package/src/components/JfbBaseChoseCompany/cusAttr/advanced.js +24 -0
  18. package/src/components/JfbBaseChoseCompany/cusAttr/content.js +69 -0
  19. package/src/components/JfbBaseChoseCompany/cusAttr/style.js +327 -0
  20. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +1 -0
  21. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +2 -3
  22. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +153 -7
  23. package/src/components/JfbBasePay/JfbBasePay.vue +7 -4
  24. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +1 -1
@@ -7,52 +7,27 @@
7
7
  module.exports = [
8
8
  {
9
9
  //设置方法名字当别忘记加上【模块名字】:Chose
10
- mapFnName: 'getChoseByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
10
+ mapFnName: 'getChoseCompanyList',
11
+ title: '获取公司列表',
12
+ path: '/saas/v1/company-by-user-id/items',
13
13
  isRule: false,
14
14
  params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
17
15
  },
18
16
  isConsole: true,
19
17
  disabled: true,
20
18
  },
21
19
  {
22
20
  //设置方法名字当别忘记加上【模块名字】:Chose
23
- mapFnName: 'updateChoseFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
21
+ mapFnName: 'switchChoseCompany',
22
+ title: '选择公司列表',
23
+ path: '/passport/v1/user/switch-customer',
26
24
  isRule: false,
27
- params: {
28
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
30
- },
31
- isConsole: true,
32
- disabled: true,
33
- },
34
- {
35
- //设置方法名字当别忘记加上【模块名字】:Chose
36
- mapFnName: 'removeChoseFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
39
- isRule: false,
40
- params: {
41
- film_id: ['电影id', 'Number', '必选'],
25
+ data: {
26
+ customer_id: ['用户选择的客户ID', 'String', '必选'],
27
+ is_need_register_saas_user: ['是否需要同步到SAAS', 'Boolean', '必选'],
28
+ company_source_from: ['公司来源', 'String', '必选'],
42
29
  },
43
30
  isConsole: true,
44
31
  disabled: true,
45
- },
46
- {
47
- //设置方法名字当别忘记加上【模块名字】:Chose
48
- mapFnName: 'addChoseFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
51
- isRule: false,
52
- params: {
53
- film_id: ['电影id', 'Number', '必选'],
54
- },
55
- isConsole: true,
56
- disabled: true,
57
- },
32
+ }
58
33
  ];
@@ -1,48 +1,18 @@
1
1
  'use strict';
2
-
2
+ import Style from './cusAttr/style'
3
+ import Advanced from './cusAttr/advanced'
4
+ import Content from './cusAttr/content'
3
5
  /**
4
6
  * @description 当表单组件中有联动操作时候,使用方法进行返回
5
7
  */
6
8
  export default {
7
9
  style: [],
8
- content: (data) => {
10
+ content: (data, gValue, gColor, oldData) => {
9
11
  return [
10
- {
11
- label: '背景颜色:',
12
- ele: 'xd-color',
13
- valueKey: 'bgColor',
14
- value: data.bgColor || '',
15
- placeholder: '请输入占位框背景颜色',
16
- groupKey:'content',
17
- },
18
- {
19
- label: '选中路径:',
20
- groupKey:'advanced',
21
- className: 'input100',
22
- ele: 'xd-select-pages-path',
23
- valueKey: 'select-pages-path',
24
- value: data['select-pages-path'] || null,
25
- setting: {
26
- router: XdBus.getParentApi('getPagesTree')
27
- },
28
- },
29
- data.bgColor && {
30
- label: '高度:',
31
- ele: 'el-input',
32
- groupKey:'style',
33
- type: 'number',
34
- valueKey: 'height',
35
- value: data.height || 100,
36
- placeholder: '请输入占位框高度,单位像素,默认:10px',
37
- className: 'input60',
38
- },
39
- {
40
- label: '', //label
41
- groupKey:'advanced',
42
- ele: 'slot', //package 名称
43
- slot: 'is_reference',
44
- },
45
- ].filter(i=>i)
12
+ ...Style(data, gValue, gColor, oldData),
13
+ ...Advanced(data, gValue, gColor, oldData),
14
+ ...Content(data, gValue, gColor, oldData),
15
+ ].filter(i => i)
46
16
  },
47
17
  advanced: [],
48
18
  };
@@ -2,110 +2,349 @@
2
2
  <view
3
3
  class="jfb-base-chose-company"
4
4
  @click="handleEditxSelect"
5
- :class="{ editx : isEditx && active }"
5
+ :class="{ editx: isEditx && active }"
6
6
  >
7
7
  <!--#ifdef H5-->
8
8
  <view
9
9
  class="jfb-base-chose-company__edit"
10
- :class="{ editx : isEditx && active }"
10
+ :class="{ editx: isEditx && active }"
11
11
  v-if="isEditx && active"
12
12
  >
13
- <view class="jfb-base-chose-company__edit-icon" @click="delEdit">删除</view>
13
+ <view class="jfb-base-chose-company__edit-icon" @click="delEdit"
14
+ >删除</view
15
+ >
14
16
  </view>
15
17
  <!-- #endif -->
16
- <view class="jfb-base-chose-company__body">
17
- <view>测试插件( {{containerId}} )</view>
18
+ <view
19
+ class="jfb-base-chose-company__body"
20
+ :style="{ minHeight: layoutInfo.bodyMinHeightRpx + 'rpx' }"
21
+ >
22
+ <view :style="[contentPaddingCompStyle]">
23
+ <view class="jfb-base-chose-company__body-title"
24
+ >企业信息({{ companyList.length }}家)</view
25
+ >
26
+ <view class="jfb-base-chose-company__body-notice">{{ title }}</view>
27
+ <view :style="{ '--main-color': mainColor }">
28
+ <view
29
+ v-for="(item, index) in companyList"
30
+ :key="index"
31
+ @click="handleChoseCompany(item)"
32
+ :style="[listPaddingCompStyle]"
33
+ :class="[
34
+ 'jfb-base-chose-company__body-company',
35
+ item.is_select ? 'active' : '',
36
+ ]"
37
+ >
38
+ <view
39
+ v-if="item.is_select"
40
+ class="jfb-base-chose-company__body-company-active"
41
+ :style="{
42
+ background: mainColor,
43
+ borderRadius: `0 ${listRadius}rpx 0 30rpx`,
44
+ }"
45
+ >
46
+ <XdFontIcon
47
+ size="20"
48
+ icon="iconduigou-xian"
49
+ color="#fff"
50
+ ></XdFontIcon>
51
+ </view>
52
+ {{ item.company_name }}
53
+ </view></view
54
+ >
55
+ </view>
56
+ <view :style="[addCoMpStyle]" class="jfb-base-chose-company__body-add"
57
+ >{{ addTitle
58
+ }}<view @click="handleToAdd" style="color: red"
59
+ >去添加<XdFontIcon
60
+ size="28"
61
+ icon="iconxiangyou_xian"
62
+ ></XdFontIcon></view
63
+ ></view>
18
64
  </view>
19
65
  </view>
20
66
  </template>
21
67
 
22
68
  <script>
23
- import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
24
- import { jfbRootExec } from "@/utils/xd.event";
25
- import JfbBaseChoseCompanyMixin from "./JfbBaseChoseCompanyMixin";
26
- import { getContainerPropsValue } from "@/utils/xd.base";
27
- import componentsMixins from "@/mixins/componentsMixins";
28
- import extsMixins from "@/mixins/extsMixins";
29
- export default {
30
- name: "JfbBaseChoseCompany",
31
- components: {
32
- XdFontIcon
69
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
70
+ import { jfbRootExec } from "@/utils/xd.event";
71
+ import JfbBaseChoseCompanyMixin from "./JfbBaseChoseCompanyMixin";
72
+ import { getContainerPropsValue, gCPVal } from "@/utils/xd.base";
73
+ import componentsMixins from "@/mixins/componentsMixins";
74
+ import extsMixins from "@/mixins/extsMixins";
75
+ import { mapState } from "vuex";
76
+ export default {
77
+ name: "JfbBaseChoseCompany",
78
+ components: {
79
+ XdFontIcon,
80
+ },
81
+ mixins: [componentsMixins, extsMixins, JfbBaseChoseCompanyMixin],
82
+ data() {
83
+ return {
84
+ title: "",
85
+ addTitle: "",
86
+ contentPadding: {},
87
+ listPadding: {},
88
+ listRadius: "",
89
+ listSpacing: "",
90
+ listBorder: 0,
91
+ listShadow: "0 0 0 rgba(0,0,0,0)",
92
+ listFontStyle: {},
93
+ addBackground: "",
94
+ addFontStyle: {},
95
+ addCompanyPath: "",
96
+ companyList: [],
97
+ redirect_url: "",
98
+ };
99
+ },
100
+ watch: {
101
+ container(value, oldValue) {
102
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
103
+ if (this.$configProject["isPreview"]) this.init(value);
104
+ },
105
+ },
106
+ computed: {
107
+ ...mapState(["brandInfo", "jfbAuthorize"]),
108
+ contentPaddingCompStyle() {
109
+ return {
110
+ padding: this.getMarginAndPadding(this.contentPadding, 0),
111
+ };
33
112
  },
34
- mixins: [
35
- componentsMixins, extsMixins, JfbBaseChoseCompanyMixin
36
- ],
37
- data() {
113
+ listPaddingCompStyle() {
38
114
  return {
115
+ padding: this.getMarginAndPadding(this.listPadding, 0),
116
+ marginTop: this.listSpacing + "rpx",
117
+ borderRadius: this.listRadius + "rpx",
118
+ border: this.listBorder,
119
+ boxShadow: this.listShadow,
120
+ color: this.listFontStyle.color,
121
+ };
122
+ },
123
+ addCoMpStyle() {
124
+ return {
125
+ background: this.addBackground,
126
+ color: this.addFontStyle.color,
127
+ };
128
+ },
129
+ },
130
+ created() {
131
+ this.init(this.container);
39
132
 
40
- //todo
133
+ //todo
134
+ },
135
+ methods: {
136
+ onJfbLoad(options) {
137
+ if (options.redirect_url) {
138
+ this.redirect_url = Base64.decode(options.redirect_url);
41
139
  }
140
+ jfbRootExec("getChoseCompanyList", {
141
+ vm: this,
142
+ data: {},
143
+ }).then((res) => {
144
+ console.log(res, "resgetChoseCompanyList");
145
+ if (res.list.length === 0) {
146
+ this.handleToAdd();
147
+ return;
148
+ }
149
+ this.companyList = res.list;
150
+ });
42
151
  },
43
- watch: {
44
- container(value, oldValue) {
45
- if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
46
- if (this.$configProject['isPreview']) this.init(value)
47
- },
152
+ /**
153
+ * @description 监听事件变化
154
+ * @param container {object} 业务组件对象自己
155
+ */
156
+ init(container) {
157
+ //content
158
+ this.title = gCPVal(
159
+ container,
160
+ "title",
161
+ "切换企业将进入对应企业搭建的平台,频道、商品、品牌等可能存在差异",
162
+ {
163
+ sKey: "titleStatus",
164
+ fields: ["title"],
165
+ }
166
+ );
167
+ this.addTitle = gCPVal(container, "addTitle", "无此企业?", {
168
+ sKey: "addTitleStatus",
169
+ fields: ["addTitle"],
170
+ });
171
+ //style
172
+ this.contentPadding = gCPVal(
173
+ container,
174
+ "contentPadding",
175
+ { top: 36, bottom: 0, left: 20, right: 20 },
176
+ {
177
+ sKey: "contentPaddingStatus",
178
+ isPMR: true,
179
+ fields: ["contentPadding"],
180
+ }
181
+ );
182
+ this.listPadding = gCPVal(
183
+ container,
184
+ "listPadding",
185
+ { top: 40, bottom: 40, left: 32, right: 32 },
186
+ {
187
+ sKey: "listPaddingStatus",
188
+ isPMR: true,
189
+ fields: ["listPadding"],
190
+ }
191
+ );
192
+ this.listSpacing = gCPVal(container, "listSpacing", "24", {
193
+ sKey: "listSpacingStatus",
194
+ fields: ["listSpacing"],
195
+ });
196
+ this.listRadius =
197
+ gCPVal(container, "listRadius", [8], {
198
+ sKey: "listRadiusStatus",
199
+ fields: ["listRadius"],
200
+ }) || 0;
201
+ this.listBorder = gCPVal(
202
+ container,
203
+ "listBorder",
204
+ [{ color: "#ccc", width: 2, style: "solid" }],
205
+ {
206
+ isBorder: true,
207
+ bsOld: ["is_border", "is_border_w", "is_border_c"],
208
+ }
209
+ );
210
+ this.listShadow = gCPVal(
211
+ container,
212
+ "listShadow",
213
+ [{ width: 0, color: "rgba(0,0,0,0)" }, "none"],
214
+ { isShadow: true, bsOld: ["is_shadow", "is_shadow_w", "is_shadow_bg"] }
215
+ );
216
+ this.listFontStyle = gCPVal(
217
+ container,
218
+ "listFontStyle",
219
+ [
220
+ {
221
+ color: "#333",
222
+ },
223
+ ],
224
+ {
225
+ sKey: "listFontStyleStatus",
226
+ fields: ["listFontStyle"],
227
+ isMerge: true,
228
+ }
229
+ );
230
+ this.addBackground = gCPVal(container, "addBackground", "#F8F8F8", {
231
+ sKey: "addBackgroundStatus",
232
+ fields: ["addBackground"],
233
+ });
234
+ this.addFontStyle = gCPVal(
235
+ container,
236
+ "addFontStyle",
237
+ [
238
+ {
239
+ color: "#999999",
240
+ },
241
+ ],
242
+ { sKey: "addFontStyleStatus", fields: ["addFontStyle"], isMerge: true }
243
+ );
244
+ //advanced
245
+ this.addCompanyPath = getContainerPropsValue(
246
+ container,
247
+ "content.addCompanyPath",
248
+ { value: "" }
249
+ ).value;
48
250
  },
49
- created() {
50
- this.init(this.container);
251
+ handleChoseCompany(item) {
252
+ jfbRootExec("switchChoseCompany", {
253
+ vm: this,
254
+ data: {
255
+ customer_id: item.company_id,
256
+ is_need_register_saas_user: item.is_need_register_saas_user,
257
+ company_source_from: item.company_source_from,
258
+ },
259
+ }).then((res) => {
260
+ //#ifdef MP-WEIXIN
261
+ if (this.jfbAuthorize !== null) {
262
+ this.jfbAuthorize.setAllToken(res);
263
+ }
264
+ //#endif
51
265
 
52
- //todo
266
+ if (this.redirect_url) {
267
+ this.$xdUniHelper.redirectTo({
268
+ url: this.redirect_url,
269
+ });
270
+ } else {
271
+ this.$xdUniHelper.redirectTo({
272
+ url: this.settings.index,
273
+ });
274
+ }
275
+ });
53
276
  },
54
- methods: {
55
- onJfbLoad(options) {
56
-
57
- // jfbRootExec('baiduUserLogin', {
58
-
59
- // vm: this,// data: {
60
-
61
- // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
62
-
63
- // }
64
-
65
- // }).then().catch()
66
- },
67
- /**
68
- * @description 监听事件变化
69
- * @param container {object} 业务组件对象自己
70
- */
71
- init(container) {
72
-
73
- //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
74
-
75
- //this.height = getContainerPropsValue(container, 'content.height', 10);
76
- },
77
- onJfbScroll(options) {
78
- console.log('event.onJfbScroll', options)
79
- },
80
- onJfbReachBottom(options) {
81
- console.log('event.onJfbReachBottom', options)
82
- },
83
- onJfbShow(options) {
84
- console.log('event.onJfbShow', options)
85
- },
86
- onJfbHide(options) {
87
- console.log('event.onJfbHide', options)
88
- },
89
- onJfbBack(options) {
90
- console.log('event.onJfbBack', options)
91
- },
92
- onJfbUpdate(...data) {
93
- console.log('event.onJfbUpdate', data)
94
- },
95
- onJfbCustomEvent(options) {
96
- console.log('event.onJfbReachBottom', options)
97
- },
98
- }
99
- }
100
-
277
+ handleToAdd() {
278
+ this.$xdUniHelper.navigateTo({
279
+ url: this.addCompanyPath,
280
+ });
281
+ },
282
+ onJfbScroll(options) {
283
+ console.log("event.onJfbScroll", options);
284
+ },
285
+ onJfbReachBottom(options) {
286
+ console.log("event.onJfbReachBottom", options);
287
+ },
288
+ onJfbShow(options) {
289
+ console.log("event.onJfbShow", options);
290
+ },
291
+ onJfbHide(options) {
292
+ console.log("event.onJfbHide", options);
293
+ },
294
+ onJfbBack(options) {
295
+ console.log("event.onJfbBack", options);
296
+ },
297
+ onJfbUpdate(...data) {
298
+ console.log("event.onJfbUpdate", data);
299
+ },
300
+ onJfbCustomEvent(options) {
301
+ console.log("event.onJfbReachBottom", options);
302
+ },
303
+ },
304
+ };
101
305
  </script>
102
306
 
103
307
  <style scoped lang="less">
104
- @import "./JfbBaseChoseCompanyLess.less";
105
-
106
- .jfb-base-chose-company {
107
- &__body{
308
+ @import "./JfbBaseChoseCompanyLess.less";
108
309
 
310
+ .jfb-base-chose-company {
311
+ &__body {
312
+ color: #333;
313
+ &-title {
314
+ font-weight: 500;
315
+ font-size: 36rpx;
316
+ }
317
+ &-notice {
318
+ color: #666666;
319
+ margin-top: 8rpx;
320
+ font-size: 28rpx;
321
+ }
322
+ &-company {
323
+ font-size: 32rpx;
324
+ font-weight: 500;
325
+ position: relative;
326
+ &-active {
327
+ position: absolute;
328
+ top: 0;
329
+ right: 0;
330
+ padding: 18rpx 16rpx;
331
+ }
332
+ }
333
+ &-add {
334
+ display: flex;
335
+ justify-content: center;
336
+ align-items: center;
337
+ padding: 24rpx 0;
338
+ margin-top: 360rpx;
339
+ font-size: 28rpx;
340
+ & > view {
341
+ display: flex;
342
+ align-items: center;
343
+ }
344
+ }
345
+ .active {
346
+ border-color: var(--main-color) !important;
109
347
  }
110
348
  }
349
+ }
111
350
  </style>
@@ -2,12 +2,8 @@
2
2
 
3
3
  module.exports = {
4
4
 
5
- getChoseByIdFilmSquate:{},
5
+ getChoseCompanyList: { "list": [{ "company_id": "101683", "company_name": "广州向阳中学(测试)", "company_logo": "", "company_source_from": "S", "is_need_register_saas_user": false, "is_select": false }], "request_id": "748f6396ea2a1cac" },
6
6
 
7
- updateChoseFilmPaiqiDate:{},
8
-
9
- removeChoseFilmAddress:{},
10
-
11
- addChoseFilmcart:{},
7
+ switchChoseCompany: { "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIxNjEtMTc5MjhjYzM3Nzg4YmUwMiIsImlhdCI6MTc1Njc3NzEyOC4yMDQ4MDEsImV4cCI6MTc1Njc4NDMyOC4yMDQ4MDEsInVzZXJfaWQiOiI1MDAwMDM0IiwidXNlcl9zaWduIjoiMjYxN2Q2N2ExNDM5OTRlOWJjMjU1ODViMmI0OGFhMzciLCJ1c2VyX3NpZ25fZXhwaXJlIjoiMTc1Njc4NDM4OCIsImNsaWVudF9pcCI6IjEwMS43Mi4xODcuNzQiLCJwbGF0Zm9ybSI6InNhYXM6MTAxNjgzOjoiLCJjdXN0b21lcl9pZCI6IjEwMTY4MyJ9.jQVEYQZ9x6GiRMY0Jg0V6grg4x40UDQAd9-1VkGB9Eo", "csrf_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIxNjEtMTc5MjhjYzM3Nzg4YmUwMiIsImlhdCI6MTc1Njc3NzEyOC4yMDQ5OSwiZXhwIjoxNzU2Nzg0MzI4LjIwNDk5LCJjc3JmX3VzZXJfaWQiOjUwMDAwMzQsImNsaWVudF9pcCI6IjEwMS43Mi4xODcuNzQiLCJjdXN0b21lcl9pZCI6IjEwMTY4MyJ9.rJtEvKouJpDeJDmufoc5edn63Bmfx8ZIPXTmi09e6K0", "refresh_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIxNjEtMTc5MjhjYzM3Nzg4YmUwMiIsImlhdCI6MTc1Njc3NzEyOC4yMDQ5NTgsImV4cCI6MTc1ODA3MzEyOC4yMDQ5NTgsInJlZnJlc2hfdXNlcl9pZCI6NTAwMDAzNCwiY2xpZW50X2lwIjoiMTAxLjcyLjE4Ny43NCIsInBsYXRmb3JtIjoic2FhczoxMDE2ODM6OiIsImN1c3RvbWVyX2lkIjoiMTAxNjgzIn0.FkSrW7on6AnhgUMGF3rGwtpbe59OqOu-3jk2k0YC6_o", "access_token_expire_in": "7200", "csrf_token_expire_in": "7200", "refresh_token_expire_in": "1296000", "user_id": 5000034, "platform": "saas:101683::", "phone_number": "17703167945", "request_id": "39be2208ca0bba15" },
12
8
 
13
9
  }
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+ import {
3
+ dataVal,
4
+ } from "@/utils/AttrTools";
5
+
6
+ export default (data, gValue, gColor, oldData) => {
7
+ return [
8
+ {
9
+ label: '添加企业',
10
+ ele: 'xd-select-pages-path',
11
+ labelInline: true,
12
+ valueKey: 'addCompanyPath',
13
+ placeholder: '请选择切换企业跳转地址',
14
+ value: dataVal({ data, key: 'addCompanyPath', dValue: null, gValue }),
15
+ groupKey: 'advanced',
16
+ className: 'input100',
17
+ setting: {
18
+ mode: 'new',
19
+ router: XdBus.getParentApi('getPagesTree'),
20
+ },
21
+ inline: false,
22
+ },
23
+ ]
24
+ }
@@ -0,0 +1,69 @@
1
+ 'use strict';
2
+ import {
3
+ dataVal,
4
+ statusDataVal,
5
+ statusShow
6
+ } from "@/utils/AttrTools";
7
+
8
+ export default (data, gValue, gColor, oldData) => {
9
+ return [
10
+ {
11
+ ele: 'title',
12
+ label: '基础',
13
+ size: 'small',
14
+ groupKey: 'content',
15
+ },
16
+ {
17
+ label: '选择企业',
18
+ ele: 'xd-radio',
19
+ groupKey: 'content',
20
+ valueKey: 'titleStatus',
21
+ value: statusDataVal({ data, key: 'titleStatus', fields: ['title'], gValue }),
22
+ labelInline: true,
23
+ list: [
24
+ { label: '默认', value: 'D' },
25
+ { label: '自定义', value: 'C' },
26
+ ]
27
+ },
28
+ { ele: 'group_start' },
29
+ {
30
+ label: '',
31
+ ele: 'el-input',
32
+ type: 'text',
33
+ valueKey: 'title',
34
+ labelInline: true,
35
+ value: dataVal({ data, key: 'title', dValue: '', gValue }),
36
+ hidden: !statusShow({ data, key: 'titleStatus', fields: ['title'], gValue }),
37
+ groupKey: 'content',
38
+ placeholder: '请输入提示内容',
39
+ className: 'input80',
40
+ },
41
+ { ele: 'group_end' },
42
+ {
43
+ label: '添加企业',
44
+ ele: 'xd-radio',
45
+ groupKey: 'content',
46
+ valueKey: 'addTitleStatus',
47
+ value: statusDataVal({ data, key: 'addTitleStatus', fields: ['addTitle'], gValue }),
48
+ labelInline: true,
49
+ list: [
50
+ { label: '默认', value: 'D' },
51
+ { label: '自定义', value: 'C' },
52
+ ]
53
+ },
54
+ { ele: 'group_start' },
55
+ {
56
+ label: '',
57
+ ele: 'el-input',
58
+ type: 'text',
59
+ valueKey: 'addTitle',
60
+ labelInline: true,
61
+ value: dataVal({ data, key: 'addTitle', dValue: '', gValue }),
62
+ hidden: !statusShow({ data, key: 'addTitleStatus', fields: ['addTitle'], gValue }),
63
+ groupKey: 'content',
64
+ placeholder: '请输入提示内容',
65
+ className: 'input80',
66
+ },
67
+ { ele: 'group_end' },
68
+ ]
69
+ }