leisure-core 0.3.3 → 0.3.5

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/index.js CHANGED
@@ -2,7 +2,7 @@ import LeDrag from "leisure-js/drag/drag.js";
2
2
  import {
3
3
  parseTime,
4
4
  formatMoney,
5
- formatNumberWithCommas,
5
+ formatCurrency,
6
6
  } from "leisure-js/common/dformat";
7
7
  import LeLogin from "./le-login/index.js";
8
8
  import LeHome from "./le-home/index.js";
@@ -90,7 +90,7 @@ const install = function (Vue) {
90
90
 
91
91
  Vue.prototype.parseTime = parseTime;
92
92
  Vue.prototype.formatMoney = formatMoney;
93
- Vue.prototype.formatNumberWithCommas = formatNumberWithCommas;
93
+ Vue.prototype.formatCurrency = formatCurrency;
94
94
 
95
95
  Vue.directive("permission", {
96
96
  inserted: function (el, bindings) {
@@ -3,7 +3,7 @@
3
3
  :id="id"
4
4
  :type="type"
5
5
  :size="size"
6
- :v-permission="permission"
6
+ v-permission="$route.params.btns"
7
7
  @click="click"
8
8
  style="margin-left: 2px; margin-right: 2px"
9
9
  v-if="disp"
@@ -93,13 +93,12 @@
93
93
  >
94
94
  <template slot-scope="scope">
95
95
  <div class="le-table-btn-container">
96
- <el-button
96
+ <le-button
97
97
  type="primary"
98
- id="btnEdit"
99
- size="small"
98
+ id="btnIntegral"
99
+ text="积分"
100
100
  @click="openIntegralWindow(scope.row, 0)"
101
- >积分</el-button
102
- >
101
+ ></le-button>
103
102
  <!-- <el-button
104
103
  id="btnXf"
105
104
  v-if="scope.row.unionid"
@@ -108,33 +107,35 @@
108
107
  >
109
108
  订单
110
109
  </el-button> -->
111
- <el-button
112
- id="btnConsume"
113
- v-if="scope.row.unionid && showMoreBtn"
110
+ <le-button
111
+ id="btnGiveIntegral"
112
+ text="赠送积分"
114
113
  type="danger"
114
+ :disp="scope.row.unionid && showMoreBtn"
115
115
  @click="giveIntegral(scope.row)"
116
- >
117
- 赠送积分
118
- </el-button>
119
- <el-button
120
- id="btnMemberNote"
116
+ ></le-button>
117
+ <le-button
118
+ id="btnRecord"
121
119
  v-if="scope.row.unionid"
122
120
  type="danger"
121
+ text="领取记录"
123
122
  @click="openMeberNote(scope.row)"
124
123
  >
125
- 领取记录
126
- </el-button>
127
- <el-button
124
+ </le-button>
125
+ <le-button
128
126
  id="btnQrCode"
129
127
  v-if="scope.row.unionid"
130
128
  type="danger"
129
+ text="二维码"
131
130
  @click="getQrCode(scope.row)"
132
131
  >
133
- 二维码
134
- </el-button>
135
- <el-button type="primary" @click="openOtherInfo(scope.row.id)"
136
- >辅助信息</el-button
137
- >
132
+ </le-button>
133
+ <le-button
134
+ id="btnOtherInfo"
135
+ text="辅助信息"
136
+ type="primary"
137
+ @click="openOtherInfo(scope.row.id)"
138
+ ></le-button>
138
139
  </div>
139
140
  </template>
140
141
  </el-table-column>
@@ -289,7 +290,7 @@ export default {
289
290
  uid: "",
290
291
 
291
292
  showGiveIntegral: false,
292
- showOtherDialog:false,
293
+ showOtherDialog: false,
293
294
  currentUser: {},
294
295
  integralForm: {
295
296
  phone: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "leisure-core是leisure-ui-core的简称,是京心数据基于vue2.0开发的一套后台系统框架与js库,包含登录,首页框架等",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",
@@ -17,7 +17,7 @@
17
17
  "dayjs": "^1.11.7",
18
18
  "echarts": "^5.4.2",
19
19
  "element-ui": "^2.15.14",
20
- "leisure-js": "^0.2.2",
20
+ "leisure-js": "^0.2.3",
21
21
  "html2canvas": "^1.4.1",
22
22
  "js-base64": "^3.7.2",
23
23
  "less": "^4.1.3",