123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- exports.ids = [35];
- exports.modules = {
- /***/ 167:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 195:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProjectDialog_vue_vue_type_style_index_0_id_46eebe9e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(167);
- /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProjectDialog_vue_vue_type_style_index_0_id_46eebe9e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProjectDialog_vue_vue_type_style_index_0_id_46eebe9e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProjectDialog_vue_vue_type_style_index_0_id_46eebe9e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ProjectDialog_vue_vue_type_style_index_0_id_46eebe9e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /***/ }),
- /***/ 204:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/ProjectDialog.vue?vue&type=template&id=46eebe9e&scoped=true
- var render = function render() {
- var _vm = this,
- _c = _vm._self._c;
- return _c('el-dialog', {
- attrs: {
- "lock-scroll": false,
- "visible": _vm.visible,
- "width": "500px",
- "before-close": _vm.handleClose,
- "show-close": false,
- "center": "",
- "top": "0"
- },
- on: {
- "update:visible": function ($event) {
- _vm.visible = $event;
- }
- }
- }, [_c('div', {
- staticClass: "content"
- }, [_c('el-select', {
- staticStyle: {
- "width": "100%"
- },
- attrs: {
- "filterable": "",
- "allow-create": "",
- "clearable": "",
- "default-first-option": "",
- "filter-method": _vm.filterMethod,
- "placeholder": "Please choose your job name"
- },
- model: {
- value: _vm.keyword,
- callback: function ($$v) {
- _vm.keyword = $$v;
- },
- expression: "keyword"
- }
- }, _vm._l(_vm.selList, function (option) {
- return _c('el-option', {
- key: option.label_type,
- attrs: {
- "label": option.label_type,
- "value": option.label_type
- }
- });
- }), 1)], 1), _vm._v(" "), _c('div', {
- staticClass: "dialog-footer",
- attrs: {
- "slot": "footer"
- },
- slot: "footer"
- }, [_c('el-button', {
- attrs: {
- "type": "danger"
- },
- on: {
- "click": _vm.handleSend
- }
- }, [_vm._v("Add To My Project")]), _vm._v(" "), _c('el-button', {
- attrs: {
- "type": "info",
- "plain": ""
- },
- on: {
- "click": _vm.handleClose
- }
- }, [_vm._v("CANCEL")])], 1)]);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./components/ProjectDialog.vue?vue&type=template&id=46eebe9e&scoped=true
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/ProjectDialog.vue?vue&type=script&lang=js
- /* harmony default export */ var ProjectDialogvue_type_script_lang_js = ({
- props: {
- visible: {
- type: Boolean,
- default: false
- },
- id: [Number, String],
- projectObj: {
- type: Object,
- default: () => {}
- },
- isCopy: {
- type: Boolean,
- default: true
- }
- },
- data() {
- return {
- keyword: "",
- selList: []
- };
- },
- mounted() {
- if (this.$utils.checkLogin()) {
- this.getSelect();
- }
- },
- methods: {
- getSelect() {
- this.$axios.post("/goods_cart/cartLabelLists", {
- keyword: this.keyword
- }).then(res => {
- this.selList = res.result;
- });
- },
- filterMethod(val) {
- this.keyword = val;
- },
- handleSend() {
- if (!this.keyword) {
- this.$message({
- message: 'Please choose your job name',
- type: "warning"
- });
- return;
- }
- if (this.isCopy) {
- this.$axios.post("/goods_cart/cartLabelGoodsCopy", {
- id: this.id,
- label_type_new: this.keyword
- }).then(res => {
- this.$message.success("Added successfully");
- this.$emit('sendFinish');
- });
- return;
- }
- let data = {
- ...{
- label_type: this.keyword,
- goods_id: this.id
- },
- ...this.projectObj
- };
- this.$axios.post("/goods_cart/cartAdd", data).then(res => {
- this.$message.success("Add success");
- this.$emit("update:visible", false);
- });
- },
- handleClose() {
- this.$emit("update:visible", false);
- }
- }
- });
- // CONCATENATED MODULE: ./components/ProjectDialog.vue?vue&type=script&lang=js
- /* harmony default export */ var components_ProjectDialogvue_type_script_lang_js = (ProjectDialogvue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./components/ProjectDialog.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(195)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- components_ProjectDialogvue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "46eebe9e",
- "2584d023"
-
- )
- /* harmony default export */ var ProjectDialog = __webpack_exports__["default"] = (component.exports);
- /***/ })
- };;
- //# sourceMappingURL=project-dialog.js.map
|