jufubao-admin-library 1.0.0-beta3 → 1.1.2

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.
@@ -25,6 +25,7 @@
25
25
  <xd-table
26
26
  :headers="headers"
27
27
  :list="tables"
28
+ :defaultSort="{prop: 'total_product_num', order: 'descending'}"
28
29
  is-border
29
30
  @onSortChange="handleSortChange"
30
31
  ></xd-table>
@@ -68,8 +69,8 @@ export default {
68
69
  searchParams: null, //搜索参数
69
70
  totalData: {},
70
71
  total: 0,
71
- sort_by: "", //排序字段
72
- sort_direct: "", //排序方向 asc递增 desc递减
72
+ sort_by: "total_product_num", //排序字段
73
+ sort_direct: "desc", //排序方向 asc递增 desc递减
73
74
 
74
75
  //列表对象
75
76
  tables: [],
@@ -6,13 +6,13 @@
6
6
  <el-card v-if="has_tab" style="margin-top: 20px;">
7
7
  <el-tabs v-model="activeName" >
8
8
  <el-tab-pane v-if="has_tab_supplier" label="供应商" name="supplier">
9
- <table-supplier v-if="has_tab_supplier"></table-supplier>
9
+ <table-supplier v-if="has_tab_supplier && activeName == 'supplier'"></table-supplier>
10
10
  </el-tab-pane>
11
11
  <el-tab-pane v-if="has_tab_product" label="货源商品" name="product">
12
- <table-product v-if="has_tab_product"></table-product>
12
+ <table-product v-if="has_tab_product && activeName == 'product'"></table-product>
13
13
  </el-tab-pane>
14
14
  <el-tab-pane v-if="has_tab_category" label="货源商品分类" name="category">
15
- <table-category v-if="has_tab_category"></table-category>
15
+ <table-category v-if="has_tab_category && activeName == 'category'"></table-category>
16
16
  </el-tab-pane>
17
17
  </el-tabs>
18
18
  </el-card>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.0.0-beta3",
3
+ "version": "1.1.2",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  "element-ui": "2.13.2",
27
27
  "gxd-file-preview": "1.2.1",
28
28
  "gxd-helper": "2.0.21",
29
- "gxd-vue-library": "1.1.65",
29
+ "gxd-vue-library": "1.1.68",
30
30
  "js-base64": "^3.4.5",
31
31
  "js-cookie": "2.2.0",
32
32
  "md5": "^2.3.0",
package/env.current.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "isOpenDir": true,
3
- "watch": false,
4
- "type": "test",
5
- "cover": true,
6
- "service": "serve",
7
- "permissionsCover": true,
8
- "permissionsTagsViewCover": true
9
- }
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description 第三方库
5
- * @param threePackagePath {String} 第三方库所在项目路径存放路径路
6
- * @returns {string|*}
7
- */
8
- const getPackagePath = (threePackagePath)=>{
9
- return `/Users/shiyonggao/home/root/Base-Version/Panel/xd-vue-package/${threePackagePath}`;
10
- };
11
-
12
- module.exports = {
13
- getPackagePath
14
- }
package/gulp.config.js DELETED
@@ -1,74 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- //开发模式设置插件库路径
5
- src: `${__dirname}/library/`,
6
- schemas:[
7
- // {
8
- // NAME: "buyLimit", //模块名称:限购
9
- // STATUS: true, //是否启用
10
- // PACK_MODULE_DIR: 'viewModules/viewsLimit',//插件库中模块目录
11
- // //smsbuylimit-partner,smsbuylimit-admin(客服,超管,限购项目)
12
- // API_APP: "smsbuylimit-partner", // 项目API目录 /${API_APP}/v1/supplier-stat/total-counts
13
- // DEST_PAGE_PATH: "viewsLimit", // 项目页面目录
14
- // DEST_ROOT_PATH: "src", // 项目根目录
15
- // replaceOptionServer: { // 替换选项卡 fn: server
16
- // "supplier": "supplier-partner",
17
- // "categories": "product-partner",
18
- // "business-line":"partner", //partner,partner-admin
19
- // }
20
- // },
21
- // {
22
- // NAME: "enterprise", //模块名称: 集采模块
23
- // STATUS: true, //是否启用
24
- // PACK_MODULE_DIR: 'viewModules/viewsEnterpriseBuy',//插件库中模块目录
25
- // //wholesale-partner,wholesale-admin(设计到超管,加盟商-集采,加盟商-财务)
26
- // API_APP: "wholesale-partner", // 项目API目录 /${API_APP}/v1/supplier-stat/total-counts
27
- // DEST_PAGE_PATH: "viewsEnterpriseBuy", // 项目页面目录
28
- // DEST_ROOT_PATH: "src", // 项目根目录
29
- // replaceOptionServer: { // 替换选项卡 fn: server
30
- //
31
- // }
32
- // },
33
- // {
34
- // NAME: "finance", //模块名称:财务
35
- // STATUS: true, //是否启用
36
- // PACK_MODULE_DIR: 'viewModules/viewsFinance',//插件库中模块目录
37
- // //finance-partner(加盟商-财务)
38
- // API_APP: "finance-partner", // 项目API目录 /${API_APP}/v1/supplier-stat/total-counts
39
- // DEST_PAGE_PATH: "viewsFinance", // 项目页面目录
40
- // DEST_ROOT_PATH: "src", // 项目根目录
41
- // replaceOptionServer: { // 替换选项卡 fn: server
42
- // "supplier": "supplier-partner",
43
- // "categories": "product-partner",
44
- // }
45
- // },
46
- // {
47
- // NAME: "stat", //模块名称: 统计
48
- // STATUS: true,
49
- // PACK_MODULE_DIR: 'viewModules/viewStat',//插件库中模块目录
50
- // //stat-partner(加盟商-统计)
51
- // API_APP: "stat-partner", // 项目API目录 /${API_APP}/v1/supplier-stat/total-counts
52
- // DEST_PAGE_PATH: "viewsStat", // 项目页面目录
53
- // DEST_ROOT_PATH: "src", // 项目根目录
54
- // replaceOptionServer: { // 替换选项卡 fn: server
55
- // "supplier": "supplier-admin",
56
- // "categories": "product-admin",
57
- // }
58
- // },
59
- // {
60
- // NAME: "TASK", //模块名称: 任务管理
61
- // STATUS: true,
62
- // //export-partner, export-supplier, export-admin
63
- // // (加盟商-统计,加盟商-财务 , 加盟商,商城,电影,礼包,供货商,超管(未启用))
64
- // PACK_MODULE_DIR: 'viewModules/viewTask',
65
- // ROUTE_TO_CHILDREN:true, //路由是否启用子路由模块
66
- // API_APP: "export-partner",
67
- // DEST_PAGE_PATH: "viewTask",
68
- // DEST_ROOT_PATH: "src",
69
- // replaceOptionServer: {
70
- //
71
- // }
72
- // }
73
- ]
74
- }
package/settings.js DELETED
@@ -1,248 +0,0 @@
1
- 'use strict';
2
-
3
- const settings = {
4
-
5
- /**
6
- * @description 阿里云前端监控配置
7
- */
8
- aliPid: 'aa2vphu6tr@f7f6bac23dcef56',
9
- aliEnvironment: 'daily', //daily测试环境 //prod线上环境
10
- aliSample: 1, //1表示100%采样,10表示10%采样,100表示1%采样
11
- aliPvSample: 1, //1表示100%采样,10表示10%采样,100表示1%采样
12
- aliDisableHook: true, //是否禁用api上报 true=禁用 false=开启
13
- aliBehavior: true, //是否为了便于排查错误而记录报错的用户行为。
14
- aliEnableSPA: false, //是否启动单页面上报pv日志
15
- aliEnableConsole: false, //是否劫持Console
16
- aliSendResource: true, //静态资源错误上报
17
- aliAutoSendPerf: true, //性能和api分析日志
18
-
19
- /**
20
- * @type {string}
21
- * @description routerMode值 hash,history
22
- */
23
- routerMode: 'history',
24
-
25
- /**
26
- * @type {string}
27
- * @description 项目名称
28
- */
29
- title: '商城管理后台管理系统(测试)',
30
-
31
-
32
- /**
33
- * @type {string}
34
- * @description 我的应用中心
35
- */
36
- myAppUrl: '//sandbox-admin-login.jufubao.cn/index',
37
-
38
- /**
39
- * @type {string}
40
- * @description 站点项目
41
- */
42
- siteIndex: '//sandbox-editx.jufubao.cn',
43
-
44
- /**
45
- * @type {boolean}
46
- * @description 无返回结构体{code: 200, data: {}, message:'success'},返回格式:{}
47
- */
48
- isOpenNoResultKey: true,
49
-
50
- /**
51
- * @type {string}
52
- * @description 项目标识
53
- */
54
- system: 'partner-customer',
55
-
56
- /**
57
- * @type {string}
58
- * @description 图片cdn域名地址
59
- */
60
- cdnBaseUrl: '//sandbox-img.jufubao.cn',
61
- /**
62
- * @type {string}
63
- * @description 后台baseAPI域名地址
64
- */
65
- apiBaseUrl: '//sandbox-partners-apis.jufubao.cn',
66
-
67
- /**
68
- * @type {Array}
69
- * @description API白名单(不需要token,上报日志)
70
- */
71
- apiWhiteList: [
72
- '/api/pb/host/get-brand',
73
- '/api/pb/host/minfo',
74
- '/api/pb/host/malert',
75
- ],
76
-
77
- /**
78
- * @type {Number}
79
- * @description 接口返回时间超时上报日志(单位:毫秒)
80
- */
81
- apiDelay: 10000,
82
-
83
- /**
84
- * @type {string}
85
- * @description 百度AK
86
- */
87
- baiduAK: 'btKt57MWjMx2P1ds2OjZIttLOOjR2Ndf',
88
-
89
- /**
90
- * @type Function
91
- * @description 页面layout页面路径
92
- */
93
- layout: () => import('@/layout'),
94
-
95
-
96
- /**
97
- * @type {boolean}
98
- * @description 是否启用本地演示路由配置
99
- */
100
- isOpenLocalDemoRouter: false,
101
-
102
- /**
103
- * @type { Array }
104
- * @description 不验证登录状态
105
- */
106
- whiteList:[
107
- '/login'
108
- ],
109
-
110
- /**
111
- * @description 用户登录页面
112
- * @type {String}
113
- */
114
- login: 'http://sandbox-admin-login.jufubao.cn',
115
-
116
- /**
117
- * @type {String}
118
- * @description 活动未激活跳转首页
119
- */
120
- index: '/',
121
-
122
- /**
123
- * @type {String}
124
- * @description 活动激活跳转首页(营销系统生效)
125
- */
126
- home: '',
127
-
128
- /**
129
- * @type {String}
130
- * @description 跳转到登录地址
131
- */
132
- superAdminLogin: 'http://sandbox-admin-login.jufubao.cn',
133
-
134
- /**
135
- * @type {String}
136
- * @description 后台管理API地址
137
- */
138
- getBrandHostBaseUrl: 'http://sandbox-c.jufubao.cn',
139
-
140
- /**
141
- * @type {string}
142
- * @description 开发环境api baseurl地址 (开发环境生效)
143
- */
144
- //getBrandHost: 'sandbox-gonghui-admin.jufubao.cn',
145
- getBrandHost: 'sandbox-c.jufubao.cn',
146
-
147
-
148
- /**
149
- * @type {String} 聚福宝储存token名字
150
- * @description cookie token key
151
- */
152
- jufubaoTokenKey: 'jufubao-company-token',
153
-
154
-
155
- /**
156
- * @type {String} 当前后台系统tokenKey
157
- * @description cookie token key
158
- */
159
- currentToken: 'jufubao-company-token',
160
-
161
-
162
- /**
163
- * @type {string}
164
- * @description 系统版本
165
- */
166
- version: 'v1.0.0',
167
-
168
- /**
169
- * @type {boolean}
170
- * @description 是否关闭eslint语法检测
171
- */
172
- isCloseEslint: false,
173
-
174
- /***
175
- * @description 请求列表返回数据条数
176
- * @type { number }
177
- */
178
- limit: 10,
179
-
180
-
181
- /**
182
- * @type {boolean} true | false
183
- * @description 是否开启方法执行逻辑定位位置显示
184
- */
185
- isTimeLog: false,
186
-
187
-
188
- /**
189
- * @type {boolean} true | false
190
- * @description 开发环境与生产环境
191
- */
192
- isDebug: false,
193
-
194
- /**
195
- * @type {boolean} true | false
196
- * @description 是否加载模拟数据
197
- */
198
- isTestData: false,
199
-
200
- /**
201
- * @type {number}
202
- * @description 开发环境端口号
203
- */
204
- port: 8039,
205
-
206
- /**
207
- * @type {boolean} true | false
208
- * @description Whether show the settings right-panel
209
- */
210
- showSettings: false,
211
-
212
- /**
213
- * @type {boolean} true | false
214
- * @description Whether need tagsView
215
- */
216
- tagsView: true,
217
-
218
- /**
219
- * @type {boolean} true | false
220
- * @description Whether fix the header
221
- */
222
- fixedHeader: false,
223
-
224
- /**
225
- * @type {boolean} true | false
226
- * @description Whether show the logo in sidebar
227
- */
228
- sidebarLogo: true,
229
-
230
- /**
231
- * @type {boolean} true | false
232
- * @description 启动营销中心导航
233
- */
234
- showTopNavMenu: false,
235
-
236
- /**
237
- * @type {string | array} 'production' | ['production', 'development']
238
- * @description Need show err logs component.
239
- * The default is only used in the production env
240
- * If you want to also use it in dev, you can pass ['production', 'development']
241
- */
242
- errorLog: 'production',
243
-
244
- };
245
-
246
- module.exports = settings;
247
-
248
-