Commit 35b63cd0 by 杨明

fixed

1 parent d2bec2e4
Showing 80 changed files with 4888 additions and 440 deletions
...@@ -1030,6 +1030,12 @@ ...@@ -1030,6 +1030,12 @@
"integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==",
"dev": true "dev": true
}, },
"@types/parse-json": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz",
"integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==",
"dev": true
},
"@types/q": { "@types/q": {
"version": "1.5.2", "version": "1.5.2",
"resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.2.tgz", "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.2.tgz",
...@@ -1243,6 +1249,35 @@ ...@@ -1243,6 +1249,35 @@
"webpack-merge": "^4.2.2" "webpack-merge": "^4.2.2"
}, },
"dependencies": { "dependencies": {
"autoprefixer": {
"version": "9.8.8",
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.8.8.tgz",
"integrity": "sha512-eM9d/swFopRt5gdJ7jrpCwgvEMIayITpojhkkSMRsFHYuH5bkSQ4p/9qTEHtmNudUZh22Tehu7I6CxAW0IXTKA==",
"dev": true,
"requires": {
"browserslist": "^4.12.0",
"caniuse-lite": "^1.0.30001109",
"normalize-range": "^0.1.2",
"num2fraction": "^1.2.2",
"picocolors": "^0.2.1",
"postcss": "^7.0.32",
"postcss-value-parser": "^4.1.0"
},
"dependencies": {
"browserslist": {
"version": "4.21.3",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz",
"integrity": "sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==",
"dev": true,
"requires": {
"caniuse-lite": "^1.0.30001370",
"electron-to-chromium": "^1.4.202",
"node-releases": "^2.0.6",
"update-browserslist-db": "^1.0.5"
}
}
}
},
"cacache": { "cacache": {
"version": "13.0.1", "version": "13.0.1",
"resolved": "https://registry.npmjs.org/cacache/-/cacache-13.0.1.tgz", "resolved": "https://registry.npmjs.org/cacache/-/cacache-13.0.1.tgz",
...@@ -1269,6 +1304,18 @@ ...@@ -1269,6 +1304,18 @@
"unique-filename": "^1.1.1" "unique-filename": "^1.1.1"
} }
}, },
"caniuse-lite": {
"version": "1.0.30001375",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001375.tgz",
"integrity": "sha512-kWIMkNzLYxSvnjy0hL8w1NOaWNr2rn39RTAVyIwcw8juu60bZDWiF1/loOYANzjtJmy6qPgNmn38ro5Pygagdw==",
"dev": true
},
"electron-to-chromium": {
"version": "1.4.218",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.218.tgz",
"integrity": "sha512-INDylKH//YIf2w67D+IjkfVnGVrZ/D94DAU/FPPm6T4jEPbEDQvo9r2wTj0ncFdtJH8+V8BggZTaN8Rzk5wkgw==",
"dev": true
},
"find-cache-dir": { "find-cache-dir": {
"version": "3.2.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.2.0.tgz", "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.2.0.tgz",
...@@ -1308,6 +1355,12 @@ ...@@ -1308,6 +1355,12 @@
"semver": "^6.0.0" "semver": "^6.0.0"
} }
}, },
"node-releases": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz",
"integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==",
"dev": true
},
"p-locate": { "p-locate": {
"version": "4.1.0", "version": "4.1.0",
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
...@@ -1332,6 +1385,47 @@ ...@@ -1332,6 +1385,47 @@
"find-up": "^4.0.0" "find-up": "^4.0.0"
} }
}, },
"postcss": {
"version": "7.0.39",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz",
"integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==",
"dev": true,
"requires": {
"picocolors": "^0.2.1",
"source-map": "^0.6.1"
}
},
"postcss-loader": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-3.0.0.tgz",
"integrity": "sha512-cLWoDEY5OwHcAjDnkyRQzAXfs2jrKjXpO/HQFcc5b5u/r7aa471wdmChmwfnv7x2u840iat/wi0lQ5nbRgSkUA==",
"dev": true,
"requires": {
"loader-utils": "^1.1.0",
"postcss": "^7.0.0",
"postcss-load-config": "^2.0.0",
"schema-utils": "^1.0.0"
},
"dependencies": {
"schema-utils": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz",
"integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==",
"dev": true,
"requires": {
"ajv": "^6.1.0",
"ajv-errors": "^1.0.0",
"ajv-keywords": "^3.1.0"
}
}
}
},
"postcss-value-parser": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
"dev": true
},
"semver": { "semver": {
"version": "6.3.0", "version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
...@@ -1991,24 +2085,44 @@ ...@@ -1991,24 +2085,44 @@
"dev": true "dev": true
}, },
"autoprefixer": { "autoprefixer": {
"version": "9.7.3", "version": "8.6.5",
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.7.3.tgz", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-8.6.5.tgz",
"integrity": "sha512-8T5Y1C5Iyj6PgkPSFd0ODvK9DIleuPKUPYniNxybS47g2k2wFgLZ46lGQHlBuGKIAEV8fbCDfKCCRS1tvOgc3Q==", "integrity": "sha512-PLWJN3Xo/rycNkx+mp8iBDMTm3FeWe4VmYaZDSqL5QQB9sLsQkG5k8n+LNDFnhh9kdq2K+egL/icpctOmDHwig==",
"dev": true, "dev": true,
"requires": { "requires": {
"browserslist": "^4.8.0", "browserslist": "^3.2.8",
"caniuse-lite": "^1.0.30001012", "caniuse-lite": "^1.0.30000864",
"chalk": "^2.4.2",
"normalize-range": "^0.1.2", "normalize-range": "^0.1.2",
"num2fraction": "^1.2.2", "num2fraction": "^1.2.2",
"postcss": "^7.0.23", "postcss": "^6.0.23",
"postcss-value-parser": "^4.0.2" "postcss-value-parser": "^3.2.3"
}, },
"dependencies": { "dependencies": {
"postcss-value-parser": { "browserslist": {
"version": "4.0.2", "version": "3.2.8",
"resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.0.2.tgz", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-3.2.8.tgz",
"integrity": "sha512-LmeoohTpp/K4UiyQCwuGWlONxXamGzCMtFxLq4W1nZVGIQLYvMCJx3yAF9qyyuFpflABI9yVdtJAqbihOsCsJQ==", "integrity": "sha512-WHVocJYavUwVgVViC0ORikPHQquXwVh939TaelZ4WDqpWgTX/FsGhl/+P4qBUAGcRvtOgDgC+xftNWWp2RUTAQ==",
"dev": true,
"requires": {
"caniuse-lite": "^1.0.30000844",
"electron-to-chromium": "^1.3.47"
}
},
"postcss": {
"version": "6.0.23",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz",
"integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==",
"dev": true,
"requires": {
"chalk": "^2.4.1",
"source-map": "^0.6.1",
"supports-color": "^5.4.0"
}
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
"dev": true "dev": true
} }
} }
...@@ -2112,6 +2226,28 @@ ...@@ -2112,6 +2226,28 @@
"object.assign": "^4.1.0" "object.assign": "^4.1.0"
} }
}, },
"babel-polyfill": {
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz",
"integrity": "sha512-F2rZGQnAdaHWQ8YAoeRbukc7HS9QgdgeyJ0rQDd485v9opwuPvjpPFcOOT/WmkKTdgy9ESgSPXDcTNpzrGr6iQ==",
"requires": {
"babel-runtime": "^6.26.0",
"core-js": "^2.5.0",
"regenerator-runtime": "^0.10.5"
},
"dependencies": {
"core-js": {
"version": "2.6.12",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz",
"integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ=="
},
"regenerator-runtime": {
"version": "0.10.5",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz",
"integrity": "sha512-02YopEIhAgiBHWeoTiA8aitHDt8z6w+rQqNuIftlM+ZtvSl/brTouaU7DW6GO/cHtvxJvS4Hwv2ibKdxIRi24w=="
}
}
},
"babel-runtime": { "babel-runtime": {
"version": "6.26.0", "version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz",
...@@ -2638,6 +2774,15 @@ ...@@ -2638,6 +2774,15 @@
} }
} }
}, },
"call-bind": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
"integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
"requires": {
"function-bind": "^1.1.1",
"get-intrinsic": "^1.0.2"
}
},
"call-me-maybe": { "call-me-maybe": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz",
...@@ -2749,6 +2894,11 @@ ...@@ -2749,6 +2894,11 @@
"integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==",
"dev": true "dev": true
}, },
"charenc": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz",
"integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA=="
},
"check-types": { "check-types": {
"version": "8.0.3", "version": "8.0.3",
"resolved": "https://registry.npmjs.org/check-types/-/check-types-8.0.3.tgz", "resolved": "https://registry.npmjs.org/check-types/-/check-types-8.0.3.tgz",
...@@ -3415,6 +3565,11 @@ ...@@ -3415,6 +3565,11 @@
"which": "^1.2.9" "which": "^1.2.9"
} }
}, },
"crypt": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz",
"integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow=="
},
"crypto-browserify": { "crypto-browserify": {
"version": "3.12.0", "version": "3.12.0",
"resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz",
...@@ -4154,18 +4309,11 @@ ...@@ -4154,18 +4309,11 @@
"integrity": "sha512-kaBmGWJlLW5bGEbm7/HWG9jt4oH+uecBIIfzFWfFkgqssPT2I6RDenGqo4wmKzm7seNu7DSCRZBXCuf7w8dtkQ==", "integrity": "sha512-kaBmGWJlLW5bGEbm7/HWG9jt4oH+uecBIIfzFWfFkgqssPT2I6RDenGqo4wmKzm7seNu7DSCRZBXCuf7w8dtkQ==",
"dev": true "dev": true
}, },
"element-ui": { "element-theme-chalk": {
"version": "2.13.0", "version": "2.15.9",
"resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.13.0.tgz", "resolved": "https://registry.npmjs.org/element-theme-chalk/-/element-theme-chalk-2.15.9.tgz",
"integrity": "sha512-KYsHWsBXYbLELS8cdfvgJTOMSUby3UEjvsPV1V1VmgJ/DdkOAS4z3MiOrPxrT9w2Cc5lZ4eVSQiGhYFR5NVChw==", "integrity": "sha512-QrvAIyfIVMxakBzfnoamzSuVP4xs6UpaPmshuz7PogSzC31K0us46gqYPf/UjjP+mYC+i02LROg8UgxF814oig==",
"requires": { "dev": true
"async-validator": "~1.8.1",
"babel-helper-vue-jsx-merge-props": "^2.0.0",
"deepmerge": "^1.2.0",
"normalize-wheel": "^1.0.1",
"resize-observer-polyfill": "^1.5.0",
"throttle-debounce": "^1.0.1"
}
}, },
"elliptic": { "elliptic": {
"version": "6.5.2", "version": "6.5.2",
...@@ -4295,6 +4443,12 @@ ...@@ -4295,6 +4443,12 @@
"is-symbol": "^1.0.2" "is-symbol": "^1.0.2"
} }
}, },
"escalade": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
"integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
"dev": true
},
"escape-html": { "escape-html": {
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
...@@ -5114,7 +5268,8 @@ ...@@ -5114,7 +5268,8 @@
"ansi-regex": { "ansi-regex": {
"version": "2.1.1", "version": "2.1.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"aproba": { "aproba": {
"version": "1.2.0", "version": "1.2.0",
...@@ -5135,12 +5290,14 @@ ...@@ -5135,12 +5290,14 @@
"balanced-match": { "balanced-match": {
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"brace-expansion": { "brace-expansion": {
"version": "1.1.11", "version": "1.1.11",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
...@@ -5155,17 +5312,20 @@ ...@@ -5155,17 +5312,20 @@
"code-point-at": { "code-point-at": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"concat-map": { "concat-map": {
"version": "0.0.1", "version": "0.0.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"console-control-strings": { "console-control-strings": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"core-util-is": { "core-util-is": {
"version": "1.0.2", "version": "1.0.2",
...@@ -5282,7 +5442,8 @@ ...@@ -5282,7 +5442,8 @@
"inherits": { "inherits": {
"version": "2.0.4", "version": "2.0.4",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"ini": { "ini": {
"version": "1.3.5", "version": "1.3.5",
...@@ -5294,6 +5455,7 @@ ...@@ -5294,6 +5455,7 @@
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"number-is-nan": "^1.0.0" "number-is-nan": "^1.0.0"
} }
...@@ -5308,6 +5470,7 @@ ...@@ -5308,6 +5470,7 @@
"version": "3.0.4", "version": "3.0.4",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
} }
...@@ -5315,12 +5478,14 @@ ...@@ -5315,12 +5478,14 @@
"minimist": { "minimist": {
"version": "0.0.8", "version": "0.0.8",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"minipass": { "minipass": {
"version": "2.9.0", "version": "2.9.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"safe-buffer": "^5.1.2", "safe-buffer": "^5.1.2",
"yallist": "^3.0.0" "yallist": "^3.0.0"
...@@ -5339,6 +5504,7 @@ ...@@ -5339,6 +5504,7 @@
"version": "0.5.1", "version": "0.5.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"minimist": "0.0.8" "minimist": "0.0.8"
} }
...@@ -5428,7 +5594,8 @@ ...@@ -5428,7 +5594,8 @@
"number-is-nan": { "number-is-nan": {
"version": "1.0.1", "version": "1.0.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"object-assign": { "object-assign": {
"version": "4.1.1", "version": "4.1.1",
...@@ -5440,6 +5607,7 @@ ...@@ -5440,6 +5607,7 @@
"version": "1.4.0", "version": "1.4.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"wrappy": "1" "wrappy": "1"
} }
...@@ -5525,7 +5693,8 @@ ...@@ -5525,7 +5693,8 @@
"safe-buffer": { "safe-buffer": {
"version": "5.1.2", "version": "5.1.2",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"safer-buffer": { "safer-buffer": {
"version": "2.1.2", "version": "2.1.2",
...@@ -5561,6 +5730,7 @@ ...@@ -5561,6 +5730,7 @@
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"code-point-at": "^1.0.0", "code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0", "is-fullwidth-code-point": "^1.0.0",
...@@ -5580,6 +5750,7 @@ ...@@ -5580,6 +5750,7 @@
"version": "3.0.1", "version": "3.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"ansi-regex": "^2.0.0" "ansi-regex": "^2.0.0"
} }
...@@ -5623,12 +5794,14 @@ ...@@ -5623,12 +5794,14 @@
"wrappy": { "wrappy": {
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"yallist": { "yallist": {
"version": "3.1.1", "version": "3.1.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
} }
} }
}, },
...@@ -5647,8 +5820,7 @@ ...@@ -5647,8 +5820,7 @@
"function-bind": { "function-bind": {
"version": "1.1.1", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
"dev": true
}, },
"functional-red-black-tree": { "functional-red-black-tree": {
"version": "1.0.1", "version": "1.0.1",
...@@ -5724,6 +5896,23 @@ ...@@ -5724,6 +5896,23 @@
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
"dev": true "dev": true
}, },
"get-intrinsic": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.2.tgz",
"integrity": "sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==",
"requires": {
"function-bind": "^1.1.1",
"has": "^1.0.3",
"has-symbols": "^1.0.3"
},
"dependencies": {
"has-symbols": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
"integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A=="
}
}
},
"get-stdin": { "get-stdin": {
"version": "6.0.0", "version": "6.0.0",
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz", "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz",
...@@ -5828,6 +6017,72 @@ ...@@ -5828,6 +6017,72 @@
"minimatch": "~3.0.2" "minimatch": "~3.0.2"
} }
}, },
"glsx-common": {
"version": "1.4.9",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz",
"integrity": "sha512-RQWGOGEXUPNmHkZn7n+eukkXp6L/mOfsgMo4gFtrt80ZDxGaznHMg7Isi4+IrEdvVdzp8Cju0eiCTddnZfdsJg==",
"requires": {
"axios": "^0.21.3",
"md5": "^2.3.0",
"qs": "^6.10.1",
"sha1": "^1.1.1"
},
"dependencies": {
"axios": {
"version": "0.21.4",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
"requires": {
"follow-redirects": "^1.14.0"
}
},
"follow-redirects": {
"version": "1.15.1",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz",
"integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA=="
},
"qs": {
"version": "6.11.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
"integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",
"requires": {
"side-channel": "^1.0.4"
}
}
}
},
"glsx-components": {
"version": "1.4.8",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.4.8.tgz",
"integrity": "sha512-tAIAWdOnHRuyzqz28UnuHQBv/+qWEfTBbEUwB8lwXpyO3eP7ytZwdmqnDOZ8KDaMuzJPfYgNc/aqczrGtyAdNg==",
"requires": {
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
"glsx-common": "^1.4.9",
"vue": "^2.6.11",
"vuedraggable": "^2.24.3"
},
"dependencies": {
"core-js": {
"version": "3.24.1",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.24.1.tgz",
"integrity": "sha512-0QTBSYSUZ6Gq21utGzkfITDylE8jWC9Ne1D2MrhvlsZBI1x39OdDIVbzSqtgMndIy6BlHxBXpMGqzZmnztg2rg=="
},
"element-ui": {
"version": "2.15.9",
"resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.15.9.tgz",
"integrity": "sha512-dx45nQLt4Hn87/Z9eRr3ex6KFZbxlFAwEU3QoW3wA5EsYftvHTyL9Pq7VnXXD7hu1Eiaup2jcs6kp+/VSFmXuA==",
"requires": {
"async-validator": "~1.8.1",
"babel-helper-vue-jsx-merge-props": "^2.0.0",
"deepmerge": "^1.2.0",
"normalize-wheel": "^1.0.1",
"resize-observer-polyfill": "^1.5.0",
"throttle-debounce": "^1.0.1"
}
}
}
},
"glsx-table": { "glsx-table": {
"version": "1.0.9", "version": "1.0.9",
"resolved": "https://registry.npmjs.org/glsx-table/-/glsx-table-1.0.9.tgz", "resolved": "https://registry.npmjs.org/glsx-table/-/glsx-table-1.0.9.tgz",
...@@ -5919,7 +6174,6 @@ ...@@ -5919,7 +6174,6 @@
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
"integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
"dev": true,
"requires": { "requires": {
"function-bind": "^1.1.1" "function-bind": "^1.1.1"
} }
...@@ -6342,7 +6596,7 @@ ...@@ -6342,7 +6596,7 @@
"import-cwd": { "import-cwd": {
"version": "2.1.0", "version": "2.1.0",
"resolved": "https://registry.npmjs.org/import-cwd/-/import-cwd-2.1.0.tgz", "resolved": "https://registry.npmjs.org/import-cwd/-/import-cwd-2.1.0.tgz",
"integrity": "sha1-qmzzbnInYShcs3HsZRn1PiQ1sKk=", "integrity": "sha512-Ew5AZzJQFqrOV5BTW3EIoHAnoie1LojZLXKcCQ/yTRyVZosBhK1x1ViYjHGf5pAFOq8ZyChZp6m/fSN7pJyZtg==",
"dev": true, "dev": true,
"requires": { "requires": {
"import-from": "^2.1.0" "import-from": "^2.1.0"
...@@ -6361,7 +6615,7 @@ ...@@ -6361,7 +6615,7 @@
"import-from": { "import-from": {
"version": "2.1.0", "version": "2.1.0",
"resolved": "https://registry.npmjs.org/import-from/-/import-from-2.1.0.tgz", "resolved": "https://registry.npmjs.org/import-from/-/import-from-2.1.0.tgz",
"integrity": "sha1-M1238qev/VOqpHHUuAId7ja387E=", "integrity": "sha512-0vdnLL2wSGnhlRmzHJAg5JHjt1l2vYhzJ7tNLGbeVg0fse56tpGaH0uzH+r9Slej+BSXXEHvBKDEnVSLLE9/+w==",
"dev": true, "dev": true,
"requires": { "requires": {
"resolve-from": "^3.0.0" "resolve-from": "^3.0.0"
...@@ -6560,8 +6814,7 @@ ...@@ -6560,8 +6814,7 @@
"is-buffer": { "is-buffer": {
"version": "1.1.6", "version": "1.1.6",
"resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",
"integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="
"dev": true
}, },
"is-callable": { "is-callable": {
"version": "1.1.5", "version": "1.1.5",
...@@ -6922,6 +7175,12 @@ ...@@ -6922,6 +7175,12 @@
"integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==",
"dev": true "dev": true
}, },
"json-parse-even-better-errors": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
"integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
"dev": true
},
"json-schema": { "json-schema": {
"version": "0.2.3", "version": "0.2.3",
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
...@@ -6994,6 +7253,12 @@ ...@@ -6994,6 +7253,12 @@
"integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==",
"dev": true "dev": true
}, },
"klona": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/klona/-/klona-2.0.5.tgz",
"integrity": "sha512-pJiBpiXMbt7dkzXe8Ghj/u4FfXOOa98fPW+bihOJ4SjnoijweJrNThJfd3ifXpXhREjpoF2mZVH1GfS9LV3kHQ==",
"dev": true
},
"launch-editor": { "launch-editor": {
"version": "2.2.1", "version": "2.2.1",
"resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.2.1.tgz", "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.2.1.tgz",
...@@ -7294,6 +7559,16 @@ ...@@ -7294,6 +7559,16 @@
"object-visit": "^1.0.0" "object-visit": "^1.0.0"
} }
}, },
"md5": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz",
"integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==",
"requires": {
"charenc": "0.0.2",
"crypt": "0.0.2",
"is-buffer": "~1.1.6"
}
},
"md5.js": { "md5.js": {
"version": "1.3.5", "version": "1.3.5",
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz",
...@@ -7968,7 +8243,7 @@ ...@@ -7968,7 +8243,7 @@
"normalize-range": { "normalize-range": {
"version": "0.1.2", "version": "0.1.2",
"resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz",
"integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==",
"dev": true "dev": true
}, },
"normalize-url": { "normalize-url": {
...@@ -8015,7 +8290,7 @@ ...@@ -8015,7 +8290,7 @@
"num2fraction": { "num2fraction": {
"version": "1.2.2", "version": "1.2.2",
"resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz",
"integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", "integrity": "sha512-Y1wZESM7VUThYY+4W+X4ySH2maqcA+p7UR+w8VWNWVAd6lwuXXWz/w/Cz43J/dI2I+PS6wD5N+bJUF+gjWvIqg==",
"dev": true "dev": true
}, },
"number-is-nan": { "number-is-nan": {
...@@ -8549,6 +8824,12 @@ ...@@ -8549,6 +8824,12 @@
"integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=",
"dev": true "dev": true
}, },
"picocolors": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz",
"integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==",
"dev": true
},
"pify": { "pify": {
"version": "4.0.1", "version": "4.0.1",
"resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
...@@ -8707,9 +8988,9 @@ ...@@ -8707,9 +8988,9 @@
} }
}, },
"postcss-load-config": { "postcss-load-config": {
"version": "2.1.0", "version": "2.1.2",
"resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-2.1.0.tgz", "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-2.1.2.tgz",
"integrity": "sha512-4pV3JJVPLd5+RueiVVB+gFOAa7GWc25XQcMp86Zexzke69mKf6Nx9LRcQywdz7yZI9n1udOxmLuAwTBypypF8Q==", "integrity": "sha512-/rDeGV6vMUo3mwJZmeHfEDvwnTKKqQ0S7OHUi/kJvvtx3aWtyWG2/0ZWnzCt2keEclwN6Tf0DST2v9kITdOKYw==",
"dev": true, "dev": true,
"requires": { "requires": {
"cosmiconfig": "^5.0.0", "cosmiconfig": "^5.0.0",
...@@ -8717,27 +8998,86 @@ ...@@ -8717,27 +8998,86 @@
} }
}, },
"postcss-loader": { "postcss-loader": {
"version": "3.0.0", "version": "6.2.1",
"resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-3.0.0.tgz", "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.1.tgz",
"integrity": "sha512-cLWoDEY5OwHcAjDnkyRQzAXfs2jrKjXpO/HQFcc5b5u/r7aa471wdmChmwfnv7x2u840iat/wi0lQ5nbRgSkUA==", "integrity": "sha512-WbbYpmAaKcux/P66bZ40bpWsBucjx/TTgVVzRZ9yUO8yQfVBlameJ0ZGVaPfH64hNSBh63a+ICP5nqOpBA0w+Q==",
"dev": true, "dev": true,
"requires": { "requires": {
"loader-utils": "^1.1.0", "cosmiconfig": "^7.0.0",
"postcss": "^7.0.0", "klona": "^2.0.5",
"postcss-load-config": "^2.0.0", "semver": "^7.3.5"
"schema-utils": "^1.0.0"
}, },
"dependencies": { "dependencies": {
"schema-utils": { "cosmiconfig": {
"version": "1.0.0", "version": "7.0.1",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz",
"integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"ajv": "^6.1.0", "@types/parse-json": "^4.0.0",
"ajv-errors": "^1.0.0", "import-fresh": "^3.2.1",
"ajv-keywords": "^3.1.0" "parse-json": "^5.0.0",
"path-type": "^4.0.0",
"yaml": "^1.10.0"
} }
},
"import-fresh": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
"integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",
"dev": true,
"requires": {
"parent-module": "^1.0.0",
"resolve-from": "^4.0.0"
}
},
"lru-cache": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
"integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
"dev": true,
"requires": {
"yallist": "^4.0.0"
}
},
"parse-json": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
"integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
"dev": true,
"requires": {
"@babel/code-frame": "^7.0.0",
"error-ex": "^1.3.1",
"json-parse-even-better-errors": "^2.3.0",
"lines-and-columns": "^1.1.6"
}
},
"path-type": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
"integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
"dev": true
},
"resolve-from": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
"integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
"dev": true
},
"semver": {
"version": "7.3.7",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz",
"integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==",
"dev": true,
"requires": {
"lru-cache": "^6.0.0"
}
},
"yallist": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
"dev": true
} }
} }
}, },
...@@ -10182,6 +10522,15 @@ ...@@ -10182,6 +10522,15 @@
"safe-buffer": "^5.0.1" "safe-buffer": "^5.0.1"
} }
}, },
"sha1": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/sha1/-/sha1-1.1.1.tgz",
"integrity": "sha512-dZBS6OrMjtgVkopB1Gmo4RQCDKiZsqcpAQpkV/aaj+FCrCg8r4I4qMkDPQjBgLIxlmu9k4nUbWq6ohXahOneYA==",
"requires": {
"charenc": ">= 0.0.1",
"crypt": ">= 0.0.1"
}
},
"shallow-clone": { "shallow-clone": {
"version": "3.0.1", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz",
...@@ -10212,6 +10561,23 @@ ...@@ -10212,6 +10561,23 @@
"integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==", "integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==",
"dev": true "dev": true
}, },
"side-channel": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
"integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
"requires": {
"call-bind": "^1.0.0",
"get-intrinsic": "^1.0.2",
"object-inspect": "^1.9.0"
},
"dependencies": {
"object-inspect": {
"version": "1.12.2",
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz",
"integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ=="
}
}
},
"signal-exit": { "signal-exit": {
"version": "3.0.2", "version": "3.0.2",
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
...@@ -10427,6 +10793,11 @@ ...@@ -10427,6 +10793,11 @@
"is-plain-obj": "^1.0.0" "is-plain-obj": "^1.0.0"
} }
}, },
"sortablejs": {
"version": "1.10.2",
"resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.10.2.tgz",
"integrity": "sha512-YkPGufevysvfwn5rfdlGyrGjt7/CRHwvRPogD/lC+TnvcN29jDpCifKP+rBqf+LRldfXSTh+0CGLcSg0VIxq3A=="
},
"source-list-map": { "source-list-map": {
"version": "2.0.1", "version": "2.0.1",
"resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz",
...@@ -11369,6 +11740,24 @@ ...@@ -11369,6 +11740,24 @@
"integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==",
"dev": true "dev": true
}, },
"update-browserslist-db": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.5.tgz",
"integrity": "sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q==",
"dev": true,
"requires": {
"escalade": "^3.1.1",
"picocolors": "^1.0.0"
},
"dependencies": {
"picocolors": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
"integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==",
"dev": true
}
}
},
"upper-case": { "upper-case": {
"version": "1.1.3", "version": "1.1.3",
"resolved": "https://registry.npmjs.org/upper-case/-/upper-case-1.1.3.tgz", "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-1.1.3.tgz",
...@@ -11582,11 +11971,6 @@ ...@@ -11582,11 +11971,6 @@
"vue-style-loader": "^4.1.0" "vue-style-loader": "^4.1.0"
} }
}, },
"vue-router": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.1.3.tgz",
"integrity": "sha512-8iSa4mGNXBjyuSZFCCO4fiKfvzqk+mhL0lnKuGcQtO1eoj8nq3CmbEG8FwK5QqoqwDgsjsf1GDuisDX4cdb/aQ=="
},
"vue-style-loader": { "vue-style-loader": {
"version": "4.1.2", "version": "4.1.2",
"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.2.tgz", "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.2.tgz",
...@@ -11613,10 +11997,13 @@ ...@@ -11613,10 +11997,13 @@
"integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==", "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==",
"dev": true "dev": true
}, },
"vuex": { "vuedraggable": {
"version": "3.1.2", "version": "2.24.3",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.1.2.tgz", "resolved": "https://registry.npmjs.org/vuedraggable/-/vuedraggable-2.24.3.tgz",
"integrity": "sha512-ha3jNLJqNhhrAemDXcmMJMKf1Zu4sybMPr9KxJIuOpVcsDQlTBYLLladav2U+g1AvdYDG5Gs0xBTb0M5pXXYFQ==" "integrity": "sha512-6/HDXi92GzB+Hcs9fC6PAAozK1RLt1ewPTLjK0anTYguXLAeySDmcnqE8IC0xa7shvSzRjQXq3/+dsZ7ETGF3g==",
"requires": {
"sortablejs": "1.10.2"
}
}, },
"watchpack": { "watchpack": {
"version": "1.6.0", "version": "1.6.0",
...@@ -12123,6 +12510,12 @@ ...@@ -12123,6 +12510,12 @@
"integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
"dev": true "dev": true
}, },
"yaml": {
"version": "1.10.2",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",
"integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",
"dev": true
},
"yargs": { "yargs": {
"version": "15.1.0", "version": "15.1.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-15.1.0.tgz", "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.1.0.tgz",
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"core-js": "^3.4.4", "core-js": "^3.4.4",
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.4.6", "glsx-components": "^1.4.8",
"glsx-table": "^1.0.9" "glsx-table": "^1.0.9"
}, },
"devDependencies": { "devDependencies": {
......
<template> <template>
<div id="app"> <div id="app">
<keep-alive include="aiCard">
<router-view /> <router-view />
</keep-alive>
</div> </div>
</template> </template>
...@@ -17,7 +19,26 @@ export default { ...@@ -17,7 +19,26 @@ export default {
gs: '' gs: ''
} }
}, },
watch: {
$route(to) {
document.querySelector('.el-main .el-scrollbar__wrap').scrollTo(0, 0)
}
},
beforeDestroy() {
document.onkeydown = function() {
return true
}
},
created() { created() {
document.onkeydown = function() {
var evt = window.event || arguments[0]
if (evt && evt.keyCode == 13) {
if (typeof evt.cancelBubble != 'undefined') evt.cancelBubble = true
if (typeof evt.stopPropagation == 'function') evt.stopPropagation()
return false
}
return true
}
this.myMsg = this.msg this.myMsg = this.msg
this.myMessage = this.message this.myMessage = this.message
} }
......
/**
* 新增参数sign 判断接口是否需要sign签名
*/
/**
* 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
* @param {*} params
* @returns
*/
import { http } from '@/main'
//校验外呼任务名称重复
const checkTask = params => {
params.method = 'entmicro.api.outbound.call.merchant.check.task.name'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//创建任务
const createTask = params => {
params.method = 'entmicro.api.outbound.call.merchant.create.task'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//删除任务
const taskDelete = params => {
params.method = 'entmicro.api.outbound.call.merchant.task.delete'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//任务列表
const taskPage = params => {
params.method = 'entmicro.api.outbound.call.merchant.task.page'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//任务详情
const taskDetail = params => {
params.method = 'entmicro.api.outbound.task.detail'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//任务详情
const phoneStatusPage = params => {
params.method = 'entmicro.api.outbound.task.phoneStatus.page'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//任务详情
const phoneCheck = params => {
params.method = 'entmicro.api.outbound.call.phone.check'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
checkTask,
createTask,
taskDelete,
taskPage,
taskDetail,
phoneStatusPage,
phoneCheck
}
/**
* 新增参数sign 判断接口是否需要sign签名
*/
/**
* 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
* @param {*} params
* @returns
*/
import { http_common } from '@/main'
const pictureUpload = params => {
params.method = 'glsx.accounts.biz.common.pictureUpload'
return http_common({
url: '/router?method=glsx.accounts.biz.common.pictureUpload',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
export default {
pictureUpload
}
/**
* 新增参数sign 判断接口是否需要sign签名
*/
/**
* 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
* @param {*} params
* @returns
*/
import { http } from '@/main'
const getFollower = params => {
params.method = 'entmicro.api.staff.listFollowerStaffByPage'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
const getStaffList = params => {
params.method = 'entmicro.api.staff.findStaffByMerchantId'
return http({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
sign: true
})
}
const findAllByPage = params => {
params.method = 'entmicro.api.dracIm.findAllByPage'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//删除联系方式
const deleteContact = params => {
params.method = 'entmicro.api.drac.rescue.deleteContact'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//救援卡详情
const getConfigDetail = params => {
params.method = 'entmicro.api.drac.rescue.config.getConfigDetail'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//救援卡联系方式列表
const listContact = params => {
params.method = 'entmicro.api.drac.rescue.listContact'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//道路救援卡客户列表查询接口
const listCustomer = params => {
params.method = 'entmicro.api.drac.rescue.listCustomer'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//道路救援卡客户列表查询接口
const listCustomerExport = params => {
params.method = 'entmicro.api.drac.rescue.listCustomerExport'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//保存救援卡配置
const saveConfig = params => {
params.method = 'entmicro.api.drac.rescue.saveConfig'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//保存联系方式
const saveContact = params => {
params.method = 'entmicro.api.drac.rescue.saveContact'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//道路救援卡客户列表查询接口
const updateConfig = params => {
params.method = 'entmicro.api.drac.rescue.config.updateConfig'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//编辑联系方式
const updateContact = params => {
params.method = 'entmicro.api.drac.rescue.updateContact'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
const validFirst = params => {
params.method = 'entmicro.api.drac.rescue.config.validFirst'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
getStaffList,
getFollower,
findAllByPage,
deleteContact,
getConfigDetail,
listContact,
listCustomer,
listCustomerExport,
saveConfig,
saveContact,
updateConfig,
updateContact,
validFirst
}
...@@ -274,6 +274,17 @@ const isOpenSmartcarlife = params => { ...@@ -274,6 +274,17 @@ const isOpenSmartcarlife = params => {
sign: true sign: true
}) })
} }
//精品是否开通
const viewData = params => {
params.method = 'entmicro.api.Customer.customer.view.data'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
getChart, getChart,
getView, getView,
...@@ -300,5 +311,6 @@ export default { ...@@ -300,5 +311,6 @@ export default {
marketingOpen, marketingOpen,
isOpenSmartcarlife, isOpenSmartcarlife,
serviceBillOpen, serviceBillOpen,
serviceBillStat serviceBillStat,
viewData
} }
import { http } from '@/main'
const path = 'entmicro.api.mass.'
const URL = 'rop-scrm-entmicro/router'
//权益卡
const getCard = params => {
params.method = 'scrm.api.equity.open.card.price.list.by.merchantid'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
//权益卡
const merchant = params => {
params.method = 'scrm.api.equity.open.card.price.list.by.merchantid'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
//是否开通权益
const merchantOpen = params => {
params.method = 'scrm.api.equity.service.merchant.config.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
//优惠券
const getCoupon = params => {
params.method = 'scrm.api.boutiquecoupon.coupon.page'
return http({
url: '/rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
//套餐
const getPackage = params => {
params.method = 'scrm.api.equity.package.info.list.with.page'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const getMerchant = params => {
params.method = 'scrm.api.coupon.list.merchant'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true
})
}
//秒杀活动
const getActivity = params => {
params.method = 'scrm.api.shopmall.activity.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取素材组列表
const getGroupListApi = params => {
params.method = 'marketing.api.material.group.list'
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取素材列表
const getMaterialListApi = params => {
// params.method = 'marketing.api.material.page'
params.method = 'marketing.api.material.sop.page'
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
//模板列表
const templatePage = params => {
params.method = `${path}template.page.search`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
//模板保存
const templateSave = params => {
params.method = `${path}template.save`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
//模板更新
const templateUpdate = params => {
params.method = `${path}template.update`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
//模板创建人
const createdNameList = params => {
params.method = `${path}template.created.name.list`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
export default {
getCard,
merchant,
getActivity,
getPackage,
getMerchant,
getCoupon,
merchantOpen,
getGroupListApi,
getMaterialListApi,
templatePage,
createdNameList,
templateUpdate,
templateSave
}
...@@ -98,10 +98,11 @@ img { ...@@ -98,10 +98,11 @@ img {
.scrm-p20 { .scrm-p20 {
padding: 20px; padding: 20px;
} }
.scrm-p020 {
padding: 0px 20px;
}
.scrm-box-f { .scrm-box-f {
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
} }
.count-item-question { .count-item-question {
width: 14px; width: 14px;
......

644 Bytes | W: | H:

527 Bytes | W: | H:

src/assets/img/question.png
src/assets/img/question.png
src/assets/img/question.png
src/assets/img/question.png
  • 2-up
  • Swipe
  • Onion skin
<template>
<div class="square-main" v-loading="loading">
<el-dialog title="选择跟进专员" :visible.sync="dialogVisible" width="50%" :before-close="handleClose">
<el-form :inline="true" :model="tableSearchForm">
<el-form-item size="small" label="员工">
<el-input v-model="tableSearchForm.staffName" placeholder="请输入员工姓名"></el-input>
</el-form-item>
<el-form-item size="small" class="emp-form-btn">
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
<GLTable :hasNum="false" v-if="dialogVisible" ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch" @selectionTable="selectionTable">
<div slot="options" slot-scope="scope" @change="changeSelect">
<el-radio :label="scope.scope.id" v-model="selectId"></el-radio>
</div>
</GLTable>
<span slot="footer" class="dialog-footer">
<a class="dialog-jump" @click="jumpUrl">新增专员</a>
<el-button size="small" @click="handleCancel">取 消</el-button>
<el-button size="small" type="primary" @click.native="handleSelect">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import { utils } from 'glsx-common'
import util from '@/utils/util'
export default {
name: 'selectEmp',
data() {
return {
selectId: '',
loading: false,
dialogVisible: false,
tableSearchForm: {},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: {
listName: 'data',
tableOption: false,
// 行数据的key
mutiSelectUniqueKey: 'id',
tableColumns: [
{
label: '',
prop: '',
addHtml: 'options',
width: 100
},
{
label: '姓名',
prop: 'staffName'
},
{
label: '部门',
prop: 'departmentName'
},
{
label: '跟进专员类型',
prop: 'followerTypeName'
}
]
},
layout: 'sizes, prev, pager, next, jumper, ->, total',
tableData: [],
tableTotal: 0,
selectItem: [],
selectEmp: []
}
},
methods: {
jumpUrl() {
util.openTab(location.origin + '/settings/followUp/index')
},
getFollower() {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum
}
this.$apis.helpCard.getFollower(params).then(res => {
this.tableData = res.data
this.tableTotal = res.count
})
},
init(item) {
if (item.length == 0) {
this.selectId = ''
}
this.tableSearchForm = {}
this.dialogVisible = true
this.$nextTick(() => {
this.$refs.table.page.pageNum = 1
this.getFollower()
})
},
handleSearch() {
this.getFollower()
},
selectionTable(val) {
this.selectItem = val
},
handleClose() {
this.handleCancel()
},
handleCancel: utils.debounce(function() {
this.dialogVisible = false
}, 300),
changeSelect() {
let list = this.tableData.filter(item => {
return item['id'] == this.selectId
})
this.selectEmp = {
id: list[0].id,
staffName: list[0].staffName
}
},
handleSelect: utils.debounce(function() {
this.loading = true
const { selectEmp } = this
console.log(selectEmp)
if (selectEmp.length == 0) {
this.$message.error('请选择员工')
return
}
this.loading = false
this.dialogVisible = false
this.$emit('selectTable', [selectEmp])
}, 300)
}
}
</script>
<style lang="scss" scoped>
.emp-form-btn {
margin-left: 20px;
}
.dialog-jump {
color: #5850ff;
float: left;
line-height: 24px;
text-decoration: underline;
cursor: pointer;
}
.square-main {
/deep/ {
.el-radio__label {
display: none;
}
.el-table {
height: 40vh;
overflow-y: auto;
}
.el-table::before {
left: 0;
bottom: 0;
width: 100%;
height: 0px;
}
}
}
</style>
<template>
<div class="square-main" v-loading="loading">
<el-dialog title="选择跟进专员" :visible.sync="dialogVisible" width="50%" :before-close="handleClose">
<el-form :inline="true" :model="tableSearchForm">
<el-form-item size="small" label="员工">
<el-input v-model="tableSearchForm.staffName" placeholder="请输入员工姓名"></el-input>
</el-form-item>
<el-form-item size="small" class="emp-form-btn">
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
<GLTable v-if="dialogVisible" ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch" @selectionTable="selectionTable"></GLTable>
<span slot="footer" class="dialog-footer">
<a class="dialog-jump" @click="jumpUrl">新增专员</a>
<el-button size="small" @click="handleCancel">取 消</el-button>
<el-button size="small" type="primary" @click.native="handleSelect">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import { utils } from 'glsx-common'
import util from '@/utils/util'
export default {
name: 'selectEmp',
data() {
return {
loading: false,
dialogVisible: false,
tableSearchForm: {},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: {
listName: 'data',
tableOption: false,
// 行数据的key
mutiSelectUniqueKey: 'id',
// 多选ref的名称
mutiSelectName: 'salelist',
tableColumns: [
{
label: '姓名',
prop: 'staffName'
},
{
label: '部门',
prop: 'departmentName'
},
{
label: '跟进专员类型',
prop: 'followerTypeName'
}
]
},
layout: 'sizes, prev, pager, next, jumper, ->, total',
tableData: [],
tableTotal: 0,
selectItem: [],
selectEmp: []
}
},
methods: {
jumpUrl() {
util.openTab(location.origin + '/settings/followUp/index')
},
getFollower() {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum
}
this.$apis.helpCard.getFollower(params).then(res => {
this.tableData = res.data
this.tableTotal = res.count
this.tableData.forEach(item => {
this.selectEmp.forEach((itm, index) => {
if (itm.staffId == item.id) {
this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(item)
this.selectEmp.splice(index, 1)
}
})
})
})
},
init(item) {
this.tableSearchForm = {}
this.selectEmp = JSON.parse(JSON.stringify(item))
this.dialogVisible = true
this.$nextTick(() => {
this.$refs.table.page.pageNum = 1
this.getFollower()
})
},
handleSearch() {
this.getFollower()
},
selectionTable(val) {
this.selectItem = val
},
handleClose() {
this.handleCancel()
},
handleCancel: utils.debounce(function() {
this.dialogVisible = false
this.$refs.table.$refs.salelistMutiTable.clearSelection()
}, 300),
handleSelect: utils.debounce(function() {
this.loading = true
let selectEmp = this.selectEmp.map(item => {
return {
id: item.staffId,
staffName: item.staffName
}
})
const selectItem = this.selectItem.concat(selectEmp)
if (selectItem.length == 0) {
this.$message.error('请选择员工')
return
}
this.loading = false
this.dialogVisible = false
this.$emit('selectTable', this.selectItem.concat(selectEmp))
this.$refs.table.$refs.salelistMutiTable.clearSelection()
}, 300)
}
}
</script>
<style lang="scss" scoped>
.emp-form-btn {
margin-left: 20px;
}
.dialog-jump {
color: #5850ff;
float: left;
line-height: 24px;
text-decoration: underline;
cursor: pointer;
}
.square-main {
/deep/ {
.el-table {
height: 40vh;
overflow-y: auto;
}
.el-table::before {
left: 0;
bottom: 0;
width: 100%;
height: 0px;
}
}
}
</style>
...@@ -17,7 +17,8 @@ export const fetchConfig = function(isEnv = true) { ...@@ -17,7 +17,8 @@ export const fetchConfig = function(isEnv = true) {
// Object.assign(request, { timeout }) // Object.assign(request, { timeout })
// return Promise.resolve(cfg) // return Promise.resolve(cfg)
// } // }
return new Http().get('https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config') // return new Http().get('https://oss-config.dev.glsx.com.cn/mock/616d28231072f92988f059fb/home/config')
return new Http().get('https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -15,6 +15,6 @@ import { start } from '@/setup' ...@@ -15,6 +15,6 @@ import { start } from '@/setup'
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.prototype.$apis = apis Vue.prototype.$apis = apis
start() start()
export { bootstrap, mount, unmount } export { bootstrap, mount, unmount } from '@/setup'
from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
export const http_common = params => Vue.prototype.$http_common(params)
const staticRoutes = Object.freeze([{ const staticRoutes = Object.freeze([
{
name: 'Home', name: 'Home',
path: '/home/index', path: '/home/index',
meta: {}, meta: {},
component: resolve => require([`@/views/home/index.vue`], resolve) component: resolve => require([`@/views/home/index.vue`], resolve)
},
{
name: 'aiCard',
path: '/home/aiCard',
meta: {},
component: resolve => require([`@/views/home/aiCard.vue`], resolve)
} }
]) ])
export default staticRoutes export default staticRoutes
...@@ -2,27 +2,31 @@ import Vue from 'vue' ...@@ -2,27 +2,31 @@ import Vue from 'vue'
// import { message } from '@/plugins/element.js' // import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config' import { fetchConfig } from '@/config'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限动态创建) import { GLButton, GLTable, GLFull } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router' import { getRoutes } from '@/router'
import GLEditor from 'glsx-components/src/packages/Editor'
import render from './render' import render from './render'
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
// import GLTable from '@/components/glsx-table/index' Vue.use(GLEditor)
// Vue.component('GLTable', GLTable) Vue.use(GLFull)
// import GLTable from '@/components/glsx-table/index'
// Vue.component('GLTable', GLTable)
// import 'glsx-components/src/theme/theme.scss' // import 'glsx-components/src/theme/theme.scss'
import 'glsx-components/dist/glsx-components.css' import 'glsx-components/dist/glsx-components.css'
import '@/assets/css/common.scss' import '@/assets/css/common.scss'
let routes = [] let routes = []
let router = null let router = null
let instance = null let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState,routerBase }) { export async function bootstrap({ name, id, history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret } = await fetchConfig() const { response, request, sign, secret, request_common, sign_common } = await fetchConfig()
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData) routes = getRoutes(routesData)
subscribe({ messenger }) subscribe({ messenger })
......
...@@ -15,69 +15,14 @@ const render = (base, routes) => { ...@@ -15,69 +15,14 @@ const render = (base, routes) => {
const router = new VueRouter({ const router = new VueRouter({
base, base,
routes, routes,
mode: 'history' mode: 'history',
}) scrollBehavior() {
router.beforeEach((to, from, next) => { return {
let modelStatus = false; x: 0,
let menuStatus = false; y: 0
const menu = JSON.parse(sessionStorage['SCRM_BASE_MENULIST'])
menu.forEach(item => {
if (!item.children) {
return
}
item.children.forEach(itm => {
if (itm.path == '/enterpriseWechat/index') {
menuStatus = true;
}
})
})
if (menuStatus && Vue.prototype.$globalState.session.merchantModel == 1 && Vue.prototype.$globalState.session.accountLevel == 1) {
modelStatus = true;
}
if (menuStatus && Vue.prototype.$globalState.session.merchantModel == 2 && Vue.prototype.$globalState.session.accountLevel == 4) {
modelStatus = true;
} }
if (!sessionStorage.getItem('wxStatus') && (to.path == '/home/index' || to.path == '/ehome/index') && modelStatus) {
Vue.prototype.$apis.ww.getStatus({}).then((res) => {
if (res.status != 'SUCCESS') {
Vue.prototype.$history.push('/settings/enterpriseWechat/index')
sessionStorage.setItem('wxStatus', 1)
} else {
sessionStorage.setItem('wxAcess', 1)
next()
}
})
} else {
next();
} }
}) })
// router.beforeEach((to, from, next) => {
// let modelStatus = false;
// let menu = JSON.parse(sessionStorage.getItem('SCRM_BASE_MENULIST'));
// let menuStatus = menu[0].children.find(item => {
// return item.path.indexOf('enterpriseWechat/index') != -1
// })
// if (menuStatus && Vue.prototype.$globalState.session.merchantModel == 1 && Vue.prototype.$globalState.session.accountLevel == 1) {
// modelStatus = true;
// }
// if (menuStatus && Vue.prototype.$globalState.session.merchantModel == 2 && Vue.prototype.$globalState.session.accountLevel == 4) {
// modelStatus = true;
// }
// if (!sessionStorage.getItem('wxStatus') && (to.path == '/home/index' || to.path == '/ehome/index') && modelStatus) {
// Vue.prototype.$apis.ww.getStatus({}).then((res) => {
// if (res.status != 'SUCCESS') {
// next('/enterpriseWechat/index')
// sessionStorage.setItem('wxStatus', 1)
// } else {
// sessionStorage.setItem('wxAcess', 1)
// next()
// }
// })
// } else {
// next();
// }
// })
const vm = new Vue({ const vm = new Vue({
router, router,
store, store,
......
import { Message } from 'element-ui' import { Message } from 'element-ui'
let util = {} let util = {}
util.cloneText = function (message) { util.cloneText = function(message) {
let input = document.createElement('input') let input = document.createElement('input')
input.value = message input.value = message
document.body.appendChild(input) document.body.appendChild(input)
...@@ -9,77 +9,83 @@ util.cloneText = function (message) { ...@@ -9,77 +9,83 @@ util.cloneText = function (message) {
document.body.removeChild(input) document.body.removeChild(input)
Message.success('复制成功') Message.success('复制成功')
} }
util.getBeforeDate = function (sign = '-') { util.getBeforeDate = function(sign = '-') {
let day = new Date(); let day = new Date()
let month = day.getMonth() + 1; let month = day.getMonth() + 1
let date = day.getDate(); let date = day.getDate()
if (month < 10) month = '0' + month; if (month < 10) month = '0' + month
if (date < 10) date = '0' + date; if (date < 10) date = '0' + date
var s = day.getFullYear() + sign + month + sign + date; var s = day.getFullYear() + sign + month + sign + date
return s; return s
} }
util.getTimeFomat = function (time,sign = '-') { util.getTimeFomat = function(time, sign = '-') {
let day = new Date(time); let day = new Date(time)
let month = day.getMonth() + 1; let month = day.getMonth() + 1
let date = day.getDate(); let date = day.getDate()
let hour = day.getHours(); let hour = day.getHours()
let mm = day.getMinutes() let mm = day.getMinutes()
if (month < 10) month = '0' + month; if (month < 10) month = '0' + month
if (date < 10) date = '0' + date; if (date < 10) date = '0' + date
if (hour < 10) hour = '0' + hour; if (hour < 10) hour = '0' + hour
if (mm < 10) mm = '0' + mm; if (mm < 10) mm = '0' + mm
var s = day.getFullYear() + sign + month + sign + date + ' ' + hour + ':' + mm; var s = day.getFullYear() + sign + month + sign + date + ' ' + hour + ':' + mm
return s; return s
} }
util.getBetweenDate = function (day, num, str = '-') { util.getBetweenDate = function(day, num, str = '-') {
var today = new Date(day); var today = new Date(day)
var nowTime = today.getTime(); var nowTime = today.getTime()
var ms = 24 * 3600 * 1000 * (num - 1); var ms = 24 * 3600 * 1000 * (num - 1)
today.setTime(parseInt(nowTime - ms)); today.setTime(parseInt(nowTime - ms))
var oYear = today.getFullYear(); var oYear = today.getFullYear()
var oMoth = (today.getMonth() + 1).toString(); var oMoth = (today.getMonth() + 1).toString()
if (oMoth.length <= 1) oMoth = '0' + oMoth; if (oMoth.length <= 1) oMoth = '0' + oMoth
var oDay = today.getDate().toString(); var oDay = today.getDate().toString()
if (oDay.length <= 1) oDay = '0' + oDay; if (oDay.length <= 1) oDay = '0' + oDay
return oYear + str + oMoth + str + oDay; return oYear + str + oMoth + str + oDay
} }
util.getBeforeMonth = function (days) { util.getBeforeMonth = function(days) {
let month = new Date().getMonth() + 1; let month = new Date().getMonth() + 1
let year = new Date().getFullYear(); let year = new Date().getFullYear()
let arr = new Array(); let arr = new Array()
for (let i = 0; i < days; i++) { for (let i = 0; i < days; i++) {
if (month <= 0) { if (month <= 0) {
year = year - 1; year = year - 1
month = month + 12; month = month + 12
} }
if (month < 10) month = '0' + month; if (month < 10) month = '0' + month
arr[i] = year + '年' + month + '月' arr[i] = year + '年' + month + '月'
month-- month--
} }
return arr; return arr
} }
util.getPrevMonth = function () { util.getPrevMonth = function() {
let month = new Date().getMonth(); let month = new Date().getMonth()
let year = new Date().getFullYear(); let year = new Date().getFullYear()
if(month == 0) { if (month == 0) {
year = year - 1 year = year - 1
month = 12 month = 12
} }
return year + '年' + month + '月'; return year + '年' + month + '月'
}
util.getCurrentMonthLast = function(date) {
var endDate = new Date(date)
var month = endDate.getMonth()
var nextMonth = ++month
var nextMonthFirstDay = new Date(endDate.getFullYear(), nextMonth, 1)
var oneDay = 1000 * 60 * 60 * 24
var dateString = new Date(nextMonthFirstDay - oneDay)
return dateString.toLocaleDateString().replace(new RegExp('/', 'g'), '-') //toLocaleDateString() 返回 如:2018/8/31
} }
util.getCurrentMonthLast = function (date) { util.openUrl = function(url) {
var endDate = new Date(date); const link = document.createElement('a')
var month = endDate.getMonth(); link.href = url
var nextMonth = ++month; link.click()
var nextMonthFirstDay = new Date(endDate.getFullYear(), nextMonth, 1);
var oneDay = 1000 * 60 * 60 * 24;
var dateString = new Date(nextMonthFirstDay - oneDay);
return dateString.toLocaleDateString().replace(new RegExp('/', 'g'), "-"); //toLocaleDateString() 返回 如:2018/8/31
} }
util.openUrl = function (url) { util.openTab = function(url) {
const link = document.createElement('a') const link = document.createElement('a')
link.href = url link.href = url
link.target = '_blank'
link.rel = 'opener'
link.click() link.click()
} }
export default util export default util
...@@ -21,13 +21,13 @@ ...@@ -21,13 +21,13 @@
</el-popover> </el-popover>
</div> </div>
<div class="summary-item-total"> <div class="summary-item-total">
<div > <div>
{{ totalNewCustomerCount }} {{ totalNewCustomerCount }}
<span>人</span> <span>人</span>
</div> </div>
<div class="summary-radio" :class="{ 'radio-green': totalCountDayToDayRadio > 0, 'radio-red': totalCountDayToDayRadio < 0 }"> <div class="summary-radio" :class="{ 'radio-green': totalCountDayToDayRadio > 0, 'radio-red': totalCountDayToDayRadio < 0 }">
日环比: 日环比:
<span>{{ totalCountDayToDayRadio | valueF}}</span> <span>{{ totalCountDayToDayRadio | valueF }}</span>
<i class="el-icon-caret-top" v-if="totalCountDayToDayRadio > 0"></i> <i class="el-icon-caret-top" v-if="totalCountDayToDayRadio > 0"></i>
<i class="el-icon-caret-bottom" v-if="totalCountDayToDayRadio < 0"></i> <i class="el-icon-caret-bottom" v-if="totalCountDayToDayRadio < 0"></i>
</div> </div>
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</div> </div>
<div class="summary-radio" :class="{ 'radio-green': entmicroCountDayToDayRadio > 0, 'radio-red': entmicroCountDayToDayRadio < 0 }"> <div class="summary-radio" :class="{ 'radio-green': entmicroCountDayToDayRadio > 0, 'radio-red': entmicroCountDayToDayRadio < 0 }">
日环比: 日环比:
<span>{{ entmicroCountDayToDayRadio | valueF}}</span> <span>{{ entmicroCountDayToDayRadio | valueF }}</span>
<i class="el-icon-caret-top" v-if="entmicroCountDayToDayRadio > 0"></i> <i class="el-icon-caret-top" v-if="entmicroCountDayToDayRadio > 0"></i>
<i class="el-icon-caret-bottom" v-if="entmicroCountDayToDayRadio < 0"></i> <i class="el-icon-caret-bottom" v-if="entmicroCountDayToDayRadio < 0"></i>
</div> </div>
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
</div> </div>
<div class="summary-radio" :class="{ 'radio-green': lostCountDayToDayRadio > 0, 'radio-red': lostCountDayToDayRadio < 0 }"> <div class="summary-radio" :class="{ 'radio-green': lostCountDayToDayRadio > 0, 'radio-red': lostCountDayToDayRadio < 0 }">
日环比: 日环比:
<span>{{ lostCountDayToDayRadio | valueF}}</span> <span>{{ lostCountDayToDayRadio | valueF }}</span>
<i class="el-icon-caret-top" v-if="lostCountDayToDayRadio > 0"></i> <i class="el-icon-caret-top" v-if="lostCountDayToDayRadio > 0"></i>
<i class="el-icon-caret-bottom" v-if="lostCountDayToDayRadio < 0"></i> <i class="el-icon-caret-bottom" v-if="lostCountDayToDayRadio < 0"></i>
</div> </div>
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
</div> </div>
<div class="summary-radio" :class="{ 'radio-green': dayRadio > 0, 'radio-red': dayRadio < 0 }"> <div class="summary-radio" :class="{ 'radio-green': dayRadio > 0, 'radio-red': dayRadio < 0 }">
日环比: 日环比:
<span>{{ dayRadio | valueF}}</span> <span>{{ dayRadio | valueF }}</span>
<i class="el-icon-caret-top" v-if="dayRadio > 0"></i> <i class="el-icon-caret-top" v-if="dayRadio > 0"></i>
<i class="el-icon-caret-bottom" v-if="dayRadio < 0"></i> <i class="el-icon-caret-bottom" v-if="dayRadio < 0"></i>
</div> </div>
...@@ -185,7 +185,6 @@ ...@@ -185,7 +185,6 @@
<custom-detail ref="customForm"></custom-detail> <custom-detail ref="customForm"></custom-detail>
</div> </div>
</template> </template>
<script> <script>
import customDetail from './detail/customDetail.vue' import customDetail from './detail/customDetail.vue'
import util from '@/utils/util' import util from '@/utils/util'
...@@ -253,9 +252,9 @@ export default { ...@@ -253,9 +252,9 @@ export default {
}, },
filters: { filters: {
valueF(val) { valueF(val) {
if(val == null) { if (val == null) {
return '--' return '--'
}else { } else {
return val + '%' return val + '%'
} }
} }
...@@ -520,7 +519,6 @@ export default { ...@@ -520,7 +519,6 @@ export default {
} }
} }
}, },
mounted() { mounted() {
this.getViewData() this.getViewData()
this.getChart() this.getChart()
...@@ -535,7 +533,6 @@ export default { ...@@ -535,7 +533,6 @@ export default {
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.summary-header { .summary-header {
display: flex; display: flex;
...@@ -576,7 +573,6 @@ export default { ...@@ -576,7 +573,6 @@ export default {
height: 172px; height: 172px;
padding: 0.5vw 1vw; padding: 0.5vw 1vw;
box-sizing: border-box; box-sizing: border-box;
margin-right: 20px; margin-right: 20px;
background: linear-gradient(360deg, #f7f7ff 0%, #f3f5f8 100%); background: linear-gradient(360deg, #f7f7ff 0%, #f3f5f8 100%);
&:last-of-type { &:last-of-type {
......
<template>
<div class="ai-main">
<div class="ai-main-header">
<div class="ai-main-title">
离店客户加企微
</div>
<div class="ai-main-desc">系统将通过AI机器人,使用门店的福利官企微号自动添加客户,并自动发放客户福利权益。</div>
</div>
<div class="ai-main-guidance scrm-box-f">
<div class="ai-main-guidance-item">
<div class="ai-main-guidance-item-head">
<img src="@/assets/img/ai/edit.png" />
<div class="ai-main-guidance-item-title">导入待添加客户手机号</div>
</div>
<div class="ai-main-guidance-item-info">提供完善的客户信息,有助于提升好友通过率</div>
</div>
<div class="ai-arrow">
<img src="@/assets/img/ai/arrow.png" />
</div>
<div class="ai-main-guidance-item">
<div class="ai-main-guidance-item-head">
<img src="@/assets/img/ai/add.png" />
<div class="ai-main-guidance-item-title">平台专员全程操作添加</div>
</div>
<div class="ai-main-guidance-item-info">需授权平台专员登录您企微账号,以便让客户添加至您的企微。</div>
</div>
<div class="ai-arrow">
<img src="@/assets/img/ai/arrow.png" />
</div>
<div class="ai-main-guidance-item">
<div class="ai-main-guidance-item-head">
<img src="@/assets/img/ai/text.png" />
<div class="ai-main-guidance-item-title">查看添加好友结果</div>
</div>
<div class="ai-main-guidance-item-info">系统将对执行结果进行自动分类,并提供报表直观呈现。</div>
</div>
</div>
<el-button type="primary" icon="el-icon-plus" size="small" @click="handleAdd">创建加好友任务</el-button>
<el-tabs v-model="activeIndex" type="card" class="ai-tab">
<el-tab-pane label="任务队列" :name="1"></el-tab-pane>
<el-tab-pane label="任务记录" :name="2"></el-tab-pane>
</el-tabs>
<ai-tabel :activeIndex="activeIndex" ref="AiForm"></ai-tabel>
<GLDialog title="创建任务" okText="创建" v-loading="loading" @onOk="handleSure" @onCancel="dialogVisible = false" :visible.sync="dialogVisible">
<el-form ref="addForm" class="code-body-form" label-width="120px">
<div class="el-form-item is-required el-form-item--small">
<label for="remark" class="el-form-item__label" style="width: 120px;">任务名称:</label>
<div class="el-form-item__content" style="margin-left: 120px;">
<div class="el-input el-input--small">
<input type="text" @blur="checkTask" v-model.trim="taskName" autocomplete="off" placeholder="请输入任务名称" maxlength="10" class="el-input__inner" />
</div>
<!-- <div class="tips-error" v-if="taskStatus">请输入任务名称</div> -->
</div>
</div>
<div class="el-form-item is-required el-form-item--small">
<label for="remark" class="el-form-item__label" style="width: 120px;">导入手机号:</label>
<div class="el-form-item__content" style="margin-left: 120px;">
<div class="import-link">
<div class="upload-btn">
<el-button size="small">
<i class="el-icon-plus"></i>
上传手机号
</el-button>
<input type="file" style="opacity: 0" ref="file" accept="*" @change="uploadFile" />
</div>
<a href="https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/待加客户好友模板.xlsx">手机号模板</a>
</div>
<div class="upload-result" v-if="fileName">
<div class="upload-name">{{ fileName }}</div>
<div class="upload-del">
<i
class="el-icon-delete"
@click="
fileName = ''
url = ''
"
></i>
</div>
</div>
<div class="form-tips" v-if="fileName">共{{ ImportResult.success }}条数据</div>
<div class="form-tips">提示:文件最大允许1000条手机号数据</div>
<!-- <div class="tips-error" v-if="fileStatus">请上传上传手机号</div> -->
</div>
</div>
<div class="el-form-item is-required el-form-item--small">
<label for="remark" class="el-form-item__label" style="width: 120px;">选择专员:</label>
<div class="el-form-item__content" style="margin-left: 120px;">
<div class="market-content">
<el-button size="small" @click="handleAddEmp">
<i class="el-icon-plus"></i>
选择专员
</el-button>
<div class="el-input-tag input-tag-wrapper" v-show="staffInfo.length">
<GLFull :label="tag.staffName" :identi="`${tag.staffId}`" labelWidth="110" textType="user" :haveClose="true" v-for="(tag, idx) in staffInfo" :key="idx" @handleRemove="removeStaff(idx)"></GLFull>
</div>
</div>
<div class="form-tips">选择专员后,将会生成带该专员企微二维码链接的短信给到客户来加好友,以提高加微率</div>
<!-- <div class="tips-error" v-if="staffStatus">请选择专员</div> -->
</div>
</div>
</el-form>
</GLDialog>
<GLDialog title="导入数据失败" :hasFooter="true" mode="small" :visible.sync="importVisible">
<div class="dialog-body-panel">
<div class="import-result">
<label>{{ ImportResult.error }}</label>
条数据异常
</div>
<div class="import-tips">数据异常的可能原因:</div>
<div class="import-reason">
<div class="import-reason-content">1、存在不正确的手机号格式数据</div>
<div class="import-reason-content">2、存在重复的手机号数据</div>
<div class="import-reason-content">3、文件数据超出1000条限制</div>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="importVisible = false">
取消
</el-button>
<el-button size="small" type="primary" @click="handleImport">导出错误数据</el-button>
</span>
</GLDialog>
<select-emp @selectTable="selectTable" ref="selectEmpForm"></select-emp>
</div>
</template>
<script>
import selectEmp from '@/components/selectEmp/emp'
import aiTabel from './components/ai-tabel.vue'
import util from '@/utils/util'
export default {
name: 'aiCard',
components: {
selectEmp,
aiTabel
},
data() {
return {
loading: false,
taskStatus: false,
fileStatus: false,
staffStatus: false,
activeIndex: 1,
dialogVisible: false,
importVisible: false,
dialogVisibleDel: false,
staffInfo: [],
ImportResult: {},
taskName: '',
url: '',
fileName: ''
}
},
methods: {
handleImport() {
util.openUrl(this.ImportResult.errUrl)
},
handleAdd() {
this.staffInfo = []
this.taskName = ''
this.url = ''
this.fileName = ''
this.dialogVisible = true
this.taskStatus = false
},
selectTable(item) {
this.staffInfo = item.map(item => {
return {
staffId: item.id,
staffName: item.staffName
}
})
},
uploadFile(e) {
const file = e.srcElement.files[0]
let AllImgExt = '.xls|.xlsx'
let extName = file.name.substring(file.name.lastIndexOf('.')).toLowerCase()
console.log(extName)
if (AllImgExt.indexOf(extName) === -1) {
this.$message.error('上传格式不正确')
return false
}
const size = file.size / 1024 / 1024
// if (size > 8) {
// this.$message.error('单文件体积需小于8M')
// return
// }
const reader = new FileReader()
reader.readAsDataURL(file)
reader.onload = event => {
const imgFile = event.target.result
const arrBase64 = imgFile.split(',')
const splitStr = file.name.split('.')
const fileUrl = splitStr[splitStr.length - 1] + '@' + arrBase64[1]
this.$apis.common.pictureUpload({ file: fileUrl }).then(res => {
if (res) {
this.phoneCheck(file.name, res)
}
this.$refs.file.value = ''
})
}
},
removeStaff(index) {
this.staffInfo.splice(index, 1)
},
phoneCheck(fileName, url) {
this.$apis.aiCard.phoneCheck({ url }).then(res => {
if (res) {
this.ImportResult = res
if (res.error > 0) {
this.importVisible = true
} else {
this.fileName = fileName
this.url = url
}
}
})
},
checkTask() {
this.taskName = this.taskName.replace(/[^[\u4E00-\u9FA5\w]/g, '').replace(/^_/, '')
const { taskName } = this
if (!taskName) {
return
}
this.$apis.aiCard.checkTask({ taskName }).then(res => {
this.taskStatus = res
})
},
handleSure() {
const staffInfo = this.staffInfo.map(item => item.staffId)
const staffId = staffInfo.join(',')
const { url, fileName, taskName } = this
if (!taskName) {
this.$message.error('请输入任务名称')
return
}
if (this.taskStatus) {
this.$message.error('任务名称已重复')
return
}
if (!fileName) {
this.$message.error('请上传手机号')
return
}
if (staffInfo.length == 0) {
this.$message.error('请选择专员')
return
}
this.loading = true
this.$apis.aiCard.createTask({ url, fileName, taskName, staffId }).then(res => {
if (res) {
this.dialogVisible = false
this.$refs.AiForm.handleSeach()
this.loading = false
}
})
},
handleAddEmp() {
this.staffStatus = false
this.$refs.selectEmpForm.init(this.staffInfo)
}
}
}
</script>
<style lang="scss" scoped>
.dialog-body-panel {
.import-result {
font-size: 16px;
font-weight: 600;
color: #333333;
line-height: 22px;
label {
color: #eb4e4e;
}
}
.import-tips {
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 20px;
margin: 6px 0px;
}
.import-reason {
height: 92px;
background: #f5f5f5;
padding: 16px;
box-sizing: border-box;
&-content {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
}
}
}
.ai-tab {
/deep/ {
.el-tabs__nav {
border: none;
}
.el-tabs__header {
margin: 0px;
}
.el-tabs__item.is-active {
background: #fff;
border-bottom: none !important;
}
.el-tabs__item {
border: 1px solid #e5e5e5 !important;
border-bottom: none;
border-radius: 4px 4px 0px 0px;
&:first-child {
margin-right: 5px;
}
}
}
}
.tips-error {
color: #f56c6c;
font-size: 12px;
line-height: 20px;
height: 20px;
}
.ai-main-header {
background: #fff;
padding: 16px 20px;
.ai-main-title {
font-size: 20px;
color: #333333;
font-weight: 600;
}
.ai-main-desc {
margin-top: 10px;
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 22px;
}
}
.ai-main-guidance {
display: flex;
padding: 20px;
box-sizing: border-box;
align-items: center;
margin: 16px 0px;
.ai-main-guidance-item {
flex: 1;
height: 112px;
background: linear-gradient(180deg, #f3f2f8 0%, #f9f9fc 100%);
padding: 16px 20px;
box-sizing: border-box;
&-head {
display: flex;
align-items: center;
margin-bottom: 8px;
img {
width: 22px;
height: 22px;
margin-right: 10px;
}
}
&-title {
font-size: 16px;
font-weight: 600;
color: #333333;
line-height: 22px;
}
&-info {
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
}
.ai-arrow {
margin: 0 16px;
width: 20px;
height: 15px;
img {
width: 100%;
}
}
}
.input-tag-wrapper {
position: relative;
font-size: 14px;
background-color: #fff;
background-image: none;
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #666;
display: inline-block;
outline: none;
padding: 5px;
max-height: 68px;
overflow: auto;
flex-wrap: wrap;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 450px;
display: flex;
align-items: center;
margin-top: 6px;
font-size: 14px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
.form-tips {
font-size: 12px;
font-weight: 400;
color: #999999;
line-height: 17px;
margin-top: 5px;
}
.upload-result {
display: flex;
align-items: center;
.upload-name {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
margin-right: 5px;
padding-left: 10px;
height: 26px;
line-height: 26px;
background: #f5f7fa;
border-radius: 2px;
flex: 1;
}
i {
cursor: pointer;
color: #c6c6c6;
}
}
.import-link {
display: flex;
cursor: pointer;
.upload-btn {
position: relative;
display: inline-block;
input {
cursor: pointer;
position: absolute;
height: 100%;
width: 100%;
top: 0px;
left: 0px;
font-size: 0px;
}
}
a {
margin-left: 6px;
color: #5850ff;
}
}
.ai-tab {
margin-top: 16px;
}
.preview-panel {
/deep/ {
.el-image-viewer__img {
width: 320px;
height: 624px;
}
}
}
</style>
<template>
<div class="help-main">
<div class="help-tabel scrm-box-f">
<GLTable v-show="taskNum" @setTableFinishFun="setTableFinishFun" :noDataImg="url" ref="taskForm" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDel(scope.scope)" :disabled="scope.scope.taskStatus == 2 || scope.scope.taskStatus == 3">删除</el-button>
<el-button type="text" @click="goDetail(scope.scope)" v-if="activeIndex == 2">数据详情</el-button>
</div>
<template slot="taskStatus" slot-scope="scope">
<div :class="['task_icon', `task_icon${scope.scope.taskStatus}`]">{{ taskStatus(scope.scope.taskStatus) }}</div>
</template>
<template slot="phoneCount" slot-scope="scope">
<div class="process-box" v-if="activeIndex == 1">
<div class="process-bar">
<div class="process-bar-item" :style="{ width: calcNum(scope.scope) }"></div>
</div>
<div class="process-val">{{ calcNum(scope.scope) }}</div>
</div>
<div class="process-box" v-if="activeIndex == 2">
<div class="process-bar">
<div class="process-bar-item" :style="{ width: '100%' }"></div>
</div>
<div class="process-val">{{ scope.scope.executedCount ? scope.scope.executedCount : 0 }}</div>
</div>
</template>
</GLTable>
<div class="tabel-null" v-show="taskNum == 0">
<div class="tabel-null-panel">
<div class="null-image"><img src="@/assets/img/empty.png" /></div>
<div class="null-desc">
暂无数据,
<label @click="$parent.handleAdd">添加数据</label>
</div>
</div>
</div>
</div>
<GLDialog title="提示" @onOk="handleDelSure" @onCancel="dialogVisibleDel = false" type="error" content="是否删除?" :visible.sync="dialogVisibleDel" mode="small"></GLDialog>
</div>
</template>
<script>
const TASK_STATUS = [
{
label: '待执行',
value: 1
},
{
label: '执行中',
value: 2
},
{
label: '执行中',
value: 3
},
{
label: '已完成',
value: 4
}
]
export default {
name: 'resultStatistics',
data() {
return {
isFirstEnter: false,
taskNum: 0,
dialogVisibleDel: false,
taskId: '',
tableSearchForm: {},
createTime: '',
dialogVisible: true,
getListApi: this.$apis.aiCard.taskPage,
tableParams: {
tableOption: false,
checkSelectKey: 'id',
checkSelectVal: [],
hasNum: false,
listName: 'data',
tableColumns: []
},
tableColumns1: [
{
label: '任务名称',
prop: 'taskName',
minWidth: 140,
line: 1
},
{
label: '状态',
prop: 'taskStatus',
minWidth: 140,
addHtml: 'taskStatus'
},
{
label: '进度',
prop: 'phoneCount',
minWidth: 200,
addHtml: 'phoneCount'
},
{
label: '创建时间',
prop: 'createdTime'
},
{
label: '操作',
prop: 'optionBtns',
width: '90px',
addHtml: 'optionBtns',
fixed: 'right'
}
],
tableColumns2: [
{
label: '任务名称',
prop: 'taskName',
minWidth: 140,
line: 1
},
{
label: '状态',
prop: 'taskStatus',
addHtml: 'taskStatus'
},
{
label: '执行总数',
prop: 'phoneCount',
width: 200,
addHtml: 'phoneCount'
},
{
label: '已通过申请',
prop: 'passCount',
width: 200,
line: 1
},
{
label: '不存在的手机号用户',
prop: 'unExistCount',
width: 200,
line: 1
},
{
label: '提交时间',
prop: 'submitTime',
width: 170
},
{
label: '操作',
prop: 'optionBtns',
width: '160px',
addHtml: 'optionBtns',
fixed: 'right'
}
],
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
baseData: {
allMerchantList: [],
roleList: [],
staffStatusList: []
}
}
},
props: {
activeIndex: Number
},
activated() {
if (!this.isFirstEnter) {
this.handleSeach()
}
this.isFirstEnter = false
},
watch: {
activeIndex(val) {
if (val == 2) {
this.tableParams.tableColumns = this.tableColumns2
} else {
this.tableParams.tableColumns = this.tableColumns1
}
this.handleSeach()
}
},
created() {
this.isFirstEnter = true
this.tableParams.tableColumns = this.tableColumns1
},
methods: {
calcNum(val) {
let count = '0%'
if (val.phoneCount) {
count = (100 * val.executedCount) / val.phoneCount
count = (count > 100 ? 100 : Number.isInteger(count) ? count : count.toFixed(2)) + '%'
}
return count
},
taskStatus(status) {
return TASK_STATUS.find(item => item.value == status).label
},
//删除
handleDel(scope) {
this.taskId = scope.id
this.dialogVisibleDel = true
},
handleDelSure() {
const { taskId, activeIndex } = this
this.$apis.aiCard.taskDelete({ taskId, deleteType: activeIndex }).then(res => {
this.dialogVisibleDel = false
this.handleSeach()
})
},
handleSeach() {
this.$refs.taskForm.refreshTable()
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm.taskStatus = this.activeIndex == 1 ? 1 : 4
resolve()
})
},
setTableFinishFun(val) {
this.taskNum = val.length
this.$refs.taskForm.data.length ? (this.$refs.taskForm.tableHeightValues = '') : this.$refs.taskForm.setTableHeightFun()
},
goDetail(scope) {
this.$router.push('/home/taskDetail?id=' + scope.id)
}
}
}
</script>
<style lang="scss" scoped>
.scrm-box-f {
padding: 20px;
}
.tabel-null {
min-height: calc(100vh - 480px);
display: flex;
justify-content: center;
align-items: center;
&-panel {
.null-image {
margin: 5px auto;
width: 64px;
}
.null-desc {
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 22px;
label {
color: #5850ff;
cursor: pointer;
}
}
}
}
.process-box {
display: flex;
align-items: center;
width: 200px;
.process-bar {
margin-right: 6px;
}
.process-val {
width: 80px;
}
}
.process-bar {
width: 100%;
height: 6px;
background: #e7e7e7;
position: relative;
border-radius: 6px;
.process-bar-item {
position: absolute;
top: 0px;
border-radius: 6px;
left: 0px;
height: 6px;
background: #5850ff;
}
}
.task_icon {
position: relative;
&::after {
content: '';
position: absolute;
top: 4px;
left: -10px;
width: 6px;
height: 6px;
border-radius: 4px;
}
&.task_icon1 {
&::after {
background: #fdb757;
}
}
&.task_icon2 {
&::after {
background: #5850ff;
}
}
&.task_icon3 {
&::after {
background: #5850ff;
}
}
&.task_icon4 {
&::after {
background: #2cca74;
}
}
}
.select-panel {
display: flex;
margin-bottom: 10px;
justify-content: space-between;
align-items: center;
.help-tabel-name {
font-size: 16px;
color: #333333;
text-align: left;
line-height: 16px;
font-weight: 500;
}
.help-select-date {
display: flex;
align-items: center;
.select-date-input {
margin-right: 10px;
}
}
}
</style>
<template>
<div class="help-main" v-loading="loading">
<div class="help-container">
<div class="help-header scrm-p020">
<div class="help-header-title">道路救援卡</div>
</div>
<div class="scrm-p20">
<div class="help-card-panel">
<div class="help-card-image">
<canvas id="cv" width="342" height="150" v-if="backgroundId == 1 || backgroundId == 2"></canvas>
<canvas id="cv" width="241" height="241" v-else></canvas>
</div>
<div class="help-card-link">
<span @click="downloadIamge">下载原图</span>
<span @click="changeBackground">更换背景</span>
</div>
</div>
</div>
</div>
<div class="help-store-container">
<div class="help-container">
<div class="help-header scrm-p020">
<div class="help-header-title">门店名称</div>
</div>
<div class="address-panel">
<div class="address-info" v-if="storeEdit">
{{ merchantName }}
</div>
<div class="address-info" v-else>
<el-input v-model="merchantName" placeholder="请输入内容" maxlength="15"></el-input>
</div>
<div class="address-config" v-show="storeEdit" @click="storeEdit = false">配置</div>
<div class="address-config" v-show="!storeEdit">
<span @click="handleStoreSave">保存</span>
<span @click="storeEdit = true">取消</span>
</div>
</div>
</div>
<div class="help-container">
<div class="help-header scrm-p020">
<div class="help-header-title">门店地址</div>
</div>
<div class="address-panel">
<div class="address-info" v-if="addressEdit">
{{ merchantAddress }}
</div>
<div class="address-info" v-else>
<el-input v-model="merchantAddress" placeholder="请输入内容" maxlength="40"></el-input>
</div>
<div class="address-config" v-show="addressEdit" @click="addressEdit = false">配置</div>
<div class="address-config" v-show="!addressEdit">
<span @click="handleAddressSave">保存</span>
<span @click="addressEdit = true">取消</span>
</div>
</div>
</div>
</div>
<div class="help-container">
<div class="help-header scrm-p020">
<div class="help-header-title">联系方式</div>
<div class="help-header-config" @click="handleAdd">新增</div>
</div>
<div class="contact-tabel scrm-p20">
<GLTable :hasPage="false" ref="taskForm" :tableData="tableData" :tableTotal="tableTotal" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleEdit(scope.scope)">编辑</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
</div>
</GLTable>
</div>
</div>
<div class="help-container">
<div class="help-header scrm-p020">
<div class="help-header-title">救援商机跟进员</div>
<div class="help-header-config" @click="handleConfig">配置</div>
</div>
<div class="config-info">
<div class="config-item">
<div class="market-title">
<label>*</label>
跟进专员:
</div>
<div class="market-content">{{ followStaffName }}</div>
</div>
<div class="config-item">
<div class="market-title">
<label>*</label>
欢迎语:
</div>
<div class="market-content">
<div class="market-content-item">
<div :class="{ 'content-html': itm.attType == 1 }" v-for="(itm, index) in dracScrmWelcomeConfigDTOS" :key="index">
<template v-if="itm.attType == 1">
<div v-html="itm.attContent" class="welcome-box-name"></div>
</template>
<template v-else-if="itm.attType == 2">
<div class="welcome-img-box" :style="`background-image: url('${itm.attContent}')`"></div>
</template>
<template v-else-if="itm.attType == 3">
<div class="video-panel">
<video id="video" width="100%" height="100%" preload loop muted>
<source :src="itm.attContent" type="video/mp4" />
</video>
</div>
</template>
<template v-else-if="itm.attType == 7">
<div class="welcome-activity-panel">
<div class="welcome-activity-box">
<div class="welcome-activity-icon">
<img src="@/assets/img/home/coupon.png" alt="" v-if="marketingContent(itm).selectType == 'coupon'" />
<img src="@/assets/img/home/gift.png" alt="" v-else />
</div>
<div class="welcome-activity-desc">
<template v-if="marketingContent(itm).selectType == 'card'">
<div class="model-item-title" :title="marketingContent(itm).equityName">{{ marketingContent(itm).equityName }}</div>
<div class="model-item-content model-item-contents">
试用天数:
<span>{{ marketingContent(itm).freeDay }}天</span>
</div>
</template>
<template v-else-if="marketingContent(itm).selectType == 'package'">
<div class="model-item-title" :title="marketingContent(itm).packageName">{{ marketingContent(itm).packageName }}</div>
<div class="model-item-content model-item-contents">
销售价格:
<span>{{ marketingContent(itm).packagePrice }}元</span>
</div>
</template>
<template v-else-if="marketingContent(itm).selectType == 'coupon'">
<div class="model-item-title" :title="marketingContent(itm).couponName">{{ marketingContent(itm).couponName }}</div>
<div class="model-item-content model-item-contents">
数量:
<span>{{ marketingContent(itm).residueAmount }}</span>
</div>
</template>
<template v-else-if="marketingContent(itm).selectType == 'activity'">
<div class="model-item-title" :title="marketingContent(itm).activityName">{{ marketingContent(itm).activityName }}</div>
<div class="model-item-content"></div>
<div class="model-item-content">
开始时间:
{{ marketingContent(itm).startTime }}
</div>
<div class="model-item-content">
结束时间:
{{ marketingContent(itm).endTime }}
</div>
</template>
<template v-else-if="marketingContent(itm).selectType == 'crowdfunding'">
<div class="model-item-title" :title="marketingContent(itm).activityName">{{ marketingContent(itm).activityName }}</div>
<div class="model-item-content"></div>
</template>
<template v-else>
<div class="model-item-title" :title="marketingContent(itm).couponName">{{ marketingContent(itm).equityName }}</div>
<div class="model-item-content model-item-weight">
赠送天数:
<span>{{ marketingContent(itm).effectiveType == 2 ? marketingContent(itm).effectivedDay + '天' : '永久有效' }}</span>
</div>
</template>
</div>
</div>
</div>
<!-- <img src="../../../assets/welcomeWord/icon-applet.png" alt />
<span :title="JSON.parse(itm.attContent).marketingName">{{ JSON.parse(itm.attContent).marketingName }}</span> -->
</template>
<template v-else-if="itm.attType == 6">
<div class="welcome-activity-panel">
<div class="welcome-activity-box">
<div class="welcome-activity-icon">
<img src="@/assets/img/home/pdf_r.png" v-if="itm.attContent" />
</div>
<div class="welcome-activity-desc">
<div class="model-item-title">{{ JSON.parse(itm.attContent).fileName }}</div>
</div>
<div class="delete-solid">
<i class="el-icon-delete-solid" @click="close(index)"></i>
</div>
</div>
</div>
</template>
</div>
</div>
</div>
</div>
</div>
</div>
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisible = false" :visible.sync="dialogVisible">
<el-form ref="addForm" :model="addForm" class="code-body-form" label-width="120px" :rules="addRules">
<el-form-item label="号码备注" prop="remark" size="small" class="form-w40">
<el-input size="small" v-model.trim="addForm.remark" placeholder="请输入号码备注" maxlength="6"></el-input>
</el-form-item>
<el-form-item label="联系方式" prop="contactInformation" size="small" class="form-w40">
<el-input size="small" v-model.trim="addForm.contactInformation" placeholder="请输入联系方式" maxlength="15"></el-input>
</el-form-item>
<el-form-item label="同步到卡片" prop="configName" size="small" class="form-w40">
<el-switch v-model="addForm.isShow" :active-value="0" :inactive-value="-1"></el-switch>
</el-form-item>
</el-form>
</GLDialog>
<GLDialog title="提示" @onOk="handleDelSure" @onCancel="dialogVisibleDel = false" type="error" content="是否删除?" :visible.sync="dialogVisibleDel" mode="small"></GLDialog>
<component @cardConfigChecked="cardConfigChecked" :id="id" :backgroundId="backgroundId" :is="'select-card'" ref="cardForm" :boxHeight="boxHeight"></component>
<component @handleConfigChecked="handleConfigChecked" :is="'market-config'" ref="configForm" :boxHeight="boxHeight"></component>
</div>
</template>
<script>
import marketConfig from './config/marketConfig.vue'
import selectCard from './config/selectCard.vue'
export default {
name: 'card-config',
components: {
marketConfig,
selectCard
},
data() {
return {
loading: false,
dialogVisible: false,
dialogVisibleDel: false,
addForm: {
isShow: -1
},
merchantAddress: '',
merchantName: '',
followStaffName: '',
addressEdit: true,
storeEdit: true,
tableSearchForm: {},
tableData: [],
tableTotal: 0,
tableParams: {
tableOption: false,
checkSelectKey: 'id',
checkSelectVal: [],
hasNum: false,
listName: 'data',
tableColumns: [
{
label: '号码备注',
prop: 'remark'
},
{
label: '联系电话',
prop: 'contactInformation'
},
{
label: '同步到卡片',
prop: 'isShow',
formatter: cellValue => {
return cellValue.isShow == 0 ? '是' : '否'
}
},
{
label: '操作',
prop: 'optionBtns',
width: '120px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
addRules: {
remark: [{ required: true, message: '请输入号码备注', trigger: 'blur' }],
contactInformation: [{ required: true, message: '请输入联系电话', trigger: 'blur' }]
}
}
},
methods: {
marketingContent(val) {
return JSON.parse(val.attContent).marketingContent
},
listContact() {
this.$apis.helpCard.listContact({}).then(res => {
this.tableData = res
this.loading = false
this.$nextTick(() => {
this.createImage()
})
})
},
cardConfigChecked(val) {
this.backgroundId = val
const { id, backgroundId } = this
this.$apis.helpCard.updateConfig({ backgroundId, id }).then(res => {
this.getConfigDetail()
})
},
handleConfigChecked(param) {
const { id, configId, businessUuid } = this
this.$apis.helpCard.updateConfig({ ...param, id, businessUuid, configId }).then(res => {
this.getConfigDetail()
})
},
downloadIamge() {
if (this.merchantAddress && this.merchantName && this.followStaffName && this.tableData) {
var a = document.createElement('a') // 生成一个a元素
var event = new MouseEvent('click') // 创建一个单击事件
a.download = '名片' // 设置图片名称
a.href = this.toDataURL // 将生成的URL设置为a.href属性
a.dispatchEvent(event) // 触发a的单击事件
} else {
this.$message.error('请完整配置救援卡后,再下载救援码')
}
},
handleBorderRect(ctx, x, y, w, h, r) {
ctx.beginPath()
// 左上角
ctx.arc(x + r, y + r, r, Math.PI, 1.5 * Math.PI)
ctx.moveTo(x + r, y)
ctx.lineTo(x + w - r, y)
ctx.lineTo(x + w, y + r)
// 右上角
ctx.arc(x + w - r, y + r, r, 1.5 * Math.PI, 2 * Math.PI)
ctx.lineTo(x + w, y + h - r)
ctx.lineTo(x + w - r, y + h)
// 右下角
ctx.arc(x + w - r, y + h - r, r, 0, 0.5 * Math.PI)
ctx.lineTo(x + r, y + h)
ctx.lineTo(x, y + h - r)
// 左下角
ctx.arc(x + r, y + h - r, r, 0.5 * Math.PI, Math.PI)
ctx.lineTo(x, y + r)
ctx.lineTo(x + r, y)
ctx.fillStyle = '#fff'
ctx.fill()
ctx.closePath()
},
createImage() {
//生成名片
const card = this.tableData.filter(item => item.isShow == 0).reverse()
const cv = document.getElementById(`cv`)
const cW = cv.offsetWidth // 获取元素宽度
const cH = cv.offsetHeight // 获取元素高度
const ctx = cv.getContext('2d')
cv.width = cW
cv.height = cH
const phone1 = card.length > 0 ? card[0].remark + ':' + card[0].contactInformation : ''
const phone2 = card.length > 1 ? card[1].remark + ':' + card[1].contactInformation : ''
const { merchantAddress, merchantName } = this
const qrcodeTip = '微信扫码 及时救援'
ctx.clearRect(0, 0, cW, cH)
let img = document.createElement('img')
var img1 = new Image()
img1.setAttribute('crossOrigin', 'Anonymous')
let img2 = new Image()
img2.setAttribute('crossOrigin', 'Anonymous')
let img3 = new Image()
img3.setAttribute('crossOrigin', 'Anonymous')
let img4 = new Image()
img4.setAttribute('crossOrigin', 'Anonymous')
img.setAttribute('crossOrigin', 'Anonymous')
img.src = require(`@/assets/img/home/ncard${this.backgroundId}_${card.length}.png`)
img.onload = () => {
switch (this.backgroundId) {
case 1:
ctx.drawImage(img, 0, 0, cW, cH)
ctx.font = '8px PingFangSC-Medium'
ctx.fillStyle = '#333'
phone1 && ctx.fillText(phone1, 34, 116 - 14 * (card.length - 1))
phone2 && ctx.fillText(phone2, 34, 116)
if (merchantAddress.length > 18) {
ctx.fillText('门店地址:' + merchantAddress.substring(0, 18), 34, 131)
ctx.fillText(merchantAddress.substring(18), 34, 141)
} else {
ctx.fillText('门店地址:' + merchantAddress, 34, 131)
}
ctx.font = 'bold 12px PingFangSC-Medium'
ctx.fillStyle = '#333'
ctx.fillText(merchantName, 20, 26)
ctx.font = '9px PingFangSC-Medium'
ctx.fillStyle = '#333'
ctx.fillText(qrcodeTip, 236, 132)
img1.src = this.miniprogramCode
img1.onload = () => {
this.handleBorderRect(ctx, 220, 16, 100, 100, 50, '#fff')
ctx.clip()
ctx.drawImage(img1, 220, 16, 100, 100)
this.toDataURL = cv.toDataURL()
}
break
case 2:
ctx.drawImage(img, 0, 0, cW, cH)
ctx.font = '8px PingFangSC-Medium'
ctx.fillStyle = '#333'
phone1 && ctx.fillText(phone1, 34, 116 - 14 * (card.length - 1))
phone2 && ctx.fillText(phone2, 34, 116)
if (merchantAddress.length > 18) {
ctx.fillText('门店地址:' + merchantAddress.substring(0, 18), 34, 131)
ctx.fillText(merchantAddress.substring(18), 34, 141)
} else {
ctx.fillText('门店地址:' + merchantAddress, 34, 131)
}
ctx.font = 'bold 12px PingFangSC-Medium'
ctx.fillStyle = '#333'
ctx.fillText(merchantName, 20, 26)
ctx.font = '9px PingFangSC-Medium'
ctx.fillStyle = '#333'
ctx.fillText(qrcodeTip, 236, 130)
img2.src = this.miniprogramCode
img2.onload = () => {
this.handleBorderRect(ctx, 222, 16, 100, 100, 50, '#fff')
ctx.clip()
ctx.drawImage(img2, 222, 16, 100, 100)
this.toDataURL = cv.toDataURL()
}
break
case 3:
ctx.drawImage(img, 0, 0, cW, cH)
ctx.font = '8px PingFangSC-Medium'
ctx.fillStyle = '#333'
phone1 && ctx.fillText(phone1, 34, 62 + 14 * (card.length - 1))
phone2 && ctx.fillText(phone2, 34, 76 - 14 * (card.length - 1))
if (merchantAddress.length > 20) {
ctx.fillText('门店地址:' + merchantAddress.substring(0, 18), 34, 62 + 14 * card.length)
ctx.fillText(merchantAddress.substring(18), 34, 72 + 14 * card.length)
} else {
ctx.fillText('门店地址:' + merchantAddress, 34, 62 + 14 * card.length)
}
ctx.font = 'bold 12px PingFangSC-Medium'
ctx.fillStyle = '#fff'
ctx.fillText(merchantName, 46, 28)
img3.src = this.miniprogramCode
ctx.font = '9px PingFangSC-Medium'
ctx.fillStyle = '#333'
ctx.fillText(qrcodeTip, 86, 220)
img3.onload = () => {
this.handleBorderRect(ctx, 70, 106, 100, 100, 50, '#fff')
ctx.clip()
ctx.drawImage(img3, 70, 106, 100, 100)
this.toDataURL = cv.toDataURL()
}
break
case 4:
ctx.drawImage(img, 0, 0, cW, cH)
ctx.font = '8px PingFangSC-Medium'
ctx.fillStyle = '#333'
ctx.fillText(phone1, 34, 54 + 14 * (card.length - 1))
ctx.fillText(phone2, 34, 68 - 14 * (card.length - 1))
if (merchantAddress.length > 18) {
ctx.fillText('门店地址:' + merchantAddress.substring(0, 18), 34, 54 + 14 * card.length)
ctx.fillText(merchantAddress.substring(18), 34, 64 + 14 * card.length)
} else {
ctx.fillText('门店地址:' + merchantAddress, 34, 54 + 14 * card.length)
}
ctx.font = 'bold 12px PingFangSC-Medium'
ctx.fillStyle = '#333'
ctx.fillText(merchantName, 20, 34)
ctx.font = '9px PingFangSC-Medium'
ctx.fillStyle = '#fff'
ctx.fillText(qrcodeTip, 86, 220)
img4.src = this.miniprogramCode
img4.onload = () => {
this.handleBorderRect(ctx, 70, 106, 100, 100, 50, '#fff')
ctx.clip()
ctx.drawImage(img4, 70, 106, 100, 100)
this.toDataURL = cv.toDataURL()
}
break
}
}
},
handleConfig() {
const { followStaffName, followStaff } = this
let staff = []
if (followStaffName) {
const name = followStaffName.split(',')
const fid = followStaff.split(',')
staff = name.map((item, index) => {
return {
staffId: fid[index],
staffName: item
}
})
}
this.$refs.configForm.init(this.dracScrmWelcomeConfigDTOS, staff)
},
changeBackground() {
this.$refs.cardForm.init(this.backgroundId)
},
//修改门店
handleStoreSave() {
this.storeEdit = true
const { merchantName, id } = this
this.$apis.helpCard.updateConfig({ merchantName, id }).then(res => {
this.getConfigDetail()
})
},
//修改地址
handleAddressSave() {
this.addressEdit = true
const { merchantAddress, id } = this
this.$apis.helpCard.updateConfig({ merchantAddress, id }).then(res => {
this.getConfigDetail()
})
},
handleAdd() {
this.dialogVisible = true
this.addForm = {
isShow: -1
}
},
//编辑联系方式
handleEdit(scope) {
console.log(scope)
this.dialogVisible = true
this.addForm = Object.assign({}, scope)
},
handleSure() {
this.$refs['addForm'].validate(valid => {
if (valid) {
let contact
if (this.addForm.id) {
contact = 'updateContact'
} else {
contact = 'saveContact'
}
this.addForm.rescueCardId = this.id
this.$apis.helpCard[contact](this.addForm).then(res => {
if (res) {
this.$message.success('操作成功')
this.listContact()
this.dialogVisible = false
} else {
this.$message.error(res.message)
}
})
}
})
},
//删除联系方式
handleDelete(scope) {
this.addForm = scope
this.dialogVisibleDel = true
},
handleDelSure() {
const { id } = this.addForm
this.$apis.helpCard.deleteContact({ id }).then(res => {
this.$message.success('操作成功')
this.dialogVisibleDel = false
this.listContact()
})
},
//详情
async getConfigDetail() {
this.loading = true
const { merchantName, merchantAddress, id, backgroundId, followStaffName, configId, followStaff, dracScrmWelcomeConfigDTOS, businessUuid, miniprogramCode } = await this.$apis.helpCard.getConfigDetail({})
this.merchantName = merchantName ? merchantName : ''
this.merchantAddress = merchantAddress ? merchantAddress : ''
this.backgroundId = backgroundId
this.miniprogramCode = miniprogramCode
this.id = id
this.businessUuid = businessUuid
this.configId = configId
this.followStaffName = followStaffName ? followStaffName : ''
this.followStaff = followStaff ? followStaff : ''
this.dracScrmWelcomeConfigDTOS = dracScrmWelcomeConfigDTOS ? dracScrmWelcomeConfigDTOS : []
this.listContact()
},
validFirst() {
this.$apis.helpCard.validFirst({}).then(res => {
this.getConfigDetail()
})
}
},
mounted() {
this.validFirst()
}
}
</script>
<style lang="scss" scoped>
.help-main {
.help-card-panel {
display: flex;
align-items: flex-end;
.help-card-image {
}
.help-card-link {
span {
font-size: 14px;
color: #5a51ff;
text-align: left;
font-weight: 400;
margin-left: 20px;
cursor: pointer;
}
}
}
.address-panel {
padding: 20px;
display: flex;
align-items: center;
justify-content: space-between;
height: 36px;
.address-info {
width: 300px;
font-size: 14px;
color: #333333;
text-align: left;
line-height: 28px;
font-weight: 400;
}
.address-config {
font-size: 14px;
color: #5850ff;
letter-spacing: 0;
line-height: 14px;
font-weight: 400;
cursor: pointer;
span {
&:last-child {
color: #666;
margin-left: 10px;
}
}
}
}
.help-store-container {
display: flex;
.help-container {
width: 50%;
&:first-child {
margin-right: 20px;
}
}
}
.help-container {
background: #fff;
border-radius: 0px 4px 4px 4px;
margin-bottom: 16px;
.help-header {
height: 58px;
line-height: 58px;
border-bottom: 1px solid #e5e5e5;
display: flex;
align-items: center;
justify-content: space-between;
&-title {
font-size: 16px;
color: #333333;
text-align: left;
line-height: 28px;
font-weight: 500;
}
&-config {
font-size: 14px;
color: #5850ff;
letter-spacing: 0;
line-height: 14px;
font-weight: 400;
cursor: pointer;
}
}
}
.config-info {
padding: 30px 60px;
.config-item {
display: flex;
margin: 15px;
.market-title {
width: 120px;
text-align: right;
font-size: 14px;
color: #333333;
text-align: right;
line-height: 20px;
font-weight: 400;
margin-right: 6px;
label {
color: #eb4e4e;
}
}
.market-content {
flex: 1;
font-size: 14px;
color: #333333;
line-height: 20px;
.market-content-item {
display: flex;
flex-wrap: wrap;
.content-html {
width: 100%;
margin-bottom: 6px;
}
.welcome-img-box,
.video-panel {
width: 56px;
height: 56px;
margin-right: 10px;
}
video {
object-fit: fill;
}
.welcome-activity-panel {
display: flex;
margin-right: 10px;
.welcome-activity-box {
cursor: pointer;
position: relative;
min-width: 180px;
background: #fafbfe;
border-radius: 2px;
border: 1px solid #e8e8ea;
padding: 8px;
box-sizing: border-box;
display: flex;
.welcome-activity-icon {
width: 36px;
height: 36px;
margin-right: 8px;
position: relative;
background-size: 100% 100%;
img {
width: 100%;
height: 100%;
}
video {
object-fit: fill;
}
.el-icon-video-play {
position: absolute;
top: 7px;
left: 7px;
font-size: 22px;
color: rgba(255, 255, 255, 0.8);
}
.img-filter-box {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
color: rgba(255, 255, 255, 0.8);
display: flex;
font-size: 13px;
align-items: center;
justify-content: center;
}
}
.delete-solid {
transition: all 0.5s;
opacity: 0;
position: absolute;
top: 0px;
right: 0px;
width: 14px;
height: 14px;
background: rgba(0, 0, 0, 0.5);
display: flex;
font-size: 12px;
align-items: center;
justify-content: center;
}
.el-icon-delete-solid {
color: rgba(255, 255, 255, 0.5);
}
.model-item-title {
font-size: 14px;
font-weight: 600;
color: #333333;
line-height: 20px;
}
.model-item-content {
font-size: 12px;
font-weight: 400;
color: #999999;
line-height: 17px;
span {
color: #5850ff;
}
}
}
}
}
}
}
}
}
</style>
<template>
<div class="activity-main">
<el-drawer class="activity-drawer" size="50%" title="跟进员配置" :visible.sync="drawer" :before-close="handleClose" :append-to-body="true">
<div class="market-container">
<div v-if="title || $slots.title">
<slot name="title">{{ title }}</slot>
</div>
<div class="config-item">
<div class="market-title">
<label>*</label>
跟进专员:
</div>
<div class="market-content">
<el-button size="small" @click="handleAddEmp">
<i class="el-icon-plus"></i>
选择专员
</el-button>
<div class="el-input-tag input-tag-wrapper" v-show="staffInfo.length">
<GLFull :label="tag.staffName" :identi="`${tag.staffId}`" labelWidth="110" textType="user" :haveClose="true" v-for="(tag, idx) in staffInfo" :key="idx" @handleRemove="removeStaff(idx)"></GLFull>
</div>
</div>
</div>
<div class="config-item">
<div class="market-title">
<label>*</label>
配置欢迎语:
</div>
<div class="market-content" v-if="drawer">
<GLEditor ref="welcome" :btnList="btnList" @previewWord="previewForm"></GLEditor>
</div>
</div>
</div>
<div class="drawer-btn">
<el-button @click="drawer = false" size="small">
取消
</el-button>
<el-button type="primary" @click="handleSaveConfig" size="small">提交</el-button>
</div>
</el-drawer>
<select-emp @selectTable="selectTable" ref="selectEmpForm"></select-emp>
</div>
</template>
<script>
import selectEmp from '@/components/selectEmp'
export default {
name: 'marketConfig',
components: {
selectEmp
},
props: {
title: {
type: String,
default: ''
},
boxHeight: {
type: Number,
default: 200
}
},
data() {
return {
drawer: false,
staffInfo: [],
welcomeStatus: false,
btnList: [
{
name: '表情',
funcName: '',
type: 'expression',
limitSize: 10
},
{
name: '图片',
funcName: '',
type: 'img',
// togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
// limitSize: 10, //限制图片大小
// limitNum: 2, //限制图片数量
// limitWidth: 10000, //限制单张图片宽度
// limitHeight: 10000,//限制单张图片高度
// Isdraggable: true, //图片拖拽
uploadApi: this.$apis.common.pictureUpload
},
// {
// name: '视频',
// funcName: '',
// type: 'video',
// // limitSize: 10,//限制视频大小
// // togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
// // limitNum: 2,//限制视频数量
// // limitWidth: 10000,//限制视频宽度
// // limitHeight: 10000,//限制视频高度
// // limitTime: 2,//限制视频时长
// uploadApi: this.$apis.common.pictureUpload
// },
// {
// name: '昵称',
// type: 'nickname',
// funName: 'nickname'
// },
{
name: '活动',
type: 'activity',
funName: 'activity',
funParams: [
{
itemName: '权益卡试用',
itemValue: 3,
itemType: 'card',
getInterfaceApi: this.$apis.welcomeword.getCard,
params: {
tryAble: 1,
merchantId: this.$globalState.session.merchantId
}
},
{
itemName: '权益套餐',
itemValue: 4,
itemType: 'package',
getInterfaceApi: this.$apis.welcomeword.getPackage,
params: {}
},
{
itemName: '商城券',
itemValue: 2,
itemType: 'coupon',
getInterfaceApi: this.$apis.welcomeword.getMerchant,
params: {
discountTypes: [2, 3, 4],
directionalFlag: 1, // 1所有人可用2定向礼包专用3关联优惠券
validType: 'valid'
}
},
{
itemName: '秒杀活动',
itemValue: 5,
itemType: 'activity',
getInterfaceApi: this.$apis.welcomeword.getActivity,
params: {
activityStatus: 2,
currentPage: 1
}
},
{
itemName: '无忧服务',
itemValue: 6,
itemType: 'merchant',
getInterfaceApi: this.$apis.welcomeword.merchant,
merchantOpen: {
merchantOpenApi: this.$apis.welcomeword.merchantOpen,
params: {
merchantId: this.$globalState.session.merchantId
}
},
params: {
merchantId: this.$globalState.session.merchantId
}
}
]
},
{
name: '素材',
type: 'material',
funName: 'material',
groupListApi: this.$apis.welcomeword.getGroupListApi,
materialListApi: this.$apis.welcomeword.getMaterialListApi
// videoNo: true
// pdfNo: true
},
{
name: '模板',
type: 'message',
funName: 'message',
getSearchApi: this.$apis.welcomeword.createdNameList,
templateApi: this.$apis.welcomeword.templatePage,
templateUpdateApi: this.$apis.welcomeword.templateUpdate,
templateSaveApi: this.$apis.welcomeword.templateSave,
templateDetailApi: this.$apis.welcomeword.templateDetail
}
]
}
},
methods: {
handleAddEmp() {
this.staffStatus = false
this.$refs.selectEmpForm.init(this.staffInfo)
},
removeStaff(index) {
this.staffInfo.splice(index, 1)
},
selectTable(item) {
this.staffInfo = item.map(item => {
return {
staffId: item.id,
staffName: item.staffName
}
})
},
init(previewList, staff) {
const preview = this.$common.utils.deepClone(previewList)
this.drawer = true
this.$nextTick(() => {
preview.map(item => {
if (item.attType == 7) {
item.attContent = JSON.parse(item.attContent)
}
})
this.$refs.welcome.updateList(preview)
})
this.staffInfo = staff
},
handleSaveConfig() {
const param = {}
let staffId = []
this.staffInfo.forEach(item => {
staffId.push(item.staffId)
})
if (staffId.length == 0) {
this.$message.error('请选择跟进专员')
return
}
param.followStaff = staffId.join(',')
const previewList = this.$common ? this.$common.utils.deepClone(this.$refs.welcome.previewList) : this.$refs.welcome.previewList
if (previewList.length == 0) {
this.$message.error('请填写欢迎语')
return
}
const attachmentList = previewList.map(item => {
if (item.attType == 7) {
item.attContent = JSON.stringify(item.attContent)
}
return item
})
param.welcomeInfo = attachmentList
this.$emit('handleConfigChecked', param)
this.drawer = false
}
}
}
</script>
<style lang="scss" scoped>
.activity-drawer {
/deep/ .el-drawer__header {
border-bottom: 1px solid #e6e6e6;
padding: 18px 20px;
margin-bottom: 20px;
}
}
.market-container {
padding: 0px 20px 20px;
height: calc(100% - 84px);
}
.input-tag-wrapper {
position: relative;
font-size: 14px;
background-color: #fff;
background-image: none;
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #666;
display: inline-block;
outline: none;
padding: 5px;
max-height: 68px;
overflow: auto;
flex-wrap: wrap;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 450px;
display: flex;
align-items: center;
margin-top: 6px;
font-size: 14px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
.config-item {
display: flex;
margin: 15px;
.market-title {
width: 120px;
text-align: right;
font-size: 14px;
color: #333333;
text-align: right;
line-height: 20px;
font-weight: 400;
margin-right: 6px;
label {
color: #eb4e4e;
}
}
.market-content {
flex: 1;
}
}
.drawer-btn {
display: flex;
align-items: center;
justify-content: flex-end;
padding-right: 20px;
height: 64px;
border-top: 1px solid #e6e6e6;
}
</style>
<style>
/* .activity-drawer {
z-index: 3000 !important;
} */
</style>
<template>
<div class="help-main">
<el-drawer class="help-drawer" size="1080px" title="更换卡背景" :visible.sync="drawer" :before-close="handleClose">
<div class="market-container">
<div class="help-drawer-h4">预览</div>
<div class="drawer-overview">
<img :src="require(`@/assets/img/home/card${selectIndex}.png`)" alt="" />
</div>
<div class="help-drawer-h4">名片模板</div>
<div class="drawer-card">
<div @click="selectIndex = item" v-for="item in 4" :key="item" :class="{ 'card-item': true, 'card-checked': selectIndex == item }">
<img :src="require(`@/assets/img/home/card${item}.png`)" alt="" />
<i class="el-icon-success" v-if="selectIndex == item"></i>
</div>
</div>
</div>
<div class="drawer-btn">
<el-button @click="drawer = false" size="small">
取消
</el-button>
<el-button type="primary" @click="handleSaveConfig" size="small">提交</el-button>
</div>
</el-drawer>
</div>
</template>
<script>
export default {
name: 'marketConfig',
data() {
return {
selectIndex: 1,
drawer: false
}
},
methods: {
init(idx) {
this.selectIndex = idx
this.drawer = true
},
handleSaveConfig() {
this.drawer = false
this.$emit('cardConfigChecked', this.selectIndex)
}
}
}
</script>
<style lang="scss" scoped>
.help-drawer {
/deep/ .el-drawer__header {
border-bottom: 1px solid #e6e6e6;
padding: 18px 20px;
margin-bottom: 20px;
font-size: 20px;
}
.market-container {
padding: 20px;
height: calc(100vh - 164px);
overflow: auto;
.help-drawer-h4 {
font-size: 14px;
color: #666666;
line-height: 20px;
font-weight: 500;
margin-bottom: 10px;
}
.drawer-overview {
height: 304px;
width: auto;
margin-bottom: 20px;
img {
width: auto;
height: 100%;
}
}
.drawer-card {
display: flex;
.card-item {
cursor: pointer;
width: 224px;
height: 224px;
background: #ffffff;
border-radius: 8px;
border: 1px solid #e5e5e5;
margin-right: 24px;
padding: 16px;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
img {
width: 100%;
height: auto;
}
&.card-checked {
box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.1);
border: 1px solid #5850ff;
position: relative;
i {
position: absolute;
top: 6px;
right: 6px;
color: #5850ff;
font-size: 16px;
}
}
&:last-child {
margin-right: 0px;
}
}
}
}
.drawer-btn {
display: flex;
align-items: center;
justify-content: flex-end;
padding-right: 20px;
height: 64px;
border-top: 1px solid #e6e6e6;
}
}
</style>
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
</div> </div>
<div class="summary-radio" :class="{ 'radio-green': outputEchartData.boutiqueUpgradeDayRadio > 0, 'radio-red': outputEchartData.boutiqueUpgradeDayRadio < 0 }"> <div class="summary-radio" :class="{ 'radio-green': outputEchartData.boutiqueUpgradeDayRadio > 0, 'radio-red': outputEchartData.boutiqueUpgradeDayRadio < 0 }">
日环比: 日环比:
<span>{{ outputEchartData.boutiqueUpgradeDayRadio | valueF}}</span> <span>{{ outputEchartData.boutiqueUpgradeDayRadio | valueF }}</span>
<i class="el-icon-caret-top" v-if="outputEchartData.boutiqueUpgradeDayRadio > 0"></i> <i class="el-icon-caret-top" v-if="outputEchartData.boutiqueUpgradeDayRadio > 0"></i>
<i class="el-icon-caret-bottom" v-if="outputEchartData.boutiqueUpgradeDayRadio < 0"></i> <i class="el-icon-caret-bottom" v-if="outputEchartData.boutiqueUpgradeDayRadio < 0"></i>
</div> </div>
...@@ -174,9 +174,9 @@ export default { ...@@ -174,9 +174,9 @@ export default {
}, },
filters: { filters: {
valueF(val) { valueF(val) {
if(val == null) { if (val == null) {
return '--' return '--'
}else { } else {
return val + '%' return val + '%'
} }
} }
...@@ -424,7 +424,10 @@ export default { ...@@ -424,7 +424,10 @@ export default {
} }
@media screen and (max-width: 1560px) { @media screen and (max-width: 1560px) {
.summary-item-total { .summary-item-total {
font-size: 16px!important; font-size: 12px !important;
span {
font-size: 12px;
}
} }
} }
</style> </style>
<template>
<div class="home-data-container" v-loading="loading">
<div class="home-data-item">
<div class="arrow-icon"><img src="@/assets/img/home/arrow1.png" alt="" /></div>
<div class="step-title">阶段一:数据导入</div>
<div class="background-f7 step-border-1">
<div class="step-icon"><img src="@/assets/img/home/up.png" alt="" /></div>
<div class="step-title-h3">基盘客户</div>
<div class="step-title-h2 text-number" v-if="purchaseCustomerCount">
{{ purchaseCustomerCount }}
<label>人</label>
</div>
<div class="step-title-h2" v-else>请上传数据</div>
<div class="base-download" @click="jumpUrl('/drainage/square/index')" v-if="!cgacarUrl">
<i class="el-icon-upload"></i>
{{ purchaseCustomerCount ? '点击更新' : '上传文件' }}
</div>
</div>
<div class="background-f7 step-border-1">
<div class="step-icon"><img src="@/assets/img/home/wx.png" alt="" /></div>
<div class="step-title-h3">企微客户</div>
<div class="step-title-h2 text-number" v-if="entmicroAddCustomerCount">
{{ entmicroAddCustomerCount }}
<label>人</label>
</div>
<div class="step-title-h2" v-else>请上传数据</div>
<div class="step-ceil-panel">
占比{{ entmicroAddCustomerCountPercent + '%' }}
<!-- <span><img src="@/assets/img/home/up_icon.png" /></span>
24% 月环比
<span><img src="@/assets/img/home/up_icon.png" /></span>
20% -->
</div>
</div>
</div>
<div class="home-data-item item-step-2">
<div class="step-title">阶段二:基盘客户识别及分群</div>
<div class="step-panel-2">
<div class="background-f7 step-border-2">
<div class="arrow-icon"><img src="@/assets/img/home/arrow2.png" alt="" /></div>
<div class="base-container" :style="`background-image: url(${require('@/assets/img/home/circle.png')})`">
<div class="base-box" :style="`background-image: url(${require('@/assets/img/home/square.png')})`">
<div class="base-panel">
<div class="step-title-h3">基盘匹配</div>
<div class="step-title-h2 text-number" v-if="purchaseCustomerAddCount">
{{ purchaseCustomerAddCount }}
<label>人</label>
</div>
<div class="step-title-h2" v-else>正在匹配数据…</div>
<div class="step-ceil-panel" v-if="purchaseCustomerAddCount">
累计提升
<img src="@/assets/img/home/up_icon.png" />
{{ purchaseCustomerAddPercent + '%' }}
</div>
<div class="step-ceil-panel" v-else>
环比
<img src="@/assets/img/home/up_icon.png" />
正在计算…
</div>
</div>
</div>
</div>
</div>
<div class="background-f7 step-border-3">
<div class="arrow-icon"><img src="@/assets/img/home/arrow3.png" alt="" /></div>
<div class="step-icon"><img src="@/assets/img/home/step2_i.png" alt="" /></div>
<div class="step-title-h2">人群标签</div>
<div class="step-operation" @click="jumpUrl('/custom/crowdManage/index')">
<label>人群管理</label>
<img src="@/assets/img/home/forward.png" alt="" />
</div>
<div class="step-operation" @click="jumpUrl('/custom/tagsManage/index')">
<label>标签管理</label>
<img src="@/assets/img/home/forward.png" alt="" />
</div>
</div>
</div>
</div>
<div class="home-data-item">
<div class="step-title">阶段三:精准营销</div>
<div class="background-f7 step-border-4">
<div class="step-icon"><img src="@/assets/img/home/step3_i.png" alt="" /></div>
<div class="step-title-h2">精准营销</div>
<div class="step-operation" @click="jumpUrl('/marketing/friendGroup/index')">
<label>朋友圈营销</label>
<img src="@/assets/img/home/forward.png" alt="" />
</div>
<div class="step-operation" @click="jumpUrl('/marketing/customerTransform/index')">
<label>群发助手</label>
<img src="@/assets/img/home/forward.png" alt="" />
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'homeStep',
data() {
return {
cgacarUrl: false,
loading: false,
customerCount: 0,
purchaseCustomerCount: 0,
waitMatchCustomerAddCount: 0,
purchaseCustomerAddCount: 0,
purchaseCustomerAddPercent: 0,
waitMatchPercent: 0,
entmicroAddCustomerCount: 0,
entmicroAddCustomerCountPercent: 0
}
},
methods: {
jumpUrl(url) {
this.$history.push(url)
},
viewData() {
this.loading = true
this.$apis.home.viewData({}).then(res => {
this.loading = false
const { purchaseCustomerCount, waitMatchCustomerAddCount, purchaseCustomerAddCount, purchaseCustomerAddPercent, waitMatchPercent, entmicroAddCustomerCount, customerCount } = res
this.purchaseCustomerCount = purchaseCustomerCount
this.waitMatchCustomerAddCount = waitMatchCustomerAddCount
this.purchaseCustomerAddCount = purchaseCustomerAddCount
this.purchaseCustomerAddPercent = (purchaseCustomerAddPercent * 100).toFixed(2)
this.waitMatchPercent = waitMatchPercent.toFixed(2)
this.entmicroAddCustomerCount = entmicroAddCustomerCount
this.entmicroAddCustomerCountPercent = customerCount ? ((100 * this.entmicroAddCustomerCount) / customerCount).toFixed(2) : 0
})
}
},
mounted() {
this.viewData()
if (/cgacar/.test(location.host)) {
this.cgacarUrl = true
}
}
}
</script>
<style lang="scss" scoped>
.background-f7 {
background: #f7f7fc;
}
.home-data-container {
margin: 16px 0px;
display: flex;
.home-data-item {
background: #ffffff;
padding: 16px;
margin-right: 16px;
width: 20%;
position: relative;
&:nth-child(3) {
margin-right: 0px;
}
.step-icon {
width: 32px;
height: 32px;
margin: 14px auto 20px;
}
.arrow-icon {
position: absolute;
right: -25px;
z-index: 99;
top: 50%;
width: 34px;
height: 26px;
margin-top: 2px;
}
&.item-step-2 {
flex: 1;
}
.step-title {
font-size: 16px;
color: #333333;
letter-spacing: 0;
font-weight: 600;
text-align: center;
}
.step-border-1 {
margin-top: 16px;
padding: 10px 16px;
position: relative;
.step-icon {
position: absolute;
top: 8px;
right: 8px;
height: 20px;
width: 20px;
margin: 0px;
}
.step-title-h3 {
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 20px;
}
.step-title-h2 {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
margin: 6px 0px 10px;
&.text-number {
font-size: 26px;
label {
font-size: 14px;
font-weight: 500;
}
}
}
.base-download {
cursor: pointer;
width: 104px;
height: 32px;
line-height: 32px;
background: #2cca74;
border-radius: 3px;
text-align: center;
font-size: 14px;
font-weight: 400;
color: #ffffff;
i {
font-size: 20px;
vertical-align: middle;
}
}
.step-ceil-panel {
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 18px;
margin-top: 20px;
img {
width: 14px;
height: 15px;
}
}
}
.step-panel-2 {
display: flex;
.step-border-2 {
width: 60%;
margin-top: 16px;
margin-right: 16px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
.base-container {
width: 20.78vw;
height: 7.55vw;
background-size: 100% 100%;
position: relative;
display: flex;
align-items: center;
justify-content: center;
.base-box {
width: 210px;
height: 160px;
position: absolute;
background-size: 100% 100%;
.base-panel {
background: none;
padding-left: 30px;
.step-title-h3 {
margin-top: 30px;
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 20px;
}
.step-title-h2 {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
margin: 6px 0px 10px;
&.text-number {
font-size: 26px;
label {
font-size: 14px;
font-weight: 500;
}
}
}
.step-ceil-panel {
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 18px;
margin-top: 20px;
img {
width: 14px;
height: 15px;
}
}
}
}
}
.base-panel {
background: #ffffff;
border-radius: 6px;
}
.arrow-icon {
position: absolute;
right: -25px;
z-index: 99;
top: 50%;
width: 34px;
height: 26px;
margin-top: -13px;
}
}
.step-border-3 {
flex: 1;
position: relative;
.arrow-icon {
position: absolute;
right: -42px;
z-index: 99;
top: 50%;
width: 34px;
height: 26px;
margin-top: -13px;
}
}
}
.step-border-3,
.step-border-4 {
margin-top: 16px;
padding: 30px 0px 20px;
.step-title-h2 {
font-size: 18px;
color: #111111;
letter-spacing: 0;
text-align: center;
line-height: 28px;
font-weight: 600;
margin: 4px 0px;
}
.step-operation {
background: #5850ff;
border-radius: 3px;
width: 60%;
height: 32px;
margin: 16px auto 0px;
padding: 0px 12px;
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
cursor: pointer;
z-index: 99;
label {
cursor: pointer;
display: inline-block;
width: 96px;
text-align: center;
}
img {
width: 18px;
height: 18px;
}
}
}
}
}
</style>
...@@ -561,7 +561,10 @@ export default { ...@@ -561,7 +561,10 @@ export default {
} }
@media screen and (max-width: 1560px) { @media screen and (max-width: 1560px) {
.summary-item-total { .summary-item-total {
font-size: 16px!important; font-size: 12px !important;
span {
font-size: 12px !important;
}
} }
} }
</style> </style>
<template>
<div class="help-main">
<div class="help-tabel scrm-box-f">
<div class="help-tabel-form">
<GLCombiForm ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="select-panel">
<div class="help-tabel-name">客户统计</div>
<div class="help-select-date">
<el-radio-group class="select-date-input" v-model="dateInterval" size="small" @change="handleSearch">
<el-radio-button label="1">今日</el-radio-button>
<el-radio-button label="2">本周</el-radio-button>
<el-radio-button label="3">本月</el-radio-button>
<el-radio-button label="4">今年</el-radio-button>
</el-radio-group>
<el-button type="primary" plain size="small" @click="handleImport">导出</el-button>
</div>
</div>
<GLTable @setTableFinishFun="setTableFinishFun" :noDataImg="url" ref="taskForm" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="goDetail(scope.scope)">客户详情</el-button>
</div>
</GLTable>
</div>
</div>
</div>
</template>
<script>
import util from '@/utils/util'
export default {
name: 'resultStatistics',
data() {
return {
dateInterval: 1,
value1: [],
tableSearchForm: {
customerName: '',
nickName: '',
customerPhone: '',
isFollow: '',
staffId: '',
followTime: '',
createTime: ''
},
searchFormData: [
{
label: '客户姓名',
name: 'customerName',
type: 'input',
placeholder: ''
},
{
label: '客户昵称',
name: 'nickName',
type: 'input',
placeholder: ''
},
{
label: '联系电话',
name: 'customerPhone',
type: 'input',
placeholder: ''
},
{
label: '发起日期',
name: 'createTime',
type: 'datePicker',
placeholder: '',
isClear: true,
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
}
},
{
label: '跟进日期',
name: 'followTime',
type: 'datePicker',
placeholder: '',
isClear: true,
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
}
},
{
type: 'select',
// prop: 'isJoin',
name: 'isFollow',
label: '是否跟进',
placeholder: '请选择',
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: '全部',
value: null
},
{
label: '是',
value: 0
},
{
label: '否',
value: -1
}
]
},
{
type: 'select',
name: 'staffId',
// prop: 'staffId',
noFilter: false,
optionLabel: 'label',
optionId: 'value',
label: '跟进员工',
placeholder: '请输入跟进员工',
optionList: []
}
],
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
},
createTime: '',
dialogVisible: true,
getListApi: this.$apis.helpCard.listCustomer,
tableParams: {
tableOption: false,
checkSelectKey: 'id',
checkSelectVal: [],
hasNum: false,
listName: 'data',
tableColumns: [
{
label: '客户名称',
prop: 'customerName',
width: 300,
line: 1
},
{
label: '客户昵称',
prop: 'nickName',
width: 300,
formatter: cellValue => {
return cellValue.nickName ? cellValue.nickName + (cellValue.type == 1 ? '@微信' : cellValue.type == 2 ? '@企微' : '') : '--'
},
line: 1
},
{
label: '联系电话',
prop: 'customerPhone',
width: 200,
line: 1
},
{
label: '跟进员工',
prop: 'followStaff',
width: 120
},
{
label: '是否跟进',
prop: 'isFollow',
width: '100px',
formatter: cellValue => {
return cellValue.isFollow == 0 ? '是' : '否'
}
},
{
label: '跟进结果',
prop: 'followResult',
width: 150,
line: 1
},
{
label: '发起时间',
prop: 'applyTime',
width: '220px'
},
{
label: '跟进时间',
prop: 'followTime',
width: '220px'
},
{
label: '操作',
prop: 'optionBtns',
width: '90px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
baseData: {
allMerchantList: [],
roleList: [],
staffStatusList: []
}
}
},
mounted() {
this.getStaffList()
},
methods: {
handleImport() {
this.$apis.helpCard.listCustomerExport(this.getParams()).then(res => {
util.openUrl(res)
})
},
//获取跟进员工
getStaffList() {
this.$apis.helpCard.getStaffList({}).then(res => {
if (res.length == 0) {
return ''
}
const staff = res.map(item => {
return {
label: item.staffName,
value: item.id
}
})
staff.unshift({ label: '全部', value: null })
this.searchFormData.find(item => item.name == 'staffId').optionList = staff
})
},
handleSearch() {
this.$refs.taskForm.refreshTable()
},
handleReset() {
this.tableSearchForm = {}
this.$refs.taskForm.refreshTable()
},
getParams() {
if (this.tableSearchForm.createTime) {
this.tableSearchForm.beginTime = new Date(this.tableSearchForm.createTime[0]).toLocaleDateString().replace(/\//g, '-')
this.tableSearchForm.endTime = new Date(this.tableSearchForm.createTime[1]).toLocaleDateString().replace(/\//g, '-')
} else {
delete this.tableSearchForm.beginTime
delete this.tableSearchForm.endTime
}
if (this.tableSearchForm.followTime) {
this.tableSearchForm.followBeginTime = new Date(this.tableSearchForm.followTime[0]).toLocaleDateString().replace(/\//g, '-')
this.tableSearchForm.followEndTime = new Date(this.tableSearchForm.followTime[1]).toLocaleDateString().replace(/\//g, '-')
} else {
delete this.tableSearchForm.followBeginTime
delete this.tableSearchForm.followEndTime
}
this.tableSearchForm.dateInterval = this.dateInterval
delete this.tableSearchForm.createTime
delete this.tableSearchForm.followTime
return this.tableSearchForm
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
resolve()
})
},
setTableFinishFun() {
this.$refs.taskForm.data.length ? (this.$refs.taskForm.tableHeightValues = '') : this.$refs.taskForm.setTableHeightFun()
},
goDetail(scope) {
util.openTab(location.origin + '/custom/clientManage/clientDetail?id=' + scope.oneId)
}
}
}
</script>
<style lang="scss" scoped>
.scrm-box-f {
padding: 20px;
}
.select-panel {
display: flex;
margin-bottom: 10px;
justify-content: space-between;
align-items: center;
.help-tabel-name {
font-size: 16px;
color: #333333;
text-align: left;
line-height: 16px;
font-weight: 500;
}
.help-select-date {
display: flex;
align-items: center;
.select-date-input {
margin-right: 10px;
/deep/ {
.el-radio-button:focus:not(.is-focus):not(:active):not(.is-disabled) {
box-shadow: none;
}
}
}
}
}
</style>
<template>
<div class="help-main">
<div class="help-main-header">
<div class="help-main-title">
道路救援卡配置
<el-popover placement="top" width="340" trigger="hover" content="配置道路救援卡中显示的联系号码及员工企微">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</div>
<div class="help-main-view"><el-button type="primary" size="small" @click="$refs.imageForm.clickHandler()">预览</el-button></div>
</div>
<el-tabs v-model="activeName">
<el-tab-pane label="配置救援码" name="first"></el-tab-pane>
<el-tab-pane label="效果统计" name="second"></el-tab-pane>
</el-tabs>
<component :is="activeName == 'first' ? 'card-config' : 'result-statistics'" ref="configForm"></component>
<el-image class="preview-panel" style="width: 100px; height: 0px" ref="imageForm" :src="url" :preview-src-list="srcList"></el-image>
</div>
</template>
<script>
import cardConfig from './components/cardConfig'
import resultStatistics from './components/resultStatistics'
import url from '@/assets/img/home/preview.png'
export default {
name: 'helpCard',
components: {
cardConfig,
resultStatistics
},
data() {
return {
url,
srcList: [url],
activeName: 'first'
}
},
methods: {}
}
</script>
<style lang="scss" scoped>
.help-main-header {
display: flex;
justify-content: space-between;
.help-main-title {
font-size: 20px;
color: #333333;
font-weight: 500;
img {
width: 16px;
height: 16px;
}
}
}
.preview-panel {
/deep/ {
.el-image-viewer__img {
width: 320px;
height: 624px;
}
.el-icon-circle-close {
color: #fff;
}
}
}
</style>
<template> <template>
<div class="scrm-main"> <div class="home-main">
<div class="main-panel" :class="{ 'main-isScroll': guideStatus }"> <div class="home-banner-container">
<div class="main-left"> <div class="home-banner-left" :style="`background-image: url(${require('@/assets/img/home/banner-left.png')})`"></div>
<div class="summary-panel-time"> <div class="summary-time"> <div class="home-banner-right" :style="`background-image: url(${require('@/assets/img/home/banner-right.png')})`"></div>
<span>统计截止至 </span> <div class="home-banner-text">
<el-date-picker size="small" value-format="yyyy-MM-dd" v-model="summaryTime" type="date" placeholder="选择日期" :clearable="false" :picker-options="pickerOptions"></el-date-picker> <div class="banner-title">企微管家SCRM · 快速上手</div>
</div></div> <div class="banner-content">汽车行业私域流量数字化营销平台</div>
<div class="summary-panel"> <div class="banner-content">一套帮您变现的服务系统</div>
<div class="home-statistics-title">
客户概览
<span class="home-title-radio">企微客户占比</span>
<span class="home-title-radio" style="color: #5850ff">{{ entmicroCountRadio }}%</span>
</div> </div>
<!-- <div class="summary-time">
<span>统计截止至 </span>
<el-date-picker size="small" value-format="yyyy-MM-dd" v-model="summaryTime" type="date" placeholder="选择日期" :clearable="false" :picker-options="pickerOptions"></el-date-picker>
</div> -->
</div> </div>
<overview-enterprise :summaryTime="summaryTime" @getEntmicroRadio="getEntmicroRadio"></overview-enterprise> <component :is="'home-step'"></component>
<div class="home-statistics-title">产值概览</div> <div class="home-use-container scrm-box-f">
<customer-echart :summaryTimeFomat="summaryTime"></customer-echart> <div class="home-use-title">客户线上化的场景推荐</div>
<div class="home-overview-content"></div> <div class="home-use-box">
<div class="home-statistics-title">权益服务</div> <div class="home-use-item">
<accurate-marketing :summaryTimeFomat="summaryTime"></accurate-marketing> <div class="use-item-icon"><img src="@/assets/img/home/view1.png" alt="" /></div>
<div class="home-statistics-title">精选营销工具</div> <div class="use-item-title">到店客户加企微送权益</div>
<marketing-tools></marketing-tools> <div class="use-item-content">通过配置员工智能名片,客户添加成功后将赠送权益会员卡,享受优惠加油,互联网品牌折扣卡券等福利。</div>
<div class="use-item-config">
<div class="use-config-item">
<i class="el-icon-check"></i>
展厅客流留资
</div> </div>
<!-- <el-popover placement="left" width="240" trigger="hover"> <div class="use-config-item">
<div class="qrcode-img"> <i class="el-icon-check"></i>
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/lianghh.png"> 新车到店交车
</div>
<div class="use-config-item">
<i class="el-icon-check"></i>
售后进站保养
</div>
</div>
<div class="use-operation" @click="$history.push('/drainage/channel/addCode')">立即使用</div>
</div>
<div class="home-use-item">
<div class="use-item-icon"><img src="@/assets/img/home/view2.png" alt="" /></div>
<div class="use-item-title">离店客户批量加企微</div>
<div class="use-item-content">系统将通过AI机器人,使用门店的福利官企微号自动尝试添加客户,并自动发放客户福利权益。</div>
<div class="use-item-config">
<div class="use-config-item">
<i class="el-icon-check"></i>
沉默客户激活
</div>
<div class="use-config-item">
<i class="el-icon-check"></i>
存量客户线上化
</div>
</div>
<div class="use-operation" @click="$router.push('/home/aiCard')">立即使用</div>
</div>
<div class="home-use-item">
<div class="use-item-icon"><img src="@/assets/img/home/view3.png" alt="" /></div>
<div class="use-item-title">道路救援卡</div>
<div class="use-item-content">车主可通过扫码贴放在车上的道路救援二维码,查询救援电话或添加门店顾问请求道路救援。</div>
<div class="use-item-config">
<div class="use-config-item">
<i class="el-icon-check"></i>
新车交付
</div>
<div class="use-config-item">
<i class="el-icon-check"></i>
进站维修保养
</div>
<div class="use-config-item">
<i class="el-icon-check"></i>
进站续保
</div>
</div>
<div class="use-operation" @click="$router.push('/home/helpCard')">立即使用</div>
</div> </div>
<div class="main-contact-panel" slot="reference">
<div class="contact-icon"><i class="el-icon-chat-dot-square"></i></div>
<div class="contact-desc">联系我们</div>
</div> </div>
</el-popover> -->
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import util from '@/utils/util' import homeStep from './components/home-step.vue'
import overviewEnterprise from './components/overview-enterprise'
import customerEchart from './components/customer-echart'
import marketingTools from './components/marketing-tools'
import accurateMarketing from './components/accurate-marketing'
export default { export default {
name: 'home', name: 'home',
components: { components: {
overviewEnterprise, homeStep
customerEchart,
marketingTools,
accurateMarketing
}, },
data() { data() {
return { return {
summaryTime: util.getBeforeDate(), activeName: 'first'
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
},
entmicroCountRadio: 0,
guideStatus: false,
step: 1,
headHeight: 0,
headWidth: 0,
guideWidth: '',
guideHeight: '',
guideLeft: 0,
guideTop: 0,
guideRight: 0,
imgHeight: 0,
imgWidth: 0
}
},
methods: {
jumpSqure() {
this.$history.push('/drainage/square/index')
},
getEntmicroRadio(value) {
this.entmicroCountRadio = value
} }
}, },
methods: {}
mounted() {}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.box-fixed { .home-banner-container {
position: fixed; background: linear-gradient(to right, #6695ff, #655eff);
width: 100%;
height: 100%;
left: 0px;
top: 0px;
background: rgba(0, 0, 0, 0.1);
}
.header-panel {
width: 100%; width: 100%;
height: 166px;
padding-top: 24px;
box-sizing: border-box;
position: relative; position: relative;
.jump-mf-btn { .home-banner-left {
position: absolute; position: absolute;
background: #f4c647; top: 0px;
border-radius: 4px; height: 166px;
padding: 6px 9px; width: 500px;
font-size: 10px; left: 40px;
font-weight: 500;
color: #ffffff;
line-height: 12px;
cursor: pointer;
bottom: 8px;
left: 73.5% !important;
}
> img {
width: 100%;
height: 100%;
} }
} .home-banner-right {
.main-isScroll {
position: absolute; position: absolute;
overflow-y: hidden;
height: 100%;
padding: 0px 20px 20px 40px;
box-sizing: border-box;
width: 100%;
top: 0px; top: 0px;
left: 0px; right: 40px;
} height: 166px;
.main-panel { width: 900px;
width: 100%; }
} .home-banner-text {
.summary-panel-time { margin-left: 60px;
text-align: right; .banner-title {
/deep/ { font-size: 44px;
.el-date-editor.el-input, .el-date-editor.el-input__inner { color: #ffffff;
width: 130px; text-align: left;
} font-weight: 600;
margin-bottom: 20px;
} }
} .banner-content {
.summary-panel { font-size: 16px;
display: flex; color: #ffffff;
justify-content: space-between; line-height: 24px;
align-items: center; font-weight: 400;
.home-statistics-title {
margin-top: 0px;
} }
/deep/ .el-date-editor.el-input,
.el-date-editor.el-input__inner {
width: 100px;
line-height: 32px;
height: 32px;
} }
} }
.home-statistics-title { .home-use-container {
font-size: 20px; padding: 20px;
font-weight: 600; .home-use-title {
color: #333333; font-size: 24px;
line-height: 20px;
letter-spacing: 1px;
margin-bottom: 20px;
margin-top: 20px;
.home-title-radio {
font-size: 14px;
font-weight: 400;
color: #333333; color: #333333;
text-align: center;
font-weight: 600;
} }
} .home-use-box {
.operational-panel-s {
margin-top: 20px; margin-top: 20px;
}
.main-left {
width: 100%;
// flex: 1;
// margin-right: 20px;
}
.main-right {
// width: 230px;
// display: none;
}
.h-overview-content {
border: 1px solid #000000;
margin-top: 10px;
padding: 10px;
}
.enterprise-statistics {
display: flex; display: flex;
justify-content: space-between; .home-use-item {
} padding: 20px;
.statistics-time { width: 33.33%;
span { background: #f7f7fc;
margin-right: 6px; margin-right: 24px;
} &:last-child {
} margin-right: 0px;
.guide-panel { }
.guide-btn { .use-item-icon {
cursor: pointer; width: 80px;
z-index: 1000; height: 80px;
position: absolute; border-radius: 50%;
background: #5850ff; margin: 0 auto;
border-radius: 4px;
padding: 12px 20px;
color: #ffffff;
display: inline-block;
}
.guide-box {
position: relative;
width: 100%;
height: 100%;
} }
.guide-box-highlight { .use-item-title {
position: fixed; font-size: 18px;
outline: 5000px solid rgba(0, 0, 0, 0.75); color: #333333;
border: 2px solid #ffffff; letter-spacing: 0;
border-radius: 4px; font-weight: 500;
&.border-b { margin: 16px 0px;
border-color: #5850ff; text-align: center;
} }
.use-item-content {
font-size: 14px;
line-height: 20px;
height: 60px;
color: #666666;
letter-spacing: 0;
font-weight: 400;
} }
.guide-step-1 { .use-item-config {
z-index: 999; display: flex;
height: auto; flex-wrap: wrap;
position: absolute; height: 60px;
top: 10px; .use-config-item {
left: 10px; margin-top: 14px;
width: 50%;
font-size: 16px;
color: #333333;
letter-spacing: 0;
font-weight: 400;
display: flex;
i {
font-size: 16px;
color: #5850ff;
font-weight: 600;
width: 20px;
} }
.guide-step-2 {
z-index: 999;
width: auto;
position: absolute;
top: 10px;
} }
.guide-step-3 {
z-index: 999;
height: auto;
position: absolute;
} }
} .use-operation {
.qrcode-img {
width: 200px;
height: 200px;
}
.main-contact-panel {
cursor: pointer; cursor: pointer;
position: fixed; width: 100%;
bottom: 100px; margin-top: 30px;
right: 25px;
width: 52px;
height: 142px;
background: #5850ff; background: #5850ff;
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
border-radius: 4px;
text-align: center;
padding: 16px 0px;
box-sizing: border-box;
.contact-desc {
font-size: 14px; font-size: 14px;
font-weight: 400;
color: #ffffff; color: #ffffff;
line-height: 20px; letter-spacing: 0;
margin: 0 auto;
width: 20px;
}
.contact-icon {
margin-bottom: 6px;
font-size: 20px;
font-weight: 400; font-weight: 400;
color: #ffffff; height: 36px;
line-height: 20px; line-height: 36px;
text-align: center;
}
}
} }
} }
</style> </style>
<template>
<div class="scrm-main">
<div class="main-panel" :class="{ 'main-isScroll': guideStatus }">
<div class="main-left">
<div class="summary-panel-time">
<div class="summary-time">
<span>统计截止至</span>
<el-date-picker size="small" value-format="yyyy-MM-dd" v-model="summaryTime" type="date" placeholder="选择日期" :clearable="false" :picker-options="pickerOptions"></el-date-picker>
</div>
</div>
<div class="summary-panel">
<div class="home-statistics-title">
客户概览
<span class="home-title-radio">企微客户占比</span>
<span class="home-title-radio" style="color: #5850ff">{{ entmicroCountRadio }}%</span>
</div>
<!-- <div class="summary-time">
<span>统计截止至 </span>
<el-date-picker size="small" value-format="yyyy-MM-dd" v-model="summaryTime" type="date" placeholder="选择日期" :clearable="false" :picker-options="pickerOptions"></el-date-picker>
</div> -->
</div>
<overview-enterprise :summaryTime="summaryTime" @getEntmicroRadio="getEntmicroRadio"></overview-enterprise>
<div class="home-statistics-title">产值概览</div>
<customer-echart :summaryTimeFomat="summaryTime"></customer-echart>
<div class="home-overview-content"></div>
<div class="home-statistics-title">权益服务</div>
<accurate-marketing :summaryTimeFomat="summaryTime"></accurate-marketing>
<div class="home-statistics-title">精选营销工具</div>
<marketing-tools></marketing-tools>
</div>
<!-- <el-popover placement="left" width="240" trigger="hover">
<div class="qrcode-img">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/lianghh.png">
</div>
<div class="main-contact-panel" slot="reference">
<div class="contact-icon"><i class="el-icon-chat-dot-square"></i></div>
<div class="contact-desc">联系我们</div>
</div>
</el-popover> -->
</div>
</div>
</template>
<script>
import util from '@/utils/util'
import overviewEnterprise from './components/overview-enterprise'
import customerEchart from './components/customer-echart'
import marketingTools from './components/marketing-tools'
import accurateMarketing from './components/accurate-marketing'
export default {
name: 'home',
components: {
overviewEnterprise,
customerEchart,
marketingTools,
accurateMarketing
},
data() {
return {
summaryTime: util.getBeforeDate(),
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
},
entmicroCountRadio: 0,
guideStatus: false,
step: 1,
headHeight: 0,
headWidth: 0,
guideWidth: '',
guideHeight: '',
guideLeft: 0,
guideTop: 0,
guideRight: 0,
imgHeight: 0,
imgWidth: 0
}
},
methods: {
jumpSqure() {
this.$history.push('/drainage/square/index')
},
getEntmicroRadio(value) {
this.entmicroCountRadio = value
}
},
mounted() {}
}
</script>
<style lang="scss" scoped>
.box-fixed {
position: fixed;
width: 100%;
height: 100%;
left: 0px;
top: 0px;
background: rgba(0, 0, 0, 0.1);
}
.header-panel {
width: 100%;
position: relative;
.jump-mf-btn {
position: absolute;
background: #f4c647;
border-radius: 4px;
padding: 6px 9px;
font-size: 10px;
font-weight: 500;
color: #ffffff;
line-height: 12px;
cursor: pointer;
bottom: 8px;
left: 73.5% !important;
}
> img {
width: 100%;
height: 100%;
}
}
.main-isScroll {
position: absolute;
overflow-y: hidden;
height: 100%;
padding: 0px 20px 20px 40px;
box-sizing: border-box;
width: 100%;
top: 0px;
left: 0px;
}
.main-panel {
width: 100%;
}
.summary-panel-time {
text-align: right;
/deep/ {
.el-date-editor.el-input,
.el-date-editor.el-input__inner {
width: 130px;
}
}
}
.summary-panel {
display: flex;
justify-content: space-between;
align-items: center;
.home-statistics-title {
margin-top: 0px;
}
/deep/ .el-date-editor.el-input,
.el-date-editor.el-input__inner {
width: 100px;
line-height: 32px;
height: 32px;
}
}
.home-statistics-title {
font-size: 20px;
font-weight: 600;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
margin-bottom: 20px;
margin-top: 20px;
.home-title-radio {
font-size: 14px;
font-weight: 400;
color: #333333;
}
}
.operational-panel-s {
margin-top: 20px;
}
.main-left {
width: 100%;
// flex: 1;
// margin-right: 20px;
}
.main-right {
// width: 230px;
// display: none;
}
.h-overview-content {
border: 1px solid #000000;
margin-top: 10px;
padding: 10px;
}
.enterprise-statistics {
display: flex;
justify-content: space-between;
}
.statistics-time {
span {
margin-right: 6px;
}
}
.guide-panel {
.guide-btn {
cursor: pointer;
z-index: 1000;
position: absolute;
background: #5850ff;
border-radius: 4px;
padding: 12px 20px;
color: #ffffff;
display: inline-block;
}
.guide-box {
position: relative;
width: 100%;
height: 100%;
}
.guide-box-highlight {
position: fixed;
outline: 5000px solid rgba(0, 0, 0, 0.75);
border: 2px solid #ffffff;
border-radius: 4px;
&.border-b {
border-color: #5850ff;
}
}
.guide-step-1 {
z-index: 999;
height: auto;
position: absolute;
top: 10px;
left: 10px;
}
.guide-step-2 {
z-index: 999;
width: auto;
position: absolute;
top: 10px;
}
.guide-step-3 {
z-index: 999;
height: auto;
position: absolute;
}
}
.qrcode-img {
width: 200px;
height: 200px;
}
.main-contact-panel {
cursor: pointer;
position: fixed;
bottom: 100px;
right: 25px;
width: 52px;
height: 142px;
background: #5850ff;
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
border-radius: 4px;
text-align: center;
padding: 16px 0px;
box-sizing: border-box;
.contact-desc {
font-size: 14px;
font-weight: 400;
color: #ffffff;
line-height: 20px;
margin: 0 auto;
width: 20px;
}
.contact-icon {
margin-bottom: 6px;
font-size: 20px;
font-weight: 400;
color: #ffffff;
line-height: 20px;
}
}
</style>
<!-- -->
<template>
<div class="container-detail">
<div class="ai-main-header">
<div class="ai-main-title">
离店客户加企微
</div>
<div class="ai-main-desc">系统将通过AI机器人,使用门店的福利官企微号自动添加客户,并自动发放客户福利权益。</div>
</div>
<div class="outbound-info">
<div class="outbound-info-title flex">
离店客户加好友概览
</div>
<div class="outbound-info-wrap">
<div class="general">
<div class="general-item" v-for="(item, index) in statisticsList" :key="index">
<div class="general-item-icon">
<img :src="item.logo" />
</div>
<div>
<div class="general-item-title">{{ item.describe }}</div>
<div class="general-item-num">
{{ item.value(detailData) }}
<span class="font-14;color3;m-l-4">人</span>
</div>
</div>
</div>
</div>
<div class="chart" id="lineRef"></div>
<GLCombiForm :rowNumber="1" class="searchForm" ref="detailsSearch" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLTable ref="detailsTable" :searchForm="searchForm" :pageConf="pageConf" :tableParams="tableParams" :getListApi="getListApi">
<template slot="phoneStatus" slot-scope="scope">
<div :class="['task_icon', `task_icon${scope.scope.phoneStatus}`]">{{ taskStatus(scope.scope.phoneStatus) }}</div>
</template>
</GLTable>
</div>
</div>
</div>
</template>
<script>
const TASK_STATUS = [
{
label: '该用户不存在',
value: 1
},
{
label: '待发送好友申请',
value: 2
},
{
label: '已发送申请',
value: 3
},
{
label: '申请通过',
value: 4
}
]
import * as echarts from 'echarts'
export default {
data() {
return {
id: this.$route.query.id ? this.$route.query.id : '',
getListApi: this.$apis.aiCard.phoneStatusPage,
detailData: {},
myChart: null,
searchForm: {
phone: '',
status: '',
id: this.$route.query.id ? this.$route.query.id : ''
},
outboundParams: [
{
label: '任务名称',
prop: 'taskName',
span: 12
},
{
label: '选择话术机器人:',
prop: 'robotName',
span: 12
},
{
label: '外呼主叫号码:',
prop: 'callerNums',
span: 12
},
{
label: '外呼时间:',
addHtml: 'dialTime',
span: 12
},
{
label: '重播设置:',
addHtml: 'retryTimes',
span: 12
},
{
label: '号码过滤:',
prop: 'numTypeFilterList',
span: 12
}
],
searchFormData: [
{
label: '手机号',
name: 'phone',
type: 'input'
}
],
statisticsList: [
{
logo: require('../../assets/img/ai/customer.png'),
describe: '客户总数',
value: obj => {
return obj.phoneCount ? obj.phoneCount : 0
}
},
{
logo: require('../../assets/img/ai/apply.png'),
describe: '通过申请',
value: obj => {
return obj.passNums ? obj.passNums : 0
}
},
{
logo: require('../../assets/img/ai/user.png'),
describe: '不存在的手机号用户',
value: obj => {
return obj.noneUserNums ? obj.noneUserNums : 0
}
}
],
// 表格参数
tableParams: {
listName: 'data',
tableColumns: [
{
label: '手机号',
prop: 'phone'
},
{
label: '状态',
prop: 'phoneStatus',
addHtml: 'phoneStatus'
}
]
},
pageConf: {
pageSize: 'pageSize',
pageNum: 'pageNum',
totalCount: 'count'
}
}
},
mounted() {
this.taskbaseDetails()
let chartDom = document.getElementById('lineRef')
this.myChart = echarts.init(chartDom)
window.addEventListener('resize', () => {
this.myChart.resize()
})
},
methods: {
taskStatus(status) {
const val = TASK_STATUS.find(item => item.value == status)
return val ? val.label : '--'
},
taskbaseDetails() {
let params = {
id: this.id
}
this.$apis.aiCard.taskDetail(params).then(res => {
if (res) {
this.detailData = res
this.initCanvas(this.detailData.phoneStatusDailyCharts)
}
})
},
handleSearch() {
this.$refs.detailsTable.refreshTable()
},
handleReset() {
this.searchForm = {
phone: '',
status: '',
id: this.$route.query.id ? this.$route.query.id : ''
}
this.handleSearch()
},
initCanvas(lineValue) {
const x_data = lineValue && lineValue.length ? lineValue.map(item => item.dailyDate) : []
const y_data = lineValue && lineValue.length ? lineValue.map(item => item.passedCounts) : []
console.log(x_data, y_data)
this.option = {
tooltip: {
show: true,
axisPointer: {
// type: 'cross'
}
},
grid: {
right: '90x',
left: '90px'
},
minInterval: 1,
xAxis: {
type: 'category',
data: x_data
},
yAxis: {
type: 'value'
},
series: [
{
// symbol: 'none',
data: y_data,
type: 'line',
smooth: true,
areaStyle: {
color: 'rgba(88,80,255, 0.15)'
}
}
]
}
this.myChart.clear()
this.myChart.setOption(this.option)
},
btnClick() {}
}
}
</script>
<style scoped lang="scss">
.task_icon {
position: relative;
&::after {
content: '';
position: absolute;
top: 4px;
left: -10px;
width: 6px;
height: 6px;
border-radius: 4px;
}
&.task_icon1 {
&::after {
background: #999999;
}
}
&.task_icon2 {
&::after {
background: #fdb757;
}
}
&.task_icon3 {
&::after {
background: #5850ff;
}
}
&.task_icon4 {
&::after {
background: #2cca74;
}
}
}
.container-detail {
padding: 20px 0;
overflow-y: scroll;
height: 100%;
.ai-main-header {
background: #fff;
padding: 16px 20px;
margin-bottom: 16px;
.ai-main-title {
font-size: 20px;
color: #333333;
font-weight: 600;
}
.ai-main-desc {
margin-top: 10px;
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 22px;
}
}
.outbound-info {
width: 100%;
height: auto;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-bottom: 10px;
&-title {
line-height: 28px;
font-size: 16px;
font-weight: 600;
color: #333333;
padding: 15px 0 15px 20px;
border-bottom: 1px solid #e5e5e5;
}
.glsx-rows-wrap {
padding: 32px 76px;
}
&-wrap {
padding: 20px 16px;
box-sizing: border-box;
background: #ffffff;
.general {
display: flex;
align-items: center;
margin: 0 40px 20px 40px;
.general-item {
width: 274px;
height: 100px;
background: #f9fafc;
border-radius: 4px;
padding: 20px 16px;
display: flex;
box-sizing: border-box;
margin-right: 16px;
&-icon {
width: 48px;
height: 48px;
margin-right: 16px;
img {
width: 100%;
}
}
&-title {
font-size: 14px;
color: #333333;
line-height: 20px;
margin-bottom: 10px;
}
&-num {
font-size: 26px;
font-weight: bold;
color: #333;
line-height: 31px;
}
}
}
.chart {
height: 320px;
}
}
}
.m-b-7 {
margin-bottom: 70px;
}
.footer-btn {
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
background-color: #fff;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!