1 |
- {"version":3,"sources":["webpack:///./node_modules/element-ui/src/utils/types.js","webpack:///./node_modules/element-ui/src/utils/util.js","webpack:///./node_modules/element-ui/src/locale/format.js","webpack:///./node_modules/element-ui/src/locale/index.js","webpack:///src/components/pageHeader/src/main.vue","webpack:///./src/components/pageHeader/src/main.vue?16d3","webpack:///./src/components/pageHeader/src/main.vue","webpack:///src/views/sms/advertise/components/HomeAdvertiseDetail.vue","webpack:///./src/views/sms/advertise/components/HomeAdvertiseDetail.vue?d834","webpack:///./src/views/sms/advertise/components/HomeAdvertiseDetail.vue","webpack:///src/views/sms/advertise/update.vue","webpack:///./src/views/sms/advertise/update.vue?5732","webpack:///./src/views/sms/advertise/update.vue"],"names":["util_hasOwnProperty","Object","prototype","hasOwnProperty","RE_NARGS","vue_esm","main","name","props","title","type","String","default","content","src_main","render","_vm","this","_h","$createElement","_c","_self","staticClass","on","click","$event","$emit","_v","_t","_s","staticRenderFns","pageHeader_src_main","__webpack_require__","normalizeComponent","ssrContext","defaultTypeOptions","label","value","defaultHomeAdvertise","pic","startTime","endTime","status","url","note","sort","HomeAdvertiseDetail","components","SingleUpload","singleUpload","pageHeader","isEdit","Boolean","data","homeAdvertise","rules","required","message","trigger","min","max","typeOptions","assign_default","created","_this","$route","query","id","then","response","methods","onSubmit","formName","_this2","$refs","validate","valid","$message","duration","$confirm","confirmButtonText","cancelButtonText","resetFields","$router","back","resetForm","goBack","push","components_HomeAdvertiseDetail","attrs","shadow","ref","model","label-width","size","prop","callback","$$v","$set","expression","_l","key","placeholder","rows","_e","HomeAdvertiseDetail_Component","HomeAdvertiseDetail_normalizeComponent","__webpack_exports__","update","advertise_update","Component"],"mappings":"2JAYA,MCTAA,EAAAC,OAAAC,UAAAC,eCDA,MAAAC,EAAA,2BCGAC,EAAA,QA0CA,IC/BAC,GACAC,KAAA,eACAC,OACAC,OACAC,KAAAC,OACAC,QAFA,WAGA,aAGAC,QAAAF,SCtBAG,GADiBC,OAFjB,WAA0B,IAAAC,EA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,KAAAlF,EAAAsC,cAAA,OAAA2C,IAAyCE,WAAA,yBAAkC,GAAAnF,EAAAW,GAAA,KAAAP,EAAA,gBAAAA,EAAA,aAAqDqE,OAAO/E,KAAA,WAAiBa,IAAKC,MAAA,SAAAC,GAAyBT,EAAAuD,SAAA,yBAAoCvD,EAAAW,GAAA,QAAAX,EAAAW,GAAA,KAAAX,EAAAmC,OAA6HnC,EAAAwF,KAA7HpF,EAAA,aAA2DG,IAAIC,MAAA,SAAAC,GAAyBT,EAAAqE,UAAA,yBAAqCrE,EAAAW,GAAA,yBAErpGG,oBCCjB,IAcA2E,EAdAzE,EAAA,OAcA0E,CACA5D,EACA0C,GATA,EAVA,SAAAtD,GACAF,EAAA,SAaA,kBAEA,MAUA2E,EAAA,EAAAF,EAAA,gGCrBAG,GACArG,KAAA,sBACAwC,YAAAD,8BAAA,ICJA+D,GADiB9F,OAFjB,WAA0B,IAAaG,EAAbD,KAAaE,eAAkD,OAA/DF,KAAuCI,MAAAD,IAAAF,GAAwB,yBAAmCuE,OAAOtC,QAAA,MAElHrB,oBCCjB,IAcAgF,EAdA9E,EAAA,OAcAC,CACA2E,EACAC,GATA,EAVA,SAAA3E,GACAF,EAAA,SAaA,KAEA,MAUA2E,EAAA,QAAAG,EAAA","file":"static/js/5.60b78efc9110b7c770f7.js","sourcesContent":["export function isString(obj) {\n return Object.prototype.toString.call(obj) === '[object String]';\n}\n\nexport function isObject(obj) {\n return Object.prototype.toString.call(obj) === '[object Object]';\n}\n\nexport function isHtmlElement(node) {\n return node && node.nodeType === Node.ELEMENT_NODE;\n}\n\nexport const isFunction = (functionToCheck) => {\n var getType = {};\n return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';\n};\n\nexport const isUndefined = (val)=> {\n return val === void 0;\n};\n\nexport const isDefined = (val) => {\n return val !== undefined && val !== null;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/element-ui/src/utils/types.js\n// module id = null\n// module chunks = ","import Vue from 'vue';\nimport { isString, isObject } from 'element-ui/src/utils/types';\n\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\n\nexport function noop() {};\n\nexport function hasOwn(obj, key) {\n return hasOwnProperty.call(obj, key);\n};\n\nfunction extend(to, _from) {\n for (let key in _from) {\n to[key] = _from[key];\n }\n return to;\n};\n\nexport function toObject(arr) {\n var res = {};\n for (let i = 0; i < arr.length; i++) {\n if (arr[i]) {\n extend(res, arr[i]);\n }\n }\n return res;\n};\n\nexport const getValueByPath = function(object, prop) {\n prop = prop || '';\n const paths = prop.split('.');\n let current = object;\n let result = null;\n for (let i = 0, j = paths.length; i < j; i++) {\n const path = paths[i];\n if (!current) break;\n\n if (i === j - 1) {\n result = current[path];\n break;\n }\n current = current[path];\n }\n return result;\n};\n\nexport function getPropByPath(obj, path, strict) {\n let tempObj = obj;\n path = path.replace(/\\[(\\w+)\\]/g, '.$1');\n path = path.replace(/^\\./, '');\n\n let keyArr = path.split('.');\n let i = 0;\n for (let len = keyArr.length; i < len - 1; ++i) {\n if (!tempObj && !strict) break;\n let key = keyArr[i];\n if (key in tempObj) {\n tempObj = tempObj[key];\n } else {\n if (strict) {\n throw new Error('please transfer a valid prop path to form item!');\n }\n break;\n }\n }\n return {\n o: tempObj,\n k: keyArr[i],\n v: tempObj ? tempObj[keyArr[i]] : null\n };\n};\n\nexport const generateId = function() {\n return Math.floor(Math.random() * 10000);\n};\n\nexport const valueEquals = (a, b) => {\n // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript\n if (a === b) return true;\n if (!(a instanceof Array)) return false;\n if (!(b instanceof Array)) return false;\n if (a.length !== b.length) return false;\n for (let i = 0; i !== a.length; ++i) {\n if (a[i] !== b[i]) return false;\n }\n return true;\n};\n\nexport const escapeRegexpString = (value = '') => String(value).replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&');\n\n// TODO: use native Array.find, Array.findIndex when IE support is dropped\nexport const arrayFindIndex = function(arr, pred) {\n for (let i = 0; i !== arr.length; ++i) {\n if (pred(arr[i])) {\n return i;\n }\n }\n return -1;\n};\n\nexport const arrayFind = function(arr, pred) {\n const idx = arrayFindIndex(arr, pred);\n return idx !== -1 ? arr[idx] : undefined;\n};\n\n// coerce truthy value to array\nexport const coerceTruthyValueToArray = function(val) {\n if (Array.isArray(val)) {\n return val;\n } else if (val) {\n return [val];\n } else {\n return [];\n }\n};\n\nexport const isIE = function() {\n return !Vue.prototype.$isServer && !isNaN(Number(document.documentMode));\n};\n\nexport const isEdge = function() {\n return !Vue.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;\n};\n\nexport const isFirefox = function() {\n return !Vue.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);\n};\n\nexport const autoprefixer = function(style) {\n if (typeof style !== 'object') return style;\n const rules = ['transform', 'transition', 'animation'];\n const prefixes = ['ms-', 'webkit-'];\n rules.forEach(rule => {\n const value = style[rule];\n if (rule && value) {\n prefixes.forEach(prefix => {\n style[prefix + rule] = value;\n });\n }\n });\n return style;\n};\n\nexport const kebabCase = function(str) {\n const hyphenateRE = /([^-])([A-Z])/g;\n return str\n .replace(hyphenateRE, '$1-$2')\n .replace(hyphenateRE, '$1-$2')\n .toLowerCase();\n};\n\nexport const capitalize = function(str) {\n if (!isString(str)) return str;\n return str.charAt(0).toUpperCase() + str.slice(1);\n};\n\nexport const looseEqual = function(a, b) {\n const isObjectA = isObject(a);\n const isObjectB = isObject(b);\n if (isObjectA && isObjectB) {\n return JSON.stringify(a) === JSON.stringify(b);\n } else if (!isObjectA && !isObjectB) {\n return String(a) === String(b);\n } else {\n return false;\n }\n};\n\nexport const arrayEquals = function(arrayA, arrayB) {\n arrayA = arrayA || [];\n arrayB = arrayB || [];\n\n if (arrayA.length !== arrayB.length) {\n return false;\n }\n\n for (let i = 0; i < arrayA.length; i++) {\n if (!looseEqual(arrayA[i], arrayB[i])) {\n return false;\n }\n }\n\n return true;\n};\n\nexport const isEqual = function(value1, value2) {\n if (Array.isArray(value1) && Array.isArray(value2)) {\n return arrayEquals(value1, value2);\n }\n return looseEqual(value1, value2);\n};\n\nexport const isEmpty = function(val) {\n // null or undefined\n if (val == null) return true;\n\n if (typeof val === 'boolean') return false;\n\n if (typeof val === 'number') return !val;\n\n if (val instanceof Error) return val.message === '';\n\n switch (Object.prototype.toString.call(val)) {\n // String or Array\n case '[object String]':\n case '[object Array]':\n return !val.length;\n\n // Map or Set or File\n case '[object File]':\n case '[object Map]':\n case '[object Set]': {\n return !val.size;\n }\n // Plain Object\n case '[object Object]': {\n return !Object.keys(val).length;\n }\n }\n\n return false;\n};\n\nexport function rafThrottle(fn) {\n let locked = false;\n return function(...args) {\n if (locked) return;\n locked = true;\n window.requestAnimationFrame(_ => {\n fn.apply(this, args);\n locked = false;\n });\n };\n}\n\nexport function objToArray(obj) {\n if (Array.isArray(obj)) {\n return obj;\n }\n return isEmpty(obj) ? [] : [obj];\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/element-ui/src/utils/util.js\n// module id = null\n// module chunks = ","import { hasOwn } from 'element-ui/src/utils/util';\n\nconst RE_NARGS = /(%|)\\{([0-9a-zA-Z_]+)\\}/g;\n/**\n * String format template\n * - Inspired:\n * https://github.com/Matt-Esch/string-template/index.js\n */\nexport default function(Vue) {\n\n /**\n * template\n *\n * @param {String} string\n * @param {Array} ...args\n * @return {String}\n */\n\n function template(string, ...args) {\n if (args.length === 1 && typeof args[0] === 'object') {\n args = args[0];\n }\n\n if (!args || !args.hasOwnProperty) {\n args = {};\n }\n\n return string.replace(RE_NARGS, (match, prefix, i, index) => {\n let result;\n\n if (string[index - 1] === '{' &&\n string[index + match.length] === '}') {\n return i;\n } else {\n result = hasOwn(args, i) ? args[i] : null;\n if (result === null || result === undefined) {\n return '';\n }\n\n return result;\n }\n });\n }\n\n return template;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/element-ui/src/locale/format.js\n// module id = null\n// module chunks = ","import defaultLang from 'element-ui/src/locale/lang/zh-CN';\nimport Vue from 'vue';\nimport deepmerge from 'deepmerge';\nimport Format from './format';\n\nconst format = Format(Vue);\nlet lang = defaultLang;\nlet merged = false;\nlet i18nHandler = function() {\n const vuei18n = Object.getPrototypeOf(this || Vue).$t;\n if (typeof vuei18n === 'function' && !!Vue.locale) {\n if (!merged) {\n merged = true;\n Vue.locale(\n Vue.config.lang,\n deepmerge(lang, Vue.locale(Vue.config.lang) || {}, { clone: true })\n );\n }\n return vuei18n.apply(this, arguments);\n }\n};\n\nexport const t = function(path, options) {\n let value = i18nHandler.apply(this, arguments);\n if (value !== null && value !== undefined) return value;\n\n const array = path.split('.');\n let current = lang;\n\n for (let i = 0, j = array.length; i < j; i++) {\n const property = array[i];\n value = current[property];\n if (i === j - 1) return format(value, options);\n if (!value) return '';\n current = value;\n }\n return '';\n};\n\nexport const use = function(l) {\n lang = l || lang;\n};\n\nexport const i18n = function(fn) {\n i18nHandler = fn || i18nHandler;\n};\n\nexport default { use, t, i18n };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/element-ui/src/locale/index.js\n// module id = null\n// module chunks = ","<template>\n <div class=\"el-page-header\">\n <div class=\"el-page-header__left\" @click=\"$emit('back')\">\n <i class=\"el-icon-back\"></i>\n <div class=\"el-page-header__title\">\n <slot name=\"title\">{{ title }}</slot>\n </div>\n </div>\n <div class=\"el-page-header__content\">\n <slot name=\"content\">{{ content }}</slot>\n </div>\n </div>\n</template>\n\n<script>\nimport { t } from \"element-ui/src/locale\";\nexport default {\n name: \"ElPageHeader\",\n props: {\n title: {\n type: String,\n default() {\n return '返回';\n },\n },\n content: String,\n },\n};\n</script>\n<style lang=\"scss\" scoped>\n.el-page-header {\n margin-top: 10px;\n display: flex;\n line-height: 24px;\n align-items: center;\n margin-left: 10px;\n}\n.el-page-header__left {\n display: flex;\n cursor: pointer;\n margin-right: 20px;\n position: relative;\n align-items: center;\n .el-icon-back {\n margin-right: 10px;\n }\n}\n.el-page-header__content {\n font-size: 18px;\n color: #303133;\n}\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/components/pageHeader/src/main.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"el-page-header\"},[_c('div',{staticClass:\"el-page-header__left\",on:{\"click\":function($event){_vm.$emit('back')}}},[_c('i',{staticClass:\"el-icon-back\"}),_vm._v(\" \"),_c('div',{staticClass:\"el-page-header__title\"},[_vm._t(\"title\",[_vm._v(_vm._s(_vm.title))])],2)]),_vm._v(\" \"),_c('div',{staticClass:\"el-page-header__content\"},[_vm._t(\"content\",[_vm._v(_vm._s(_vm.content))])],2)])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-7d93d4ae\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/pageHeader/src/main.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-7d93d4ae\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!sass-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./main.vue\")\n}\nvar normalizeComponent = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./main.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./main.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-7d93d4ae\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./main.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-7d93d4ae\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/pageHeader/src/main.vue\n// module id = null\n// module chunks = ","<template>\n \n <div>\n <!-- <el-page-header @back=\"goBack\" content=\"新增广告\"> </el-page-header> -->\n <pageHeader @back=\"goBack\" :content=\"!isEdit?'新增广告':homeAdvertise.name\"/>\n <el-card class=\"form-container\" shadow=\"never\">\n <el-form\n :model=\"homeAdvertise\"\n :rules=\"rules\"\n ref=\"homeAdvertiseFrom\"\n label-width=\"150px\"\n size=\"small\"\n >\n <el-form-item label=\"广告名称:\" prop=\"name\">\n <el-input v-model=\"homeAdvertise.name\" class=\"input-width\"></el-input>\n </el-form-item>\n <el-form-item label=\"广告位置:\">\n <el-select v-model=\"homeAdvertise.type\">\n <el-option\n v-for=\"type in typeOptions\"\n :key=\"type.value\"\n :label=\"type.label\"\n :value=\"type.value\"\n >\n </el-option>\n </el-select>\n </el-form-item>\n <el-form-item label=\"开始时间:\" prop=\"startTime\">\n <el-date-picker\n type=\"datetime\"\n placeholder=\"选择日期\"\n v-model=\"homeAdvertise.startTime\"\n ></el-date-picker>\n </el-form-item>\n <el-form-item label=\"到期时间:\" prop=\"endTime\">\n <el-date-picker\n type=\"datetime\"\n placeholder=\"选择日期\"\n v-model=\"homeAdvertise.endTime\"\n ></el-date-picker>\n </el-form-item>\n <el-form-item label=\"上线/下线:\" prop=\"status\">\n <el-radio-group v-model=\"homeAdvertise.status\">\n <el-radio :label=\"0\">下线</el-radio>\n <el-radio :label=\"1\">上线</el-radio>\n </el-radio-group>\n </el-form-item>\n <el-form-item label=\"广告图片:\" prop=\"pic\">\n <single-upload v-model=\"homeAdvertise.pic\"></single-upload>\n </el-form-item>\n <el-form-item label=\"排序:\">\n <el-input v-model=\"homeAdvertise.sort\" class=\"input-width\"></el-input>\n </el-form-item>\n <!-- prop=\"url\" -->\n <el-form-item label=\"广告链接:\" >\n <el-input v-model=\"homeAdvertise.url\" class=\"input-width\"></el-input>\n </el-form-item>\n <el-form-item label=\"广告备注:\">\n <el-input\n class=\"input-width\"\n type=\"textarea\"\n :rows=\"5\"\n placeholder=\"请输入内容\"\n v-model=\"homeAdvertise.note\"\n >\n </el-input>\n </el-form-item>\n <el-form-item>\n <el-button type=\"primary\" @click=\"onSubmit('homeAdvertiseFrom')\"\n >提交</el-button\n >\n <el-button v-if=\"!isEdit\" @click=\"resetForm('homeAdvertiseFrom')\"\n >重置</el-button\n >\n </el-form-item>\n </el-form>\n </el-card>\n </div>\n</template>\n<script>\nimport SingleUpload from \"@/components/Upload/singleUpload\";\nimport pageHeader from '@/components/pageHeader/src/main'\nimport {\n createHomeAdvertise,\n getHomeAdvertise,\n updateHomeAdvertise,\n} from \"@/api/homeAdvertise\";\nconst defaultTypeOptions = [\n {\n label: \"PC首页轮播\",\n value: 0,\n },\n {\n label: \"APP首页轮播\",\n value: 1,\n },\n];\nconst defaultHomeAdvertise = {\n name: null,\n type: 1,\n pic: null,\n startTime: null,\n endTime: null,\n status: 0,\n url: null,\n note: null,\n sort: 0,\n};\nexport default {\n name: \"HomeAdvertiseDetail\",\n components: { SingleUpload,pageHeader },\n props: {\n isEdit: {\n type: Boolean,\n default: false,\n },\n },\n data() {\n return {\n homeAdvertise: null,\n rules: {\n name: [\n { required: true, message: \"请输入广告名称\", trigger: \"blur\" },\n {\n min: 2,\n max: 140,\n message: \"长度在 2 到 140 个字符\",\n trigger: \"blur\",\n },\n ],\n url: [{ required: true, message: \"请输入广告链接\", trigger: \"blur\" }],\n startTime: [\n { required: true, message: \"请选择开始时间\", trigger: \"blur\" },\n ],\n endTime: [\n { required: true, message: \"请选择到期时间\", trigger: \"blur\" },\n ],\n pic: [{ required: true, message: \"请选择广告图片\", trigger: \"blur\" }],\n },\n typeOptions: Object.assign({}, defaultTypeOptions),\n };\n },\n created() {\n if (this.isEdit) {\n getHomeAdvertise(this.$route.query.id).then((response) => {\n this.homeAdvertise = response.data;\n });\n } else {\n this.homeAdvertise = Object.assign({}, defaultHomeAdvertise);\n }\n },\n methods: {\n onSubmit(formName) {\n this.$refs[formName].validate((valid) => {\n if (valid) {\n this.$confirm(\"是否提交数据\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\",\n }).then(() => {\n if (this.isEdit) {\n updateHomeAdvertise(\n this.$route.query.id,\n this.homeAdvertise\n ).then((response) => {\n this.$refs[formName].resetFields();\n this.$message({\n message: \"修改成功\",\n type: \"success\",\n duration: 1000,\n });\n this.$router.back();\n });\n } else {\n createHomeAdvertise(this.homeAdvertise).then((response) => {\n this.$refs[formName].resetFields();\n this.homeAdvertise = Object.assign({}, defaultHomeAdvertise);\n this.$message({\n message: \"提交成功\",\n type: \"success\",\n duration: 1000,\n });\n });\n }\n });\n } else {\n this.$message({\n message: \"验证失败\",\n type: \"error\",\n duration: 1000,\n });\n return false;\n }\n });\n },\n resetForm(formName) {\n this.$refs[formName].resetFields();\n this.homeAdvertise = Object.assign({}, defaultHomeAdvertise);\n },\n goBack() {\n this.$router.push(\"/sms/advertise\");\n },\n },\n};\n</script>\n<style scoped>\n.input-width {\n width: 70%;\n}\n</style>\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/views/sms/advertise/components/HomeAdvertiseDetail.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('pageHeader',{attrs:{\"content\":!_vm.isEdit?'新增广告':_vm.homeAdvertise.name},on:{\"back\":_vm.goBack}}),_vm._v(\" \"),_c('el-card',{staticClass:\"form-container\",attrs:{\"shadow\":\"never\"}},[_c('el-form',{ref:\"homeAdvertiseFrom\",attrs:{\"model\":_vm.homeAdvertise,\"rules\":_vm.rules,\"label-width\":\"150px\",\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"广告名称:\",\"prop\":\"name\"}},[_c('el-input',{staticClass:\"input-width\",model:{value:(_vm.homeAdvertise.name),callback:function ($$v) {_vm.$set(_vm.homeAdvertise, \"name\", $$v)},expression:\"homeAdvertise.name\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"广告位置:\"}},[_c('el-select',{model:{value:(_vm.homeAdvertise.type),callback:function ($$v) {_vm.$set(_vm.homeAdvertise, \"type\", $$v)},expression:\"homeAdvertise.type\"}},_vm._l((_vm.typeOptions),function(type){return _c('el-option',{key:type.value,attrs:{\"label\":type.label,\"value\":type.value}})}))],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"开始时间:\",\"prop\":\"startTime\"}},[_c('el-date-picker',{attrs:{\"type\":\"datetime\",\"placeholder\":\"选择日期\"},model:{value:(_vm.homeAdvertise.startTime),callback:function ($$v) {_vm.$set(_vm.homeAdvertise, \"startTime\", $$v)},expression:\"homeAdvertise.startTime\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"到期时间:\",\"prop\":\"endTime\"}},[_c('el-date-picker',{attrs:{\"type\":\"datetime\",\"placeholder\":\"选择日期\"},model:{value:(_vm.homeAdvertise.endTime),callback:function ($$v) {_vm.$set(_vm.homeAdvertise, \"endTime\", $$v)},expression:\"homeAdvertise.endTime\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"上线/下线:\",\"prop\":\"status\"}},[_c('el-radio-group',{model:{value:(_vm.homeAdvertise.status),callback:function ($$v) {_vm.$set(_vm.homeAdvertise, \"status\", $$v)},expression:\"homeAdvertise.status\"}},[_c('el-radio',{attrs:{\"label\":0}},[_vm._v(\"下线\")]),_vm._v(\" \"),_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"上线\")])],1)],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"广告图片:\",\"prop\":\"pic\"}},[_c('single-upload',{model:{value:(_vm.homeAdvertise.pic),callback:function ($$v) {_vm.$set(_vm.homeAdvertise, \"pic\", $$v)},expression:\"homeAdvertise.pic\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"排序:\"}},[_c('el-input',{staticClass:\"input-width\",model:{value:(_vm.homeAdvertise.sort),callback:function ($$v) {_vm.$set(_vm.homeAdvertise, \"sort\", $$v)},expression:\"homeAdvertise.sort\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"广告链接:\"}},[_c('el-input',{staticClass:\"input-width\",model:{value:(_vm.homeAdvertise.url),callback:function ($$v) {_vm.$set(_vm.homeAdvertise, \"url\", $$v)},expression:\"homeAdvertise.url\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"广告备注:\"}},[_c('el-input',{staticClass:\"input-width\",attrs:{\"type\":\"textarea\",\"rows\":5,\"placeholder\":\"请输入内容\"},model:{value:(_vm.homeAdvertise.note),callback:function ($$v) {_vm.$set(_vm.homeAdvertise, \"note\", $$v)},expression:\"homeAdvertise.note\"}})],1),_vm._v(\" \"),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){_vm.onSubmit('homeAdvertiseFrom')}}},[_vm._v(\"提交\")]),_vm._v(\" \"),(!_vm.isEdit)?_c('el-button',{on:{\"click\":function($event){_vm.resetForm('homeAdvertiseFrom')}}},[_vm._v(\"重置\")]):_vm._e()],1)],1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-a87002c8\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/sms/advertise/components/HomeAdvertiseDetail.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-a87002c8\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./HomeAdvertiseDetail.vue\")\n}\nvar normalizeComponent = require(\"!../../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./HomeAdvertiseDetail.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./HomeAdvertiseDetail.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-a87002c8\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./HomeAdvertiseDetail.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-a87002c8\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/sms/advertise/components/HomeAdvertiseDetail.vue\n// module id = null\n// module chunks = ","<template>\n <home-advertise-detail :isEdit=\"true\"></home-advertise-detail>\n</template>\n<script>\nimport HomeAdvertiseDetail from \"./components/HomeAdvertiseDetail\";\nexport default {\n name: \"updateHomeAdvertise\",\n components: { HomeAdvertiseDetail },\n\n};\n</script>\n<style></style>\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/views/sms/advertise/update.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('home-advertise-detail',{attrs:{\"isEdit\":true}})}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-0c88adcb\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/sms/advertise/update.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-0c88adcb\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./update.vue\")\n}\nvar normalizeComponent = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./update.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./update.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-0c88adcb\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./update.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/sms/advertise/update.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
|