Commit f1e40a0e by zhu_yu_dan

引入eslint规范

parent cc916f4e
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
},
env: {
browser: true,
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
// "standard",
'plugin:vue/essential',
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'plugin:prettier/recommended'
],
// required to lint *.vue files
plugins: ['vue', 'prettier'],
// add your custom rules here
rules: {
'prettier/prettier': [
'error',
{
endOfLine: 'auto'
}
],
// allow async-await
'generator-star-spacing': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-alert': process.env.NODE_ENV === 'production' ? 2 : 0, //禁止使用alert confirm prompt
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
// --------------------静态检测-----------------------------
/**
* 静态检测:
* 以下基本位能够帮助发现代码错误的规则
* */
// 禁止与负零进行比较
'no-compare-neg-zero': 2,
// 禁止将常量作为 if 或三元表达式的测试条件,比如 if (true), let foo = 0 ? 'foo' : 'bar'
'no-constant-condition': [
2,
{
checkLoops: false
}
],
// 禁止在函数参数中出现重复名称的参数 【辅助检测】
'no-dupe-args': 2,
// 禁止在对象字面量中出现重复名称的键名 【辅助检测】
'no-dupe-keys': 2,
// 禁止出现空代码块 【可读性差】
'no-empty': [
2,
{
allowEmptyCatch: true
}
],
// 禁止将 catch 的第一个参数 error 重新赋值 【重新赋值,error将没有意义】
'no-ex-assign': 2,
// @fixable 禁止函数表达式中出现多余的括号,比如 let foo = (function () { return 1 }) 【一般不会这么写,可读性差】
'no-extra-parens': [2, 'functions'],
// 禁止将一个函数申明重新赋值,如:
// function foo() {}
// foo = bar [静态检测:无意义]
'no-func-assign': 2,
// 禁止在 if 内出现函数申明或使用 var 定义变量
'no-inner-declarations': [2, 'both'],
// 禁止使用特殊空白符(比如全角空格),除非是出现在字符串、正则表达式或模版字符串中
'no-irregular-whitespace': [
2,
{
skipStrings: true,
skipComments: false,
skipRegExps: true,
skipTemplates: true
}
],
// typeof 表达式比较的对象必须是 'undefined', 'object', 'boolean', 'number', 'string', 'function' 或 'symbol'
'valid-typeof': 2,
// -----------------------------------最佳实践----------------------------------------------
/**
* 最佳实践
* 这些规则通过一些最佳实践帮助你避免问题
*/
// 禁止函数的循环复杂度超过 20,【https://en.wikipedia.org/wiki/Cyclomatic_complexity】
complexity: [
0,
{
max: 20
}
],
// 不允许有空函数,除非是将一个空函数设置为某个项的默认值 【否则空函数并没有实际意义】
'no-empty-function': [
2,
{
allow: ['functions', 'arrowFunctions']
}
],
// 禁止修改原生对象 【例如 Array.protype.xxx=funcion(){},很容易出问题,比如for in 循环数组 会出问题】
'no-extend-native': 2,
// @fixable 表示小数时,禁止省略 0,比如 .5 【可读性】
'no-floating-decimal': 2,
// 禁止直接 new 一个类而不赋值 【 那么除了占用内存还有什么意义呢? @off vue语法糖大量存在此类语义 先手动关闭】
'no-new': 0,
// 禁止使用 new Function,比如 let x = new Function("a", "b", "return a + b"); 【可读性差】
'no-new-func': 2,
// 禁止将自己赋值给自己 [规则帮助检测]
'no-self-assign': 2,
// 禁止将自己与自己比较 [规则帮助检测]
'no-self-compare': 2,
// @fixable 立即执行的函数必须符合如下格式 (function () { alert('Hello') })() 【立即函数写法很多,这个是最易读最标准的】
'wrap-iife': [
2,
'inside',
{
functionPrototypeMethods: true
}
],
// 禁止使用保留字作为变量名 [规则帮助检测保留字,通常ide难以发现,生产会出现问题]
'no-shadow-restricted-names': 2,
// 禁止使用未定义的变量
'no-undef': [
2,
{
typeof: false
}
],
// 定义过的变量必须使用 【正规应该是这样的,具体可以大家讨论】
'no-unused-vars': [
2,
{
vars: 'all',
args: 'none',
caughtErrors: 'none',
ignoreRestSiblings: true
}
],
// 变量必须先定义后使用 【ps:涉及到es6存在不允许变量提升的问题,以免引起意想不到的错误,具体可以大家讨论】
'no-use-before-define': [
2,
{
functions: false,
classes: false,
variables: false
}
],
// ----------------------------------------------------代码规范----------------------------------------------------------
/**
* 代码规范
* 有关【空格】、【链式换行】、【缩进】、【=、{}、()、首位空格】规范没有添加,怕大家一时间接受不了,目前所挑选的规则都是:保障我们的代码可读性、可维护性的
* */
// 变量名必须是 camelcase 驼峰风格的
// @off 【涉及到 很多 api 或文件名可能都不是 camelcase 先关闭】
camelcase: 0,
// @fixable 禁止在行首写逗号
'comma-style': [2, 'last'],
// @fixable 一个缩进必须用两个空格替代
// @off 【不限制大家,为了关闭eslint默认值,所以手动关闭,off不可去掉】 讨论
indent: [2, 2, { SwitchCase: 1 }],
//@off 手动关闭//前面需要回车的规则 注释
'spaced-comment': 0,
//@off 手动关闭: 禁用行尾空白
'no-trailing-spaces': 2,
//@off 手动关闭: 不允许多行回车
'no-multiple-empty-lines': 1,
//@off 手动关闭: 逗号前必须加空格
'comma-spacing': 0,
//@off 手动关闭: 冒号后必须加空格
'key-spacing': 1,
// @fixable 结尾禁止使用分号
//@off [vue官方推荐无分号,不知道大家是否可以接受?先手动off掉] 讨论
// "semi": [2,"never"],
semi: 0,
// 代码块嵌套的深度禁止超过 5 层
'max-depth': [1, 10],
// 回调函数嵌套禁止超过 5 层,多了请用 async await 替代
'max-nested-callbacks': [2, 5],
// 函数的参数禁止超过 7 个
'max-params': [2, 7],
// new 后面的类名必须首字母大写 【面向对象编程原则】
'new-cap': [
2,
{
newIsCap: true,
capIsNew: false,
properties: true
}
],
// @fixable new 后面的类必须有小括号 【没有小括号、指针指过去没有意义】
'new-parens': 2,
// @fixable 禁止属性前有空格,比如 foo. bar() 【可读性太差,一般也没人这么写】
'no-whitespace-before-property': 2,
// @fixable 禁止 if 后面不加大括号而写两行代码 eg: if(a>b) a=0 b=0
'nonblock-statement-body-position': [2, 'beside', { overrides: { while: 'below' } }],
// 禁止变量申明时用逗号一次申明多个 eg: let a,b,c,d,e,f,g = [] 【debug并不好审查、并且没办法单独写注释】
'one-var': [2, 'never'],
// @fixable 【变量申明必须每行一个,同上】
'one-var-declaration-per-line': [2, 'always'],
//是否使用全等
eqeqeq: 0,
//this别名
'consistent-this': [2, 'that'],
// -----------------------------ECMAScript 6-------------------------------------
/**
* ECMAScript 6
* 这些规则与 ES6 有关 【请大家 尝试使用正确使用const和let代替var,以后大家熟悉之后可能会提升规则】
* */
// 禁止对定义过的 class 重新赋值
'no-class-assign': 2,
// @fixable 禁止出现难以理解的箭头函数,比如 let x = a => 1 ? 2 : 3
'no-confusing-arrow': [2, { allowParens: true }],
// 禁止对使用 const 定义的常量重新赋值
'no-const-assign': 2,
// 禁止重复定义类
'no-dupe-class-members': 2,
// 禁止重复 import 模块
'no-duplicate-imports': 2,
//@off 以后可能会开启 禁止 var
'no-var': 0,
// ---------------------------------被关闭的规则-----------------------
// parseInt必须指定第二个参数 parseInt("071",10);
radix: 0,
//强制使用一致的反勾号、双引号或单引号 (quotes) 关闭
quotes: 0,
//要求或禁止函数圆括号之前有一个空格
'space-before-function-paren': [0, 'always'],
//禁止或强制圆括号内的空格
'space-in-parens': [0, 'never'],
//关键字后面是否要空一格
'space-after-keywords': [0, 'always'],
// 要求或禁止在函数标识符和其调用之间有空格
'func-call-spacing': [0, 'never']
}
};
\ No newline at end of file
{
"printWidth": 800,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"semi": true,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine":true
}
\ No newline at end of file
......@@ -8,7 +8,17 @@ function resolve (dir) {
return path.join(__dirname, '..', dir)
}
const createLintingRule = () => ({
test: /\.(js|vue)$/,
loader: "eslint-loader",
enforce: "pre",
include: [resolve("src"), resolve("test")],
options: {
// fix: true,
formatter: require("eslint-friendly-formatter"),
emitWarning: !config.dev.showEslintErrorsInOverlay
}
});
module.exports = {
context: path.resolve(__dirname, '../'),
......@@ -40,6 +50,7 @@ module.exports = {
},
module: {
rules: [
...(config.dev.useEslint ? [createLintingRule()] : []),
{
test: /\.vue$/,
loader: 'vue-loader',
......
......@@ -21,6 +21,14 @@ module.exports = {
notifyOnErrors: true,
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
// Use Eslint Loader?
// If true, your code will be linted during bundling and
// linting errors and warnings will be shown in the console.
useEslint: true,
// If true, eslint errors and warnings will also be shown in the error overlay
// in the browser.
showEslintErrorsInOverlay: false,
/**
* Source Maps
......
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-集团后台</title><link href=./static/css/app.1827dab7d317f251f838d7021b85ef72.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.05.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/group-people.2.0.08.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-group.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script type=text/javascript src=./static/js/manifest.6eea9b03fd02703639b9.js></script><script type=text/javascript src=./static/js/vendor.634754a95430908b4988.js></script><script type=text/javascript src=./static/js/app.9b3ee84511b554aaf87b.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-集团后台</title><link href=./static/css/app.4a929243585a2d3335fdc2f87ff24aba.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.06.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/group-people.2.0.08.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-group.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script type=text/javascript src=./static/js/manifest.ff9968cde1b9cb9e6be4.js></script><script type=text/javascript src=./static/js/vendor.f801b721673c741600dc.js></script><script type=text/javascript src=./static/js/app.ff89bdc8d4316715c29e.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([11],{"4KSJ":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("MOmO"),s=a.n(i),r={name:"page401",data:function(){return{errGif:s.a+"?"+ +new Date,ewizardClap:"https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646",dialogVisible:!1}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/companyGroup"}):this.$router.go(-1)}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"errPage-container"},[a("el-button",{staticClass:"pan-back-btn",attrs:{icon:"arrow-left"},on:{click:t.back}},[t._v("返回")]),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("h1",{staticClass:"text-jumbo text-ginormous"},[t._v("你没有权限去该页面!")]),t._v(" "),a("h2"),t._v(" "),a("h6"),t._v(" "),a("ul",{staticClass:"list-unstyled"})]),t._v(" "),a("el-col",{attrs:{span:12}},[a("img",{attrs:{src:t.errGif,width:"313",height:"428",alt:"Girl has dropped her ice cream."}})])],1),t._v(" "),a("el-dialog",{attrs:{title:"随便看",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("img",{staticClass:"pan-img",attrs:{src:t.ewizardClap}})])],1)},staticRenderFns:[]};var l=a("C7Lr")(r,n,!1,function(t){a("lo5S")},"data-v-6ea796b0",null);e.default=l.exports},MOmO:function(t,e,a){t.exports=a.p+"static/img/401.089007e.gif"},lo5S:function(t,e){}});
//# sourceMappingURL=11.9ff7c198590148e45a96.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/view/errorPage/401.vue","webpack:///./src/view/errorPage/401.vue?ee8b","webpack:///./src/view/errorPage/401.vue","webpack:///./src/assets/401_images/401.gif"],"names":["errorPage_401","name","data","errGif","_01_default","a","Date","ewizardClap","dialogVisible","methods","back","this","$route","query","noGoBack","$router","push","path","go","view_errorPage_401","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","icon","on","click","_v","span","src","width","height","alt","title","visible","update:visible","$event","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__","module","exports","p"],"mappings":"iIA8BAA,GACAC,KAAA,UACAC,KAFA,WAGA,OACAC,OAAAC,EAAAC,EAAA,UAAAC,KACAC,YAAA,kEACAC,eAAA,IAGAC,SACAC,KADA,WAEAC,KAAAC,OAAAC,MAAAC,SACAH,KAAAI,QAAAC,MAAAC,KAAA,kBAEAN,KAAAI,QAAAG,IAAA,MCzCeC,GADEC,OAFjB,WAA0B,IAAAC,EAAAV,KAAaW,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,sBAAgCF,EAAA,aAAkBE,YAAA,eAAAC,OAAkCC,KAAA,cAAoBC,IAAKC,MAAAT,EAAAX,QAAkBW,EAAAU,GAAA,QAAAV,EAAAU,GAAA,KAAAP,EAAA,UAAAA,EAAA,UAAuDG,OAAOK,KAAA,MAAWR,EAAA,MAAWE,YAAA,8BAAwCL,EAAAU,GAAA,gBAAAV,EAAAU,GAAA,KAAAP,EAAA,MAAAH,EAAAU,GAAA,KAAAP,EAAA,MAAAH,EAAAU,GAAA,KAAAP,EAAA,MAAwFE,YAAA,oBAA4BL,EAAAU,GAAA,KAAAP,EAAA,UAA6BG,OAAOK,KAAA,MAAWR,EAAA,OAAYG,OAAOM,IAAAZ,EAAAlB,OAAA+B,MAAA,MAAAC,OAAA,MAAAC,IAAA,wCAAuF,GAAAf,EAAAU,GAAA,KAAAP,EAAA,aAAoCG,OAAOU,MAAA,MAAAC,QAAAjB,EAAAb,eAA0CqB,IAAKU,iBAAA,SAAAC,GAAkCnB,EAAAb,cAAAgC,MAA2BhB,EAAA,OAAYE,YAAA,UAAAC,OAA6BM,IAAAZ,EAAAd,kBAAuB,IAExzBkC,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACE5C,EACAmB,GATF,EAVA,SAAA0B,GACEF,EAAQ,SAaV,kBAEA,MAUeG,EAAA,QAAAJ,EAAiB,8BC1BhCK,EAAAC,QAAiBL,EAAAM,EAAuB","file":"static/js/11.9ff7c198590148e45a96.js","sourcesContent":["<template>\n <div class=\"errPage-container\">\n <el-button @click=\"back\" icon=\"arrow-left\" class=\"pan-back-btn\">返回</el-button>\n <el-row>\n <el-col :span=\"12\">\n <h1 class=\"text-jumbo text-ginormous\">你没有权限去该页面!</h1>\n <h2></h2>\n <h6></h6>\n <ul class=\"list-unstyled\">\n <!-- <li>或者你可以去:</li>\n <li class=\"link-type\">\n <router-link to=\"#/companyGroup\">回首页</router-link>\n </li> -->\n <!-- <li class=\"link-type\"><a href=\"https://www.taobao.com/\">随便看看</a></li>\n <li><a @click.prevent=\"dialogVisible=true\" href=\"#\">点我看图</a></li> -->\n </ul>\n </el-col>\n <el-col :span=\"12\">\n <img :src=\"errGif\" width=\"313\" height=\"428\" alt=\"Girl has dropped her ice cream.\" />\n </el-col>\n </el-row>\n <el-dialog title=\"随便看\" :visible.sync=\"dialogVisible\">\n <img class=\"pan-img\" :src=\"ewizardClap\" />\n </el-dialog>\n </div>\n</template>\n\n<script>\nimport errGif from '@/assets/401_images/401.gif';\n\nexport default {\n name: 'page401',\n data() {\n return {\n errGif: errGif + '?' + +new Date(),\n ewizardClap: 'https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646',\n dialogVisible: false\n };\n },\n methods: {\n back() {\n if (this.$route.query.noGoBack) {\n this.$router.push({ path: '/companyGroup' });\n } else {\n this.$router.go(-1);\n }\n }\n }\n};\n</script>\n\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped>\n.errPage-container {\n width: 800px;\n margin: 100px auto;\n .pan-back-btn {\n background: #008489;\n color: #fff;\n }\n .pan-gif {\n margin: 0 auto;\n display: block;\n }\n .pan-img {\n display: block;\n margin: 0 auto;\n width: 100%;\n }\n .text-jumbo {\n font-size: 60px;\n font-weight: 700;\n color: #484848;\n }\n .list-unstyled {\n font-size: 14px;\n li {\n padding-bottom: 5px;\n }\n a {\n color: #008489;\n text-decoration: none;\n &:hover {\n text-decoration: underline;\n }\n }\n }\n}\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/view/errorPage/401.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"errPage-container\"},[_c('el-button',{staticClass:\"pan-back-btn\",attrs:{\"icon\":\"arrow-left\"},on:{\"click\":_vm.back}},[_vm._v(\"返回\")]),_vm._v(\" \"),_c('el-row',[_c('el-col',{attrs:{\"span\":12}},[_c('h1',{staticClass:\"text-jumbo text-ginormous\"},[_vm._v(\"你没有权限去该页面!\")]),_vm._v(\" \"),_c('h2'),_vm._v(\" \"),_c('h6'),_vm._v(\" \"),_c('ul',{staticClass:\"list-unstyled\"})]),_vm._v(\" \"),_c('el-col',{attrs:{\"span\":12}},[_c('img',{attrs:{\"src\":_vm.errGif,\"width\":\"313\",\"height\":\"428\",\"alt\":\"Girl has dropped her ice cream.\"}})])],1),_vm._v(\" \"),_c('el-dialog',{attrs:{\"title\":\"随便看\",\"visible\":_vm.dialogVisible},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('img',{staticClass:\"pan-img\",attrs:{\"src\":_vm.ewizardClap}})])],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{\"id\":\"data-v-6ea796b0\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/view/errorPage/401.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/_extract-text-webpack-plugin@3.0.2@extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-6ea796b0\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!sass-loader?{\\\"sourceMap\\\":true}!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=styles&index=0!./401.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=script&index=0!./401.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=script&index=0!./401.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-6ea796b0\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=template&index=0!./401.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-6ea796b0\"\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/view/errorPage/401.vue\n// module id = null\n// module chunks = ","module.exports = __webpack_public_path__ + \"static/img/401.089007e.gif\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/assets/401_images/401.gif\n// module id = MOmO\n// module chunks = 11"],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([11],{"4KSJ":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=e("MOmO"),s=e.n(i),r={name:"page401",data:function(){return{errGif:s.a+"?"+ +new Date,ewizardClap:"https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646",dialogVisible:!1}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/companyGroup"}):this.$router.go(-1)}}},n={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"errPage-container"},[e("el-button",{staticClass:"pan-back-btn",attrs:{icon:"arrow-left"},on:{click:t.back}},[t._v("返回")]),t._v(" "),e("el-row",[e("el-col",{attrs:{span:12}},[e("h1",{staticClass:"text-jumbo text-ginormous"},[t._v("你没有权限去该页面!")]),t._v(" "),e("h2"),t._v(" "),e("h6"),t._v(" "),e("ul",{staticClass:"list-unstyled"})]),t._v(" "),e("el-col",{attrs:{span:12}},[e("img",{attrs:{src:t.errGif,width:"313",height:"428",alt:"Girl has dropped her ice cream."}})])],1),t._v(" "),e("el-dialog",{attrs:{title:"随便看",visible:t.dialogVisible},on:{"update:visible":function(a){t.dialogVisible=a}}},[e("img",{staticClass:"pan-img",attrs:{src:t.ewizardClap}})])],1)},staticRenderFns:[]};var l=e("VU/8")(r,n,!1,function(t){e("zpy8")},"data-v-343ad6fa",null);a.default=l.exports},MOmO:function(t,a,e){t.exports=e.p+"static/img/401.089007e.gif"},zpy8:function(t,a){}});
//# sourceMappingURL=11.fcd28c063fc5f42fcfb1.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/view/errorPage/401.vue","webpack:///./src/view/errorPage/401.vue?5a67","webpack:///./src/view/errorPage/401.vue","webpack:///./src/assets/401_images/401.gif"],"names":["errorPage_401","name","data","errGif","_01_default","a","Date","ewizardClap","dialogVisible","methods","back","this","$route","query","noGoBack","$router","push","path","go","view_errorPage_401","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","icon","on","click","_v","span","src","width","height","alt","title","visible","update:visible","$event","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__","module","exports","p"],"mappings":"iIA+BAA,GACAC,KAAA,UACAC,KAFA,WAGA,OACAC,OAAAC,EAAAC,EAAA,UAAAC,KACAC,YAAA,kEACAC,eAAA,IAGAC,SACAC,KADA,WAEAC,KAAAC,OAAAC,MAAAC,SACAH,KAAAI,QAAAC,MAAAC,KAAA,kBAEAN,KAAAI,QAAAG,IAAA,MC1CAC,GADiBC,OAFjB,WAA0B,IAAAC,EAAAV,KAAaW,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,sBAAgCF,EAAA,aAAkBE,YAAA,eAAAC,OAAkCC,KAAA,cAAoBC,IAAKC,MAAAT,EAAAX,QAAkBW,EAAAU,GAAA,QAAAV,EAAAU,GAAA,KAAAP,EAAA,UAAAA,EAAA,UAAuDG,OAAOK,KAAA,MAAWR,EAAA,MAAWE,YAAA,8BAAwCL,EAAAU,GAAA,gBAAAV,EAAAU,GAAA,KAAAP,EAAA,MAAAH,EAAAU,GAAA,KAAAP,EAAA,MAAAH,EAAAU,GAAA,KAAAP,EAAA,MAAwFE,YAAA,oBAA4BL,EAAAU,GAAA,KAAAP,EAAA,UAA6BG,OAAOK,KAAA,MAAWR,EAAA,OAAYG,OAAOM,IAAAZ,EAAAlB,OAAA+B,MAAA,MAAAC,OAAA,MAAAC,IAAA,wCAAuF,GAAAf,EAAAU,GAAA,KAAAP,EAAA,aAAoCG,OAAOU,MAAA,MAAAC,QAAAjB,EAAAb,eAA0CqB,IAAKU,iBAAA,SAAAC,GAAkCnB,EAAAb,cAAAgC,MAA2BhB,EAAA,OAAYE,YAAA,UAAAC,OAA6BM,IAAAZ,EAAAd,kBAAuB,IAExzBkC,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACA5C,EACAmB,GATA,EAVA,SAAA0B,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA,8BC1BAK,EAAAC,QAAAL,EAAAM,EAAA","file":"static/js/11.fcd28c063fc5f42fcfb1.js","sourcesContent":["<template>\r\n <div class=\"errPage-container\">\r\n <el-button @click=\"back\" icon='arrow-left' class=\"pan-back-btn\">返回</el-button>\r\n <el-row>\r\n <el-col :span=\"12\">\r\n <h1 class=\"text-jumbo text-ginormous\">你没有权限去该页面!</h1>\r\n\r\n <h2></h2>\r\n <h6></h6>\r\n <ul class=\"list-unstyled\">\r\n <!-- <li>或者你可以去:</li>\r\n <li class=\"link-type\">\r\n <router-link to=\"#/companyGroup\">回首页</router-link>\r\n </li> -->\r\n <!-- <li class=\"link-type\"><a href=\"https://www.taobao.com/\">随便看看</a></li>\r\n <li><a @click.prevent=\"dialogVisible=true\" href=\"#\">点我看图</a></li> -->\r\n </ul>\r\n </el-col>\r\n <el-col :span=\"12\">\r\n <img :src=\"errGif\" width=\"313\" height=\"428\" alt=\"Girl has dropped her ice cream.\">\r\n </el-col>\r\n </el-row>\r\n <el-dialog title=\"随便看\" :visible.sync=\"dialogVisible\">\r\n <img class=\"pan-img\" :src=\"ewizardClap\">\r\n </el-dialog>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport errGif from '@/assets/401_images/401.gif'\r\n\r\nexport default {\r\n name: 'page401',\r\n data() {\r\n return {\r\n errGif: errGif + '?' + +new Date(),\r\n ewizardClap: 'https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646',\r\n dialogVisible: false\r\n }\r\n },\r\n methods: {\r\n back() {\r\n if (this.$route.query.noGoBack) {\r\n this.$router.push({ path: '/companyGroup' })\r\n } else {\r\n this.$router.go(-1)\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped>\r\n .errPage-container {\r\n width: 800px;\r\n margin: 100px auto;\r\n .pan-back-btn {\r\n background: #008489;\r\n color: #fff;\r\n }\r\n .pan-gif {\r\n margin: 0 auto;\r\n display: block;\r\n }\r\n .pan-img {\r\n display: block;\r\n margin: 0 auto;\r\n width: 100%;\r\n }\r\n .text-jumbo {\r\n font-size: 60px;\r\n font-weight: 700;\r\n color: #484848;\r\n }\r\n .list-unstyled {\r\n font-size: 14px;\r\n li {\r\n padding-bottom: 5px;\r\n }\r\n a {\r\n color: #008489;\r\n text-decoration: none;\r\n &:hover {\r\n text-decoration: underline;\r\n }\r\n }\r\n }\r\n }\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/view/errorPage/401.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"errPage-container\"},[_c('el-button',{staticClass:\"pan-back-btn\",attrs:{\"icon\":\"arrow-left\"},on:{\"click\":_vm.back}},[_vm._v(\"返回\")]),_vm._v(\" \"),_c('el-row',[_c('el-col',{attrs:{\"span\":12}},[_c('h1',{staticClass:\"text-jumbo text-ginormous\"},[_vm._v(\"你没有权限去该页面!\")]),_vm._v(\" \"),_c('h2'),_vm._v(\" \"),_c('h6'),_vm._v(\" \"),_c('ul',{staticClass:\"list-unstyled\"})]),_vm._v(\" \"),_c('el-col',{attrs:{\"span\":12}},[_c('img',{attrs:{\"src\":_vm.errGif,\"width\":\"313\",\"height\":\"428\",\"alt\":\"Girl has dropped her ice cream.\"}})])],1),_vm._v(\" \"),_c('el-dialog',{attrs:{\"title\":\"随便看\",\"visible\":_vm.dialogVisible},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('img',{staticClass:\"pan-img\",attrs:{\"src\":_vm.ewizardClap}})])],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-343ad6fa\",\"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/view/errorPage/401.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-343ad6fa\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!sass-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./401.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!./401.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./401.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-343ad6fa\\\",\\\"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!./401.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-343ad6fa\"\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/view/errorPage/401.vue\n// module id = null\n// module chunks = ","module.exports = __webpack_public_path__ + \"static/img/401.089007e.gif\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/assets/401_images/401.gif\n// module id = MOmO\n// module chunks = 11"],"sourceRoot":""}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([15],{"6Qob":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("3cXf"),o=s.n(i),n=s("5reh"),r=s("R2wu");function a(t){return t?(r.Message.warning(t),!1):(r.Message.warning("操作失败"),!1)}function l(t){return"cancel"==t?(r.Message.info(t||"cancel"),!1):t.hasOwnProperty("response")?401==t.response.status?(r.Message.error("登录过期"),!1):500==t.response.status?(r.Message.error("服务器错误500"),!1):void 0:(r.Message.error(t),!1)}var c=s("6iV/"),u={name:"login",data:function(){return{redirect:this.$route.query.redirect,token:"",form:{loginName:"damogic",password:"1",eid:"ff808081593917d90159398ec6340012"}}},computed:{imgHeight:function(){return document.body.clientHeight},imgWidth:function(){return document.body.clientWidth}},methods:{submitLogin:function(){var t=this;this.axios.post("/api-auth/do-login",c.stringify({loginName:this.form.loginName,password:this.form.password,eid:"ff808081593917d90159398ec6340012"})).then(function(e){if(e.data.success){(i=e.data.message)?r.Message.success(i):r.Message.success("操作成功");var s=decodeURIComponent(t.$route.query.redirect||"/index");t.$router.push({path:s})}else a(e.data.message);var i}).catch(function(t){l(t)})},getMenu:function(){var t=this;this.axios.get("/gic/get-menu").then(function(e){if(e.data.success){t.menuList=e.data.list,sessionStorage.setItem("menuList",o()(t.menuList));var s=t.$route.query.redirect||"/index";t.$router.push({path:s})}else a(e.data.errorMessage)}).catch(function(t){l(t)})}},mounted:function(){this.$store.commit(n.d,"login"),document.title=this.$store.state.title}},m={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"loginwrap",style:{height:t.imgHeight+"px"}},[s("div",{staticStyle:{position:"absolute",left:"0",height:"0",width:"100%"}},[s("canvas",{attrs:{id:"loginwrap",width:t.imgWidth,height:t.imgHeight}})]),t._v(" "),t._m(0),t._v(" "),s("div",{staticClass:"login_contetnt"},[s("h3",{staticClass:"login-top"},[t._v("让信息连接一切")]),t._v(" "),s("h4",{staticClass:"login-bottom"},[t._v("GIC商户后台")]),t._v(" "),s("div",{staticClass:"formlogin"},[s("el-form",{ref:"form",attrs:{model:t.form,"label-width":""}},[s("el-form-item",{attrs:{label:""}},[s("el-input",{staticClass:"forminput",attrs:{placeholder:"账号"},model:{value:t.form.loginName,callback:function(e){t.$set(t.form,"loginName",e)},expression:"form.loginName"}})],1),t._v(" "),s("el-form-item",{attrs:{label:""}},[s("el-input",{attrs:{type:"password",placeholder:"密码"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submitLogin("form")}},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),s("el-form-item",[s("button",{staticClass:"submit",on:{click:function(e){return e.preventDefault(),t.submitLogin("form")}}},[t._v("立即登录")])])],1)],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logintop"},[e("div",{staticClass:"fl loginlogo"},[e("a",{staticClass:"fr logo",attrs:{href:"#"}},[this._v("login_logo.png")])]),this._v(" "),e("a",{staticClass:"home-link fr",attrs:{href:"http://www.demogic.com/"}},[this._v("返回首页")])])}]};var d=s("C7Lr")(u,m,!1,function(t){s("bzRT")},null,null);e.default=d.exports},bzRT:function(t,e){}});
//# sourceMappingURL=15.c25a001336023a697dd2.js.map
\ No newline at end of file
webpackJsonp([17],{"Z9/t":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3Xzz"),o=a("P9l9"),s={name:"nearStoreSet",data:function(){return{projectName:"gic-clique",navpath:[{name:"首页",path:"/"},{name:"附近门店",path:""}],nearStoreSwithFlag:!0}},created:function(){},methods:{changeRoute:function(e){console.log("route-change"),this.$router.push(e)},nearStoreSwitch:function(){console.log(this.nearStoreSwithFlag),this.setNearStore()},setNearStore:function(){var e=this,t={requestProject:e.projectName,isShowCliqueStore:1==e.nearStoreSwithFlag?1:0};Object(o.e)("/api-admin/save-clique-show-store",t).then(function(t){var a=t.data;0!=a.errorCode?(e.nearStoreSwithFlag=!1,e.$message.error({duration:1e3,message:a.message})):e.$message({message:"修改附近门店显示配置成功",type:"success"})}).catch(function(t){console.log(t),e.nearStoreSwithFlag=!1,e.$message.error({duration:1e3,message:t.message})})},getNearStore:function(){var e=this,t={requestProject:e.projectName};Object(o.e)("/api-admin/clique-show-store",t).then(function(t){var a=t.data;0!=a.errorCode?e.$message.error({duration:1e3,message:error.message}):e.nearStoreSwithFlag=1==a.result.isShowCliqueStore}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getNearStore()},components:{topNav:r.a}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"right-wrap near-store-contain"},[a("topNav",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"attention-wrap"},[a("label",{staticClass:"near-store-tip"},[e._v("单商户小程序中附近门店是否展示集团其他商户门店")]),e._v(" "),a("div",{staticClass:"item-label"},[a("span",[e._v("展示")]),e._v(" "),a("el-switch",{on:{change:e.nearStoreSwitch},model:{value:e.nearStoreSwithFlag,callback:function(t){e.nearStoreSwithFlag=t},expression:"nearStoreSwithFlag"}})],1)])])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var i=a("VU/8")(s,n,!1,function(e){a("sfJC")},"data-v-8589e67a",null);t.default=i.exports},sfJC:function(e,t){}});
//# sourceMappingURL=17.2a9a627585bfad35d6fd.js.map
\ No newline at end of file
webpackJsonp([18],{PDVn:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("ZLEe"),n=i.n(a),s=i("3cXf"),r=i.n(s),u=i("Mk6G"),c=i("3E4D"),o=i("Ch4/"),m=i("P9l9"),l=i("0xDb"),d={name:"memberTableEdit",props:["tableEditData"],data:function(){return{accumulateConsum:{},subAchievementList:[],inputLength:6,inputValue:"",editObj:{index:"",row:"",obj:"",type:""},copyOriginObj:JSON.parse(r()(this.tableEditData))}},created:function(){},methods:{consumItemSwitch:function(e,t){Object(l.a)(e,t,t.achievementType),Object(l.a)(t,this.accumulateConsum),this.tempObj=t;var i=1==e?1:0;this.saveSwitch(t.achievementSystemId,i)},saveSwitch:function(e,t){var i=this,a={achievementSystemId:e,openStatus:t};Object(m.c)("/api-member/achievement-open-clique",a).then(function(e){Object(l.a)(e.data.result);var t=e.data;0!=t.errorCode?(i.tempObj.isOpen=!1,o.a.errorMsg(t)):c.a.showmsg("设置成功","success")}).catch(function(e){Object(l.a)(e),i.$message.error({duration:1e3,message:e.message})})},editLimitNum:function(e,t,i,a){this.$forceUpdate(),Object(l.a)(e,t,i),this.editObj.index=e,this.editObj.row=t,this.editObj.obj=i,1==a?t.editLimitFlag=!0:t.editRewardFlag=!0,Object(l.a)(t.editLimitFlag)},saveLimitNum:function(e,t,i,a){if(Object(l.a)(e,t,t.achievementTarget,i),1==a&&0==e&&Number(t.targetInput)>=Number(i[e+1].achievementTarget))this.$message.error({duration:1e3,message:"每一阶都必须大于上一阶,小于下一阶"});else if(1==a&&e==i.length-1&&Number(t.targetInput)<=Number(i[e-1].achievementTarget))this.$message.error({duration:1e3,message:"每一阶都必须大于上一阶,小于下一阶"});else{if(1==a&&e>0&&e<i.length-1&&Number(t.targetInput)<=Number(i[e-1].achievementTarget))return Object(l.a)(e),void this.$message.error({duration:1e3,message:"每一阶都必须大于上一阶,小于下一阶"});if(1==a&&e>0&&e<i.length-1&&Number(t.targetInput)>=Number(i[e+1].achievementTarget))return Object(l.a)(e),void this.$message.error({duration:1e3,message:"每一阶都必须大于上一阶,小于下一阶"});t.achievementTarget=t.targetInput,t.rewardValue=t.rewardInput;var n=t.achievementEnterpriseRankId,s=a,r=t.achievementTarget,u=t.rewardValue;1!=s||""!=String(r).trim()?2!=s||""!=String(u).trim()?(this.saveModify(n,s,r,u),1==s?t.editLimitFlag=!1:t.editRewardFlag=!1,this.inputNum="",this.editObj={index:"",row:"",obj:"",type:""}):this.$message.error({duration:1e3,message:"请输入奖励"}):this.$message.error({duration:1e3,message:"请输入额度"})}},cancelLimitNum:function(e,t,i,a){Object(l.a)(e,t),1==a?(t.editLimitFlag=!1,t.targetInput=t.achievementTarget):(t.editRewardFlag=!1,t.rewardInput=t.rewardValue),this.inputNum="",this.editObj={index:"",row:"",obj:"",type:""}},focusInput:function(e,t,i,a){Object(l.a)("input-focus:",e,t,i,a),this.editObj.index=e,this.editObj.row=t,this.editObj.obj=i,this.editObj.type=a},limitNumInput:function(e){Object(l.a)(e,this.editObj.obj),this.inputNum=u.a.getCharVal(e.target.value.replace(/[^\d]/g,""),this.inputLength),1==this.editObj.type?this.editObj.row.targetInput=this.inputNum:this.editObj.row.rewardInput=this.inputNum,Object(l.a)(this.inputNum)},saveModify:function(e,t,i,a){var n=this,s={achievementEnterpriseRankId:e,updateType:t,achievementTarget:i||"",achievementRewardType:1,rewardValue:a||"",rewardName:"积分XX"};Object(m.c)("/api-member/achievement-update-clique",s).then(function(e){Object(l.a)(e.data);var t=e.data;0!=t.errorCode?o.a.errorMsg(t):c.a.showmsg("设置成功","success")}).catch(function(e){Object(l.a)(e),n.$message.error({duration:1e3,message:e.message})})}},watch:{tableEditData:function(e){if(e&&n()(e).length){var t=e;this.accumulateConsum=t,this.subAchievementList=t.subAchievementList}}},mounted:function(){var e=this.tableEditData;this.accumulateConsum=e,this.subAchievementList=e.subAchievementList}},p={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"inner-cell-contain"},[i("div",{staticClass:"member-achieve-tabletitle"},[i("label",{staticClass:"tabletitle-l"},[e._v(e._s(e.accumulateConsum.achievementName))]),e._v(" "),i("el-switch",{on:{change:function(t){return e.consumItemSwitch(t,e.accumulateConsum)}},model:{value:e.accumulateConsum.isOpen,callback:function(t){e.$set(e.accumulateConsum,"isOpen",t)},expression:"accumulateConsum.isOpen"}})],1),e._v(" "),i("el-table",{staticClass:"member-cell-table",staticStyle:{width:"100%"},attrs:{data:e.subAchievementList}},[i("el-table-column",{attrs:{prop:"limitNum",label:"额度"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticClass:"span-txt"},[e._v(e._s(e.accumulateConsum.text))]),e._v(" "),t.row.editLimitFlag?e._e():i("span",{staticClass:"span-num"},[e._v(e._s(t.row.achievementTarget))]),e._v(" "),t.row.editLimitFlag?i("el-input",{staticClass:"w-175",attrs:{size:"small",placeholder:"请输入",type:"tel",maxlength:e.inputLength},on:{focus:function(i){return e.focusInput(t.$index,t.row,e.subAchievementList,1)}},nativeOn:{keyup:function(t){return function(t){return e.limitNumInput(t)}(t)}},model:{value:t.row.targetInput,callback:function(i){e.$set(t.row,"targetInput",i)},expression:"scope.row.targetInput"}}):e._e(),e._v(" "),i("span",{staticClass:"span-unit"},[e._v(e._s(e.accumulateConsum.unit))]),e._v(" "),t.row.editLimitFlag?e._e():i("i",{staticClass:"el-icon-edit",on:{click:function(i){return e.editLimitNum(t.$index,t.row,e.subAchievementList,1)}}}),e._v(" "),t.row.editLimitFlag?i("span",{staticClass:"span-oprate-icon"},[i("i",{staticClass:"el-icon-text el-button--text text-confirm",on:{click:function(i){return e.saveLimitNum(t.$index,t.row,e.subAchievementList,1)}}},[e._v("保存")]),e._v(" "),i("i",{staticClass:"el-icon-text text-cancel",on:{click:function(i){return e.cancelLimitNum(t.$index,t.row,e.subAchievementList,1)}}},[e._v("取消")])]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"rewardNum",label:"奖励"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticClass:"span-txt"},[e._v("奖励")]),e._v(" "),t.row.editRewardFlag?e._e():i("span",{staticClass:"span-num"},[e._v(e._s(t.row.rewardValue))]),e._v(" "),t.row.editRewardFlag?i("el-input",{staticClass:"w-175",attrs:{size:"small",placeholder:"请输入",type:"tel",maxlength:e.inputLength},on:{focus:function(i){return e.focusInput(t.$index,t.row,e.subAchievementList,2)}},nativeOn:{keyup:function(t){return function(t){return e.limitNumInput(t)}(t)}},model:{value:t.row.rewardInput,callback:function(i){e.$set(t.row,"rewardInput",i)},expression:"scope.row.rewardInput"}}):e._e(),e._v(" "),i("span",{staticClass:"span-unit"},[e._v("积分")]),e._v(" "),t.row.editRewardFlag?e._e():i("i",{staticClass:"el-icon-edit",on:{click:function(i){return e.editLimitNum(t.$index,t.row,e.subAchievementList,2)}}}),e._v(" "),t.row.editRewardFlag?i("span",{staticClass:"span-oprate-icon"},[i("i",{staticClass:"el-icon-text el-button--text text-confirm",on:{click:function(i){return e.saveLimitNum(t.$index,t.row,e.subAchievementList,2)}}},[e._v("保存")]),e._v(" "),i("i",{staticClass:"el-icon-text text-cancel",on:{click:function(i){return e.cancelLimitNum(t.$index,t.row,e.subAchievementList,2)}}},[e._v("取消")])]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"库存"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.couponStock?"--":"")+"\n ")]}}])})],1)],1)},staticRenderFns:[]};var h=i("C7Lr")(d,p,!1,function(e){i("Qa67")},"data-v-4607e946",null);t.default=h.exports},Qa67:function(e,t){}});
//# sourceMappingURL=18.56898209bd38c6c4748c.js.map
\ No newline at end of file
webpackJsonp([2],{CWzs:function(t,s){},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"},PRsh:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n=i("0xDb"),r={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){Object(n.a)(this.$route.path)}},c={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var u=i("C7Lr")(r,c,!1,function(t){i("CWzs")},"data-v-aee8d5c2",null);s.default=u.exports}});
//# sourceMappingURL=2.cdb97ef1ba90fd6e76b3.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([21],{"6Qob":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("mvHQ"),n=i.n(s),o=i("5reh"),a=i("zL8q");function r(t){return t?(a.Message.warning(t),!1):(a.Message.warning("操作失败"),!1)}function l(t){return"cancel"==t?(a.Message.info(t||"cancel"),!1):t.hasOwnProperty("response")?401==t.response.status?(a.Message.error("登录过期"),!1):500==t.response.status?(a.Message.error("服务器错误500"),!1):void 0:(a.Message.error(t),!1)}var c=i("mw3O"),u={name:"login",data:function(){return{redirect:this.$route.query.redirect,token:"",form:{loginName:"damogic",password:"1",eid:"ff808081593917d90159398ec6340012"}}},computed:{imgHeight:function(){return document.body.clientHeight},imgWidth:function(){return document.body.clientWidth}},methods:{loginAnimate:function(){new LoginAnimate(loginwrap,{length:90,LineWeight:.1,clicked:!0,moveon:!0}).Run()},submitLogin:function(){var t=this;this.axios.post("/api-auth/do-login",c.stringify({loginName:this.form.loginName,password:this.form.password,eid:"ff808081593917d90159398ec6340012"})).then(function(e){if(e.data.success){(s=e.data.message)?a.Message.success(s):a.Message.success("操作成功");var i=decodeURIComponent(t.$route.query.redirect||"/index");t.$router.push({path:i})}else r(e.data.message);var s}).catch(function(t){l(t)})},getMenu:function(){var t=this;this.axios.get("/gic/get-menu").then(function(e){if(e.data.success){t.menuList=e.data.list,sessionStorage.setItem("menuList",n()(t.menuList));var i=t.$route.query.redirect||"/index";t.$router.push({path:i})}else r(e.data.errorMessage)}).catch(function(t){l(t)})}},mounted:function(){this.$store.commit(o.d,"login"),document.title=this.$store.state.title,this.loginAnimate()}},m={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"loginwrap",style:{height:t.imgHeight+"px"}},[i("div",{staticStyle:{position:"absolute",left:"0",height:"0",width:"100%"}},[i("canvas",{attrs:{id:"loginwrap",width:t.imgWidth,height:t.imgHeight}})]),t._v(" "),t._m(0),t._v(" "),i("div",{staticClass:"login_contetnt"},[i("h3",{staticClass:"login-top"},[t._v("让信息连接一切")]),t._v(" "),i("h4",{staticClass:"login-bottom"},[t._v("GIC商户后台")]),t._v(" "),i("div",{staticClass:"formlogin"},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":""}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{staticClass:"forminput",attrs:{placeholder:"账号"},model:{value:t.form.loginName,callback:function(e){t.$set(t.form,"loginName",e)},expression:"form.loginName"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:"密码"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.submitLogin("form")}},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),i("el-form-item",[i("button",{staticClass:"submit",on:{click:function(e){e.preventDefault(),t.submitLogin("form")}}},[t._v("立即登录")])])],1)],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logintop"},[e("div",{staticClass:"fl loginlogo"},[e("a",{staticClass:"fr logo",attrs:{href:"#"}},[this._v("login_logo.png")])]),this._v(" "),e("a",{staticClass:"home-link fr",attrs:{href:"http://www.demogic.com/"}},[this._v("返回首页")])])}]};var d=i("VU/8")(u,m,!1,function(t){i("OWNH")},null,null);e.default=d.exports},OWNH:function(t,e){}});
//# sourceMappingURL=21.d00a22bde04cd9bcaa07.js.map
\ No newline at end of file
webpackJsonp([21],{C6vQ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3cXf"),i=a.n(r),n=a("3Xzz"),o=a("3E4D"),s=a("Ch4/"),l=a("P9l9"),c=a("0xDb"),d={name:"memberGrade",data:function(){return{navpath:[{name:"首页",path:""},{name:"商户会员等级列表",path:""}],cliqueId:"",cliqueName:"",memberTableData:[]}},created:function(){},methods:{toUp:function(e,t,a){if(0!=e){Object(c.a)(e,t,a);var r=JSON.parse(i()(this.memberTableData));r.splice(e,1),r.unshift(t),Object(c.a)(r),this.setSort(t.gradeId,10,this.cliqueId),this.memberTableData=r}},toPre:function(e,t,a){if(0!=e){Object(c.a)(e,t,a);var r,n=JSON.parse(i()(this.memberTableData));r=n[e-1],n[e-1]=t,n[e]=r,this.setSort(t.gradeId,20,this.cliqueId),this.memberTableData=n}},toNext:function(e,t,a){if(e!=a.length-1){Object(c.a)(e,t,a);var r,n=JSON.parse(i()(this.memberTableData));r=n[e+1],n[e+1]=t,n[e]=r,this.setSort(t.gradeId,30,this.cliqueId),this.memberTableData=n}},toBottom:function(e,t,a){if(e!=a.length-1){Object(c.a)(e,t,a);var r=JSON.parse(i()(this.memberTableData));r.splice(e,1),r.push(t),this.setSort(t.gradeId,40,this.cliqueId),this.memberTableData=r}},setSort:function(e,t,a){var r=this,i={gradeId:e,sortType:t,enterpriseId:a};Object(l.e)("/api-admin/sort-member-grade",i).then(function(e){var t=e.data;0!=t.errorCode?s.a.errorMsg(t):o.a.showmsg("设置成功","success")}).catch(function(e){Object(c.a)(e),r.$message.error({duration:1e3,message:e.message})})},editGrade:function(e,t,a){this.$router.push("/editMemberGrade")},addGrade:function(){this.changeRoute("/addMemberGrade")},cancelPop:function(e,t,a){t.popVisible=!1},delGrade:function(e,t,a){var r={gradeId:t.gradeId,enterpriseId:""};Object(l.a)("/api-admin/delete-member-grade",r).then(function(t){var r=t.data;if(0==r.errorCode)return o.a.showmsg("删除成功","success"),void a.splice(e,1);s.a.errorMsg(r)}).catch(function(e){})},changeRoute:function(e){this.$router.push(e)},getList:function(){var e=this,t={enterpriseId:e.cliqueId};Object(l.e)("/api-admin/get-enterprise-member-grade-list",t).then(function(t){var a=t.data;0!=a.errorCode?s.a.errorMsg(a):a.result.List&&a.result.List.length&&(a.result.List.forEach(function(e,t){e.popVisible=!1}),e.memberTableData=a.result.List)}).catch(function(e){})}},components:{topNav:n.a},beforeRouteLeave:function(e,t,a){var r=e;"/editMemberGrade"!=r.path&&"/addMemberGrade"!=r.path||sessionStorage.setItem("enterpriseId",this.cliqueId),a()},mounted:function(){this.cliqueId=this.$route.query.enterpriseId,this.cliqueName=this.$route.query.name,this.navpath[1].name=this.cliqueName+this.navpath[1].name,this.getList(),sessionStorage.removeItem("enterpriseId")}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"right-wrap"},[a("topNav",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"attention-wrap"},[a("div",{staticClass:"title"},[a("div",[e._v("会员等级根据从低到高的顺序,自上而下进行排序")]),e._v(" "),a("div",{staticClass:"add-btn"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.changeRoute("/addMemberGrade")}}},[e._v("新增等级")])],1)]),e._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.memberTableData}},[a("el-table-column",{attrs:{prop:"gradeName",label:"会员等级名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"gradeCode",label:"等级编码"}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"等级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.gradeType?"常规卡":"特殊卡")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"移动"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("i",{class:["icon-color","el-icon-upload2",0==t.$index?"disable":""],on:{click:function(a){return e.toUp(t.$index,t.row,e.memberTableData)}}}),e._v(" "),a("i",{class:["icon-color","el-icon-back","icon-to-pre",0==t.$index?"disable":""],on:{click:function(a){return e.toPre(t.$index,t.row,e.memberTableData)}}}),e._v(" "),a("i",{class:["icon-color","el-icon-back","icon-to-next",t.$index==e.memberTableData.length-1?"disable":""],on:{click:function(a){return e.toNext(t.$index,t.row,e.memberTableData)}}}),e._v(" "),a("i",{class:["icon-color","el-icon-download",t.$index==e.memberTableData.length-1?"disable":""],on:{click:function(a){return e.toBottom(t.$index,t.row,e.memberTableData)}}})]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("router-link",{staticClass:"edit-btn el-button--text",attrs:{to:{path:"/editMemberGrade",query:{gradeId:t.row.gradeId}}}},[e._v("编辑")]),e._v(" "),a("el-popover",{attrs:{placement:"top",width:"160"},model:{value:t.row.popVisible,callback:function(a){e.$set(t.row,"popVisible",a)},expression:"scope.row.popVisible"}},[a("p",{staticStyle:{"line-height":"1.5",padding:"10px 10px 20px"}},[e._v("确认删除吗?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){return e.cancelPop(t.$index,t.row,e.memberTableData)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.delGrade(t.$index,t.row,e.memberTableData)}}},[e._v("确定")])],1),e._v(" "),a("el-button",{staticClass:"m-l-10",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\n 删除\n ")])],1)]}}])})],1)],1)])])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var b=a("C7Lr")(d,u,!1,function(e){a("yENk")},"data-v-408dd7f0",null);t.default=b.exports},yENk:function(e,t){}});
//# sourceMappingURL=21.ff5d3906f073d8475559.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([24],{PDVn:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i("fZjL"),a=i.n(n),s=i("mvHQ"),o=i.n(s),c=i("Mk6G"),r=i("3E4D"),u=i("Ch4/"),l=i("P9l9"),m={name:"memberTableEdit",props:["tableEditData"],data:function(){return{accumulateConsum:{},subAchievementList:[],inputLength:6,inputValue:"",editObj:{index:"",row:"",obj:"",type:""},copyOriginObj:JSON.parse(o()(this.tableEditData))}},created:function(){},methods:{consumItemSwitch:function(e,t){console.log(e,t,t.achievementType),console.log(t,this.accumulateConsum),this.tempObj=t;var i=1==e?1:0;this.saveSwitch(t.achievementSystemId,i)},saveSwitch:function(e,t){var i=this,n={achievementSystemId:e,openStatus:t};Object(l.c)("/api-member/achievement-open-clique",n).then(function(e){console.log(e.data.result);var t=e.data;0!=t.errorCode?(i.tempObj.isOpen=!1,u.a.errorMsg(t)):r.a.showmsg("设置成功","success")}).catch(function(e){console.log(e),i.$message.error({duration:1e3,message:e.message})})},editLimitNum:function(e,t,i,n){this.$forceUpdate(),console.log(e,t,i),this.editObj.index=e,this.editObj.row=t,this.editObj.obj=i,1==n?t.editLimitFlag=!0:t.editRewardFlag=!0,console.log(t.editLimitFlag)},saveLimitNum:function(e,t,i,n){if(console.log(e,t,t.achievementTarget,i),1==n&&0==e&&Number(t.targetInput)>=Number(i[e+1].achievementTarget))this.$message.error({duration:1e3,message:"每一阶都必须大于上一阶,小于下一阶"});else if(1==n&&e==i.length-1&&Number(t.targetInput)<=Number(i[e-1].achievementTarget))this.$message.error({duration:1e3,message:"每一阶都必须大于上一阶,小于下一阶"});else{if(1==n&&e>0&&e<i.length-1&&Number(t.targetInput)<=Number(i[e-1].achievementTarget))return console.log(e),void this.$message.error({duration:1e3,message:"每一阶都必须大于上一阶,小于下一阶"});if(1==n&&e>0&&e<i.length-1&&Number(t.targetInput)>=Number(i[e+1].achievementTarget))return console.log(e),void this.$message.error({duration:1e3,message:"每一阶都必须大于上一阶,小于下一阶"});t.achievementTarget=t.targetInput,t.rewardValue=t.rewardInput;var a=t.achievementEnterpriseRankId,s=n,o=t.achievementTarget,c=t.rewardValue;1!=s||""!=String(o).trim()?2!=s||""!=String(c).trim()?(this.saveModify(a,s,o,c),1==s?t.editLimitFlag=!1:t.editRewardFlag=!1,this.inputNum="",this.editObj={index:"",row:"",obj:"",type:""}):this.$message.error({duration:1e3,message:"请输入奖励"}):this.$message.error({duration:1e3,message:"请输入额度"})}},cancelLimitNum:function(e,t,i,n){console.log(e,t),1==n?(t.editLimitFlag=!1,t.targetInput=t.achievementTarget):(t.editRewardFlag=!1,t.rewardInput=t.rewardValue),this.inputNum="",this.editObj={index:"",row:"",obj:"",type:""}},focusInput:function(e,t,i,n){console.log("input-focus:",e,t,i,n),this.editObj.index=e,this.editObj.row=t,this.editObj.obj=i,this.editObj.type=n},limitNumInput:function(e){console.log(e,this.editObj.obj),this.inputNum=c.a.getCharVal(e.target.value.replace(/[^\d]/g,""),this.inputLength),1==this.editObj.type?this.editObj.row.targetInput=this.inputNum:this.editObj.row.rewardInput=this.inputNum,console.log(this.inputNum)},saveModify:function(e,t,i,n){var a=this,s={achievementEnterpriseRankId:e,updateType:t,achievementTarget:i||"",achievementRewardType:1,rewardValue:n||"",rewardName:"积分XX"};Object(l.c)("/api-member/achievement-update-clique",s).then(function(e){console.log(e.data);var t=e.data;0!=t.errorCode?u.a.errorMsg(t):r.a.showmsg("设置成功","success")}).catch(function(e){console.log(e),a.$message.error({duration:1e3,message:e.message})})}},watch:{tableEditData:function(e){console.log(e);if(e&&a()(e).length){var t=e;this.accumulateConsum=t,this.subAchievementList=t.subAchievementList}}},mounted:function(){console.log("成就 item:",this.copyOriginObj,this.tableEditData);var e=this.tableEditData;this.accumulateConsum=e,this.subAchievementList=e.subAchievementList,console.log(e)},components:{}},d={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"inner-cell-contain"},[i("div",{staticClass:"member-achieve-tabletitle"},[i("label",{staticClass:"tabletitle-l"},[e._v(e._s(e.accumulateConsum.achievementName))]),e._v(" "),i("el-switch",{on:{change:function(t){e.consumItemSwitch(t,e.accumulateConsum)}},model:{value:e.accumulateConsum.isOpen,callback:function(t){e.$set(e.accumulateConsum,"isOpen",t)},expression:"accumulateConsum.isOpen"}})],1),e._v(" "),i("el-table",{staticClass:"member-cell-table",staticStyle:{width:"100%"},attrs:{data:e.subAchievementList}},[i("el-table-column",{attrs:{prop:"limitNum",label:"额度"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticClass:"span-txt"},[e._v(e._s(e.accumulateConsum.text))]),e._v(" "),t.row.editLimitFlag?e._e():i("span",{staticClass:"span-num"},[e._v(e._s(t.row.achievementTarget))]),e._v(" "),t.row.editLimitFlag?i("el-input",{staticClass:"w-175",attrs:{size:"small",placeholder:"请输入",type:"tel",maxlength:e.inputLength},on:{focus:function(i){e.focusInput(t.$index,t.row,e.subAchievementList,1)}},nativeOn:{keyup:function(t){return function(t){return e.limitNumInput(t)}(t)}},model:{value:t.row.targetInput,callback:function(i){e.$set(t.row,"targetInput",i)},expression:"scope.row.targetInput"}}):e._e(),e._v(" "),i("span",{staticClass:"span-unit"},[e._v(e._s(e.accumulateConsum.unit))]),e._v(" "),t.row.editLimitFlag?e._e():i("i",{staticClass:"el-icon-edit",on:{click:function(i){e.editLimitNum(t.$index,t.row,e.subAchievementList,1)}}}),e._v(" "),t.row.editLimitFlag?i("span",{staticClass:"span-oprate-icon"},[i("i",{staticClass:"el-icon-text el-button--text text-confirm",on:{click:function(i){e.saveLimitNum(t.$index,t.row,e.subAchievementList,1)}}},[e._v("保存")]),e._v(" "),i("i",{staticClass:"el-icon-text text-cancel",on:{click:function(i){e.cancelLimitNum(t.$index,t.row,e.subAchievementList,1)}}},[e._v("取消")])]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"rewardNum",label:"奖励"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticClass:"span-txt"},[e._v("奖励")]),e._v(" "),t.row.editRewardFlag?e._e():i("span",{staticClass:"span-num"},[e._v(e._s(t.row.rewardValue))]),e._v(" "),t.row.editRewardFlag?i("el-input",{staticClass:"w-175",attrs:{size:"small",placeholder:"请输入",type:"tel",maxlength:e.inputLength},on:{focus:function(i){e.focusInput(t.$index,t.row,e.subAchievementList,2)}},nativeOn:{keyup:function(t){return function(t){return e.limitNumInput(t)}(t)}},model:{value:t.row.rewardInput,callback:function(i){e.$set(t.row,"rewardInput",i)},expression:"scope.row.rewardInput"}}):e._e(),e._v(" "),i("span",{staticClass:"span-unit"},[e._v("积分")]),e._v(" "),t.row.editRewardFlag?e._e():i("i",{staticClass:"el-icon-edit",on:{click:function(i){e.editLimitNum(t.$index,t.row,e.subAchievementList,2)}}}),e._v(" "),t.row.editRewardFlag?i("span",{staticClass:"span-oprate-icon"},[i("i",{staticClass:"el-icon-text el-button--text text-confirm",on:{click:function(i){e.saveLimitNum(t.$index,t.row,e.subAchievementList,2)}}},[e._v("保存")]),e._v(" "),i("i",{staticClass:"el-icon-text text-cancel",on:{click:function(i){e.cancelLimitNum(t.$index,t.row,e.subAchievementList,2)}}},[e._v("取消")])]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"库存"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.couponStock?"--":"")+"\n ")]}}])})],1)],1)},staticRenderFns:[]};var p=i("VU/8")(m,d,!1,function(e){i("n3Ao")},"data-v-4cfe0450",null);t.default=p.exports},n3Ao:function(e,t){}});
//# sourceMappingURL=24.84c8d7030c4d5bcc16c2.js.map
\ No newline at end of file
webpackJsonp([25],{YPWR:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=o("bOdI"),a=o.n(l),n=o("5reh"),s={name:"App",data:function(){var e;return e={projectName:"gic-clique",contentHeight:"0px",collapseFlag:!1},a()(e,"collapseFlag",!1),a()(e,"leftModulesName","会员设置"),a()(e,"bodyHeight",document.body.clientHeight||document.documentElement.clientHeight),e},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},mounted:function(){this.$store.commit(n.d,"达摩GIC"),document.title=this.$store.state.title,this.pathName=window.location.hash.split("/")[1],console.log("pathname:",this.pathName,this.$route.path),this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},components:{}},i={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"index"}},[o("vue-gic-header",{attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),o("div",{staticClass:"content",attrs:{id:"content"}},[o("div",{staticClass:"content-body"},[o("div",{staticClass:"left-menu",class:{"small-left":e.collapseFlag},style:{minHeight:e.bodyHeight-66+"px"}},[o("vue-gic-aside-menu",{attrs:{projectName:e.projectName,leftModulesName:e.leftModulesName,collapseFlag:e.collapseFlag}})],1),e._v(" "),o("div",{staticClass:"right-right",class:{margin64:e.collapseFlag}},[o("router-view")],1)])])],1)},staticRenderFns:[]};var c=o("VU/8")(s,i,!1,function(e){o("rI3x")},null,null);t.default=c.exports},rI3x:function(e,t){}});
//# sourceMappingURL=25.8b953bd9ff7d58cc8055.js.map
\ No newline at end of file
webpackJsonp([28],{"Z9/t":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3Xzz"),n=a("P9l9"),s=a("0xDb"),o={name:"nearStoreSet",data:function(){return{projectName:"gic-clique",navpath:[{name:"首页",path:"/"},{name:"附近门店",path:""}],nearStoreSwithFlag:!0}},created:function(){},methods:{changeRoute:function(e){Object(s.a)("route-change"),this.$router.push(e)},nearStoreSwitch:function(){Object(s.a)(this.nearStoreSwithFlag),this.setNearStore()},setNearStore:function(){var e=this,t={requestProject:e.projectName,isShowCliqueStore:1==e.nearStoreSwithFlag?1:0};Object(n.e)("/api-admin/save-clique-show-store",t).then(function(t){var a=t.data;0!=a.errorCode?(e.nearStoreSwithFlag=!1,e.$message.error({duration:1e3,message:a.message})):e.$message({message:"修改附近门店显示配置成功",type:"success"})}).catch(function(t){Object(s.a)(t),e.nearStoreSwithFlag=!1,e.$message.error({duration:1e3,message:t.message})})},getNearStore:function(){var e=this,t={requestProject:e.projectName};Object(n.e)("/api-admin/clique-show-store",t).then(function(t){var a=t.data;0!=a.errorCode?e.$message.error({duration:1e3,message:a.message}):e.nearStoreSwithFlag=1==a.result.isShowCliqueStore}).catch(function(t){Object(s.a)(t),e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getNearStore()},components:{topNav:r.a}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"right-wrap near-store-contain"},[a("topNav",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"attention-wrap"},[a("label",{staticClass:"near-store-tip"},[e._v("单商户小程序中附近门店是否展示集团其他商户门店")]),e._v(" "),a("div",{staticClass:"item-label"},[a("span",[e._v("展示")]),e._v(" "),a("el-switch",{on:{change:e.nearStoreSwitch},model:{value:e.nearStoreSwithFlag,callback:function(t){e.nearStoreSwithFlag=t},expression:"nearStoreSwithFlag"}})],1)])])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var c=a("C7Lr")(o,i,!1,function(e){a("kn6B")},"data-v-035c8ae2",null);t.default=c.exports},kn6B:function(e,t){}});
//# sourceMappingURL=28.c9ccda4c680df9b2d68e.js.map
\ No newline at end of file
webpackJsonp([29],{C6vQ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),r=a.n(o),i=a("3Xzz"),n=a("3E4D"),s=a("Ch4/"),l=a("P9l9"),c={name:"memberGrade",data:function(){return{navpath:[{name:"首页",path:""},{name:"商户会员等级列表",path:""}],cliqueId:"",cliqueName:"",memberTableData:[]}},created:function(){},methods:{toUp:function(e,t,a){if(0!=e){console.log(e,t,a);var o=JSON.parse(r()(this.memberTableData));o.splice(e,1),o.unshift(t),console.log(o),this.setSort(t.gradeId,10,this.cliqueId),this.memberTableData=o}},toPre:function(e,t,a){if(0!=e){console.log(e,t,a);var o,i=JSON.parse(r()(this.memberTableData));o=i[e-1],i[e-1]=t,i[e]=o,this.setSort(t.gradeId,20,this.cliqueId),this.memberTableData=i}},toNext:function(e,t,a){if(e!=a.length-1){console.log(e,t,a);var o,i=JSON.parse(r()(this.memberTableData));o=i[e+1],i[e+1]=t,i[e]=o,this.setSort(t.gradeId,30,this.cliqueId),this.memberTableData=i}},toBottom:function(e,t,a){if(e!=a.length-1){console.log(e,t,a);var o=JSON.parse(r()(this.memberTableData));o.splice(e,1),o.push(t),this.setSort(t.gradeId,40,this.cliqueId),this.memberTableData=o}},setSort:function(e,t,a){var o={gradeId:e,sortType:t,enterpriseId:a};Object(l.e)("/api-admin/sort-member-grade",o).then(function(e){var t=e.data;0!=t.errorCode?s.a.errorMsg(t):n.a.showmsg("设置成功","success")}).catch(function(e){console.log(e),that.$message.error({duration:1e3,message:e.message})})},editGrade:function(e,t,a){console.log(e,t,a),this.$router.push("/editMemberGrade")},addGrade:function(){this.changeRoute("/addMemberGrade")},cancelPop:function(e,t,a){console.log(e,t,a);t.popVisible=!1},delGrade:function(e,t,a){var o=this;console.log(e,t,a);var r={gradeId:t.gradeId,enterpriseId:""};Object(l.a)("/api-admin/delete-member-grade",r).then(function(t){var o=t.data;if(0==o.errorCode)return n.a.showmsg("删除成功","success"),void a.splice(e,1);s.a.errorMsg(o)}).catch(function(e){console.log(e),o.$message.error({duration:1e3,message:e.message})})},changeRoute:function(e){this.$router.push(e)},getList:function(){var e=this,t={enterpriseId:e.cliqueId};Object(l.e)("/api-admin/get-enterprise-member-grade-list",t).then(function(t){var a=t.data;0!=a.errorCode?s.a.errorMsg(a):a.result.List&&a.result.List.length&&(a.result.List.forEach(function(e,t){e.popVisible=!1}),e.memberTableData=a.result.List)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})}},components:{topNav:i.a},beforeRouteLeave:function(e,t,a){console.log(e,t,a),console.log(this.ruleForm);var o=e;"/editMemberGrade"!=o.path&&"/addMemberGrade"!=o.path||sessionStorage.setItem("enterpriseId",this.cliqueId),a()},mounted:function(){this.cliqueId=this.$route.query.enterpriseId,this.cliqueName=this.$route.query.name,this.navpath[1].name=this.cliqueName+this.navpath[1].name,this.getList(),sessionStorage.removeItem("enterpriseId")}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"right-wrap"},[a("topNav",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"attention-wrap"},[a("div",{staticClass:"title"},[a("div",[e._v("会员等级根据从低到高的顺序,自上而下进行排序")]),e._v(" "),a("div",{staticClass:"add-btn"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.changeRoute("/addMemberGrade")}}},[e._v("新增等级")])],1)]),e._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.memberTableData}},[a("el-table-column",{attrs:{prop:"gradeName",label:"会员等级名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"gradeCode",label:"等级编码"}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"等级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.gradeType?"常规卡":"特殊卡")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"移动"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("i",{class:["icon-color","el-icon-upload2",0==t.$index?"disable":""],on:{click:function(a){e.toUp(t.$index,t.row,e.memberTableData)}}}),e._v(" "),a("i",{class:["icon-color","el-icon-back","icon-to-pre",0==t.$index?"disable":""],on:{click:function(a){e.toPre(t.$index,t.row,e.memberTableData)}}}),e._v(" "),a("i",{class:["icon-color","el-icon-back","icon-to-next",t.$index==e.memberTableData.length-1?"disable":""],on:{click:function(a){e.toNext(t.$index,t.row,e.memberTableData)}}}),e._v(" "),a("i",{class:["icon-color","el-icon-download",t.$index==e.memberTableData.length-1?"disable":""],on:{click:function(a){e.toBottom(t.$index,t.row,e.memberTableData)}}})]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("router-link",{staticClass:"edit-btn el-button--text",attrs:{to:{path:"/editMemberGrade",query:{gradeId:t.row.gradeId}}}},[e._v("编辑")]),e._v(" "),a("el-popover",{attrs:{placement:"top",width:"160"},model:{value:t.row.popVisible,callback:function(a){e.$set(t.row,"popVisible",a)},expression:"scope.row.popVisible"}},[a("p",{staticStyle:{"line-height":"1.5",padding:"10px 10px 20px"}},[e._v("确认删除吗?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){e.cancelPop(t.$index,t.row,e.memberTableData)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){e.delGrade(t.$index,t.row,e.memberTableData)}}},[e._v("确定")])],1),e._v(" "),a("el-button",{staticClass:"m-l-10",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\n 删除\n ")])],1)]}}])})],1)],1)])])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("Wa3R")},"data-v-112afe20",null);t.default=u.exports},Wa3R:function(e,t){}});
//# sourceMappingURL=29.16999d57f486e85b197d.js.map
\ No newline at end of file
webpackJsonp([29],{"/SLh":function(t,e){},YPWR:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("5reh"),l=a("0xDb"),i={name:"App",data:function(){return{projectName:"gic-clique",contentHeight:"0px",collapseFlag:!1,leftModulesName:"会员设置",bodyHeight:document.body.clientHeight||document.documentElement.clientHeight}},methods:{toRouterView:function(t){Object(l.a)(t),this.$router.push({path:t.path})},collapseTag:function(t){Object(l.a)(t),this.collapseFlag=t}},mounted:function(){this.$store.commit(o.d,"达摩GIC"),document.title=this.$store.state.title,this.pathName=window.location.hash.split("/")[1],Object(l.a)("pathname:",this.pathName,this.$route.path),this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},components:{}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-gic-header",{attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body"},[a("div",{staticClass:"left-menu",class:{"small-left":t.collapseFlag},style:{minHeight:t.bodyHeight-66+"px"}},[a("vue-gic-aside-menu",{attrs:{projectName:t.projectName,leftModulesName:t.leftModulesName,collapseFlag:t.collapseFlag}})],1),t._v(" "),a("div",{staticClass:"right-right",class:{margin64:t.collapseFlag}},[a("router-view")],1)])])],1)},staticRenderFns:[]};var n=a("C7Lr")(i,c,!1,function(t){a("/SLh")},null,null);e.default=n.exports}});
//# sourceMappingURL=29.d99bd633937401535205.js.map
\ No newline at end of file
webpackJsonp([3],{Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"},PRsh:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){console.log(this.$route.path)}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("uCb/")},"data-v-8bd0efb0",null);s.default=c.exports},"uCb/":function(t,s){}});
//# sourceMappingURL=3.88a303fc10feb8b51091.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment