@fonixtree/magic-design 2.0.109 → 2.0.111
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/es/assets/fonts/magic-box-iconfont.css +27 -7
- package/es/assets/fonts/magic-box-iconfont.css.bak +71 -7
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/base64/index.js +3 -1
- package/es/common/AffiliateProductModal/index.js +1 -1
- package/es/common/Button/index.js +1 -1
- package/es/common/Collapse/index.js +1 -1
- package/es/common/ImageModal/CommonModal/index.js +1 -1
- package/es/common/ImageModal/CommonSelPicCard/index.js +1 -1
- package/es/common/ImageModal/index.js +52 -50
- package/es/common/ImageModal/utils.js +1 -1
- package/es/common/ImagePicker/index.js +1 -1
- package/es/common/InputNumber/index.js +1 -1
- package/es/common/LinkModal/AffiliatePlatform/index.js +325 -0
- package/es/common/LinkModal/AffiliateProductTable/index.js +15 -27
- package/es/common/LinkModal/AffiliateStore/index.js +11 -23
- package/es/common/LinkModal/BundleCampaign/index.js +15 -27
- package/es/common/LinkModal/CatgTable/index.js +3 -11
- package/es/common/LinkModal/CouponTable/index.js +3 -11
- package/es/common/LinkModal/CustomTable/index.js +3 -11
- package/es/common/LinkModal/FilteredProductModal/index.js +23 -37
- package/es/common/LinkModal/FunctionTable/index.js +4 -11
- package/es/common/LinkModal/MiniAppApi/index.js +4 -12
- package/es/common/LinkModal/MiniAppTable/index.js +3 -11
- package/es/common/LinkModal/ProductDetailPage/index.js +26 -38
- package/es/common/LinkModal/SelectVideoModal/index.js +10 -18
- package/es/common/LinkModal/ShareUrl/index.js +3 -11
- package/es/common/LinkModal/StoreCatgTable/index.js +3 -11
- package/es/common/LinkModal/StoreTable/index.js +11 -23
- package/es/common/LinkModal/index.js +15 -19
- package/es/common/ProductModal/index.js +1 -1
- package/es/common/Slider/index.js +1 -1
- package/es/common/SwitchCollapse/index.js +1 -1
- package/es/common/SystemNotification/Confirm/index.js +1 -1
- package/es/common/UrlPicker/AnchorModal/index.js +1 -1
- package/es/common/VideoUpload/index.js +1 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -1
- package/es/composite-comp/bol/components/Banner/pc/index.js +1 -1
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +1 -1
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +1 -1
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -1
- package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +1 -1
- package/es/composite-comp/common/components/ProductItem/index.js +1 -1
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +1 -1
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +1 -1
- package/es/composite-comp/common/config-panels/InputField/index.js +1 -1
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +1 -1
- package/es/composite-comp/dito/components/Bargain/defaultJSON.js +244 -0
- package/es/composite-comp/dito/components/Bargain/index.js +86 -0
- package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg.png +0 -0
- package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg3.png +0 -0
- package/es/composite-comp/dito/components/Bargain/mobile/index.js +370 -0
- package/es/composite-comp/dito/components/Bargain/mobile/index.less +85 -0
- package/es/composite-comp/dito/components/GroupBuy/mobile/index.less +3 -3
- package/es/composite-comp/dito/components/Orders/mobile/index.js +8 -6
- package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +9 -7
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +1 -1
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
- package/es/composite-comp/dito/components/SignBoard/pc/index.js +1 -1
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +157 -0
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.less +20 -0
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.js +126 -0
- package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/BargainConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/dito/config-panels/BargainConfig/index.js +73 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +1 -1
- package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +1 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +1 -1
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +1 -1
- package/es/composite-comp/monpay/components/InterestProducts/mobile/index.js +11 -6
- package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +5 -2
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.js +3 -3
- package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +1 -1
- package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +1 -1
- package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +1 -1
- package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +1 -1
- package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +1 -1
- package/es/composite-comp/nuri/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/es/constants/component-types.js +6 -2
- package/es/constants/index.js +27 -5
- package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +1 -1
- package/es/core/Designer/AiImageGenerator/NumberSlider/index.js +1 -1
- package/es/core/Designer/AiImageGenerator/UploadReference/index.js +1 -1
- package/es/core/Designer/AiImageGenerator/index.js +1 -1
- package/es/core/Designer/AppointmentModal/index.js +1 -1
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +1 -1
- package/es/core/Designer/ChatRobot/index.js +1 -1
- package/es/core/Designer/PageCompList/index.js +1 -1
- package/es/core/Designer/QuickMenuBar/index.js +60 -11
- package/es/core/Designer/ToolBarModal/index.js +1 -1
- package/es/core/Designer/index.js +22 -4
- package/es/core/SelectUrl/index.js +0 -1
- package/es/index.js +0 -8
- package/es/meta-comp/config-panels/ButtonConfig/index.js +1 -1
- package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +1 -1
- package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +1 -1
- package/es/meta-comp/config-panels/ImageConfig/index.js +1 -1
- package/es/meta-comp/config-panels/PlayIconConfig/index.js +1 -1
- package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +1 -1
- package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +1 -1
- package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/es/utils/androidUtil.js +5 -2
- package/es/utils/businessUtil.js +18 -3
- package/es/utils/commonUtil.js +2 -2
- package/es/utils/coreUtil.js +35 -25
- package/lib/assets/fonts/magic-box-iconfont.css +27 -7
- package/lib/assets/fonts/magic-box-iconfont.css.bak +71 -7
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/base64/index.js +3 -1
- package/lib/common/AffiliateProductModal/index.js +1 -1
- package/lib/common/Button/index.js +1 -1
- package/lib/common/Collapse/index.js +1 -1
- package/lib/common/ImageModal/CommonModal/index.js +1 -1
- package/lib/common/ImageModal/CommonSelPicCard/index.js +1 -1
- package/lib/common/ImageModal/index.js +52 -50
- package/lib/common/ImageModal/utils.js +1 -1
- package/lib/common/ImagePicker/index.js +1 -1
- package/lib/common/InputNumber/index.js +1 -1
- package/lib/common/LinkModal/AffiliatePlatform/index.js +325 -0
- package/lib/common/LinkModal/AffiliateProductTable/index.js +15 -27
- package/lib/common/LinkModal/AffiliateStore/index.js +11 -23
- package/lib/common/LinkModal/BundleCampaign/index.js +15 -27
- package/lib/common/LinkModal/CatgTable/index.js +3 -11
- package/lib/common/LinkModal/CouponTable/index.js +3 -11
- package/lib/common/LinkModal/CustomTable/index.js +3 -11
- package/lib/common/LinkModal/FilteredProductModal/index.js +23 -37
- package/lib/common/LinkModal/FunctionTable/index.js +4 -11
- package/lib/common/LinkModal/MiniAppApi/index.js +4 -12
- package/lib/common/LinkModal/MiniAppTable/index.js +3 -11
- package/lib/common/LinkModal/ProductDetailPage/index.js +26 -38
- package/lib/common/LinkModal/SelectVideoModal/index.js +10 -18
- package/lib/common/LinkModal/ShareUrl/index.js +3 -11
- package/lib/common/LinkModal/StoreCatgTable/index.js +3 -11
- package/lib/common/LinkModal/StoreTable/index.js +11 -23
- package/lib/common/LinkModal/index.js +15 -19
- package/lib/common/ProductModal/index.js +1 -1
- package/lib/common/Slider/index.js +1 -1
- package/lib/common/SwitchCollapse/index.js +1 -1
- package/lib/common/SystemNotification/Confirm/index.js +1 -1
- package/lib/common/UrlPicker/AnchorModal/index.js +1 -1
- package/lib/common/VideoUpload/index.js +1 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -1
- package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +1 -1
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -1
- package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +1 -1
- package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +1 -1
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +1 -1
- package/lib/composite-comp/common/config-panels/InputField/index.js +1 -1
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +1 -1
- package/lib/composite-comp/dito/components/Bargain/defaultJSON.js +244 -0
- package/lib/composite-comp/dito/components/Bargain/index.js +86 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg.png +0 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/index.js +370 -0
- package/lib/composite-comp/dito/components/Bargain/mobile/index.less +85 -0
- package/lib/composite-comp/dito/components/GroupBuy/mobile/index.less +3 -3
- package/lib/composite-comp/dito/components/Orders/mobile/index.js +8 -6
- package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +9 -7
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +1 -1
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
- package/lib/composite-comp/dito/components/SignBoard/pc/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +157 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.less +20 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.js +126 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/dito/config-panels/BargainConfig/index.js +73 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +1 -1
- package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.js +11 -6
- package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +5 -2
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.js +3 -3
- package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +1 -1
- package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +1 -1
- package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +1 -1
- package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +1 -1
- package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +1 -1
- package/lib/composite-comp/nuri/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/lib/constants/component-types.js +6 -2
- package/lib/constants/index.js +27 -5
- package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +1 -1
- package/lib/core/Designer/AiImageGenerator/NumberSlider/index.js +1 -1
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +1 -1
- package/lib/core/Designer/AiImageGenerator/index.js +1 -1
- package/lib/core/Designer/AppointmentModal/index.js +1 -1
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +1 -1
- package/lib/core/Designer/ChatRobot/index.js +1 -1
- package/lib/core/Designer/PageCompList/index.js +1 -1
- package/lib/core/Designer/QuickMenuBar/index.js +60 -11
- package/lib/core/Designer/ToolBarModal/index.js +1 -1
- package/lib/core/Designer/index.js +22 -4
- package/lib/core/SelectUrl/index.js +0 -1
- package/lib/index.js +0 -8
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +1 -1
- package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +1 -1
- package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +1 -1
- package/lib/meta-comp/config-panels/ImageConfig/index.js +1 -1
- package/lib/meta-comp/config-panels/PlayIconConfig/index.js +1 -1
- package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +1 -1
- package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +1 -1
- package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
- package/lib/utils/androidUtil.js +5 -2
- package/lib/utils/businessUtil.js +18 -3
- package/lib/utils/commonUtil.js +2 -2
- package/lib/utils/coreUtil.js +35 -25
- package/package.json +1 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
|
@@ -9,6 +9,8 @@ exports["default"] = AffiliateProductTable;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _antd = require("antd4");
|
|
13
|
+
|
|
12
14
|
var _locale = require("../../../locale");
|
|
13
15
|
|
|
14
16
|
var _currencyUtil = require("../../../utils/currencyUtil");
|
|
@@ -176,20 +178,6 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
176
178
|
}
|
|
177
179
|
};
|
|
178
180
|
|
|
179
|
-
var antdLibrary;
|
|
180
|
-
|
|
181
|
-
try {
|
|
182
|
-
antdLibrary = require('antd4');
|
|
183
|
-
} catch (error) {
|
|
184
|
-
antdLibrary = require('antd');
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
var Table = antdLibrary.Table,
|
|
188
|
-
Form = antdLibrary.Form,
|
|
189
|
-
Row = antdLibrary.Row,
|
|
190
|
-
Col = antdLibrary.Col,
|
|
191
|
-
Button = antdLibrary.Button,
|
|
192
|
-
Input = antdLibrary.Input;
|
|
193
181
|
var paginationParams = {
|
|
194
182
|
pageSize: 80,
|
|
195
183
|
pageIndex: 1
|
|
@@ -213,7 +201,7 @@ function AffiliateProductTable(props) {
|
|
|
213
201
|
formInfo = _c[0],
|
|
214
202
|
setFormInfo = _c[1];
|
|
215
203
|
|
|
216
|
-
var form = Form.useForm()[0];
|
|
204
|
+
var form = _antd.Form.useForm()[0];
|
|
217
205
|
|
|
218
206
|
var queryProduct = function queryProduct(params) {
|
|
219
207
|
return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -300,44 +288,44 @@ function AffiliateProductTable(props) {
|
|
|
300
288
|
style: {
|
|
301
289
|
height: 550
|
|
302
290
|
}
|
|
303
|
-
}, /*#__PURE__*/_react["default"].createElement(Form, {
|
|
291
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
304
292
|
form: form,
|
|
305
293
|
initialValues: formInfo,
|
|
306
294
|
labelCol: {
|
|
307
295
|
span: 8
|
|
308
296
|
},
|
|
309
297
|
layout: "horizontal"
|
|
310
|
-
}, /*#__PURE__*/_react["default"].createElement(Row, {
|
|
298
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Row, {
|
|
311
299
|
gutter: 24
|
|
312
|
-
}, /*#__PURE__*/_react["default"].createElement(Col, {
|
|
300
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
313
301
|
span: 9
|
|
314
|
-
}, /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
302
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
315
303
|
label: "Product Name",
|
|
316
304
|
name: "productName"
|
|
317
|
-
}, /*#__PURE__*/_react["default"].createElement(Input, {
|
|
305
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
318
306
|
size: "small"
|
|
319
|
-
}))), /*#__PURE__*/_react["default"].createElement(Col, {
|
|
307
|
+
}))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
320
308
|
span: 9
|
|
321
|
-
}, /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
309
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
322
310
|
label: "Sku Code",
|
|
323
311
|
name: "affiliateProductCode"
|
|
324
|
-
}, /*#__PURE__*/_react["default"].createElement(Input, {
|
|
312
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
325
313
|
size: "small"
|
|
326
|
-
}))), /*#__PURE__*/_react["default"].createElement(Col, {
|
|
314
|
+
}))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
327
315
|
span: 6
|
|
328
|
-
}, /*#__PURE__*/_react["default"].createElement(Button, {
|
|
316
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
329
317
|
onClick: onQueryClick,
|
|
330
318
|
size: "small",
|
|
331
319
|
style: {
|
|
332
320
|
marginRight: 10
|
|
333
321
|
},
|
|
334
322
|
type: "primary"
|
|
335
|
-
}, (0, _locale.i18n)('QUERY')), /*#__PURE__*/_react["default"].createElement(Button, {
|
|
323
|
+
}, (0, _locale.i18n)('QUERY')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
336
324
|
onClick: function onClick() {
|
|
337
325
|
reset();
|
|
338
326
|
},
|
|
339
327
|
size: "small"
|
|
340
|
-
}, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement(Table, {
|
|
328
|
+
}, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
341
329
|
bordered: false,
|
|
342
330
|
columns: columns,
|
|
343
331
|
dataSource: productList,
|
|
@@ -9,6 +9,8 @@ exports["default"] = AffiliateStore;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _antd = require("antd4");
|
|
13
|
+
|
|
12
14
|
var _locale = require("../../../locale");
|
|
13
15
|
|
|
14
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -174,20 +176,6 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
174
176
|
}
|
|
175
177
|
};
|
|
176
178
|
|
|
177
|
-
var antdLibrary;
|
|
178
|
-
|
|
179
|
-
try {
|
|
180
|
-
antdLibrary = require('antd4');
|
|
181
|
-
} catch (error) {
|
|
182
|
-
antdLibrary = require('antd');
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
var Table = antdLibrary.Table,
|
|
186
|
-
Form = antdLibrary.Form,
|
|
187
|
-
Row = antdLibrary.Row,
|
|
188
|
-
Col = antdLibrary.Col,
|
|
189
|
-
Button = antdLibrary.Button,
|
|
190
|
-
Input = antdLibrary.Input;
|
|
191
179
|
var paginationParams = {
|
|
192
180
|
pageSize: 20,
|
|
193
181
|
pageIndex: 1
|
|
@@ -282,26 +270,26 @@ function AffiliateStore(props) {
|
|
|
282
270
|
style: {
|
|
283
271
|
height: 550
|
|
284
272
|
}
|
|
285
|
-
}, /*#__PURE__*/_react["default"].createElement(Form, {
|
|
273
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
286
274
|
labelCol: {
|
|
287
275
|
span: 6
|
|
288
276
|
},
|
|
289
277
|
layout: "horizontal"
|
|
290
|
-
}, /*#__PURE__*/_react["default"].createElement(Row, {
|
|
278
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Row, {
|
|
291
279
|
gutter: 24
|
|
292
|
-
}, /*#__PURE__*/_react["default"].createElement(Col, {
|
|
280
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
293
281
|
span: 12
|
|
294
|
-
}, /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
282
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
295
283
|
label: "Store Name"
|
|
296
|
-
}, /*#__PURE__*/_react["default"].createElement(Input, {
|
|
284
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
297
285
|
onChange: function onChange(e) {
|
|
298
286
|
return setStoreName(e.target.value);
|
|
299
287
|
},
|
|
300
288
|
size: "small",
|
|
301
289
|
value: storeName
|
|
302
|
-
}))), /*#__PURE__*/_react["default"].createElement(Col, {
|
|
290
|
+
}))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
303
291
|
span: 6
|
|
304
|
-
}, /*#__PURE__*/_react["default"].createElement(Button, {
|
|
292
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
305
293
|
onClick: function onClick() {
|
|
306
294
|
setLoading(true);
|
|
307
295
|
paginationParams.pageIndex = 1;
|
|
@@ -314,12 +302,12 @@ function AffiliateStore(props) {
|
|
|
314
302
|
marginRight: 10
|
|
315
303
|
},
|
|
316
304
|
type: "primary"
|
|
317
|
-
}, (0, _locale.i18n)('QUERY')), /*#__PURE__*/_react["default"].createElement(Button, {
|
|
305
|
+
}, (0, _locale.i18n)('QUERY')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
318
306
|
onClick: function onClick() {
|
|
319
307
|
reset();
|
|
320
308
|
},
|
|
321
309
|
size: "small"
|
|
322
|
-
}, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement(Table, {
|
|
310
|
+
}, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
323
311
|
bordered: false,
|
|
324
312
|
columns: columns,
|
|
325
313
|
dataSource: storeList,
|
|
@@ -9,6 +9,8 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _antd = require("antd4");
|
|
13
|
+
|
|
12
14
|
var _businessUtil = require("../../../utils/businessUtil");
|
|
13
15
|
|
|
14
16
|
var _dateUtil = require("../../../utils/dateUtil");
|
|
@@ -162,21 +164,7 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
162
164
|
}
|
|
163
165
|
};
|
|
164
166
|
|
|
165
|
-
var
|
|
166
|
-
|
|
167
|
-
try {
|
|
168
|
-
antdLibrary = require('antd4');
|
|
169
|
-
} catch (error) {
|
|
170
|
-
antdLibrary = require('antd');
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
var Button = antdLibrary.Button,
|
|
174
|
-
Col = antdLibrary.Col,
|
|
175
|
-
Input = antdLibrary.Input,
|
|
176
|
-
Row = antdLibrary.Row,
|
|
177
|
-
Select = antdLibrary.Select,
|
|
178
|
-
Table = antdLibrary.Table;
|
|
179
|
-
var Option = Select.Option;
|
|
167
|
+
var Option = _antd.Select.Option;
|
|
180
168
|
|
|
181
169
|
var BundleCampaign = function BundleCampaign(props) {
|
|
182
170
|
var setUrl = props.setUrl,
|
|
@@ -325,33 +313,33 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
325
313
|
}, []);
|
|
326
314
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
327
315
|
className: "bundleCampaign"
|
|
328
|
-
}, /*#__PURE__*/_react["default"].createElement(Row, {
|
|
316
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Row, {
|
|
329
317
|
className: "mb12",
|
|
330
318
|
style: {
|
|
331
319
|
width: '100%'
|
|
332
320
|
}
|
|
333
|
-
}, /*#__PURE__*/_react["default"].createElement(Col, {
|
|
321
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
334
322
|
span: 12,
|
|
335
323
|
style: {
|
|
336
324
|
display: 'flex'
|
|
337
325
|
}
|
|
338
326
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
339
327
|
className: "labelStyle"
|
|
340
|
-
}, "Campaign Name"), /*#__PURE__*/_react["default"].createElement(Input, {
|
|
328
|
+
}, "Campaign Name"), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
341
329
|
className: "inputStyle",
|
|
342
330
|
onChange: function onChange(e) {
|
|
343
331
|
setCampaignName(e.target.value);
|
|
344
332
|
},
|
|
345
333
|
size: "small",
|
|
346
334
|
value: campaignName
|
|
347
|
-
})), /*#__PURE__*/_react["default"].createElement(Col, {
|
|
335
|
+
})), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
348
336
|
span: 12,
|
|
349
337
|
style: {
|
|
350
338
|
display: 'flex'
|
|
351
339
|
}
|
|
352
340
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
353
341
|
className: "labelStyle"
|
|
354
|
-
}, "Campaign State"), /*#__PURE__*/_react["default"].createElement(Select, {
|
|
342
|
+
}, "Campaign State"), /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
355
343
|
className: "inputStyle",
|
|
356
344
|
defaultValue: "A,B",
|
|
357
345
|
onChange: changeCamState,
|
|
@@ -362,19 +350,19 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
362
350
|
key: v.key,
|
|
363
351
|
value: v.key
|
|
364
352
|
}, v.value);
|
|
365
|
-
})))), /*#__PURE__*/_react["default"].createElement(Row, {
|
|
353
|
+
})))), /*#__PURE__*/_react["default"].createElement(_antd.Row, {
|
|
366
354
|
className: "mb12",
|
|
367
355
|
style: {
|
|
368
356
|
width: '100%'
|
|
369
357
|
}
|
|
370
|
-
}, (0, _businessUtil.isPlatform)() && /*#__PURE__*/_react["default"].createElement(Col, {
|
|
358
|
+
}, (0, _businessUtil.isPlatform)() && /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
371
359
|
span: 12,
|
|
372
360
|
style: {
|
|
373
361
|
display: 'flex'
|
|
374
362
|
}
|
|
375
363
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
376
364
|
className: "labelStyle"
|
|
377
|
-
}, "Store"), /*#__PURE__*/_react["default"].createElement(Select, {
|
|
365
|
+
}, "Store"), /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
378
366
|
className: "inputStyle",
|
|
379
367
|
onChange: function onChange(value) {
|
|
380
368
|
return setStoreId(value);
|
|
@@ -389,24 +377,24 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
389
377
|
key: v.storeId,
|
|
390
378
|
value: v.storeId
|
|
391
379
|
}, v.storeName);
|
|
392
|
-
}))), /*#__PURE__*/_react["default"].createElement(Col, {
|
|
380
|
+
}))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
393
381
|
span: 12,
|
|
394
382
|
style: {
|
|
395
383
|
paddingLeft: '120px'
|
|
396
384
|
}
|
|
397
|
-
}, /*#__PURE__*/_react["default"].createElement(Button, {
|
|
385
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
398
386
|
onClick: queryFunc,
|
|
399
387
|
size: "small",
|
|
400
388
|
style: {
|
|
401
389
|
marginRight: 10
|
|
402
390
|
},
|
|
403
391
|
type: "primary"
|
|
404
|
-
}, "Query"), /*#__PURE__*/_react["default"].createElement(Button, {
|
|
392
|
+
}, "Query"), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
405
393
|
onClick: function onClick() {
|
|
406
394
|
reset();
|
|
407
395
|
},
|
|
408
396
|
size: "small"
|
|
409
|
-
}, "Cancel"))), /*#__PURE__*/_react["default"].createElement(Table, {
|
|
397
|
+
}, "Cancel"))), /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
410
398
|
bordered: false,
|
|
411
399
|
columns: columns,
|
|
412
400
|
dataSource: bundleList,
|
|
@@ -9,6 +9,8 @@ exports["default"] = CatgTable;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _antd = require("antd4");
|
|
13
|
+
|
|
12
14
|
var _businessUtil = require("../../../utils/businessUtil");
|
|
13
15
|
|
|
14
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -158,16 +160,6 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
158
160
|
}
|
|
159
161
|
};
|
|
160
162
|
|
|
161
|
-
var antdLibrary;
|
|
162
|
-
|
|
163
|
-
try {
|
|
164
|
-
antdLibrary = require('antd4');
|
|
165
|
-
} catch (error) {
|
|
166
|
-
antdLibrary = require('antd');
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
var Table = antdLibrary.Table;
|
|
170
|
-
|
|
171
163
|
function CatgTable(props) {
|
|
172
164
|
var _this = this;
|
|
173
165
|
|
|
@@ -233,7 +225,7 @@ function CatgTable(props) {
|
|
|
233
225
|
style: {
|
|
234
226
|
height: 550
|
|
235
227
|
}
|
|
236
|
-
}, /*#__PURE__*/_react["default"].createElement(Table, {
|
|
228
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
237
229
|
bordered: false,
|
|
238
230
|
columns: columns,
|
|
239
231
|
dataSource: catgList,
|
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = CouponTable;
|
|
9
9
|
|
|
10
|
+
var _antd = require("antd4");
|
|
11
|
+
|
|
10
12
|
var _moment = _interopRequireDefault(require("moment"));
|
|
11
13
|
|
|
12
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -191,16 +193,6 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
191
193
|
return t;
|
|
192
194
|
};
|
|
193
195
|
|
|
194
|
-
var antdLibrary;
|
|
195
|
-
|
|
196
|
-
try {
|
|
197
|
-
antdLibrary = require('antd4');
|
|
198
|
-
} catch (error) {
|
|
199
|
-
antdLibrary = require('antd');
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
var Table = antdLibrary.Table;
|
|
203
|
-
|
|
204
196
|
function CouponTable(props) {
|
|
205
197
|
var _this = this;
|
|
206
198
|
|
|
@@ -304,7 +296,7 @@ function CouponTable(props) {
|
|
|
304
296
|
style: {
|
|
305
297
|
height: 550
|
|
306
298
|
}
|
|
307
|
-
}, /*#__PURE__*/_react["default"].createElement(Table, {
|
|
299
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
308
300
|
columns: columns,
|
|
309
301
|
dataSource: data,
|
|
310
302
|
loading: loading,
|
|
@@ -9,6 +9,8 @@ exports["default"] = CustomTable;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _antd = require("antd4");
|
|
13
|
+
|
|
12
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
15
|
|
|
14
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -157,16 +159,6 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
157
159
|
};
|
|
158
160
|
|
|
159
161
|
// import { commonFetch } from '../../../utils/commonUtil';
|
|
160
|
-
var antdLibrary;
|
|
161
|
-
|
|
162
|
-
try {
|
|
163
|
-
antdLibrary = require('antd4');
|
|
164
|
-
} catch (error) {
|
|
165
|
-
antdLibrary = require('antd');
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
var Table = antdLibrary.Table;
|
|
169
|
-
|
|
170
162
|
function CustomTable(props) {
|
|
171
163
|
var _this = this;
|
|
172
164
|
|
|
@@ -231,7 +223,7 @@ function CustomTable(props) {
|
|
|
231
223
|
style: {
|
|
232
224
|
height: 550
|
|
233
225
|
}
|
|
234
|
-
}, /*#__PURE__*/_react["default"].createElement(Table, {
|
|
226
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
235
227
|
bordered: false,
|
|
236
228
|
columns: columns,
|
|
237
229
|
dataSource: cusPageList,
|
|
@@ -9,6 +9,8 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _antd = require("antd4");
|
|
13
|
+
|
|
12
14
|
var _commonUtil = require("../../../utils/commonUtil");
|
|
13
15
|
|
|
14
16
|
var _currencyUtil = require("../../../utils/currencyUtil");
|
|
@@ -182,27 +184,11 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
182
184
|
}
|
|
183
185
|
};
|
|
184
186
|
|
|
185
|
-
var antdLibrary;
|
|
186
|
-
|
|
187
|
-
try {
|
|
188
|
-
antdLibrary = require('antd4');
|
|
189
|
-
} catch (error) {
|
|
190
|
-
antdLibrary = require('antd');
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
var Button = antdLibrary.Button,
|
|
194
|
-
Form = antdLibrary.Form,
|
|
195
|
-
Input = antdLibrary.Input,
|
|
196
|
-
InputNumber = antdLibrary.InputNumber,
|
|
197
|
-
Select = antdLibrary.Select,
|
|
198
|
-
TreeSelect = antdLibrary.TreeSelect,
|
|
199
|
-
Table = antdLibrary.Table;
|
|
200
|
-
|
|
201
187
|
var FilteredProductModal = function FilteredProductModal(props) {
|
|
202
188
|
var onDataChange = props.onDataChange,
|
|
203
189
|
_fetch = props._fetch;
|
|
204
|
-
var Option = Select.Option;
|
|
205
|
-
var InputGroup = Input.Group;
|
|
190
|
+
var Option = _antd.Select.Option;
|
|
191
|
+
var InputGroup = _antd.Input.Group;
|
|
206
192
|
|
|
207
193
|
var _a = (0, _react.useState)([]),
|
|
208
194
|
tValue = _a[0],
|
|
@@ -517,11 +503,11 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
517
503
|
className: "mFilteredProductModalContent"
|
|
518
504
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
519
505
|
className: "leftCot"
|
|
520
|
-
}, /*#__PURE__*/_react["default"].createElement(Form, {
|
|
506
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
521
507
|
layout: "vertical"
|
|
522
|
-
}, /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
508
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
523
509
|
label: "Category"
|
|
524
|
-
}, /*#__PURE__*/_react["default"].createElement(TreeSelect // allowClear
|
|
510
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.TreeSelect // allowClear
|
|
525
511
|
, {
|
|
526
512
|
dropdownStyle: {
|
|
527
513
|
maxHeight: 400,
|
|
@@ -536,9 +522,9 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
536
522
|
treeData: treeData,
|
|
537
523
|
treeDefaultExpandAll: true,
|
|
538
524
|
value: tValue
|
|
539
|
-
})), /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
525
|
+
})), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
540
526
|
label: "Brand"
|
|
541
|
-
}, /*#__PURE__*/_react["default"].createElement(Select, {
|
|
527
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
542
528
|
defaultValue: [],
|
|
543
529
|
maxTagCount: 2,
|
|
544
530
|
maxTagTextLength: 5,
|
|
@@ -554,9 +540,9 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
554
540
|
key: v.brandId,
|
|
555
541
|
value: v.brandName
|
|
556
542
|
}, v.brandName);
|
|
557
|
-
}))), (0, _businessUtil.isPlatform)() && /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
543
|
+
}))), (0, _businessUtil.isPlatform)() && /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
558
544
|
label: "Store"
|
|
559
|
-
}, /*#__PURE__*/_react["default"].createElement(Select, {
|
|
545
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
560
546
|
className: "inputStyle",
|
|
561
547
|
defaultValue: [],
|
|
562
548
|
onChange: function onChange(value) {
|
|
@@ -572,9 +558,9 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
572
558
|
key: v.storeId,
|
|
573
559
|
value: v.storeId
|
|
574
560
|
}, v.storeName);
|
|
575
|
-
}))), /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
561
|
+
}))), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
576
562
|
label: "Label"
|
|
577
|
-
}, /*#__PURE__*/_react["default"].createElement(Select, {
|
|
563
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
578
564
|
defaultValue: [],
|
|
579
565
|
onChange: handleLabelChange,
|
|
580
566
|
placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
|
|
@@ -585,11 +571,11 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
585
571
|
key: v.labelId,
|
|
586
572
|
value: v.labelName
|
|
587
573
|
}, v.labelName);
|
|
588
|
-
}))), /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
574
|
+
}))), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
589
575
|
label: "Price"
|
|
590
576
|
}, /*#__PURE__*/_react["default"].createElement(InputGroup, {
|
|
591
577
|
compact: true
|
|
592
|
-
}, /*#__PURE__*/_react["default"].createElement(InputNumber, {
|
|
578
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.InputNumber, {
|
|
593
579
|
min: 0,
|
|
594
580
|
onChange: function onChange(value) {
|
|
595
581
|
setMinimum(value);
|
|
@@ -607,7 +593,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
607
593
|
lineHeight: '30px',
|
|
608
594
|
textAlign: 'center'
|
|
609
595
|
}
|
|
610
|
-
}, "~"), /*#__PURE__*/_react["default"].createElement(InputNumber, {
|
|
596
|
+
}, "~"), /*#__PURE__*/_react["default"].createElement(_antd.InputNumber, {
|
|
611
597
|
min: 0,
|
|
612
598
|
onChange: function onChange(value) {
|
|
613
599
|
setMaximum(value);
|
|
@@ -619,18 +605,18 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
619
605
|
textAlign: 'center'
|
|
620
606
|
},
|
|
621
607
|
value: maximum
|
|
622
|
-
}))), /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
608
|
+
}))), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
623
609
|
label: "Product Name"
|
|
624
|
-
}, /*#__PURE__*/_react["default"].createElement(Input, {
|
|
610
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
625
611
|
onChange: function onChange(e) {
|
|
626
612
|
setProductName(e.currentTarget.value);
|
|
627
613
|
},
|
|
628
614
|
placeholder: (0, _locale.i18n)('PLEASE_INPUT'),
|
|
629
615
|
size: "small",
|
|
630
616
|
value: productName
|
|
631
|
-
})), /*#__PURE__*/_react["default"].createElement(Form.Item, {
|
|
617
|
+
})), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
632
618
|
label: "Promotions"
|
|
633
|
-
}, /*#__PURE__*/_react["default"].createElement(Select, {
|
|
619
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
634
620
|
defaultValue: [],
|
|
635
621
|
onChange: function onChange(value, node) {
|
|
636
622
|
setPromotions({
|
|
@@ -649,7 +635,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
649
635
|
value: "Group By"
|
|
650
636
|
}, (0, _locale.i18n)('GROUP_BY')))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
651
637
|
className: "buttonStyle"
|
|
652
|
-
}, /*#__PURE__*/_react["default"].createElement(Button, {
|
|
638
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
653
639
|
onClick: function onClick() {
|
|
654
640
|
paginationParams.current = 1;
|
|
655
641
|
loadGoods().then(function (res) {
|
|
@@ -670,14 +656,14 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
670
656
|
marginRight: 8
|
|
671
657
|
},
|
|
672
658
|
type: "primary"
|
|
673
|
-
}, (0, _locale.i18n)('SEARCH')), /*#__PURE__*/_react["default"].createElement(Button, {
|
|
659
|
+
}, (0, _locale.i18n)('SEARCH')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
674
660
|
onClick: function onClick() {
|
|
675
661
|
reset();
|
|
676
662
|
},
|
|
677
663
|
size: "small"
|
|
678
664
|
}, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
679
665
|
className: "rightCot"
|
|
680
|
-
}, /*#__PURE__*/_react["default"].createElement(Table, {
|
|
666
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
681
667
|
columns: columns,
|
|
682
668
|
dataSource: dataSource,
|
|
683
669
|
loading: loading,
|
|
@@ -9,6 +9,8 @@ exports["default"] = FunctionTable;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _antd = require("antd4");
|
|
13
|
+
|
|
12
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
15
|
|
|
14
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -156,16 +158,7 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
156
158
|
}
|
|
157
159
|
};
|
|
158
160
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
try {
|
|
162
|
-
antdLibrary = require('antd4');
|
|
163
|
-
} catch (error) {
|
|
164
|
-
antdLibrary = require('antd');
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
var Table = antdLibrary.Table; // import { commonFetch } from '../../../utils/commonUtil';
|
|
168
|
-
|
|
161
|
+
// import { commonFetch } from '../../../utils/commonUtil';
|
|
169
162
|
function FunctionTable(props) {
|
|
170
163
|
var _this = this;
|
|
171
164
|
|
|
@@ -227,7 +220,7 @@ function FunctionTable(props) {
|
|
|
227
220
|
style: {
|
|
228
221
|
height: 550
|
|
229
222
|
}
|
|
230
|
-
}, /*#__PURE__*/_react["default"].createElement(Table, {
|
|
223
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
231
224
|
columns: columns,
|
|
232
225
|
dataSource: functions,
|
|
233
226
|
loading: loading,
|
|
@@ -7,21 +7,13 @@ exports["default"] = MiniAppApi;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _antd = require("antd4");
|
|
11
|
+
|
|
10
12
|
var _const = require("./const");
|
|
11
13
|
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
15
|
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
try {
|
|
17
|
-
antdLibrary = require('antd4');
|
|
18
|
-
} catch (error) {
|
|
19
|
-
antdLibrary = require('antd');
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
var Table = antdLibrary.Table,
|
|
23
|
-
Input = antdLibrary.Input;
|
|
24
|
-
var Search = Input.Search;
|
|
16
|
+
var Search = _antd.Input.Search;
|
|
25
17
|
|
|
26
18
|
function MiniAppApi(_a) {
|
|
27
19
|
var _onChange = _a.onChange;
|
|
@@ -54,7 +46,7 @@ function MiniAppApi(_a) {
|
|
|
54
46
|
enterButton: true,
|
|
55
47
|
onSearch: function onSearch() {},
|
|
56
48
|
placeholder: "Api Name"
|
|
57
|
-
})), /*#__PURE__*/_react["default"].createElement(Table, {
|
|
49
|
+
})), /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
58
50
|
bordered: false,
|
|
59
51
|
columns: columns,
|
|
60
52
|
dataSource: _const.source,
|
|
@@ -9,6 +9,8 @@ exports["default"] = CustomTable;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _antd = require("antd4");
|
|
13
|
+
|
|
12
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
15
|
|
|
14
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -157,16 +159,6 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
157
159
|
};
|
|
158
160
|
|
|
159
161
|
// import { commonFetch } from '../../../utils/commonUtil';
|
|
160
|
-
var antdLibrary;
|
|
161
|
-
|
|
162
|
-
try {
|
|
163
|
-
antdLibrary = require('antd4');
|
|
164
|
-
} catch (error) {
|
|
165
|
-
antdLibrary = require('antd');
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
var Table = antdLibrary.Table;
|
|
169
|
-
|
|
170
162
|
function CustomTable(props) {
|
|
171
163
|
var _this = this;
|
|
172
164
|
|
|
@@ -243,7 +235,7 @@ function CustomTable(props) {
|
|
|
243
235
|
style: {
|
|
244
236
|
height: 550
|
|
245
237
|
}
|
|
246
|
-
}, /*#__PURE__*/_react["default"].createElement(Table, {
|
|
238
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
247
239
|
bordered: false,
|
|
248
240
|
columns: columns,
|
|
249
241
|
dataSource: miniAppList,
|