UNPKG

ebid-elementui

Version:

huadian ebid elementui

1,474 lines (1,417 loc) 54.8 kB
'use strict'; // // // // // // // // // // // // var script$6 = { name: 'EbidEllipsisTip', props: { content: { type: String | Number, default: '' }, type: { type: String, default: 'tooltip' }, placement: { type: String, default: 'top' }, effect: { type: String, default: 'dark' }, realContent: { type: String, default: '' } }, data: function data() { return { isEllipsis: false }; }, mounted: function mounted() { var BidEllTipConMainEL = this.$refs.BidEllTipConMain; var vm = this; BidEllTipConMainEL.addEventListener('mouseover', function () { var scrollWidth = BidEllTipConMainEL.scrollWidth; var offsetWidth = BidEllTipConMainEL.offsetWidth; if (scrollWidth > offsetWidth) { vm.isEllipsis = true; } else { vm.isEllipsis = false; } }); } }; function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) { if (typeof shadowMode !== 'boolean') { createInjectorSSR = createInjector; createInjector = shadowMode; shadowMode = false; } // Vue.extend constructor export interop. const options = typeof script === 'function' ? script.options : script; // render functions if (template && template.render) { options.render = template.render; options.staticRenderFns = template.staticRenderFns; options._compiled = true; // functional template if (isFunctionalTemplate) { options.functional = true; } } // scopedId if (scopeId) { options._scopeId = scopeId; } let hook; if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__; } // inject component styles if (style) { style.call(this, createInjectorSSR(context)); } // register component module identifier for async chunk inference if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier); } }; // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook; } else if (style) { hook = shadowMode ? function (context) { style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot)); } : function (context) { style.call(this, createInjector(context)); }; } if (hook) { if (options.functional) { // register for functional component in vue file const originalRender = options.render; options.render = function renderWithStyleInjection(h, context) { hook.call(context); return originalRender(h, context); }; } else { // inject component registration as beforeCreate hook const existing = options.beforeCreate; options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; } } return script; } /* script */ const __vue_script__$6 = script$6; /* template */ var __vue_render__$6 = function () { var _vm = this; var _h = _vm.$createElement; var _c = _vm._self._c || _h; return _c("div", [ _vm.isEllipsis ? _c( "div", [ _vm.type === "tooltip" ? _c( "el-tooltip", { attrs: { placement: _vm.placement, effect: _vm.effect, "popper-class": "ebid-ellipsis-tooltip", }, }, [ _c("div", { attrs: { slot: "content" }, slot: "content" }, [ _vm._v( _vm._s(_vm.realContent ? _vm.realContent : _vm.content) ), ]), _vm._v(" "), _c("div", { staticClass: "ebid-ellipsis", domProps: { innerHTML: _vm._s(_vm.content) }, }), ] ) : _c("div", { staticClass: "ebid-ellipsis", attrs: { title: _vm.content }, domProps: { innerHTML: _vm._s(_vm.content) }, }), ], 1 ) : _c("div", { ref: "BidEllTipConMain", staticClass: "ebid-ellipsis", domProps: { innerHTML: _vm._s(_vm.content) }, }), ]) }; var __vue_staticRenderFns__$6 = []; __vue_render__$6._withStripped = true; /* style */ const __vue_inject_styles__$6 = undefined; /* scoped */ const __vue_scope_id__$6 = undefined; /* module identifier */ const __vue_module_identifier__$6 = undefined; /* functional template */ const __vue_is_functional_template__$6 = false; /* style inject */ /* style inject SSR */ /* style inject shadow dom */ const __vue_component__$6 = /*#__PURE__*/normalizeComponent( { render: __vue_render__$6, staticRenderFns: __vue_staticRenderFns__$6 }, __vue_inject_styles__$6, __vue_script__$6, __vue_scope_id__$6, __vue_is_functional_template__$6, __vue_module_identifier__$6, false, undefined, undefined, undefined ); function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // var script$5 = { name: 'EbidSearchTable', props: { searchOperateMinWidth: { type: Number, default: 230 }, searchOperateMaxWidth: { type: Number, default: 280 }, pageSizes: { type: Array, default: function _default() { return [10, 20, 50, 100]; } }, searchFormInit: { type: Object, default: function _default() {} }, labelWidth: { type: String, default: '120px' }, isExpand: { type: Boolean, default: false }, isLoading: { type: Boolean, default: false }, tableData: { type: Array, default: function _default() { return []; } }, isPage: { type: Boolean, default: true }, isSearch: { type: Boolean, default: false }, sizeInit: { type: Number, default: 10 }, currentInit: { type: Number, default: 1 }, total: { type: Number, default: 0 }, isOperate: { type: Boolean, default: false }, tableOtherAttr: { type: Object, default: function _default() {} }, minusHeight: { type: Number, default: 120 }, searchOperateSpan: { type: Number, default: 4 }, defaultExpandAll: { type: Boolean, default: true }, rowKey: { type: String, default: null }, treeProps: { type: Object, default: function _default() {} }, showHeader: { type: Boolean, default: true }, maxHeight: { type: Number | String, default: null }, height: { type: Number | String, default: null } }, data: function data() { return { current: this.currentInit, size: this.sizeInit, isExpandSearch: false, searchForm: _objectSpread2({}, this.searchFormInit), searchHeight: 0, myOthetAttr: this.tableOtherAttr }; }, computed: { computeMaxHeight: function computeMaxHeight() { if (this.maxHeight) { return this.maxHeight; } else { return window.innerHeight - this.minusHeight - this.searchHeight; } } }, mounted: function mounted() { this.$refs.ebidSearchAreaRef && (this.searchHeight = this.$refs.ebidSearchAreaRef.clientHeight); if (this.isSearch) { // 添加回车查询事件 this.addEnterEvent(); } }, methods: { // arraySpanMethod({ row, column, rowIndex, columnIndex }) { // if (columnIndex === 0) { // if (rowIndex % 2 === 0) { // return { // rowspan: 2, // colspan: 1 // }; // } else { // return { // rowspan: 0, // colspan: 0 // }; // } // } // // return { // // rowspan: 1, // // colspan: 1 // // }; // if (this.$listeners && this.$listeners.arraySpanMethod) { // console.log('arraySpanMethod:',this.$emit('arraySpanMethod', { row, column, rowIndex, columnIndex })); // } // }, // 添加回车键查询事件 addEnterEvent: function addEnterEvent() { var $serachArea = this.$el.querySelector('.ebid-search-area'); var inputs = $serachArea.querySelectorAll('input'); var _this = this; inputs.forEach(function ($input) { $input.addEventListener('keydown', function (e) { // 检查按下的是否是回车键 if (e.key === 'Enter' || e.keyCode === 13) { // 回车事件的处理逻辑 _this.toSearch(); } }); }); }, changeExpand: function changeExpand() { var _this2 = this; this.isExpandSearch = !this.isExpandSearch; this.$nextTick(function () { _this2.searchHeight = _this2.$refs.ebidSearchAreaRef.clientHeight; if (_this2.isExpandSearch) { _this2.addEnterEvent(); } }); }, toggleAllExpand: function toggleAllExpand(val) { this.toggleRow(this.tableData, val); }, toggleRow: function toggleRow(data, val) { var _this3 = this; data.forEach(function (row, index) { _this3.$refs.tableRef.toggleRowExpansion(row, val); if (row[_this3.treeProps.chidren]) { _this3.toggleRow(row[_this3.treeProps.chidren], val); } }); }, toSearch: function toSearch() { this.current = 1; var searchForm = this.searchForm, current = this.current, size = this.size, isPage = this.isPage; if (isPage) { this.$emit('getList', Object.assign({}, searchForm, { current: current, size: size })); } else { this.$emit('getList', Object.assign({}, searchForm)); } }, toReset: function toReset() { var _this4 = this; Object.keys(this.searchForm).forEach(function (key) { _this4.searchForm[key] = _this4.searchFormInit[key]; }); }, handleSelectionChange: function handleSelectionChange(val) { this.$emit('changeSelection', val); }, selectCurrentRow: function selectCurrentRow(row, column, e) { if (this.$listeners && this.$listeners.selectRow) { this.$emit('selectRow', row, column, e); } else { this.$refs.tableRef.clearSelection(); this.$refs.tableRef.toggleRowSelection(row, true); } }, rowDbclick: function rowDbclick(row, column, e) { this.$emit('rowDbclick', row, column, e); }, handleSizeChange: function handleSizeChange(val) { this.size = val; var searchForm = this.searchForm, current = this.current, size = this.size; this.$emit('getList', Object.assign({}, searchForm, { current: current, size: size })); }, handleCurrentChange: function handleCurrentChange(val) { this.current = val; var searchForm = this.searchForm, current = this.current, size = this.size; this.$emit('getList', Object.assign({}, searchForm, { current: current, size: size })); } } }; /* script */ const __vue_script__$5 = script$5; /* template */ var __vue_render__$5 = function () { var _vm = this; var _h = _vm.$createElement; var _c = _vm._self._c || _h; return _c("div", [ _vm.isSearch ? _c( "div", { ref: "ebidSearchAreaRef", staticClass: "ebid-search-area" }, [ _c( "el-form", { ref: "searchFormRef", attrs: { model: _vm.searchForm, "label-width": _vm.labelWidth }, }, [ _c( "el-row", { staticClass: "ebid-search-row", staticStyle: { display: "flex" }, attrs: { gutter: 20 }, }, [ _vm._t("search", null, { isExpandSearch: _vm.isExpandSearch, searchForm: _vm.searchForm, }), _vm._v(" "), _c( "el-col", { style: "max-width:" + _vm.searchOperateMaxWidth + "px;min-width:" + _vm.searchOperateMinWidth + "px;", attrs: { span: _vm.searchOperateSpan }, }, [ _c( "el-form-item", { attrs: { "label-width": "0" } }, [ _c( "el-button", { attrs: { type: "primary", size: "small", loading: _vm.isLoading, }, on: { click: _vm.toSearch }, }, [_vm._v("查询")] ), _vm._v(" "), _c( "el-button", { attrs: { size: "small" }, on: { click: _vm.toReset }, }, [_vm._v("重置")] ), _vm._v(" "), _vm.isExpand ? _c( "span", [ !_vm.isExpandSearch ? _c( "el-button", { staticStyle: { "margin-left": "10px", }, attrs: { type: "text", icon: "el-icon-arrow-down", }, on: { click: _vm.changeExpand }, }, [_vm._v("展开")] ) : _c( "el-button", { staticStyle: { "margin-left": "10px", }, attrs: { type: "text", icon: "el-icon-arrow-up", }, on: { click: _vm.changeExpand }, }, [_vm._v("收起")] ), ], 1 ) : _vm._e(), ], 1 ), ], 1 ), ], 2 ), ], 1 ), ], 1 ) : _vm._e(), _vm._v(" "), _vm.isOperate ? _c("div", { staticClass: "ebid-operate-area" }, [_vm._t("operate")], 2) : _vm._e(), _vm._v(" "), _c( "div", { staticClass: "bid-table-wrapper" }, [ _c( "el-table", _vm._b( { directives: [ { name: "loading", rawName: "v-loading", value: _vm.isLoading, expression: "isLoading", }, ], ref: "tableRef", attrs: { border: "", "default-expand-all": _vm.defaultExpandAll, "show-header": _vm.showHeader, "row-key": _vm.rowKey, "tree-props": _vm.treeProps, data: _vm.tableData, "header-cell-style": { background: "#f6f9fe", color: "#909399", "font-weight": 600, }, "max-height": _vm.computeMaxHeight, height: _vm.height, }, on: { "selection-change": _vm.handleSelectionChange, "row-click": function (row, column, e) { return _vm.selectCurrentRow(row, column, e) }, "row-dblclick": function (row, column, e) { return _vm.rowDbclick(row, column, e) }, }, }, "el-table", _vm.myOthetAttr, false ), [_vm._t("table")], 2 ), _vm._v(" "), _vm.isPage ? _c( "div", { staticClass: "ebid-page-wrapper" }, [ _c("el-pagination", { attrs: { "current-page": _vm.current, "page-sizes": _vm.pageSizes, "page-size": _vm.size, layout: "total, sizes, prev, pager, next, jumper", total: _vm.total, }, on: { "size-change": _vm.handleSizeChange, "current-change": _vm.handleCurrentChange, }, }), ], 1 ) : _vm._e(), ], 1 ), ]) }; var __vue_staticRenderFns__$5 = []; __vue_render__$5._withStripped = true; /* style */ const __vue_inject_styles__$5 = undefined; /* scoped */ const __vue_scope_id__$5 = undefined; /* module identifier */ const __vue_module_identifier__$5 = undefined; /* functional template */ const __vue_is_functional_template__$5 = false; /* style inject */ /* style inject SSR */ /* style inject shadow dom */ const __vue_component__$5 = /*#__PURE__*/normalizeComponent( { render: __vue_render__$5, staticRenderFns: __vue_staticRenderFns__$5 }, __vue_inject_styles__$5, __vue_script__$5, __vue_scope_id__$5, __vue_is_functional_template__$5, __vue_module_identifier__$5, false, undefined, undefined, undefined ); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // var script$4 = { name: 'EbidDialog', props: { title: { type: String, default: '' }, width: { type: String | Number, default: '50%' }, dialogType: { //formAdd formEdit formView; show type: String, default: 'show' }, formLabelWidth: { type: String, default: '120px' }, formModelInit: { type: Object, default: function _default() {} }, formRules: { type: Object, default: function _default() {} }, isSaving: { type: Boolean, default: false }, isBottom: { type: Boolean, default: false }, saveBtnText: { type: String, default: '确定' } }, data: function data() { return { formModel: _objectSpread2({}, this.formModelInit), dialogVisible: false }; }, watch: { formModelInit: function formModelInit(val) { this.formModel = Object.assign(_objectSpread2({}, val), this.formModel); } }, updated: function updated() {}, methods: { // 修改formModel数据 editFormModel: function editFormModel(obj) { this.formModel = Object.assign({}, this.formModel, obj); }, show: function show() { this.dialogVisible = true; }, onClose: function onClose() { var dialogType = this.dialogType; if (dialogType.includes('form')) { this.resetForm(); } this.$emit('onClose'); }, resetForm: function resetForm() { this.$refs.formRef.resetFields(); }, toClose: function toClose() { this.onClose(); this.dialogVisible = false; }, toSave: function toSave() { var _this = this; this.$refs.formRef.validate(function (valid) { if (!valid) { return false; } _this.$emit('formSubmit', _this.formModel); }); } } }; /* script */ const __vue_script__$4 = script$4; /* template */ var __vue_render__$4 = function () { var _vm = this; var _h = _vm.$createElement; var _c = _vm._self._c || _h; return _vm.dialogVisible ? _c( "el-dialog", { ref: "dialogRef", attrs: { "custom-class": "ebid-el-dialog " + (_vm.dialogType === "formAdd" || _vm.dialogType === "formEdit" || _vm.isBottom ? "ebid-dialog-bottom" : ""), title: _vm.title, width: _vm.width, "close-on-click-modal": false, visible: _vm.dialogVisible, }, on: { close: _vm.onClose, "update:visible": function ($event) { _vm.dialogVisible = $event; }, }, scopedSlots: _vm._u( [ { key: "footer", fn: function () { return [ _vm.dialogType === "formAdd" || _vm.dialogType === "formEdit" ? _c( "div", { staticClass: "dialog-footer" }, [ _c("el-button", { on: { click: _vm.toClose } }, [ _vm._v("取 消"), ]), _vm._v(" "), _c( "el-button", { attrs: { type: "primary", loading: _vm.isSaving, }, on: { click: _vm.toSave }, }, [_vm._v(_vm._s(_vm.saveBtnText))] ), _vm._v(" "), _vm._t("operateBtn"), ], 2 ) : _vm._e(), _vm._v(" "), _vm._t("footer"), ] }, proxy: true, }, ], null, true ), }, [ _vm._t("default"), _vm._v(" "), _vm.dialogType.includes("form") ? _c( "div", [ _c( "el-form", { ref: "formRef", attrs: { "label-width": _vm.formLabelWidth, model: _vm.formModel, rules: _vm.formRules, disabled: _vm.dialogType === "formView", }, }, [_vm._t("form", null, { formModel: _vm.formModel })], 2 ), ], 1 ) : _vm._e(), ], 2 ) : _vm._e() }; var __vue_staticRenderFns__$4 = []; __vue_render__$4._withStripped = true; /* style */ const __vue_inject_styles__$4 = undefined; /* scoped */ const __vue_scope_id__$4 = undefined; /* module identifier */ const __vue_module_identifier__$4 = undefined; /* functional template */ const __vue_is_functional_template__$4 = false; /* style inject */ /* style inject SSR */ /* style inject shadow dom */ const __vue_component__$4 = /*#__PURE__*/normalizeComponent( { render: __vue_render__$4, staticRenderFns: __vue_staticRenderFns__$4 }, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, undefined, undefined, undefined ); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // var script$3 = { name: 'EbidOperatePage', props: { isVisible: { type: Boolean, default: false }, title: { type: String, default: '' }, isHeader: { type: Boolean, default: false }, headerTitle: { type: String, default: '' } }, data: function data() { return {}; }, methods: { toBack: function toBack() { if (this.$listeners && this.$listeners.close) { this.$emit('close'); } } } }; const isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase()); function createInjector(context) { return (id, style) => addStyle(id, style); } let HEAD; const styles = {}; function addStyle(id, css) { const group = isOldIE ? css.media || 'default' : id; const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] }); if (!style.ids.has(id)) { style.ids.add(id); let code = css.source; if (css.map) { // https://developer.chrome.com/devtools/docs/javascript-debugging // this makes source maps inside style tags work properly in Chrome code += '\n/*# sourceURL=' + css.map.sources[0] + ' */'; // http://stackoverflow.com/a/26603875 code += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) + ' */'; } if (!style.element) { style.element = document.createElement('style'); style.element.type = 'text/css'; if (css.media) style.element.setAttribute('media', css.media); if (HEAD === undefined) { HEAD = document.head || document.getElementsByTagName('head')[0]; } HEAD.appendChild(style.element); } if ('styleSheet' in style.element) { style.styles.push(code); style.element.styleSheet.cssText = style.styles .filter(Boolean) .join('\n'); } else { const index = style.ids.size - 1; const textNode = document.createTextNode(code); const nodes = style.element.childNodes; if (nodes[index]) style.element.removeChild(nodes[index]); if (nodes.length) style.element.insertBefore(textNode, nodes[index]); else style.element.appendChild(textNode); } } } /* script */ const __vue_script__$3 = script$3; /* template */ var __vue_render__$3 = function () { var _vm = this; var _h = _vm.$createElement; var _c = _vm._self._c || _h; return _vm.isVisible ? _c("div", { staticClass: "ebid-operate-page" }, [ _c("div", { staticClass: "page-wrapper" }, [ _c("div", { staticClass: "operate-page-top" }, [ _c( "div", [ _c( "el-button", { attrs: { icon: "el-icon-arrow-left", size: "mini" }, on: { click: _vm.toBack }, }, [_vm._v("返回")] ), _vm._v(" "), _c("span", { staticClass: "title-text" }, [ _vm._v(_vm._s(_vm.title)), ]), ], 1 ), _vm._v(" "), _c("div", [_vm._t("operate")], 2), ]), _vm._v(" "), _c("div", { staticClass: "content-main" }, [ _vm.isHeader ? _c("div", { staticClass: "content-header" }, [ _c("span", { staticClass: "content-title" }, [ _vm._v(_vm._s(_vm.headerTitle)), ]), ]) : _vm._e(), _vm._v(" "), _c( "div", { staticClass: "content-detail" }, [_vm._t("default")], 2 ), ]), ]), ]) : _vm._e() }; var __vue_staticRenderFns__$3 = []; __vue_render__$3._withStripped = true; /* style */ const __vue_inject_styles__$3 = function (inject) { if (!inject) return inject("data-v-2e005df9_0", { source: ".ebid-operate-page[data-v-2e005df9] {\n position: absolute;\n z-index: 1000;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: #fff;\n}\n.operate-page-top[data-v-2e005df9] {\n position: absolute;\n z-index: 2000;\n top: 10px;\n width: 100%;\n background: #fff;\n display: flex;\n justify-content: space-between;\n align-items: center;\n box-sizing: border-box;\n padding: 0 15px;\n}\n.operate-page-top .title-text[data-v-2e005df9] {\n margin-left: 16px;\n color: #7f7f7f;\n font-weight: bold;\n}\n.content-main[data-v-2e005df9] {\n position: absolute;\n z-index: 2000;\n top: 48px;\n bottom: 0;\n left: 0;\n right: 0;\n border: 1px solid #ccc;\n border-radius: 6px;\n overflow: auto;\n margin: 0 15px;\n}\n.content-main .content-header[data-v-2e005df9] {\n background: #fafcfe;\n padding: 10px 16px;\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n border-bottom: 1px solid #d9d9d9;\n}\n.operate-page-bottom[data-v-2e005df9] {\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 26px 0 36px 0;\n}\n.content-detail[data-v-2e005df9] {\n padding: 10px 16px;\n}\n\n/*# sourceMappingURL=OperatePage.vue.map */", map: {"version":3,"sources":["D:\\code\\gitee\\ebid-elementui\\src\\ebid\\OperatePage.vue","OperatePage.vue"],"names":[],"mappings":"AAiEA;EACA,kBAAA;EACA,aAAA;EACA,MAAA;EACA,SAAA;EACA,OAAA;EACA,QAAA;EACA,gBAAA;AChEA;ADkEA;EACA,kBAAA;EACA,aAAA;EACA,SAAA;EACA,WAAA;EACA,gBAAA;EACA,aAAA;EACA,8BAAA;EACA,mBAAA;EACA,sBAAA;EACA,eAAA;AC/DA;ADgEA;EACA,iBAAA;EACA,cAAA;EACA,iBAAA;AC9DA;ADiEA;EACA,kBAAA;EACA,aAAA;EACA,SAAA;EACA,SAAA;EACA,OAAA;EACA,QAAA;EACA,sBAAA;EACA,kBAAA;EACA,cAAA;EACA,cAAA;AC9DA;AD+DA;EACA,mBAAA;EACA,kBAAA;EACA,2BAAA;EACA,4BAAA;EACA,gCAAA;AC7DA;ADgEA;EACA,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,qBAAA;AC7DA;AD+DA;EACA,kBAAA;AC5DA;;AAEA,0CAA0C","file":"OperatePage.vue","sourcesContent":["<template>\r\n <div class=\"ebid-operate-page\" v-if=\"isVisible\">\r\n <div class=\"page-wrapper\">\r\n <div class=\"operate-page-top\">\r\n <div>\r\n <el-button icon=\"el-icon-arrow-left\" @click=\"toBack\" size=\"mini\">返回</el-button>\r\n <span class=\"title-text\">{{ title }}</span>\r\n </div>\r\n <div>\r\n <slot name=\"operate\"></slot>\r\n </div>\r\n </div>\r\n <div class=\"content-main\">\r\n <div class=\"content-header\" v-if=\"isHeader\">\r\n <span class=\"content-title\">{{ headerTitle }}</span>\r\n </div>\r\n <div class=\"content-detail\">\r\n <slot></slot>\r\n <!-- <ebid-module-header text=\"基本信息\"></ebid-module-header> -->\r\n </div>\r\n </div>\r\n <!-- <div v-if=\"isOperate\" class=\"operate-page-bottom\">\r\n <el-button type=\"primary\">保存</el-button>\r\n <el-button type=\"primary\" plain>取消</el-button>\r\n <slot name=\"myOperate\"></slot>\r\n </div> -->\r\n <!-- <slot name=\"operate-page-footer\"></slot> -->\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nexport default {\r\n name: 'EbidOperatePage',\r\n props: {\r\n isVisible: {\r\n type: Boolean,\r\n default: false\r\n },\r\n title: {\r\n type: String,\r\n default: ''\r\n },\r\n isHeader: {\r\n type: Boolean,\r\n default: false\r\n },\r\n headerTitle: {\r\n type: String,\r\n default: ''\r\n }\r\n },\r\n data() {\r\n return {\r\n }\r\n },\r\n methods: {\r\n toBack() {\r\n if (this.$listeners && this.$listeners.close) {\r\n this.$emit('close')\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.ebid-operate-page {\r\n position: absolute;\r\n z-index: 1000;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n background: #fff;\r\n}\r\n.operate-page-top {\r\n position: absolute;\r\n z-index: 2000;\r\n top: 10px;\r\n width: 100%;\r\n background: #fff;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n box-sizing: border-box;\r\n padding: 0 15px;\r\n .title-text {\r\n margin-left: 16px;\r\n color: rgb(127, 127, 127);\r\n font-weight: bold;\r\n }\r\n}\r\n.content-main {\r\n position: absolute;\r\n z-index: 2000;\r\n top: 48px;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n border: 1px solid #ccc;\r\n border-radius: 6px;\r\n overflow: auto;\r\n margin: 0 15px;\r\n .content-header {\r\n background: rgb(250, 252, 254);\r\n padding: 10px 16px;\r\n border-top-left-radius: 6px;\r\n border-top-right-radius: 6px;\r\n border-bottom: 1px solid rgb(217, 217, 217);\r\n }\r\n}\r\n.operate-page-bottom {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n margin: 26px 0 36px 0;\r\n}\r\n.content-detail {\r\n padding: 10px 16px;\r\n}\r\n</style>",".ebid-operate-page {\n position: absolute;\n z-index: 1000;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: #fff;\n}\n\n.operate-page-top {\n position: absolute;\n z-index: 2000;\n top: 10px;\n width: 100%;\n background: #fff;\n display: flex;\n justify-content: space-between;\n align-items: center;\n box-sizing: border-box;\n padding: 0 15px;\n}\n.operate-page-top .title-text {\n margin-left: 16px;\n color: #7f7f7f;\n font-weight: bold;\n}\n\n.content-main {\n position: absolute;\n z-index: 2000;\n top: 48px;\n bottom: 0;\n left: 0;\n right: 0;\n border: 1px solid #ccc;\n border-radius: 6px;\n overflow: auto;\n margin: 0 15px;\n}\n.content-main .content-header {\n background: #fafcfe;\n padding: 10px 16px;\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n border-bottom: 1px solid #d9d9d9;\n}\n\n.operate-page-bottom {\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 26px 0 36px 0;\n}\n\n.content-detail {\n padding: 10px 16px;\n}\n\n/*# sourceMappingURL=OperatePage.vue.map */"]}, media: undefined }); }; /* scoped */ const __vue_scope_id__$3 = "data-v-2e005df9"; /* module identifier */ const __vue_module_identifier__$3 = undefined; /* functional template */ const __vue_is_functional_template__$3 = false; /* style inject SSR */ /* style inject shadow dom */ const __vue_component__$3 = /*#__PURE__*/normalizeComponent( { render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 }, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, createInjector, undefined, undefined ); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // var script$2 = { name: 'EbidModuleHeader', props: { text: { type: String, default: '' }, type: { type: String, default: 'in' //in edge module }, headerClass: { type: String, default: '' }, moduleHeaderStyle: { type: Object, default: function _default() {} }, mainHeight: { type: String, default: '' } } }; /* script */ const __vue_script__$2 = script$2; /* template */ var __vue_render__$2 = function () { var _vm = this; var _h = _vm.$createElement; var _c = _vm._self._c || _h; return _c("div", { class: _vm.headerClass }, [ _vm.type === "in" ? _c("div", { staticClass: "header-in", style: _vm.moduleHeaderStyle }, [ _c("div", { staticClass: "in-left" }, [ _c("span", { staticClass: "in-border" }), _vm._v(" "), _c("span", { staticClass: "in-text" }, [_vm._v(_vm._s(_vm.text))]), ]), _vm._v(" "), _c("div", { staticClass: "in-operate" }, [_vm._t("operate")], 2), ]) : _vm.type === "edge" ? _c( "div", { staticClass: "header-edge", style: _vm.moduleHeaderStyle }, [ _c("div", { staticClass: "edge-left" }, [ _c("span", { staticClass: "edge-text" }, [ _vm._v(_vm._s(_vm.text)), ]), ]), _vm._v(" "), _c("div", { staticClass: "edge-operate" }, [_vm._t("operate")], 2), ] ) : _vm.type === "module" ? _c("div", { staticClass: "module-wrapper" }, [ _c( "div", { staticClass: "module-header", style: _vm.moduleHeaderStyle }, [ _c( "div", [ _vm._v("\n " + _vm._s(_vm.text) + "\n "), _vm._t("title"), ], 2 ), _vm._v(" "), _c( "div", { staticClass: "module-operate" }, [_vm._t("operate")], 2 ), ] ), _vm._v(" "), _c( "div", { staticClass: "module-main", style: _vm.mainHeight ? { height: _vm.mainHeight } : {}, }, [_vm._t("default")], 2 ), ]) : _vm._e(), ]) }; var __vue_staticRenderFns__$2 = []; __vue_render__$2._withStripped = true; /* style */ const __vue_inject_styles__$2 = function (inject) { if (!inject) return inject("data-v-3e21d067_0", { source: ".header-in[data-v-3e21d067] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: #fbfbfb;\n padding: 6px 16px;\n}\n.header-in .in-left[data-v-3e21d067] {\n display: flex;\n align-items: center;\n height: 20px;\n}\n.header-in .in-left .in-border[data-v-3e21d067] {\n display: inline-block;\n width: 6px;\n height: 100%;\n background: #409eff;\n border-radius: 2px;\n}\n.header-in .in-left .in-text[data-v-3e21d067] {\n color: #666666;\n font-weight: bold;\n padding-left: 6px;\n font-size: 14px;\n}\n.header-edge[data-v-3e21d067] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: #fbfbfb;\n border-left: 4px solid #409eff;\n padding: 0 10px;\n}\n.header-edge .edge-left[data-v-3e21d067] {\n display: flex;\n align-items: center;\n height: 32px;\n}\n.header-edge .edge-left .edge-text[data-v-3e21d067] {\n color: #666666;\n font-weight: bold;\n font-size: 14px;\n}\n.module-wrapper .module-header[data-v-3e21d067] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 16px;\n background: #FAFCFE;\n border: 1px solid #DCDCDC;\n height: 36px;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n font-size: 14px;\n}\n.module-wrapper .module-header .module-operate[data-v-3e21d067] {\n display: flex;\n justify-content: right;\n}\n.module-wrapper .module-main[data-v-3e21d067] {\n box-shadow: 0px 1px 2px 0px #D9D9D9;\n}\n\n/*# sourceMappingURL=ModuleHeader.vue.map */", map: {"version":3,"sources":["D:\\code\\gitee\\ebid-elementui\\src\\ebid\\ModuleHeader.vue","ModuleHeader.vue"],"names":[],"mappings":"AAiEA;EACA,aAAA;EACA,8BAAA;EACA,mBAAA;EACA,mBAAA;EACA,iBAAA;AChEA;ADiEA;EACA,aAAA;EACA,mBAAA;EACA,YAAA;AC/DA;ADgEA;EACA,qBAAA;EACA,UAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;AC9DA;ADgEA;EACA,cAAA;EACA,iBAAA;EACA,iBAAA;EACA,eAAA;AC9DA;ADkEA;EACA,aAAA;EACA,8BAAA;EACA,mBAAA;EACA,mBAAA;EACA,8BAAA;EACA,eAAA;AC/DA;ADgEA;EACA,aAAA;EACA,mBAAA;EACA,YAAA;AC9DA;AD+DA;EACA,cAAA;EACA,iBAAA;EACA,eAAA;AC7DA;ADkEA;EACA,aAAA;EACA,mBAAA;EACA,8BAAA;EACA,eAAA;EACA,mBAAA;EACA,yBAAA;EACA,YAAA;EACA,2BAAA;EACA,4BAAA;EACA,eAAA;AC/DA;ADgEA;EACA,aAAA;EACA,sBAAA;AC9DA;ADiEA;EACA,mCAAA;AC/DA;;AAEA,2CAA2C","file":"ModuleHeader.vue","sourcesContent":["<template>\r\n <div :class=\"headerClass\">\r\n <div v-if=\"type==='in'\" class=\"header-in\" :style=\"moduleHeaderStyle\">\r\n <div class=\"in-left\">\r\n <span class=\"in-border\"></span>\r\n <span class=\"in-text\">{{ text }}</span>\r\n </div>\r\n <div class=\"in-operate\">\r\n <slot name=\"operate\"></slot>\r\n </div>\r\n </div>\r\n <div v-else-if=\"type==='edge'\" class=\"header-edge\" :style=\"moduleHeaderStyle\">\r\n <div class=\"edge-left\">\r\n <span class=\"edge-text\">{{ text }}</span>\r\n </div>\r\n <div class=\"edge-operate\">\r\n <slot name=\"operate\"></slot>\r\n </div>\r\n </div>\r\n <div v-else-if=\"type==='module'\" class=\"module-wrapper\">\r\n <div class=\"module-header\" :style=\"moduleHeaderStyle\">\r\n <div>\r\n {{ text }}\r\n <slot name=\"title\"></slot>\r\n </div>\r\n <div class=\"module-operate\">\r\n <slot name=\"operate\"></slot>\r\n <!-- <el-button type=\"primary\" size=\"mini\">归档管理</el-button>\r\n <el-button type=\"danger\" plain size=\"mini\">归档异常结束</el-button> -->\r\n </div>\r\n </div>\r\n <div class=\"module-main\" :style=\"mainHeight ? {height: mainHeight} : {}\">\r\n <slot></slot>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nexport default {\r\n name: 'EbidModuleHeader',\r\n props: {\r\n text: {\r\n type: String,\r\n default: ''\r\n },\r\n type: {\r\n type: String,\r\n default: 'in' //in edge module\r\n },\r\n headerClass: {\r\n type: String,\r\n default: ''\r\n },\r\n moduleHeaderStyle: {\r\n type: Object,\r\n default: () => {}\r\n },\r\n mainHeight: {\r\n type: String,\r\n default: ''\r\n }\r\n }\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.header-in {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background: rgb(251, 251, 251);\r\n padding: 6px 16px;\r\n .in-left {\r\n display: flex;\r\n align-items: center;\r\n height: 20px;\r\n .in-border {\r\n display: inline-block;\r\n width: 6px;\r\n height: 100%;\r\n background: rgb(64, 158, 255);\r\n border-radius: 2px;\r\n }\r\n .in-text {\r\n color: rgb(102, 102, 102);\r\n font-weight: bold;\r\n padding-left: 6px;\r\n font-size: 14px;\r\n }\r\n }\r\n}\r\n.header-edge {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n background: rgb(251, 251, 251);\r\n border-left: 4px solid rgb(64, 158, 255);\r\n padding: 0 10px;\r\n .edge-left {\r\n display: flex;\r\n align-items: center;\r\n height: 32px;\r\n .edge-text {\r\n color: rgb(102, 102, 102);\r\n font-weight: bold;\r\n font-size: 14px;\r\n }\r\n }\r\n}\r\n.module-wrapper {\r\n .module-header {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n padding: 0 16px;\r\n background: #FAFCFE;\r\n border: 1px solid #DCDCDC;\r\n height: 36px;\r\n border-top-left-radius: 8px;\r\n border-top-right-radius: 8px;\r\n font-size: 14px;\r\n .module-operate {\r\n display: flex;\r\n justify-content: right;\r\n }\r\n }\r\n .module-main {\r\n box-shadow: 0px 1px 2px 0px #D9D9D9;\r\n // padding: 20px 45px;\r\n }\r\n}\r\n</style>",".header-in {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: #fbfbfb;\n padding: 6px 16px;\n}\n.header-in .in-left {\n display: flex;\n align-items: center;\n height: 20px;\n}\n.header-in .in-left .in-border {\n display: inline-block;\n width: 6px;\n height: 100%;\n background: #409eff;\n border-radius: 2px;\n}\n.header-in .in-left .in-text {\n color: #666666;\n font-weight: bold;\n padding-left: 6px;\n font-size: 14px;\n}\n\n.header-edge {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: #fbfbfb;\n border-left: 4px solid #409eff;\n padding: 0 10px;\n}\n.header-edge .edge-left {\n display: flex;\n align-items: center;\n height: 32px;\n}\n.header-edge .edge-left .edge-text {\n color: #666666;\n font-weight: bold;\n font-size: 14px;\n}\n\n.module-wrapper .module-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 16px;\n background: #FAFCFE;\n border: 1px solid #DCDCDC;\n height: 36px;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n font-size: 14px;\n}\n.module-wrapper .module-header .module-operate {\n display: flex;\n justify-content: right;\n}\n.module-wrapper .module-main {\n box-shadow: 0px 1px 2px 0px #D9D9D9;\n}\n\n/*# sourceMappingURL=ModuleHeader.vue.map */"]}, media: undefined }); }; /* scoped */ const __vue_scope_id__$2 = "data-v-3e21d067"; /* module identifier */ const __vue_module_identifier__$2 = undefined; /* functional template */ const __vue_is_functional_template__$2 = false; /* style inject SSR */ /* style inject shadow dom */ const __vue_component__$2 = /*#__PURE__*/normalizeComponent( { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 }, __vue_inject_styles__$2, __vue_script__$2, __vue_scope_id__$2, __vue_is_functional_template__$2, __vue_module_identifier__$2, false, createInjector, undefined, undefined ); // // // // // // // var script$1 = { name: 'EbidStatus', props: { text: { type: String, default: '' }, color: { type: String, default: '#ED7B2F ' }, className: { type: String, default: '' }, size: { type: String, default: '8' } } }; /* script */ const __vue_script__$1 = script$1; /* template */ var __vue_render__$1 = function () { var _vm = this; var _h = _vm.$createElement; var _c = _vm._self._c || _h; return _c( "div", { class: "ebid-