Commit 6d52cbed by 前端

fixed

1 parent 2ea4cbdd
Showing 51 changed files with 5312 additions and 721 deletions
{ {
"name": "home", "name": "drainage",
"version": "0.1.0", "version": "0.1.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
...@@ -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.30001378",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001378.tgz",
"integrity": "sha512-JVQnfoO7FK7WvU4ZkBRbPjaot4+YqxogSDosHv0Hv5mWpUESmN+UubMU6L/hGz8QlQ2aY5U0vR6MOs6j/CXpNA==",
"dev": true
},
"electron-to-chromium": {
"version": "1.4.225",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.225.tgz",
"integrity": "sha512-ICHvGaCIQR3P88uK8aRtx8gmejbVJyC6bB4LEC3anzBrIzdzC7aiZHY4iFfXhN4st6I7lMO0x4sgBHf/7kBvRw==",
"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",
...@@ -1400,6 +1494,43 @@ ...@@ -1400,6 +1494,43 @@
} }
} }
}, },
"@vue/compiler-sfc": {
"version": "2.7.9",
"resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-2.7.9.tgz",
"integrity": "sha512-TD2FvT0fPUezw5RVP4tfwTZnKHP0QjeEUb39y7tORvOJQTjbOuHJEk4GPHUPsRaTeQ8rjuKjntyrYcEIx+ODxg==",
"requires": {
"@babel/parser": "^7.18.4",
"postcss": "^8.4.14",
"source-map": "^0.6.1"
},
"dependencies": {
"@babel/parser": {
"version": "7.18.11",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.11.tgz",
"integrity": "sha512-9JKn5vN+hDt0Hdqn1PiJ2guflwP+B6Ga8qbDuoF0PzzVhrzsKIJo8yGqVk6CmMHiMei9w1C1Bp9IMJSIK+HPIQ=="
},
"picocolors": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
"integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ=="
},
"postcss": {
"version": "8.4.16",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.16.tgz",
"integrity": "sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ==",
"requires": {
"nanoid": "^3.3.4",
"picocolors": "^1.0.0",
"source-map-js": "^1.0.2"
}
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="
}
}
},
"@vue/component-compiler-utils": { "@vue/component-compiler-utils": {
"version": "3.1.0", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/@vue/component-compiler-utils/-/component-compiler-utils-3.1.0.tgz", "resolved": "https://registry.npmjs.org/@vue/component-compiler-utils/-/component-compiler-utils-3.1.0.tgz",
...@@ -1690,6 +1821,11 @@ ...@@ -1690,6 +1821,11 @@
"integrity": "sha512-aT6camzM4xEA54YVJYSqxz1kv4IHnQZRtThJJHhUMRExaU5spC7jX5ugSwTaTgJliIgs4VhZOk7htClvQ/LmRA==", "integrity": "sha512-aT6camzM4xEA54YVJYSqxz1kv4IHnQZRtThJJHhUMRExaU5spC7jX5ugSwTaTgJliIgs4VhZOk7htClvQ/LmRA==",
"dev": true "dev": true
}, },
"adler-32": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/adler-32/-/adler-32-1.3.1.tgz",
"integrity": "sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A=="
},
"aggregate-error": { "aggregate-error": {
"version": "3.0.1", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz",
...@@ -1991,24 +2127,44 @@ ...@@ -1991,24 +2127,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
} }
} }
...@@ -2638,6 +2794,15 @@ ...@@ -2638,6 +2794,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",
...@@ -2732,6 +2897,15 @@ ...@@ -2732,6 +2897,15 @@
"integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
"dev": true "dev": true
}, },
"cfb": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/cfb/-/cfb-1.2.2.tgz",
"integrity": "sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA==",
"requires": {
"adler-32": "~1.3.0",
"crc-32": "~1.2.0"
}
},
"chalk": { "chalk": {
"version": "2.4.2", "version": "2.4.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
...@@ -2749,6 +2923,11 @@ ...@@ -2749,6 +2923,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",
...@@ -3033,6 +3212,11 @@ ...@@ -3033,6 +3212,11 @@
"integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",
"dev": true "dev": true
}, },
"codepage": {
"version": "1.15.0",
"resolved": "https://registry.npmjs.org/codepage/-/codepage-1.15.0.tgz",
"integrity": "sha512-3g6NUTPd/YtuuGrhMnOMRjFc+LJw/bnMp3+0r/Wcz3IXUuCosKRJvMphm5+Q+bvTVGcJJuRvVLuYba+WojaFaA=="
},
"collection-visit": { "collection-visit": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz",
...@@ -3365,6 +3549,11 @@ ...@@ -3365,6 +3549,11 @@
"parse-json": "^4.0.0" "parse-json": "^4.0.0"
} }
}, },
"crc-32": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz",
"integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ=="
},
"create-ecdh": { "create-ecdh": {
"version": "4.0.3", "version": "4.0.3",
"resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz", "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz",
...@@ -3415,6 +3604,11 @@ ...@@ -3415,6 +3604,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",
...@@ -3624,6 +3818,11 @@ ...@@ -3624,6 +3818,11 @@
"css-tree": "1.0.0-alpha.37" "css-tree": "1.0.0-alpha.37"
} }
}, },
"csstype": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA=="
},
"current-script-polyfill": { "current-script-polyfill": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/current-script-polyfill/-/current-script-polyfill-1.0.0.tgz", "resolved": "https://registry.npmjs.org/current-script-polyfill/-/current-script-polyfill-1.0.0.tgz",
...@@ -3657,8 +3856,7 @@ ...@@ -3657,8 +3856,7 @@
"de-indent": { "de-indent": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
"integrity": "sha1-sgOOhG3DO6pXlhKNCAS0VbjB4h0=", "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg=="
"dev": true
}, },
"debug": { "debug": {
"version": "4.1.1", "version": "4.1.1",
...@@ -4154,18 +4352,11 @@ ...@@ -4154,18 +4352,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 +4486,12 @@ ...@@ -4295,6 +4486,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",
...@@ -5030,6 +5227,11 @@ ...@@ -5030,6 +5227,11 @@
"integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=", "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=",
"dev": true "dev": true
}, },
"frac": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/frac/-/frac-1.1.2.tgz",
"integrity": "sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA=="
},
"fragment-cache": { "fragment-cache": {
"version": "0.2.1", "version": "0.2.1",
"resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz",
...@@ -5114,7 +5316,8 @@ ...@@ -5114,7 +5316,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 +5338,14 @@ ...@@ -5135,12 +5338,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 +5360,20 @@ ...@@ -5155,17 +5360,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 +5490,8 @@ ...@@ -5282,7 +5490,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 +5503,7 @@ ...@@ -5294,6 +5503,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 +5518,7 @@ ...@@ -5308,6 +5518,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 +5526,14 @@ ...@@ -5315,12 +5526,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 +5552,7 @@ ...@@ -5339,6 +5552,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 +5642,8 @@ ...@@ -5428,7 +5642,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 +5655,7 @@ ...@@ -5440,6 +5655,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 +5741,8 @@ ...@@ -5525,7 +5741,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 +5778,7 @@ ...@@ -5561,6 +5778,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 +5798,7 @@ ...@@ -5580,6 +5798,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 +5842,14 @@ ...@@ -5623,12 +5842,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 +5868,7 @@ ...@@ -5647,8 +5868,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 +5944,23 @@ ...@@ -5724,6 +5944,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 +6065,112 @@ ...@@ -5828,6 +6065,112 @@
"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.5.2",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.2.tgz",
"integrity": "sha512-5/LaPu0B1uT7Kzl6oyIqyFT/NXIz2w7HNstiRtHaUQN1waSrPPPtzRRwywJg6CSSL+p994NaqPRnX696NAYzKg==",
"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": {
"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"
}
},
"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"
}
},
"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=="
},
"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"
}
},
"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"
}
},
"vuedraggable": {
"version": "2.24.3",
"resolved": "https://registry.npmjs.org/vuedraggable/-/vuedraggable-2.24.3.tgz",
"integrity": "sha512-6/HDXi92GzB+Hcs9fC6PAAozK1RLt1ewPTLjK0anTYguXLAeySDmcnqE8IC0xa7shvSzRjQXq3/+dsZ7ETGF3g==",
"requires": {
"sortablejs": "1.10.2"
}
}
}
},
"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 +6262,6 @@ ...@@ -5919,7 +6262,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"
} }
...@@ -6020,8 +6362,7 @@ ...@@ -6020,8 +6362,7 @@
"he": { "he": {
"version": "1.2.0", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
"integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw=="
"dev": true
}, },
"hex-color-regex": { "hex-color-regex": {
"version": "1.1.0", "version": "1.1.0",
...@@ -6342,7 +6683,7 @@ ...@@ -6342,7 +6683,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 +6702,7 @@ ...@@ -6361,7 +6702,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 +6901,7 @@ ...@@ -6560,8 +6901,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 +7262,12 @@ ...@@ -6922,6 +7262,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 +7340,12 @@ ...@@ -6994,6 +7340,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 +7646,16 @@ ...@@ -7294,6 +7646,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",
...@@ -7686,6 +8048,11 @@ ...@@ -7686,6 +8048,11 @@
"integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==", "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==",
"dev": true "dev": true
}, },
"nanoid": {
"version": "3.3.4",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz",
"integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw=="
},
"nanomatch": { "nanomatch": {
"version": "1.2.13", "version": "1.2.13",
"resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz",
...@@ -7968,7 +8335,7 @@ ...@@ -7968,7 +8335,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 +8382,7 @@ ...@@ -8015,7 +8382,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 +8916,12 @@ ...@@ -8549,6 +8916,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 +9080,9 @@ ...@@ -8707,9 +9080,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 +9090,86 @@ ...@@ -8717,27 +9090,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 +10614,15 @@ ...@@ -10182,6 +10614,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 +10653,23 @@ ...@@ -10212,6 +10653,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 +10885,11 @@ ...@@ -10427,6 +10885,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",
...@@ -10439,6 +10902,11 @@ ...@@ -10439,6 +10902,11 @@
"integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
"dev": true "dev": true
}, },
"source-map-js": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw=="
},
"source-map-resolve": { "source-map-resolve": {
"version": "0.5.3", "version": "0.5.3",
"resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz",
...@@ -10563,6 +11031,14 @@ ...@@ -10563,6 +11031,14 @@
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
"dev": true "dev": true
}, },
"ssf": {
"version": "0.11.2",
"resolved": "https://registry.npmjs.org/ssf/-/ssf-0.11.2.tgz",
"integrity": "sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g==",
"requires": {
"frac": "~1.1.2"
}
},
"sshpk": { "sshpk": {
"version": "1.16.1", "version": "1.16.1",
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
...@@ -11369,6 +11845,24 @@ ...@@ -11369,6 +11845,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",
...@@ -11526,9 +12020,13 @@ ...@@ -11526,9 +12020,13 @@
"dev": true "dev": true
}, },
"vue": { "vue": {
"version": "2.6.11", "version": "2.7.9",
"resolved": "https://registry.npmjs.org/vue/-/vue-2.6.11.tgz", "resolved": "https://registry.npmjs.org/vue/-/vue-2.7.9.tgz",
"integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ==" "integrity": "sha512-GeWCvAUkjzD5q4A3vgi8ka5r9bM6g8fmNmx/9VnHDKCaEzBcoVw+7UcQktZHrJ2jhlI+Zv8L57pMCIwM4h4MWg==",
"requires": {
"@vue/compiler-sfc": "2.7.9",
"csstype": "^3.1.0"
}
}, },
"vue-cli-plugin-element": { "vue-cli-plugin-element": {
"version": "1.0.1", "version": "1.0.1",
...@@ -11536,6 +12034,11 @@ ...@@ -11536,6 +12034,11 @@
"integrity": "sha512-OJSOnJtn7f1v/8xX+MJae+RrE8WguhiiG9QTBx/MNOPXYsxqut6Ommo+ZD3raNc7eryhqdM2T/DlMfdvIKpCtw==", "integrity": "sha512-OJSOnJtn7f1v/8xX+MJae+RrE8WguhiiG9QTBx/MNOPXYsxqut6Ommo+ZD3raNc7eryhqdM2T/DlMfdvIKpCtw==",
"dev": true "dev": true
}, },
"vue-draggable-resizable": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/vue-draggable-resizable/-/vue-draggable-resizable-2.3.0.tgz",
"integrity": "sha512-77CLRj1TPwB30pwsjOf3pkd1UzYanCdKXbqhILJ0Oo5QQl50lvBfyQCXxMFzwWwTc3sbBbQH3FfWSV+BkoSElA=="
},
"vue-eslint-parser": { "vue-eslint-parser": {
"version": "5.0.0", "version": "5.0.0",
"resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-5.0.0.tgz", "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-5.0.0.tgz",
...@@ -11582,11 +12085,6 @@ ...@@ -11582,11 +12085,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",
...@@ -11598,13 +12096,12 @@ ...@@ -11598,13 +12096,12 @@
} }
}, },
"vue-template-compiler": { "vue-template-compiler": {
"version": "2.6.11", "version": "2.7.9",
"resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.6.11.tgz", "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.9.tgz",
"integrity": "sha512-KIq15bvQDrcCjpGjrAhx4mUlyyHfdmTaoNfeoATHLAiWB+MU3cx4lOzMwrnUh9cCxy0Lt1T11hAFY6TQgroUAA==", "integrity": "sha512-NPJxt6OjVlzmkixYg0SdIN2Lw/rMryQskObY89uAMcM9flS/HrmLK5LaN1ReBTuhBgnYuagZZEkSS6FESATQUQ==",
"dev": true,
"requires": { "requires": {
"de-indent": "^1.0.2", "de-indent": "^1.0.2",
"he": "^1.1.0" "he": "^1.2.0"
} }
}, },
"vue-template-es2015-compiler": { "vue-template-es2015-compiler": {
...@@ -11613,10 +12110,13 @@ ...@@ -11613,10 +12110,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",
...@@ -12005,6 +12505,16 @@ ...@@ -12005,6 +12505,16 @@
"string-width": "^1.0.2 || 2" "string-width": "^1.0.2 || 2"
} }
}, },
"wmf": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wmf/-/wmf-1.0.2.tgz",
"integrity": "sha512-/p9K7bEh0Dj6WbXg4JG0xvLQmIadrner1bi45VMJTfnbVHsc7yIajZyoSoK60/dtVBs12Fm6WkUI5/3WAVsNMw=="
},
"word": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/word/-/word-0.3.0.tgz",
"integrity": "sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA=="
},
"word-wrap": { "word-wrap": {
"version": "1.2.3", "version": "1.2.3",
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
...@@ -12105,6 +12615,20 @@ ...@@ -12105,6 +12615,20 @@
"async-limiter": "~1.0.0" "async-limiter": "~1.0.0"
} }
}, },
"xlsx": {
"version": "0.18.5",
"resolved": "https://registry.npmjs.org/xlsx/-/xlsx-0.18.5.tgz",
"integrity": "sha512-dmg3LCjBPHZnQp5/F/+nnTa+miPJxUXB6vtk42YjBBKayDNagxGEeIdWApkYPOf3Z3pm3k62Knjzp7lMeTEtFQ==",
"requires": {
"adler-32": "~1.3.0",
"cfb": "~1.2.1",
"codepage": "~1.15.0",
"crc-32": "~1.2.1",
"ssf": "~0.11.2",
"wmf": "~1.0.1",
"word": "~0.3.0"
}
},
"xtend": { "xtend": {
"version": "4.0.2", "version": "4.0.2",
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
...@@ -12123,6 +12647,12 @@ ...@@ -12123,6 +12647,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",
...@@ -12285,4 +12815,4 @@ ...@@ -12285,4 +12815,4 @@
} }
} }
} }
}
\ No newline at end of file \ No newline at end of file
}
...@@ -13,9 +13,10 @@ ...@@ -13,9 +13,10 @@
"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.9", "glsx-common": "^1.4.9",
"glsx-components": "^1.4.7", "glsx-components": "^1.5.2",
"glsx-table": "^1.0.9", "glsx-table": "^1.0.9",
"vue-draggable-resizable": "^2.3.0", "vue-draggable-resizable": "^2.3.0",
"vue-template-compiler": "^2.7.9",
"vuedraggable": "^2.24.3", "vuedraggable": "^2.24.3",
"xlsx": "^0.18.5" "xlsx": "^0.18.5"
}, },
...@@ -37,8 +38,7 @@ ...@@ -37,8 +38,7 @@
"postcss-loader": "^6.2.0", "postcss-loader": "^6.2.0",
"prettier": "^1.19.1", "prettier": "^1.19.1",
"sass-loader": "^8.0.0", "sass-loader": "^8.0.0",
"vue-cli-plugin-element": "^1.0.1", "vue-cli-plugin-element": "^1.0.1"
"vue-template-compiler": "^2.6.10"
}, },
"browserslist": [ "browserslist": [
"> 1%", "> 1%",
......
...@@ -17,6 +17,11 @@ export default { ...@@ -17,6 +17,11 @@ export default {
gs: '' gs: ''
} }
}, },
beforeDestroy() {
document.onkeydown = function() {
return true
}
},
created() { created() {
document.onkeydown = function() { document.onkeydown = function() {
var evt = window.event || arguments[0] var evt = window.event || arguments[0]
......
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-10-12 09:30:11
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-10-19 14:07:55
* @FilePath: \scrm-micro-drainage\src\api\modules\businessCard.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
/**
* 新增参数sign 判断接口是否需要sign签名
*/
/**
* 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
* @param {*} params
* @returns
*/
import { http, http_tag } from '@/main'
let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
const getBussinessCardListApi = params => {
params.method = 'entmicro.api.business.card.listpage'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
const delBussinessCardApi = params => {
params.method = 'entmicro.api.business.card.delete'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
const getBussinessCardDetail = params => {
params.method = 'entmicro.api.business.card.cardDetail'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
const addBussinessCard = params => {
params.method = 'entmicro.api.business.card.save'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
const updateBussinessCard = params => {
params.method = 'entmicro.api.business.card.update'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 访问记录
const getaccessToRecordsPage = params => {
params.method = 'entmicro.api.business.cardRecord.page'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 智能名片活动跟进
const activityFollow = params => {
params.method = 'entmicro.api.business.card.activity.follow'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 分页查询活动申请记录
const activityRecord = params => {
params.method = 'entmicro.api.business.card.activity.record'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 智能名片活动申请
const activityApply = params => {
params.method = 'entmicro.api.business.card.activity.apply'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 智能名片活动页面访问记录
const pagerecord = params => {
params.method = 'entmicro.api.business.card.activity.pagerecord'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
getBussinessCardListApi,
delBussinessCardApi,
getBussinessCardDetail,
addBussinessCard,
updateBussinessCard,
getaccessToRecordsPage,
activityFollow,
activityRecord,
activityApply,
pagerecord
}
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http, http_tag } from '@/main' import { http } from '@/main'
let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop' let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
const getListApi = params => { const getListApi = params => {
params.method = 'entmicro.api.staff.listFollowerStaffByPage' params.method = 'entmicro.api.staff.listFollowerStaffByPage'
...@@ -31,7 +31,7 @@ const getFollower = params => { ...@@ -31,7 +31,7 @@ const getFollower = params => {
const querylabeltree = params => { const querylabeltree = params => {
params.method = 'scrm.api.datahub.labelgroup.queryLabelTree' params.method = 'scrm.api.datahub.labelgroup.queryLabelTree'
params.sessionId = session params.sessionId = session
return http_tag({ return http({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -40,7 +40,7 @@ const querylabeltree = params => { ...@@ -40,7 +40,7 @@ const querylabeltree = params => {
} }
const queryCrowdtree = params => { const queryCrowdtree = params => {
params.method = 'scrm.api.datahub.user.queryCrowdTree' params.method = 'scrm.api.datahub.user.queryCrowdTree'
return http_tag({ return http({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
data: params, data: params,
......
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
vertical-align: top; vertical-align: top;
} }
.text-hide { .text-hide {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.text-hide-2 { .text-hide-2 {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
} }
.scrm-textRight { .scrm-textRight {
position: relative; position: relative;
text-align: right; text-align: right;
} }
.scrm-textCenter { .scrm-textCenter {
text-align: center; text-align: center;
} }
.scrm-c3 { .scrm-c3 {
color: #333333; color: #333333;
} }
.scrm-f12 { .scrm-f12 {
font-size: 12px; font-size: 12px;
} }
.scrm-f13 { .scrm-f13 {
font-size: 13px; font-size: 13px;
} }
.scrm-f14 { .scrm-f14 {
font-size: 14px; font-size: 14px;
} }
.scrm-f15 { .scrm-f15 {
font-size: 15px; font-size: 15px;
} }
.scrm-f16 { .scrm-f16 {
font-size: 16px; font-size: 16px;
} }
.scrm-f18 { .scrm-f18 {
font-size: 18px; font-size: 18px;
} }
.scrm-f20 { .scrm-f20 {
font-size: 20px; font-size: 20px;
} }
.scrm-f22 { .scrm-f22 {
font-size: 22px; font-size: 22px;
} }
.scrm-f24 { .scrm-f24 {
font-size: 24px; font-size: 24px;
} }
.scrm-m10 { .scrm-m10 {
margin: 10px; margin: 10px;
} }
.scrm-m20 { .scrm-m20 {
margin: 20px; margin: 20px;
} }
.scrm-ml10 { .scrm-ml10 {
margin-left: 10px; margin-left: 10px;
} }
.scrm-ml20 { .scrm-ml20 {
margin-left: 20px; margin-left: 20px;
} }
.scrm-mr10 { .scrm-mr10 {
margin-right: 10px; margin-right: 10px;
} }
.scrm-mr20 { .scrm-mr20 {
margin-right: 20px; margin-right: 20px;
} }
.scrm-p10 { .scrm-p10 {
padding: 10px; padding: 10px;
} }
.scrm-p20 { .scrm-p20 {
padding: 20px; padding: 20px;
} }
.scrm-box-f { .scrm-box-f {
background: #ffffff; background: #ffffff;
// box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); // box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
} }
.scrm-flex { .scrm-flex {
display: flex; display: flex;
}
.task_icon {
position: relative;
&::after {
content: '';
position: absolute;
top: 8px;
left: -10px;
width: 6px;
height: 6px;
border-radius: 4px;
}
}
.green-icon {
&::after {
background: #2cca74;
}
}
.yellow-icon {
&::after {
background: #fdb757;
}
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
/*滚动条整体样式*/ /*滚动条整体样式*/
width: 6px; width: 6px;
height: 4px; height: 4px;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/ /*滚动条里面小方块*/
border-radius: 4px; border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3); background-color: rgba(144, 147, 153, 0.3);
} }
.glsx-table .line-ellipsis { .glsx-table .line-ellipsis {
display: inline; display: inline;
} }
.el-form--inline .el-form-item { .el-form--inline .el-form-item {
margin-right: 0px; margin-right: 0px;
} }
.el-tag { .el-tag {
color: #666 !important; color: #666 !important;
font-size: 14px !important; font-size: 14px !important;
} }
.el-tag.el-tag--info { .el-tag.el-tag--info {
background: #fafbfe !important; background: #fafbfe !important;
border: 1px solid #e8e8ea !important; border: 1px solid #e8e8ea !important;
border-radius: 4px; border-radius: 4px;
} }
.el-tag.el-tag--info.el-tag--plain { .el-tag.el-tag--info.el-tag--plain {
background: transparent !important; background: transparent !important;
} }
.el-dialog__title { .el-dialog__title {
height: 30px; height: 30px;
display: block; display: block;
} }
.el-table--enable-row-hover .el-table__body tr:hover { .el-table--enable-row-hover .el-table__body tr:hover {
background: #f4f3ff !important; background: #f4f3ff !important;
} }
.el-table tbody tr:hover > td { .el-table tbody tr:hover > td {
background: #f4f3ff !important; background: #f4f3ff !important;
} }
.el-message-box .el-message-box__title, .el-message-box .el-message-box__title,
.el-message-box .el-message-box__headerbtn { .el-message-box .el-message-box__headerbtn {
display: none; // display: none;
} }
.el-message-box__content { .el-message-box__content {
text-align: center; text-align: center;
padding: 50px 0px 50px; padding: 50px 0px 50px;
} }
.el-message-box__status.el-icon-warning { .el-message-box__status.el-icon-warning {
display: none; // display: none;
} }
.el-message-box__btns { .el-message-box__btns {
text-align: center; text-align: center;
padding: 20px 0px 10px; padding: 20px 0px 10px;
border-top: 1px solid #e6e6e6; border-top: 1px solid #e6e6e6;
} }
.el-message-box__btns button:nth-child(2) { .el-message-box__btns button:nth-child(2) {
margin-left: 40px; margin-left: 40px;
} }
.el-message-box__status + .el-message-box__message { .el-message-box__status + .el-message-box__message {
padding: 0px 10px; padding: 0px 10px;
} }
.el-message-box--center { .el-message-box--center {
padding: 0px; padding: 0px;
} }
.el-message--info { .el-message--info {
height: 40px; height: 40px;
background: #e6e9ff; background: #e6e9ff;
border: 1px solid #5850ff; border: 1px solid #5850ff;
border-radius: 4px; border-radius: 4px;
font-size: 14px; font-size: 14px;
color: rgba(0, 0, 0, 0.65); color: rgba(0, 0, 0, 0.65);
} }
.el-message .el-icon-info { .el-message .el-icon-info {
color: #5850ff; color: #5850ff;
font-size: 16px; font-size: 16px;
} }
.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner { .el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
box-shadow: none !important; box-shadow: none !important;
} }

1.84 KB | W: | H:

2.93 KB | W: | H:

src/assets/img/channel/count1.png
src/assets/img/channel/count1.png
src/assets/img/channel/count1.png
src/assets/img/channel/count1.png
  • 2-up
  • Swipe
  • Onion skin

1.95 KB | W: | H:

2.91 KB | W: | H:

src/assets/img/channel/count2.png
src/assets/img/channel/count2.png
src/assets/img/channel/count2.png
src/assets/img/channel/count2.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -110,7 +110,6 @@ export default { ...@@ -110,7 +110,6 @@ export default {
let widthMuti = this.textType == 'user' ? 17 : this.textType == 'tag' ? 20 : 0 let widthMuti = this.textType == 'user' ? 17 : this.textType == 'tag' ? 20 : 0
// this.hoverStatus = this.identi ? document.querySelector(`.${this.identification}`).scrollWidth - widthMuti > this.labelWidth : document.querySelector(`.full-text`).scrollWidth > this.labelWidth // this.hoverStatus = this.identi ? document.querySelector(`.${this.identification}`).scrollWidth - widthMuti > this.labelWidth : document.querySelector(`.full-text`).scrollWidth > this.labelWidth
this.hoverStatus = document.querySelector(`.${this.identification}`).scrollWidth - widthMuti > this.labelWidth this.hoverStatus = document.querySelector(`.${this.identification}`).scrollWidth - widthMuti > this.labelWidth
console.log(document.querySelector(`.${this.identification}`).scrollWidth)
} }
}, },
handleRemove() { handleRemove() {
...@@ -122,10 +121,10 @@ export default { ...@@ -122,10 +121,10 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.full-container { .full-container {
display: inline-block; display: inline-block;
margin-right: 6px; margin-right: 4px;
/deep/ { /deep/ {
.el-tag { .el-tag {
margin-right: 10px; // margin-right: 10px;
line-height: 26px; line-height: 26px;
height: 26px; height: 26px;
} }
......
...@@ -26,7 +26,6 @@ export default { ...@@ -26,7 +26,6 @@ export default {
}, },
filters: { filters: {
ellipsis(value,that) { ellipsis(value,that) {
console.log(value,that)
if (value.length > that.textLength) { if (value.length > that.textLength) {
that.tooltipStatus = true that.tooltipStatus = true
return value.slice(0, that.textLength) + '...' return value.slice(0, that.textLength) + '...'
......
<template> <template>
<div <div
:style="style" :style="style"
:class="[{ :class="[
[classNameActive]: enabled, {
[classNameDragging]: dragging, [classNameActive]: enabled,
[classNameResizing]: resizing, [classNameDragging]: dragging,
[classNameDraggable]: draggable, [classNameResizing]: resizing,
[classNameResizable]: resizable [classNameDraggable]: draggable,
}, className]" [classNameResizable]: resizable
},
className
]"
@mousedown="elementMouseDown" @mousedown="elementMouseDown"
@touchstart="elementTouchDown" @touchstart="elementTouchDown"
> >
<div <div v-for="handle in actualHandles" :key="handle" :class="[classNameHandle, classNameHandle + '-' + handle]" :style="{ display: enabled ? 'block' : 'none' }" @mousedown.stop.prevent="handleDown(handle, $event)" @touchstart.stop.prevent="handleTouchDown(handle, $event)">
v-for="handle in actualHandles"
:key="handle"
:class="[classNameHandle, classNameHandle + '-' + handle]"
:style="{display: enabled ? 'block' : 'none'}"
@mousedown.stop.prevent="handleDown(handle, $event)"
@touchstart.stop.prevent="handleTouchDown(handle, $event)"
>
<slot :name="handle"></slot> <slot :name="handle"></slot>
</div> </div>
<slot></slot> <slot></slot>
...@@ -121,7 +117,7 @@ export default { ...@@ -121,7 +117,7 @@ export default {
w: { w: {
type: [Number, String], type: [Number, String],
default: 200, default: 200,
validator: (val) => { validator: val => {
if (typeof val === 'number') { if (typeof val === 'number') {
return val > 0 return val > 0
} }
...@@ -132,7 +128,7 @@ export default { ...@@ -132,7 +128,7 @@ export default {
h: { h: {
type: [Number, String], type: [Number, String],
default: 200, default: 200,
validator: (val) => { validator: val => {
if (typeof val === 'number') { if (typeof val === 'number') {
return val > 0 return val > 0
} }
...@@ -143,22 +139,22 @@ export default { ...@@ -143,22 +139,22 @@ export default {
minWidth: { minWidth: {
type: Number, type: Number,
default: 0, default: 0,
validator: (val) => val >= 0 validator: val => val >= 0
}, },
minHeight: { minHeight: {
type: Number, type: Number,
default: 0, default: 0,
validator: (val) => val >= 0 validator: val => val >= 0
}, },
maxWidth: { maxWidth: {
type: Number, type: Number,
default: null, default: null,
validator: (val) => val >= 0 validator: val => val >= 0
}, },
maxHeight: { maxHeight: {
type: Number, type: Number,
default: null, default: null,
validator: (val) => val >= 0 validator: val => val >= 0
}, },
x: { x: {
type: Number, type: Number,
...@@ -171,12 +167,12 @@ export default { ...@@ -171,12 +167,12 @@ export default {
z: { z: {
type: [String, Number], type: [String, Number],
default: 'auto', default: 'auto',
validator: (val) => (typeof val === 'string' ? val === 'auto' : val >= 0) validator: val => (typeof val === 'string' ? val === 'auto' : val >= 0)
}, },
handles: { handles: {
type: Array, type: Array,
default: () => ['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml'], default: () => ['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml'],
validator: (val) => { validator: val => {
const s = new Set(['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml']) const s = new Set(['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml'])
return new Set(val.filter(h => s.has(h))).size === val.length return new Set(val.filter(h => s.has(h))).size === val.length
...@@ -193,14 +189,14 @@ export default { ...@@ -193,14 +189,14 @@ export default {
axis: { axis: {
type: String, type: String,
default: 'both', default: 'both',
validator: (val) => ['x', 'y', 'both'].includes(val) validator: val => ['x', 'y', 'both'].includes(val)
}, },
grid: { grid: {
type: Array, type: Array,
default: () => [1, 1] default: () => [1, 1]
}, },
customId: { customId: {
type: [String,Number], type: [String, Number],
default: '' default: ''
}, },
parent: { parent: {
...@@ -210,7 +206,7 @@ export default { ...@@ -210,7 +206,7 @@ export default {
scale: { scale: {
type: [Number, Array], type: [Number, Array],
default: 1, default: 1,
validator: (val) => { validator: val => {
if (typeof val === 'number') { if (typeof val === 'number') {
return val > 0 return val > 0
} }
...@@ -236,7 +232,7 @@ export default { ...@@ -236,7 +232,7 @@ export default {
} }
}, },
data: function () { data: function() {
return { return {
left: this.x, left: this.x,
top: this.y, top: this.y,
...@@ -270,7 +266,7 @@ export default { ...@@ -270,7 +266,7 @@ export default {
} }
}, },
created: function () { created: function() {
// eslint-disable-next-line // eslint-disable-next-line
if (this.maxWidth && this.minWidth > this.maxWidth) console.warn('[Vdr warn]: Invalid prop: minWidth cannot be greater than maxWidth') if (this.maxWidth && this.minWidth > this.maxWidth) console.warn('[Vdr warn]: Invalid prop: minWidth cannot be greater than maxWidth')
// eslint-disable-next-line // eslint-disable-next-line
...@@ -278,7 +274,7 @@ export default { ...@@ -278,7 +274,7 @@ export default {
this.resetBoundsAndMouseState() this.resetBoundsAndMouseState()
}, },
mounted: function () { mounted: function() {
if (!this.enableNativeDrag) { if (!this.enableNativeDrag) {
this.$el.ondragstart = () => false this.$el.ondragstart = () => false
} }
...@@ -307,7 +303,7 @@ export default { ...@@ -307,7 +303,7 @@ export default {
addEvent(window, 'resize', this.checkParentSize) addEvent(window, 'resize', this.checkParentSize)
}, },
beforeDestroy: function () { beforeDestroy: function() {
removeEvent(document.documentElement, 'mousedown', this.deselect) removeEvent(document.documentElement, 'mousedown', this.deselect)
removeEvent(document.documentElement, 'touchstart', this.handleUp) removeEvent(document.documentElement, 'touchstart', this.handleUp)
removeEvent(document.documentElement, 'mousemove', this.move) removeEvent(document.documentElement, 'mousemove', this.move)
...@@ -319,7 +315,7 @@ export default { ...@@ -319,7 +315,7 @@ export default {
}, },
methods: { methods: {
resetBoundsAndMouseState () { resetBoundsAndMouseState() {
this.mouseClickPosition = { mouseX: 0, mouseY: 0, x: 0, y: 0, w: 0, h: 0 } this.mouseClickPosition = { mouseX: 0, mouseY: 0, x: 0, y: 0, w: 0, h: 0 }
this.bounds = { this.bounds = {
...@@ -333,7 +329,7 @@ export default { ...@@ -333,7 +329,7 @@ export default {
maxBottom: null maxBottom: null
} }
}, },
checkParentSize () { checkParentSize() {
if (this.parent) { if (this.parent) {
const [newParentWidth, newParentHeight] = this.getParentSize() const [newParentWidth, newParentHeight] = this.getParentSize()
...@@ -343,29 +339,26 @@ export default { ...@@ -343,29 +339,26 @@ export default {
this.bottom = this.parentHeight - this.height - this.top this.bottom = this.parentHeight - this.height - this.top
} }
}, },
getParentSize () { getParentSize() {
if (this.parent) { if (this.parent) {
const style = window.getComputedStyle(this.$el.parentNode, null) const style = window.getComputedStyle(this.$el.parentNode, null)
return [ return [parseInt(style.getPropertyValue('width'), 10), parseInt(style.getPropertyValue('height'), 10)]
parseInt(style.getPropertyValue('width'), 10),
parseInt(style.getPropertyValue('height'), 10)
]
} }
return [null, null] return [null, null]
}, },
elementTouchDown (e) { elementTouchDown(e) {
eventsFor = events.touch eventsFor = events.touch
this.elementDown(e) this.elementDown(e)
}, },
elementMouseDown (e) { elementMouseDown(e) {
eventsFor = events.mouse eventsFor = events.mouse
this.elementDown(e) this.elementDown(e)
}, },
elementDown (e) { elementDown(e) {
if (e instanceof MouseEvent && e.which !== 1) { if (e instanceof MouseEvent && e.which !== 1) {
return return
} }
...@@ -377,10 +370,7 @@ export default { ...@@ -377,10 +370,7 @@ export default {
return return
} }
if ( if ((this.dragHandle && !matchesSelectorToParentElements(target, this.dragHandle, this.$el)) || (this.dragCancel && matchesSelectorToParentElements(target, this.dragCancel, this.$el))) {
(this.dragHandle && !matchesSelectorToParentElements(target, this.dragHandle, this.$el)) ||
(this.dragCancel && matchesSelectorToParentElements(target, this.dragCancel, this.$el))
) {
this.dragging = false this.dragging = false
return return
...@@ -389,7 +379,7 @@ export default { ...@@ -389,7 +379,7 @@ export default {
if (!this.enabled) { if (!this.enabled) {
this.enabled = true this.enabled = true
this.$emit('activated',this.customId) this.$emit('activated', this.customId)
this.$emit('update:active', true) this.$emit('update:active', true)
} }
...@@ -413,7 +403,7 @@ export default { ...@@ -413,7 +403,7 @@ export default {
addEvent(document.documentElement, eventsFor.stop, this.handleUp) addEvent(document.documentElement, eventsFor.stop, this.handleUp)
} }
}, },
calcDragLimits () { calcDragLimits() {
return { return {
minLeft: this.left % this.grid[0], minLeft: this.left % this.grid[0],
maxLeft: Math.floor((this.parentWidth - this.width - this.left) / this.grid[0]) * this.grid[0] + this.left, maxLeft: Math.floor((this.parentWidth - this.width - this.left) / this.grid[0]) * this.grid[0] + this.left,
...@@ -425,7 +415,7 @@ export default { ...@@ -425,7 +415,7 @@ export default {
maxBottom: Math.floor((this.parentHeight - this.height - this.bottom) / this.grid[1]) * this.grid[1] + this.bottom maxBottom: Math.floor((this.parentHeight - this.height - this.bottom) / this.grid[1]) * this.grid[1] + this.bottom
} }
}, },
deselect (e) { deselect(e) {
const target = e.target || e.srcElement const target = e.target || e.srcElement
const regex = new RegExp(this.className + '-([trmbl]{2})', '') const regex = new RegExp(this.className + '-([trmbl]{2})', '')
...@@ -442,12 +432,12 @@ export default { ...@@ -442,12 +432,12 @@ export default {
this.resetBoundsAndMouseState() this.resetBoundsAndMouseState()
}, },
handleTouchDown (handle, e) { handleTouchDown(handle, e) {
eventsFor = events.touch eventsFor = events.touch
this.handleDown(handle, e) this.handleDown(handle, e)
}, },
handleDown (handle, e) { handleDown(handle, e) {
if (e instanceof MouseEvent && e.which !== 1) { if (e instanceof MouseEvent && e.which !== 1) {
return return
} }
...@@ -480,7 +470,7 @@ export default { ...@@ -480,7 +470,7 @@ export default {
addEvent(document.documentElement, eventsFor.move, this.handleResize) addEvent(document.documentElement, eventsFor.move, this.handleResize)
addEvent(document.documentElement, eventsFor.stop, this.handleUp) addEvent(document.documentElement, eventsFor.stop, this.handleUp)
}, },
calcResizeLimits () { calcResizeLimits() {
let minW = this.minW let minW = this.minW
let minH = this.minH let minH = this.minH
let maxW = this.maxW let maxW = this.maxW
...@@ -572,7 +562,7 @@ export default { ...@@ -572,7 +562,7 @@ export default {
limits.minBottom = -(top + maxH) limits.minBottom = -(top + maxH)
} }
if (this.lockAspectRatio && (maxW && maxH)) { if (this.lockAspectRatio && maxW && maxH) {
limits.minLeft = Math.min(limits.minLeft, -(right + maxW)) limits.minLeft = Math.min(limits.minLeft, -(right + maxW))
limits.minTop = Math.min(limits.minTop, -(maxH + bottom)) limits.minTop = Math.min(limits.minTop, -(maxH + bottom))
limits.minRight = Math.min(limits.minRight, -left - maxW) limits.minRight = Math.min(limits.minRight, -left - maxW)
...@@ -582,14 +572,14 @@ export default { ...@@ -582,14 +572,14 @@ export default {
return limits return limits
}, },
move (e) { move(e) {
if (this.resizing) { if (this.resizing) {
this.handleResize(e) this.handleResize(e)
} else if (this.dragEnable) { } else if (this.dragEnable) {
this.handleDrag(e) this.handleDrag(e)
} }
}, },
handleDrag (e) { handleDrag(e) {
const axis = this.axis const axis = this.axis
const grid = this.grid const grid = this.grid
const bounds = this.bounds const bounds = this.bounds
...@@ -618,7 +608,7 @@ export default { ...@@ -618,7 +608,7 @@ export default {
this.$emit('dragging', this.left, this.top) this.$emit('dragging', this.left, this.top)
this.dragging = true this.dragging = true
}, },
moveHorizontally (val) { moveHorizontally(val) {
// should calculate with scale 1. // should calculate with scale 1.
const [deltaX, _] = snapToGrid(this.grid, val, this.top, 1) const [deltaX, _] = snapToGrid(this.grid, val, this.top, 1)
...@@ -627,7 +617,7 @@ export default { ...@@ -627,7 +617,7 @@ export default {
this.left = left this.left = left
this.right = this.parentWidth - this.width - left this.right = this.parentWidth - this.width - left
}, },
moveVertically (val) { moveVertically(val) {
// should calculate with scale 1. // should calculate with scale 1.
const [_, deltaY] = snapToGrid(this.grid, this.left, val, 1) const [_, deltaY] = snapToGrid(this.grid, this.left, val, 1)
...@@ -636,7 +626,7 @@ export default { ...@@ -636,7 +626,7 @@ export default {
this.top = top this.top = top
this.bottom = this.parentHeight - this.height - top this.bottom = this.parentHeight - this.height - top
}, },
handleResize (e) { handleResize(e) {
let left = this.left let left = this.left
let top = this.top let top = this.top
let right = this.right let right = this.right
...@@ -660,21 +650,13 @@ export default { ...@@ -660,21 +650,13 @@ export default {
const [deltaX, deltaY] = snapToGrid(this.grid, tmpDeltaX, tmpDeltaY, this.scale) const [deltaX, deltaY] = snapToGrid(this.grid, tmpDeltaX, tmpDeltaY, this.scale)
if (this.handle.includes('b')) { if (this.handle.includes('b')) {
bottom = restrictToBounds( bottom = restrictToBounds(mouseClickPosition.bottom + deltaY, this.bounds.minBottom, this.bounds.maxBottom)
mouseClickPosition.bottom + deltaY,
this.bounds.minBottom,
this.bounds.maxBottom
)
if (this.lockAspectRatio && this.resizingOnY) { if (this.lockAspectRatio && this.resizingOnY) {
right = this.right - (this.bottom - bottom) * aspectFactor right = this.right - (this.bottom - bottom) * aspectFactor
} }
} else if (this.handle.includes('t')) { } else if (this.handle.includes('t')) {
top = restrictToBounds( top = restrictToBounds(mouseClickPosition.top - deltaY, this.bounds.minTop, this.bounds.maxTop)
mouseClickPosition.top - deltaY,
this.bounds.minTop,
this.bounds.maxTop
)
if (this.lockAspectRatio && this.resizingOnY) { if (this.lockAspectRatio && this.resizingOnY) {
left = this.left - (this.top - top) * aspectFactor left = this.left - (this.top - top) * aspectFactor
...@@ -682,21 +664,13 @@ export default { ...@@ -682,21 +664,13 @@ export default {
} }
if (this.handle.includes('r')) { if (this.handle.includes('r')) {
right = restrictToBounds( right = restrictToBounds(mouseClickPosition.right + deltaX, this.bounds.minRight, this.bounds.maxRight)
mouseClickPosition.right + deltaX,
this.bounds.minRight,
this.bounds.maxRight
)
if (this.lockAspectRatio && this.resizingOnX) { if (this.lockAspectRatio && this.resizingOnX) {
bottom = this.bottom - (this.right - right) / aspectFactor bottom = this.bottom - (this.right - right) / aspectFactor
} }
} else if (this.handle.includes('l')) { } else if (this.handle.includes('l')) {
left = restrictToBounds( left = restrictToBounds(mouseClickPosition.left - deltaX, this.bounds.minLeft, this.bounds.maxLeft)
mouseClickPosition.left - deltaX,
this.bounds.minLeft,
this.bounds.maxLeft
)
if (this.lockAspectRatio && this.resizingOnX) { if (this.lockAspectRatio && this.resizingOnX) {
top = this.top - (this.left - left) / aspectFactor top = this.top - (this.left - left) / aspectFactor
...@@ -720,15 +694,11 @@ export default { ...@@ -720,15 +694,11 @@ export default {
this.$emit('resizing', this.left, this.top, this.width, this.height) this.$emit('resizing', this.left, this.top, this.width, this.height)
this.resizing = true this.resizing = true
}, },
changeWidth (val) { changeWidth(val) {
// should calculate with scale 1. // should calculate with scale 1.
const [newWidth, _] = snapToGrid(this.grid, val, 0, 1) const [newWidth, _] = snapToGrid(this.grid, val, 0, 1)
let right = restrictToBounds( let right = restrictToBounds(this.parentWidth - newWidth - this.left, this.bounds.minRight, this.bounds.maxRight)
(this.parentWidth - newWidth - this.left),
this.bounds.minRight,
this.bounds.maxRight
)
let bottom = this.bottom let bottom = this.bottom
if (this.lockAspectRatio) { if (this.lockAspectRatio) {
...@@ -743,15 +713,11 @@ export default { ...@@ -743,15 +713,11 @@ export default {
this.width = width this.width = width
this.height = height this.height = height
}, },
changeHeight (val) { changeHeight(val) {
// should calculate with scale 1. // should calculate with scale 1.
const [_, newHeight] = snapToGrid(this.grid, 0, val, 1) const [_, newHeight] = snapToGrid(this.grid, 0, val, 1)
let bottom = restrictToBounds( let bottom = restrictToBounds(this.parentHeight - newHeight - this.top, this.bounds.minBottom, this.bounds.maxBottom)
(this.parentHeight - newHeight - this.top),
this.bounds.minBottom,
this.bounds.maxBottom
)
let right = this.right let right = this.right
if (this.lockAspectRatio) { if (this.lockAspectRatio) {
...@@ -766,7 +732,7 @@ export default { ...@@ -766,7 +732,7 @@ export default {
this.width = width this.width = width
this.height = height this.height = height
}, },
handleUp (e) { handleUp(e) {
this.handle = null this.handle = null
this.resetBoundsAndMouseState() this.resetBoundsAndMouseState()
...@@ -788,7 +754,7 @@ export default { ...@@ -788,7 +754,7 @@ export default {
} }
}, },
computed: { computed: {
style () { style() {
return { return {
transform: `translate(${this.left}px, ${this.top}px)`, transform: `translate(${this.left}px, ${this.top}px)`,
width: this.computedWidth, width: this.computedWidth,
...@@ -797,12 +763,12 @@ export default { ...@@ -797,12 +763,12 @@ export default {
...(this.dragging && this.disableUserSelect ? userSelectNone : userSelectAuto) ...(this.dragging && this.disableUserSelect ? userSelectNone : userSelectAuto)
} }
}, },
actualHandles () { actualHandles() {
if (!this.resizable) return [] if (!this.resizable) return []
return this.handles return this.handles
}, },
computedWidth () { computedWidth() {
if (this.w === 'auto') { if (this.w === 'auto') {
if (!this.widthTouched) { if (!this.widthTouched) {
return 'auto' return 'auto'
...@@ -811,7 +777,7 @@ export default { ...@@ -811,7 +777,7 @@ export default {
return this.width + 'px' return this.width + 'px'
}, },
computedHeight () { computedHeight() {
if (this.h === 'auto') { if (this.h === 'auto') {
if (!this.heightTouched) { if (!this.heightTouched) {
return 'auto' return 'auto'
...@@ -820,19 +786,19 @@ export default { ...@@ -820,19 +786,19 @@ export default {
return this.height + 'px' return this.height + 'px'
}, },
resizingOnX () { resizingOnX() {
return (Boolean(this.handle) && (this.handle.includes('l') || this.handle.includes('r'))) return Boolean(this.handle) && (this.handle.includes('l') || this.handle.includes('r'))
}, },
resizingOnY () { resizingOnY() {
return (Boolean(this.handle) && (this.handle.includes('t') || this.handle.includes('b'))) return Boolean(this.handle) && (this.handle.includes('t') || this.handle.includes('b'))
}, },
isCornerHandle () { isCornerHandle() {
return (Boolean(this.handle) && ['tl', 'tr', 'br', 'bl'].includes(this.handle)) return Boolean(this.handle) && ['tl', 'tr', 'br', 'bl'].includes(this.handle)
} }
}, },
watch: { watch: {
active (val) { active(val) {
this.enabled = val this.enabled = val
if (val) { if (val) {
...@@ -841,12 +807,12 @@ export default { ...@@ -841,12 +807,12 @@ export default {
this.$emit('deactivated') this.$emit('deactivated')
} }
}, },
z (val) { z(val) {
if (val >= 0 || val === 'auto') { if (val >= 0 || val === 'auto') {
this.zIndex = val this.zIndex = val
} }
}, },
x (val) { x(val) {
if (this.resizing || this.dragging) { if (this.resizing || this.dragging) {
return return
} }
...@@ -857,7 +823,7 @@ export default { ...@@ -857,7 +823,7 @@ export default {
this.moveHorizontally(val) this.moveHorizontally(val)
}, },
y (val) { y(val) {
if (this.resizing || this.dragging) { if (this.resizing || this.dragging) {
return return
} }
...@@ -868,30 +834,30 @@ export default { ...@@ -868,30 +834,30 @@ export default {
this.moveVertically(val) this.moveVertically(val)
}, },
lockAspectRatio (val) { lockAspectRatio(val) {
if (val) { if (val) {
this.aspectFactor = this.width / this.height this.aspectFactor = this.width / this.height
} else { } else {
this.aspectFactor = undefined this.aspectFactor = undefined
} }
}, },
minWidth (val) { minWidth(val) {
if (val > 0 && val <= this.width) { if (val > 0 && val <= this.width) {
this.minW = val this.minW = val
} }
}, },
minHeight (val) { minHeight(val) {
if (val > 0 && val <= this.height) { if (val > 0 && val <= this.height) {
this.minH = val this.minH = val
} }
}, },
maxWidth (val) { maxWidth(val) {
this.maxW = val this.maxW = val
}, },
maxHeight (val) { maxHeight(val) {
this.maxH = val this.maxH = val
}, },
w (val) { w(val) {
if (this.resizing || this.dragging) { if (this.resizing || this.dragging) {
return return
} }
...@@ -902,7 +868,7 @@ export default { ...@@ -902,7 +868,7 @@ export default {
this.changeWidth(val) this.changeWidth(val)
}, },
h (val) { h(val) {
if (this.resizing || this.dragging) { if (this.resizing || this.dragging) {
return return
} }
......
<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.channel.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
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="70%" :before-close="handleClose">
<el-form :inline="true" :model="tableSearchForm" class="emp-form">
<el-form-item size="small" label="客户名称">
<el-input v-model="tableSearchForm.customerName" placeholder="请输入客户名称"></el-input>
</el-form-item>
<el-form-item size="small" label="状态" v-if="!pStatus">
<el-select v-model="tableSearchForm.status" placeholder="请选择">
<el-option v-for="item in optionstatus" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" label="跟进员工" v-if="!staffIds">
<el-select v-model="staffId" placeholder="请选择">
<el-option v-for="item in staffName" :key="item.staffId" :label="item.staffName" :value="item.staffId"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" label="添加时间" v-if="timeStatus">
<el-date-picker :picker-options="pickerOptions" value-format="yyyy-MM-dd" v-model="createTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item size="small">
<el-button type="primary" @click="handleSearch">查询</el-button>
<el-button type="primary" @click="handleReset">重置</el-button>
</el-form-item>
</el-form>
<!-- <GLCombiForm ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> -->
<GLTable v-loading="loading" ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch" @selectionTable="selectionTable">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">详情</el-button>
</div>
<template slot="status" slot-scope="scope">
<div class="status-form" v-if="scope.scope.status" style="color: #eb4e4e">删除好友</div>
<div class="status-form" v-else style="color: #00a854">正常</div>
</template>
<template slot="customerName" slot-scope="scope">
<div class="form-row">
<img :src="scope.scope.avatar" v-if="scope.scope.avatar" />
{{ scope.scope.nickNameList[0].nickName }}
<span style="color: #5850ff">{{ scope.scope.type == 1 ? '@微信' : '@企微' }}</span>
</div>
</template>
</GLTable>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="handleCancel" type="primary">关闭</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,
status: '',
createTime: [],
optionstatus: [
{
value: '',
label: '全部'
},
{
value: '0',
label: '正常'
},
{
value: '-1',
label: '删除好友'
}
],
tableSearchForm: {},
searchFormData: [
{
label: '客户名称',
name: 'codeNameAndRemark',
type: 'input',
placeholder: '请输入客户名称'
},
{
label: '状态',
name: 'imStatus',
type: 'select',
placeholder: '请选择',
optionId: 'value',
optionLabel: 'label',
optionList: [
{
value: '',
label: '全部'
},
{
value: '0',
label: '正常'
},
{
value: '-1',
label: '删除好友'
}
]
},
{
label: '跟进员工',
name: 'imStatus',
type: 'select',
placeholder: '请选择',
optionId: 'value',
optionLabel: 'label',
optionList: [
{
value: '',
label: '全部'
},
{
value: '0',
label: '正常'
},
{
value: '-1',
label: '删除好友'
}
]
},
{
label: '添加时间',
name: 'createTime',
type: 'datePicker',
placeholder: '',
isClear: true,
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
}
}
],
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: {
listName: 'data',
tableOption: false,
tableColumns: [
{
label: '客户名称',
prop: 'customerName',
addHtml: 'customerName',
align: 'left'
},
{
label: '客户性别',
prop: 'customerSex',
formatter: cellValue => {
return cellValue.customerSex == 1 ? '男' : '女'
},
minWidth: 100
},
{
label: '状态',
prop: 'status',
addHtml: 'status',
minWidth: 100
},
{
label: '跟进员工',
prop: 'followStaff',
minWidth: 100
},
{
label: '添加时间',
prop: 'addTime'
},
{
label: '操作',
prop: 'optionBtns',
minWidth: '80px',
addHtml: 'optionBtns'
}
]
},
layout: 'sizes, prev, pager, next, jumper, ->, total',
tableData: [],
staffName: [],
tableTotal: 0,
selectItem: [],
selectEmp: [],
pStatus: null,
staffIds: null,
staffId: null
}
},
methods: {
jumpUrl() {
this.$history.push('/home/followUp/index')
},
getFollower() {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum,
custState: this.selectRow.codeState ? this.selectRow.codeState : this.selectRow.state,
staffIds: this.staffId ? [this.staffId] : null
}
if (this.createTime && this.createTime.length > 0) {
params.beginTime = this.createTime[0]
params.endTime = this.createTime[1]
}
if (this.pStatus) {
params.status = 0
}
if (this.staffIds) {
params.staffIds = this.staffIds
}
this.loading = true
this.$apis.channel.getCustomer(params).then(res => {
this.loading = false
this.tableData = res.data
this.tableTotal = res.count
})
},
getChannelCodeStaffList() {
var params = {
pageSize: 1000,
pageNum: 1,
codeState: this.selectRow.codeState ? this.selectRow.codeState : this.selectRow.state
}
this.$apis.channel.getChannelCodeStaffList(params).then(res => {
this.staffName = [{ staffName: '全部', staffId: null }].concat(res.data)
})
},
init(item, value, day) {
this.createTime = []
this.pStatus = null
this.staffIds = null
this.timeStatus = true
if (value == 'day' && !day) {
this.createTime = [util.getDay(0), util.getDay(0)]
this.timeStatus = false
}
if (value == 'day' && day) {
if (day.indexOf('~') == -1) {
this.createTime = [day, day]
} else {
this.createTime = [day.split('~')[0], day.split('~')[1]]
}
this.timeStatus = false
}
if (value == 'status' && !day) {
this.pStatus = 'status'
}
if (value == 'status' && day) {
this.pStatus = 'status'
if (day.indexOf('~') == -1) {
this.createTime = [day, day]
} else {
this.createTime = [day.split('~')[0], day.split('~')[1]]
}
this.timeStatus = false
}
if (value == 'staffIds') {
this.staffIds = item.staffId
}
if (value == 'statusAndStaffIds') {
this.pStatus = 'status'
this.staffIds = item.staffId
}
this.selectRow = item
this.tableSearchForm = {}
this.dialogVisible = true
this.getChannelCodeStaffList()
this.$nextTick(() => {
this.$refs.table.page.pageNum = 1
this.getFollower()
})
},
handleSearch() {
this.getFollower()
},
handleReset() {
this.tableSearchForm = {}
this.getFollower()
},
selectionTable(val) {
this.selectItem = val
},
handleClose() {
this.handleCancel()
},
handleDetail(scope) {
this.$history.push('/custom/clientManage/clientDetail?id=' + scope.oneId)
},
handleCancel: utils.debounce(function() {
this.dialogVisible = false
}, 300)
}
}
</script>
<style lang="scss" scoped>
.dialog-jump {
color: #5850ff;
float: left;
line-height: 24px;
text-decoration: underline;
cursor: pointer;
}
.emp-form {
/deep/ {
.el-date-editor,
.el-input {
width: 212px;
}
}
}
.square-main {
/deep/ {
.el-table {
height: 35vh;
overflow-y: auto;
}
.el-form-item {
margin-right: 20px;
}
.el-table::before {
left: 0;
bottom: 0;
width: 100%;
height: 0px;
}
}
}
.form-row {
img {
width: 50px;
height: 50px;
vertical-align: middle;
}
}
</style>
<template>
<div>
<div id="channel-main" class="chart-line" ref="line" v-show="lineStatus"></div>
<div class="chart-line-empty" v-show="!lineStatus">
<img src="@/assets/img/empty.png" />
<div class="chart-empty-d">暂无数据</div>
</div>
</div>
</template>
<script>
import * as echarts from 'echarts'
export default {
name: 'line',
data() {
return {
lineStatus: true
}
},
props: {
colorList: {
type: Array
}
},
methods: {
init(chartList, codeName) {
if (chartList.length == 0) {
this.lineStatus = false
return
}
let time = chartList[0].trendItemList.map(item => {
return item.dayTime
})
let seriesList = chartList.map((item, index) => {
let newlyQyCount = []
item.trendItemList.forEach(i => {
newlyQyCount.push(i.newlyQyCount)
})
return {
name: codeName[index],
type: 'line',
data: newlyQyCount,
itemStyle: {
normal: {
color: this.colorList[index],
lineStyle: {
color: this.colorList[index]
}
}
}
}
})
echarts.init(document.getElementById('channel-main')).clear()
let chartDom = document.getElementById('channel-main')
let myChart = echarts.init(chartDom)
let option = {
legend: {
left: 'auto',
icon: 'stack',
itemHeight: 2,
itemWidth: 12,
color: this.colorList
},
tooltip: {
trigger: 'axis'
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: {
type: 'category',
boundaryGap: false,
data: time
},
yAxis: {
type: 'value',
minInterval: 1
},
series: seriesList
}
myChart.setOption(option)
let dataList = []
seriesList.forEach(item => {
dataList = dataList.concat(item.data)
})
if (dataList.every(item => item == 0)) {
this.lineStatus = false
} else {
this.lineStatus = true
}
}
}
}
</script>
<style scoped lang="scss">
.chart-line {
height: 300px;
}
.chart-line-empty {
height: 300px;
text-align: center;
color: #666;
img {
margin-top: 100px;
width: 64px;
height: 32px;
margin-bottom: 12px;
}
}
</style>
<template>
<div class="square-main" v-loading="loading">
<el-dialog title="客户列表" :visible.sync="dialogVisible" :before-close="handleClose">
<!-- <GLCombiForm ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> -->
<GLTable v-loading="loading" ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch" @selectionTable="selectionTable"></GLTable>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="handleCancel" type="primary">关闭</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,
status: '',
createTime: [],
optionstatus: [
{
value: '',
label: '全部'
},
{
value: '0',
label: '正常'
},
{
value: '-1',
label: '删除好友'
}
],
tableSearchForm: {},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: {
listName: 'data',
tableOption: false,
tableColumns: [
{
label: '访问页面',
prop: 'addTime'
},
{
label: '访问时间',
prop: 'addTime'
}
]
},
layout: 'sizes, prev, pager, next, jumper, ->, total',
tableData: [],
staffName: [],
tableTotal: 0,
selectItem: [],
selectEmp: [],
pStatus: null,
staffIds: null,
staffId: null
}
},
methods: {
getFollower() {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum,
custState: this.selectRow.codeState,
staffIds: this.staffId ? [this.staffId] : null
}
if (this.createTime && this.createTime.length > 0) {
params.beginTime = this.createTime[0]
params.endTime = this.createTime[1]
}
if (this.pStatus) {
params.status = 0
}
if (this.staffIds) {
params.staffIds = this.staffIds
}
this.loading = true
this.$apis.channel.getCustomer(params).then(res => {
this.loading = false
this.tableData = res.data
this.tableTotal = res.count
})
},
getChannelCodeStaffList() {
var params = {
pageSize: 1000,
pageNum: 1,
codeState: this.selectRow.codeState
}
this.$apis.channel.getChannelCodeStaffList(params).then(res => {
this.staffName = [{ staffName: '全部', staffId: null }].concat(res.data)
})
},
init(item, value, day) {
this.createTime = []
this.pStatus = null
this.staffIds = null
this.timeStatus = true
if (value == 'day' && !day) {
this.createTime = [util.getDay(0), util.getDay(0)]
this.timeStatus = false
}
if (value == 'day' && day) {
if (day.indexOf('~') == -1) {
this.createTime = [day, day]
} else {
this.createTime = [day.split('~')[0], day.split('~')[1]]
}
this.timeStatus = false
}
if (value == 'status' && !day) {
this.pStatus = 'status'
}
if (value == 'status' && day) {
this.pStatus = 'status'
if (day.indexOf('~') == -1) {
this.createTime = [day, day]
} else {
this.createTime = [day.split('~')[0], day.split('~')[1]]
}
this.timeStatus = false
}
if (value == 'staffIds') {
this.staffIds = item.staffId
}
if (value == 'statusAndStaffIds') {
this.pStatus = 'status'
this.staffIds = item.staffId
}
this.selectRow = item
this.tableSearchForm = {}
this.dialogVisible = true
this.getChannelCodeStaffList()
this.$nextTick(() => {
this.$refs.table.page.pageNum = 1
this.getFollower()
})
},
handleSearch() {
this.getFollower()
},
selectionTable(val) {
this.selectItem = val
},
handleClose() {
this.handleCancel()
},
handleDetail(scope) {
this.$history.push('/custom/clientManage/clientDetail?id=' + scope.oneId)
},
handleCancel: utils.debounce(function() {
this.dialogVisible = false
}, 300)
}
}
</script>
<style lang="scss" scoped>
.dialog-jump {
color: #5850ff;
float: left;
line-height: 24px;
text-decoration: underline;
cursor: pointer;
}
.emp-form {
/deep/ {
.el-date-editor,
.el-input {
width: 215px;
}
}
}
.square-main {
/deep/ {
.el-table {
height: 35vh;
overflow-y: auto;
}
.el-form-item {
margin-right: 20px;
}
.el-table::before {
left: 0;
bottom: 0;
width: 100%;
height: 0px;
}
}
}
.form-row {
img {
width: 50px;
height: 50px;
vertical-align: middle;
}
}
</style>
<template>
<div class="square-main">
<GLDialog title="选择渠道" :visible.sync="dialogVisible" @onOk="handleSelect" @onCancel="handleCancel" mode="big">
<div class="square-tabel">
<div class="square-tabel-select">
<GLTable ref="table" :hasPage="false" :tableData="tableData" :tableTotal="tableTotal" :tableParams="tableParams" @refreshTable="handleSearch" @selectionTable="selectionTable"></GLTable>
</div>
<div class="square-tabel-selected">
<div class="selected-title">已选渠道</div>
<div class="selected-panel">
<div class="selected-item" v-for="(item, index) in selectedList" :key="index">
<div :title="item.codeName">
<span :style="{ background: colorList[index] }"></span>
{{ item.codeName }}
</div>
<img src="@/assets/img/channel/del.png" @click="delTag(item)" />
</div>
</div>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="handleCancel">取 消</el-button>
<el-button size="small" type="primary" @click="handleSelect">确 定</el-button>
</span>
</GLDialog>
</div>
</template>
<script>
import { utils } from 'glsx-common'
export default {
name: 'selectEmp',
data() {
return {
dialogVisible: false,
tableSearchForm: {},
tableParams: {
listName: 'data',
tableOption: false,
// 行数据的key
mutiSelectUniqueKey: 'id',
// 多选ref的名称
mutiSelectName: 'salelist',
tableColumns: [
{
label: '渠道名称',
prop: 'codeName'
},
{
label: '备注',
prop: 'codeRemark'
}
]
},
tableData: [],
tableTotal: 0,
selectItem: [],
selectCode: [],
selectedList: []
}
},
props: {
colorList: {
type: Array
}
},
methods: {
getFollower() {
var params = {
pageSize: 1000,
pageNum: 1
}
this.$apis.channel.listChannelCodeByPage(params).then(res => {
console.log(res)
this.tableData = res.data
this.tableTotal = res.count
this.tableData.forEach(item => {
this.selectCode.forEach((itm, index) => {
if (itm.codeState == item.codeState) {
this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(item)
}
})
})
})
},
init(codeId) {
this.selectCode = JSON.parse(JSON.stringify(codeId))
this.selectedList = []
this.dialogVisible = true
this.$nextTick(() => {
this.getFollower()
})
},
handleSearch() {
this.getFollower()
},
selectionTable(val) {
this.selectedList = val
},
delTag(item) {
this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(item)
},
handleCancel() {
this.dialogVisible = false
this.$refs.table.$refs.salelistMutiTable.clearSelection()
},
handleSelect: utils.debounce(function() {
if (this.selectedList.length == 0) {
this.$message.error('请选择渠道')
return
}
if (this.selectedList.length > 8) {
this.$message.error('最多选择8个渠道数据')
return
}
this.dialogVisible = false
this.$emit('selectTable', this.selectedList)
this.$refs.table.$refs.salelistMutiTable.clearSelection()
}, 300)
}
}
</script>
<style lang="scss" scoped>
.square-main {
.square-tabel {
display: flex;
&-select {
flex: 1;
}
&-selected {
width: 320px;
margin-left: 20px;
.selected-title {
background: #f4f6fc;
color: #333333;
line-height: 20px;
padding: 16px 20px;
font-weight: 600;
}
.selected-panel {
padding: 0px 20px;
.selected-item {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 30px;
display: flex;
align-items: center;
justify-content: space-between;
div {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
span {
vertical-align: middle;
display: inline-block;
width: 12px;
height: 2px;
margin-right: 10px;
}
img {
width: 16px;
height: 16px;
cursor: pointer;
}
}
}
}
}
/deep/ {
.el-table {
height: 50vh;
overflow-y: auto;
}
.el-table::before {
left: 0;
bottom: 0;
width: 100%;
height: 0px;
}
}
}
</style>
<template>
<div class="square-main" v-loading="loading">
<GLDialog title="选择跟进专员" :hasFooter="true" :visible.sync="dialogVisible">
<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 @selection-change="handleSelectionChange" 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>
</GLDialog>
</div>
</template>
<script>
import { utils } from 'glsx-common'
import util from '@/utils/util'
export default {
name: 'selectEmp',
data() {
return {
rareFollowStaff: false,
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.openUrl(location.origin + '/settings/followUp/index')
},
handleSelectionChange(val) {
if (val.length > 1) {
this.$refs.table.$refs.salelistMutiTable.clearSelection()
this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(val.pop())
} else {
this.selectItem = val
}
},
getFollower() {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum,
}
this.$apis.channel.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.relationId) {
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 {
relationId: 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>
/deep/ .el-table > .el-table__header-wrapper > .el-table__header > thead > tr > th:nth-child(2) > div {
display: none !important;
}
.rareFollowStaff {
position: absolute;
right: 24px;
bottom: 90px;
}
.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>
...@@ -216,7 +216,6 @@ export default { ...@@ -216,7 +216,6 @@ export default {
} }
}) })
.filter(item => item) .filter(item => item)
console.log(labelTreeRets)
this.$emit('tagSelected', labelTreeRets) this.$emit('tagSelected', labelTreeRets)
}, },
//全选 //全选
...@@ -355,5 +354,6 @@ export default { ...@@ -355,5 +354,6 @@ export default {
} }
.tag-selected-box { .tag-selected-box {
min-height: 200px; min-height: 200px;
overflow: auto;
} }
</style> </style>
<template> <template>
<div <div
:style="style" :style="style"
:class="[{ :class="[
[classNameActive]: enabled, {
[classNameDragging]: dragging, [classNameActive]: enabled,
[classNameResizing]: resizing, [classNameDragging]: dragging,
[classNameDraggable]: draggable, [classNameResizing]: resizing,
[classNameResizable]: resizable [classNameDraggable]: draggable,
}, className]" [classNameResizable]: resizable
},
className
]"
@mousedown="elementMouseDown" @mousedown="elementMouseDown"
@touchstart="elementTouchDown" @touchstart="elementTouchDown"
> >
<div <div v-for="handle in actualHandles" :key="handle" :class="[classNameHandle, classNameHandle + '-' + handle]" :style="{ display: enabled ? 'block' : 'none' }" @mousedown.stop.prevent="handleDown(handle, $event)" @touchstart.stop.prevent="handleTouchDown(handle, $event)">
v-for="handle in actualHandles"
:key="handle"
:class="[classNameHandle, classNameHandle + '-' + handle]"
:style="{display: enabled ? 'block' : 'none'}"
@mousedown.stop.prevent="handleDown(handle, $event)"
@touchstart.stop.prevent="handleTouchDown(handle, $event)"
>
<slot :name="handle"></slot> <slot :name="handle"></slot>
</div> </div>
<slot></slot> <slot></slot>
...@@ -121,7 +117,7 @@ export default { ...@@ -121,7 +117,7 @@ export default {
w: { w: {
type: [Number, String], type: [Number, String],
default: 200, default: 200,
validator: (val) => { validator: val => {
if (typeof val === 'number') { if (typeof val === 'number') {
return val > 0 return val > 0
} }
...@@ -132,7 +128,7 @@ export default { ...@@ -132,7 +128,7 @@ export default {
h: { h: {
type: [Number, String], type: [Number, String],
default: 200, default: 200,
validator: (val) => { validator: val => {
if (typeof val === 'number') { if (typeof val === 'number') {
return val > 0 return val > 0
} }
...@@ -143,22 +139,22 @@ export default { ...@@ -143,22 +139,22 @@ export default {
minWidth: { minWidth: {
type: Number, type: Number,
default: 0, default: 0,
validator: (val) => val >= 0 validator: val => val >= 0
}, },
minHeight: { minHeight: {
type: Number, type: Number,
default: 0, default: 0,
validator: (val) => val >= 0 validator: val => val >= 0
}, },
maxWidth: { maxWidth: {
type: Number, type: Number,
default: null, default: null,
validator: (val) => val >= 0 validator: val => val >= 0
}, },
maxHeight: { maxHeight: {
type: Number, type: Number,
default: null, default: null,
validator: (val) => val >= 0 validator: val => val >= 0
}, },
x: { x: {
type: Number, type: Number,
...@@ -171,12 +167,12 @@ export default { ...@@ -171,12 +167,12 @@ export default {
z: { z: {
type: [String, Number], type: [String, Number],
default: 'auto', default: 'auto',
validator: (val) => (typeof val === 'string' ? val === 'auto' : val >= 0) validator: val => (typeof val === 'string' ? val === 'auto' : val >= 0)
}, },
handles: { handles: {
type: Array, type: Array,
default: () => ['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml'], default: () => ['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml'],
validator: (val) => { validator: val => {
const s = new Set(['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml']) const s = new Set(['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml'])
return new Set(val.filter(h => s.has(h))).size === val.length return new Set(val.filter(h => s.has(h))).size === val.length
...@@ -193,14 +189,14 @@ export default { ...@@ -193,14 +189,14 @@ export default {
axis: { axis: {
type: String, type: String,
default: 'both', default: 'both',
validator: (val) => ['x', 'y', 'both'].includes(val) validator: val => ['x', 'y', 'both'].includes(val)
}, },
grid: { grid: {
type: Array, type: Array,
default: () => [1, 1] default: () => [1, 1]
}, },
customId: { customId: {
type: [String,Number], type: [String, Number],
default: '' default: ''
}, },
parent: { parent: {
...@@ -210,7 +206,7 @@ export default { ...@@ -210,7 +206,7 @@ export default {
scale: { scale: {
type: [Number, Array], type: [Number, Array],
default: 1, default: 1,
validator: (val) => { validator: val => {
if (typeof val === 'number') { if (typeof val === 'number') {
return val > 0 return val > 0
} }
...@@ -236,7 +232,7 @@ export default { ...@@ -236,7 +232,7 @@ export default {
} }
}, },
data: function () { data: function() {
return { return {
left: this.x, left: this.x,
top: this.y, top: this.y,
...@@ -270,7 +266,7 @@ export default { ...@@ -270,7 +266,7 @@ export default {
} }
}, },
created: function () { created: function() {
// eslint-disable-next-line // eslint-disable-next-line
if (this.maxWidth && this.minWidth > this.maxWidth) console.warn('[Vdr warn]: Invalid prop: minWidth cannot be greater than maxWidth') if (this.maxWidth && this.minWidth > this.maxWidth) console.warn('[Vdr warn]: Invalid prop: minWidth cannot be greater than maxWidth')
// eslint-disable-next-line // eslint-disable-next-line
...@@ -278,7 +274,7 @@ export default { ...@@ -278,7 +274,7 @@ export default {
this.resetBoundsAndMouseState() this.resetBoundsAndMouseState()
}, },
mounted: function () { mounted: function() {
if (!this.enableNativeDrag) { if (!this.enableNativeDrag) {
this.$el.ondragstart = () => false this.$el.ondragstart = () => false
} }
...@@ -307,7 +303,7 @@ export default { ...@@ -307,7 +303,7 @@ export default {
addEvent(window, 'resize', this.checkParentSize) addEvent(window, 'resize', this.checkParentSize)
}, },
beforeDestroy: function () { beforeDestroy: function() {
removeEvent(document.documentElement, 'mousedown', this.deselect) removeEvent(document.documentElement, 'mousedown', this.deselect)
removeEvent(document.documentElement, 'touchstart', this.handleUp) removeEvent(document.documentElement, 'touchstart', this.handleUp)
removeEvent(document.documentElement, 'mousemove', this.move) removeEvent(document.documentElement, 'mousemove', this.move)
...@@ -319,7 +315,7 @@ export default { ...@@ -319,7 +315,7 @@ export default {
}, },
methods: { methods: {
resetBoundsAndMouseState () { resetBoundsAndMouseState() {
this.mouseClickPosition = { mouseX: 0, mouseY: 0, x: 0, y: 0, w: 0, h: 0 } this.mouseClickPosition = { mouseX: 0, mouseY: 0, x: 0, y: 0, w: 0, h: 0 }
this.bounds = { this.bounds = {
...@@ -333,7 +329,7 @@ export default { ...@@ -333,7 +329,7 @@ export default {
maxBottom: null maxBottom: null
} }
}, },
checkParentSize () { checkParentSize() {
if (this.parent) { if (this.parent) {
const [newParentWidth, newParentHeight] = this.getParentSize() const [newParentWidth, newParentHeight] = this.getParentSize()
...@@ -343,29 +339,26 @@ export default { ...@@ -343,29 +339,26 @@ export default {
this.bottom = this.parentHeight - this.height - this.top this.bottom = this.parentHeight - this.height - this.top
} }
}, },
getParentSize () { getParentSize() {
if (this.parent) { if (this.parent) {
const style = window.getComputedStyle(this.$el.parentNode, null) const style = window.getComputedStyle(this.$el.parentNode, null)
return [ return [parseInt(style.getPropertyValue('width'), 10), parseInt(style.getPropertyValue('height'), 10)]
parseInt(style.getPropertyValue('width'), 10),
parseInt(style.getPropertyValue('height'), 10)
]
} }
return [null, null] return [null, null]
}, },
elementTouchDown (e) { elementTouchDown(e) {
eventsFor = events.touch eventsFor = events.touch
this.elementDown(e) this.elementDown(e)
}, },
elementMouseDown (e) { elementMouseDown(e) {
eventsFor = events.mouse eventsFor = events.mouse
this.elementDown(e) this.elementDown(e)
}, },
elementDown (e) { elementDown(e) {
if (e instanceof MouseEvent && e.which !== 1) { if (e instanceof MouseEvent && e.which !== 1) {
return return
} }
...@@ -377,10 +370,7 @@ export default { ...@@ -377,10 +370,7 @@ export default {
return return
} }
if ( if ((this.dragHandle && !matchesSelectorToParentElements(target, this.dragHandle, this.$el)) || (this.dragCancel && matchesSelectorToParentElements(target, this.dragCancel, this.$el))) {
(this.dragHandle && !matchesSelectorToParentElements(target, this.dragHandle, this.$el)) ||
(this.dragCancel && matchesSelectorToParentElements(target, this.dragCancel, this.$el))
) {
this.dragging = false this.dragging = false
return return
...@@ -389,7 +379,7 @@ export default { ...@@ -389,7 +379,7 @@ export default {
if (!this.enabled) { if (!this.enabled) {
this.enabled = true this.enabled = true
this.$emit('activated',this.customId) this.$emit('activated', this.customId)
this.$emit('update:active', true) this.$emit('update:active', true)
} }
...@@ -413,7 +403,7 @@ export default { ...@@ -413,7 +403,7 @@ export default {
addEvent(document.documentElement, eventsFor.stop, this.handleUp) addEvent(document.documentElement, eventsFor.stop, this.handleUp)
} }
}, },
calcDragLimits () { calcDragLimits() {
return { return {
minLeft: this.left % this.grid[0], minLeft: this.left % this.grid[0],
maxLeft: Math.floor((this.parentWidth - this.width - this.left) / this.grid[0]) * this.grid[0] + this.left, maxLeft: Math.floor((this.parentWidth - this.width - this.left) / this.grid[0]) * this.grid[0] + this.left,
...@@ -425,7 +415,7 @@ export default { ...@@ -425,7 +415,7 @@ export default {
maxBottom: Math.floor((this.parentHeight - this.height - this.bottom) / this.grid[1]) * this.grid[1] + this.bottom maxBottom: Math.floor((this.parentHeight - this.height - this.bottom) / this.grid[1]) * this.grid[1] + this.bottom
} }
}, },
deselect (e) { deselect(e) {
const target = e.target || e.srcElement const target = e.target || e.srcElement
const regex = new RegExp(this.className + '-([trmbl]{2})', '') const regex = new RegExp(this.className + '-([trmbl]{2})', '')
...@@ -442,12 +432,12 @@ export default { ...@@ -442,12 +432,12 @@ export default {
this.resetBoundsAndMouseState() this.resetBoundsAndMouseState()
}, },
handleTouchDown (handle, e) { handleTouchDown(handle, e) {
eventsFor = events.touch eventsFor = events.touch
this.handleDown(handle, e) this.handleDown(handle, e)
}, },
handleDown (handle, e) { handleDown(handle, e) {
if (e instanceof MouseEvent && e.which !== 1) { if (e instanceof MouseEvent && e.which !== 1) {
return return
} }
...@@ -480,7 +470,7 @@ export default { ...@@ -480,7 +470,7 @@ export default {
addEvent(document.documentElement, eventsFor.move, this.handleResize) addEvent(document.documentElement, eventsFor.move, this.handleResize)
addEvent(document.documentElement, eventsFor.stop, this.handleUp) addEvent(document.documentElement, eventsFor.stop, this.handleUp)
}, },
calcResizeLimits () { calcResizeLimits() {
let minW = this.minW let minW = this.minW
let minH = this.minH let minH = this.minH
let maxW = this.maxW let maxW = this.maxW
...@@ -572,7 +562,7 @@ export default { ...@@ -572,7 +562,7 @@ export default {
limits.minBottom = -(top + maxH) limits.minBottom = -(top + maxH)
} }
if (this.lockAspectRatio && (maxW && maxH)) { if (this.lockAspectRatio && maxW && maxH) {
limits.minLeft = Math.min(limits.minLeft, -(right + maxW)) limits.minLeft = Math.min(limits.minLeft, -(right + maxW))
limits.minTop = Math.min(limits.minTop, -(maxH + bottom)) limits.minTop = Math.min(limits.minTop, -(maxH + bottom))
limits.minRight = Math.min(limits.minRight, -left - maxW) limits.minRight = Math.min(limits.minRight, -left - maxW)
...@@ -582,14 +572,14 @@ export default { ...@@ -582,14 +572,14 @@ export default {
return limits return limits
}, },
move (e) { move(e) {
if (this.resizing) { if (this.resizing) {
this.handleResize(e) this.handleResize(e)
} else if (this.dragEnable) { } else if (this.dragEnable) {
this.handleDrag(e) this.handleDrag(e)
} }
}, },
handleDrag (e) { handleDrag(e) {
const axis = this.axis const axis = this.axis
const grid = this.grid const grid = this.grid
const bounds = this.bounds const bounds = this.bounds
...@@ -618,7 +608,7 @@ export default { ...@@ -618,7 +608,7 @@ export default {
this.$emit('dragging', this.left, this.top) this.$emit('dragging', this.left, this.top)
this.dragging = true this.dragging = true
}, },
moveHorizontally (val) { moveHorizontally(val) {
// should calculate with scale 1. // should calculate with scale 1.
const [deltaX, _] = snapToGrid(this.grid, val, this.top, 1) const [deltaX, _] = snapToGrid(this.grid, val, this.top, 1)
...@@ -627,7 +617,7 @@ export default { ...@@ -627,7 +617,7 @@ export default {
this.left = left this.left = left
this.right = this.parentWidth - this.width - left this.right = this.parentWidth - this.width - left
}, },
moveVertically (val) { moveVertically(val) {
// should calculate with scale 1. // should calculate with scale 1.
const [_, deltaY] = snapToGrid(this.grid, this.left, val, 1) const [_, deltaY] = snapToGrid(this.grid, this.left, val, 1)
...@@ -636,7 +626,7 @@ export default { ...@@ -636,7 +626,7 @@ export default {
this.top = top this.top = top
this.bottom = this.parentHeight - this.height - top this.bottom = this.parentHeight - this.height - top
}, },
handleResize (e) { handleResize(e) {
let left = this.left let left = this.left
let top = this.top let top = this.top
let right = this.right let right = this.right
...@@ -660,21 +650,13 @@ export default { ...@@ -660,21 +650,13 @@ export default {
const [deltaX, deltaY] = snapToGrid(this.grid, tmpDeltaX, tmpDeltaY, this.scale) const [deltaX, deltaY] = snapToGrid(this.grid, tmpDeltaX, tmpDeltaY, this.scale)
if (this.handle.includes('b')) { if (this.handle.includes('b')) {
bottom = restrictToBounds( bottom = restrictToBounds(mouseClickPosition.bottom + deltaY, this.bounds.minBottom, this.bounds.maxBottom)
mouseClickPosition.bottom + deltaY,
this.bounds.minBottom,
this.bounds.maxBottom
)
if (this.lockAspectRatio && this.resizingOnY) { if (this.lockAspectRatio && this.resizingOnY) {
right = this.right - (this.bottom - bottom) * aspectFactor right = this.right - (this.bottom - bottom) * aspectFactor
} }
} else if (this.handle.includes('t')) { } else if (this.handle.includes('t')) {
top = restrictToBounds( top = restrictToBounds(mouseClickPosition.top - deltaY, this.bounds.minTop, this.bounds.maxTop)
mouseClickPosition.top - deltaY,
this.bounds.minTop,
this.bounds.maxTop
)
if (this.lockAspectRatio && this.resizingOnY) { if (this.lockAspectRatio && this.resizingOnY) {
left = this.left - (this.top - top) * aspectFactor left = this.left - (this.top - top) * aspectFactor
...@@ -682,21 +664,13 @@ export default { ...@@ -682,21 +664,13 @@ export default {
} }
if (this.handle.includes('r')) { if (this.handle.includes('r')) {
right = restrictToBounds( right = restrictToBounds(mouseClickPosition.right + deltaX, this.bounds.minRight, this.bounds.maxRight)
mouseClickPosition.right + deltaX,
this.bounds.minRight,
this.bounds.maxRight
)
if (this.lockAspectRatio && this.resizingOnX) { if (this.lockAspectRatio && this.resizingOnX) {
bottom = this.bottom - (this.right - right) / aspectFactor bottom = this.bottom - (this.right - right) / aspectFactor
} }
} else if (this.handle.includes('l')) { } else if (this.handle.includes('l')) {
left = restrictToBounds( left = restrictToBounds(mouseClickPosition.left - deltaX, this.bounds.minLeft, this.bounds.maxLeft)
mouseClickPosition.left - deltaX,
this.bounds.minLeft,
this.bounds.maxLeft
)
if (this.lockAspectRatio && this.resizingOnX) { if (this.lockAspectRatio && this.resizingOnX) {
top = this.top - (this.left - left) / aspectFactor top = this.top - (this.left - left) / aspectFactor
...@@ -717,18 +691,14 @@ export default { ...@@ -717,18 +691,14 @@ export default {
this.width = width this.width = width
this.height = height this.height = height
this.$emit('resizing', this.left, this.top, this.width, this.height) this.$emit('resizing', e, this.left, this.top, this.width, this.height)
this.resizing = true this.resizing = true
}, },
changeWidth (val) { changeWidth(val) {
// should calculate with scale 1. // should calculate with scale 1.
const [newWidth, _] = snapToGrid(this.grid, val, 0, 1) const [newWidth, _] = snapToGrid(this.grid, val, 0, 1)
let right = restrictToBounds( let right = restrictToBounds(this.parentWidth - newWidth - this.left, this.bounds.minRight, this.bounds.maxRight)
(this.parentWidth - newWidth - this.left),
this.bounds.minRight,
this.bounds.maxRight
)
let bottom = this.bottom let bottom = this.bottom
if (this.lockAspectRatio) { if (this.lockAspectRatio) {
...@@ -743,15 +713,11 @@ export default { ...@@ -743,15 +713,11 @@ export default {
this.width = width this.width = width
this.height = height this.height = height
}, },
changeHeight (val) { changeHeight(val) {
// should calculate with scale 1. // should calculate with scale 1.
const [_, newHeight] = snapToGrid(this.grid, 0, val, 1) const [_, newHeight] = snapToGrid(this.grid, 0, val, 1)
let bottom = restrictToBounds( let bottom = restrictToBounds(this.parentHeight - newHeight - this.top, this.bounds.minBottom, this.bounds.maxBottom)
(this.parentHeight - newHeight - this.top),
this.bounds.minBottom,
this.bounds.maxBottom
)
let right = this.right let right = this.right
if (this.lockAspectRatio) { if (this.lockAspectRatio) {
...@@ -766,7 +732,7 @@ export default { ...@@ -766,7 +732,7 @@ export default {
this.width = width this.width = width
this.height = height this.height = height
}, },
handleUp (e) { handleUp(e) {
this.handle = null this.handle = null
this.resetBoundsAndMouseState() this.resetBoundsAndMouseState()
...@@ -788,7 +754,7 @@ export default { ...@@ -788,7 +754,7 @@ export default {
} }
}, },
computed: { computed: {
style () { style() {
return { return {
transform: `translate(${this.left}px, ${this.top}px)`, transform: `translate(${this.left}px, ${this.top}px)`,
width: this.computedWidth, width: this.computedWidth,
...@@ -797,12 +763,12 @@ export default { ...@@ -797,12 +763,12 @@ export default {
...(this.dragging && this.disableUserSelect ? userSelectNone : userSelectAuto) ...(this.dragging && this.disableUserSelect ? userSelectNone : userSelectAuto)
} }
}, },
actualHandles () { actualHandles() {
if (!this.resizable) return [] if (!this.resizable) return []
return this.handles return this.handles
}, },
computedWidth () { computedWidth() {
if (this.w === 'auto') { if (this.w === 'auto') {
if (!this.widthTouched) { if (!this.widthTouched) {
return 'auto' return 'auto'
...@@ -811,7 +777,7 @@ export default { ...@@ -811,7 +777,7 @@ export default {
return this.width + 'px' return this.width + 'px'
}, },
computedHeight () { computedHeight() {
if (this.h === 'auto') { if (this.h === 'auto') {
if (!this.heightTouched) { if (!this.heightTouched) {
return 'auto' return 'auto'
...@@ -820,19 +786,19 @@ export default { ...@@ -820,19 +786,19 @@ export default {
return this.height + 'px' return this.height + 'px'
}, },
resizingOnX () { resizingOnX() {
return (Boolean(this.handle) && (this.handle.includes('l') || this.handle.includes('r'))) return Boolean(this.handle) && (this.handle.includes('l') || this.handle.includes('r'))
}, },
resizingOnY () { resizingOnY() {
return (Boolean(this.handle) && (this.handle.includes('t') || this.handle.includes('b'))) return Boolean(this.handle) && (this.handle.includes('t') || this.handle.includes('b'))
}, },
isCornerHandle () { isCornerHandle() {
return (Boolean(this.handle) && ['tl', 'tr', 'br', 'bl'].includes(this.handle)) return Boolean(this.handle) && ['tl', 'tr', 'br', 'bl'].includes(this.handle)
} }
}, },
watch: { watch: {
active (val) { active(val) {
this.enabled = val this.enabled = val
if (val) { if (val) {
...@@ -841,12 +807,12 @@ export default { ...@@ -841,12 +807,12 @@ export default {
this.$emit('deactivated') this.$emit('deactivated')
} }
}, },
z (val) { z(val) {
if (val >= 0 || val === 'auto') { if (val >= 0 || val === 'auto') {
this.zIndex = val this.zIndex = val
} }
}, },
x (val) { x(val) {
if (this.resizing || this.dragging) { if (this.resizing || this.dragging) {
return return
} }
...@@ -857,7 +823,7 @@ export default { ...@@ -857,7 +823,7 @@ export default {
this.moveHorizontally(val) this.moveHorizontally(val)
}, },
y (val) { y(val) {
if (this.resizing || this.dragging) { if (this.resizing || this.dragging) {
return return
} }
...@@ -868,30 +834,30 @@ export default { ...@@ -868,30 +834,30 @@ export default {
this.moveVertically(val) this.moveVertically(val)
}, },
lockAspectRatio (val) { lockAspectRatio(val) {
if (val) { if (val) {
this.aspectFactor = this.width / this.height this.aspectFactor = this.width / this.height
} else { } else {
this.aspectFactor = undefined this.aspectFactor = undefined
} }
}, },
minWidth (val) { minWidth(val) {
if (val > 0 && val <= this.width) { if (val > 0 && val <= this.width) {
this.minW = val this.minW = val
} }
}, },
minHeight (val) { minHeight(val) {
if (val > 0 && val <= this.height) { if (val > 0 && val <= this.height) {
this.minH = val this.minH = val
} }
}, },
maxWidth (val) { maxWidth(val) {
this.maxW = val this.maxW = val
}, },
maxHeight (val) { maxHeight(val) {
this.maxH = val this.maxH = val
}, },
w (val) { w(val) {
if (this.resizing || this.dragging) { if (this.resizing || this.dragging) {
return return
} }
...@@ -902,7 +868,7 @@ export default { ...@@ -902,7 +868,7 @@ export default {
this.changeWidth(val) this.changeWidth(val)
}, },
h (val) { h(val) {
if (this.resizing || this.dragging) { if (this.resizing || this.dragging) {
return return
} }
......
...@@ -264,11 +264,16 @@ export default { ...@@ -264,11 +264,16 @@ export default {
} }
let htm = target.innerHTML let htm = target.innerHTML
const list = emoji.flat(Infinity) const list = emoji.flat(Infinity)
<<<<<<< HEAD
const cutImg = htm const cutImg = htm
.replace(/<img src="https:\/\/img01.glsx.com.cn\/weapp\/resource\/saas\/scrm\/emoji\//g, '') .replace(/<img src="https:\/\/img01.glsx.com.cn\/weapp\/resource\/saas\/scrm\/emoji\//g, '')
.replace(/<wise.+?(?:<\/wise>)/g, '@昵称') .replace(/<wise.+?(?:<\/wise>)/g, '@昵称')
.replace(/<br>/g, '\n') .replace(/<br>/g, '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function(str) { const replaceImg = cutImg.replace(/(\d){3}.png">/g, function(str) {
=======
const cutImg = htm.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '').replaceAll('<wise id="1">@昵称</wise>', '@昵称').replaceAll('<br>', '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
let s = list[parseInt(str.split('.')[0]) - 1] let s = list[parseInt(str.split('.')[0]) - 1]
return `[${s}]` return `[${s}]`
}) })
...@@ -301,11 +306,16 @@ export default { ...@@ -301,11 +306,16 @@ export default {
let htm = target.innerHTML let htm = target.innerHTML
console.log(htm) console.log(htm)
const list = emoji.flat(Infinity) const list = emoji.flat(Infinity)
<<<<<<< HEAD
const cutImg = htm const cutImg = htm
.replace(/<img src="https:\/\/img01.glsx.com.cn\/weapp\/resource\/saas\/scrm\/emoji\//g, '') .replace(/<img src="https:\/\/img01.glsx.com.cn\/weapp\/resource\/saas\/scrm\/emoji\//g, '')
.replace(/<wise.+?(?:<\/wise>)/g, '@昵称') .replace(/<wise.+?(?:<\/wise>)/g, '@昵称')
.replace(/<br>/g, '\n') .replace(/<br>/g, '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function(str) { const replaceImg = cutImg.replace(/(\d){3}.png">/g, function(str) {
=======
const cutImg = htm.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '').replaceAll('<wise id="1">@昵称</wise>', '@昵称').replaceAll('<br>', '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
let s = list[parseInt(str.split('.')[0]) - 1] let s = list[parseInt(str.split('.')[0]) - 1]
return `[${s}]` return `[${s}]`
}) })
......
...@@ -51,7 +51,11 @@ ...@@ -51,7 +51,11 @@
<span v-else>{{ item.name }}</span> <span v-else>{{ item.name }}</span>
<input v-if="item.type == 'img'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input upload-img" :accept="item.accept || 'image/png, image/jpeg, image/jpg'" @change="e => handleImgChange(e, item)" /> <input v-if="item.type == 'img'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input upload-img" :accept="item.accept || 'image/png, image/jpeg, image/jpg'" @change="e => handleImgChange(e, item)" />
<input v-else-if="item.type == 'video'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input" :accept="item.accept || 'video/*'" @change="e => handleVideoChange(e, item)" /> <input v-else-if="item.type == 'video'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input" :accept="item.accept || 'video/*'" @change="e => handleVideoChange(e, item)" />
<<<<<<< HEAD
<el-link v-else-if="item.type == 'nickname' || item.type == 'acivity' || item.type == 'material'" style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link> <el-link v-else-if="item.type == 'nickname' || item.type == 'acivity' || item.type == 'material'" style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link>
=======
<el-link v-else-if="item.type == 'nickname' || item.type == 'acivity'" style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link>
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
</div> </div>
</div> </div>
</div> </div>
...@@ -78,7 +82,10 @@ const ATT_TYPE = { ...@@ -78,7 +82,10 @@ const ATT_TYPE = {
} }
import emoji from '@/utils/emo' import emoji from '@/utils/emo'
import ActivityModel from './activityModel' import ActivityModel from './activityModel'
<<<<<<< HEAD
// import materialModel from './materialModel' // import materialModel from './materialModel'
=======
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
import Emotion from './emotionWords' import Emotion from './emotionWords'
import wTextarea from './tag-textarea' import wTextarea from './tag-textarea'
import { utils } from 'glsx-common' import { utils } from 'glsx-common'
...@@ -86,7 +93,10 @@ export default { ...@@ -86,7 +93,10 @@ export default {
name: 'WelcomeWords', name: 'WelcomeWords',
components: { components: {
ActivityModel, ActivityModel,
<<<<<<< HEAD
// materialModel, // materialModel,
=======
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
Emotion, Emotion,
wTextarea wTextarea
}, },
...@@ -95,7 +105,10 @@ export default { ...@@ -95,7 +105,10 @@ export default {
return { return {
loading: false, loading: false,
emotionStatus: false, emotionStatus: false,
<<<<<<< HEAD
isMaterialVisible: false, isMaterialVisible: false,
=======
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
btnList: [ btnList: [
{ {
id: 1, id: 1,
...@@ -328,8 +341,13 @@ export default { ...@@ -328,8 +341,13 @@ export default {
this.previewList = val this.previewList = val
this.eventBus.$emit('update', this.previewList) this.eventBus.$emit('update', this.previewList)
const obj = val.find(item => item.attType == 1) const obj = val.find(item => item.attType == 1)
<<<<<<< HEAD
let attContent = obj.attContent.replace(/\[@昵称\]/g, '<wise id="1" contenteditable="false">@昵称</wise>') let attContent = obj.attContent.replace(/\[@昵称\]/g, '<wise id="1" contenteditable="false">@昵称</wise>')
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) { const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) {
=======
let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>')
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function (res) {
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
let word = res.replace(/\[|\]/gi, '') let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity) const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1 let index = parseInt(list.indexOf(word)) + 1
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* @version: * @version:
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: limin * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2021-09-07 14:38:52 * @LastEditTime: 2022-10-26 15:54:49
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
...@@ -17,8 +17,8 @@ export const fetchConfig = function(isEnv = true) { ...@@ -17,8 +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({ request: { timeout: 100000 } }).get('https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config') // return new Http({ request: { timeout: 100000 } }).get('https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config') return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
export default {
data() {
return {}
},
methods: {
uploadAvatar(e) {
this.uploadFile(e, 'avatar')
},
uploadQrcode(e) {
this.uploadFile(e, 'qrcode')
},
getUploadName(name) {
let nameArr = name.split('.')
let lastName
while (nameArr.length) {
lastName = [nameArr[0]]
nameArr.unshift()
}
},
uploadFile(e, refName, AllImgExt = '.jpg|.jpeg|.gif|.bmp|.png|.swf') {
const file = e.srcElement.files[0]
let extName = file.name.substring(file.name.lastIndexOf('.')).toLowerCase()
if (AllImgExt.indexOf(extName) === -1) {
this.$message.error('上传格式不正确')
return false
}
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) {
if (!this.addCodeForm.headerSrc) {
this.addCodeForm.image = res
this.hasImage = true
} else {
this.addCodeForm.headerSrc = res
}
}
this.$refs[refName].value = ''
})
}
}
}
}
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-08-30 10:21:19
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-10-28 15:21:03
* @FilePath: \scrm-micro-drainage\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import Vue from 'vue' 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 { GLTable, GLButton, GLFooter, GLCombiForm, GLDialog } from 'glsx-components' //权限按钮 (根据权限动态创建) import { GLTable, GLButton, GLFooter, GLCombiForm, GLDialog, GLTableButton, GLTabs } from 'glsx-components' //权限按钮 (根据权限动态创建)
import GLEditor from 'glsx-components/src/packages/Editor' //权限按钮 (根据权限动态创建) import GLEditor from 'glsx-components/src/packages/Editor' //权限按钮 (根据权限动态创建)
import GLFull from '@/components/GLFull' import GLFull from '@/components/GLFull'
import { getRoutes } from '@/router' import { getRoutes } from '@/router'
...@@ -12,10 +20,13 @@ Vue.use(GLTable) ...@@ -12,10 +20,13 @@ Vue.use(GLTable)
Vue.use(GLFooter) Vue.use(GLFooter)
Vue.use(GLCombiForm) Vue.use(GLCombiForm)
Vue.use(GLDialog) Vue.use(GLDialog)
Vue.use(GLTableButton)
// Vue.use(GLFull) // Vue.use(GLFull)
// import GLTable from '@/components/glsx-table/index' // import GLTable from '@/components/glsx-table/index'
Vue.component('GLEditor', GLEditor) Vue.component('GLEditor', GLEditor)
Vue.component('GLFull', GLFull) Vue.component('GLFull', GLFull)
Vue.component('GLTabs', GLTabs)
// 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'
......
...@@ -110,6 +110,6 @@ util.downloadIamge = function(imgsrc, name = new Date().getTime()) { ...@@ -110,6 +110,6 @@ util.downloadIamge = function(imgsrc, name = new Date().getTime()) {
a.href = url // 将生成的URL设置为a.href属性 a.href = url // 将生成的URL设置为a.href属性
a.dispatchEvent(event) // 触发a的单击事件 a.dispatchEvent(event) // 触发a的单击事件
} }
image.src = imgsrc image.src = imgsrc.replace(/https?:/, '')
} }
export default util export default util
<template>
<div class="scrm-main">
<div class="channel-main scrm-box-f">
<div class="chanel-form-title">基本信息</div>
<div class="chanel-form-box gl-form-page">
<el-form ref="codeForm" :model="addCodeForm" class="code-body-form" label-width="154px" :rules="codeRules">
<el-form-item label="渠道名称:" prop="cardName">
<el-input size="small" v-model.trim="addCodeForm.cardName" placeholder="请输入渠道名称" maxlength="30"></el-input>
</el-form-item>
<el-form-item label="备注:">
<el-input size="small" v-model.trim="addCodeForm.remark" placeholder="请输入备注" maxlength="30"></el-input>
<div class="form-tips">设置备注,便于后续管理查找</div>
</el-form-item>
<div class="el-form-item is-required">
<label for="cardName" class="el-form-item__label" style="width: 154px">选择专员:</label>
<div class="el-form-item__content" style="margin-left: 154px" v-show="staffInfo.length == 0">
<el-button size="small" @click="handleAddEmp">
<i class="el-icon-plus"></i>
选择专员
</el-button>
<div class="el-form-item__error" v-if="staffStatus">请选择专员</div>
</div>
<div class="el-form-item__content " v-if="staffInfo.length !== 0">
<el-tag effect="plain" type="info" v-for="(tag, idx) in staffInfo" :key="idx" closable :disable-transitions="false" @close="removeStaff(idx)">
<i class="el-icon-user-solid rareFollowStaff"></i>
{{ tag.staffName }}
</el-tag>
</div>
</div>
<div class="el-form-item is-required">
<label for="cardName" class="el-form-item__label" style="width: 154px">上传头像:</label>
<div class="el-form-item__content" style="margin-left: 154px">
<div class="upload-panel " v-if="addCodeForm.image" :style="`background-image: url('${addCodeForm.image}')`">
<div class="upload-view">
<i class="el-icon-view" @click="handleEnlarge(addCodeForm.image)"></i>
<i class="el-icon-delete" @click="addCodeForm.image = ''"></i>
</div>
</div>
<div class="upload-panel" v-else>
<i class="el-icon-plus upload-icon"></i>
<div class="upload-text">上传头像</div>
<input type="file" style="opacity: 0" ref="avatar" accept="*" @change="uploadAvatar" />
</div>
<div class="el-form-item__error" v-if="!hasImage">请上传头像</div>
</div>
</div>
<el-form-item label="对外职务:" prop="operation">
<el-input size="small" v-model.trim="addCodeForm.operation" placeholder="请输入对外职务" maxlength="10"></el-input>
</el-form-item>
<el-form-item label="自动通过验证:">
<el-switch v-model="addCodeForm.skipVerify" active-color="#5850FF" inactive-color="#999999"></el-switch>
<span class="form-tips-btn">开启后,客户添加使用人员无需好友验证</span>
</el-form-item>
<el-form-item label="选择标签:">
<el-button size="small" @click="handleAddTag">
<i class="el-icon-plus"></i>
选择标签
</el-button>
<span class="form-tips-btn">
已选择
<span>{{ tagJsonLength }}</span>
个标签
</span>
<div class="el-input-tag input-tag-wrapper" v-show="tagJsonLength">
<template v-if="tagJson && tagJson.length > 0">
<template v-for="(item, index) in tagJson">
<el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item, idx, index)">
{{ tag ? tag.name : '' }}
</el-tag>
</template>
</template>
</div>
</el-form-item>
</el-form>
</div>
</div>
<div class="channel-main-welcome scrm-box-f">
<div class="chanel-form-title">欢迎语</div>
<div class="welcome-panel">
<div class="welcome-switch">
<label>自动发送欢迎语</label>
<el-switch v-model="autoWelcome" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div>
<div class="welcome-box" v-show="autoWelcome">
<!-- <welcome-words :eventBus="eventBus" ref="welcome"></welcome-words> -->
<GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm"></GLEditor>
</div>
</div>
</div>
<GLFooter>
<el-button class="cancelBtn" @click="goback">取消</el-button>
<el-button type="primary" @click="handleSave">提交</el-button>
</GLFooter>
<el-dialog class="image-dialog" :visible.sync="dialogVisibleImg" width="50%">
<img :src="dialogSrc" width="100%" />
</el-dialog>
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisible = false" type="warning" content="当前有内容信息未保存,是否继续返回?" :visible.sync="dialogVisible" mode="small"></GLDialog>
<select-emp-radio @selectTable="selectTable" ref="selectEmpForm"></select-emp-radio>
<select-tag ref="selectTagForm" @tagSelected="tagSelected"></select-tag>
</div>
</template>
<script>
import { utils } from 'glsx-common'
// import selectEmpRadio from '@/components/selectEmpRadio'
import selectEmpRadio from '@/components/emp'
import selectTag from '@/components/selectTag'
import word from '@/mixins/word'
import upload from '@/mixins/upload'
export default {
mixins: [word, upload],
name: 'addCode',
components: { selectEmpRadio, selectTag },
data() {
return {
hasImage:true,
dialogSrc:'',
dialogVisibleImg:false,
dialogVisible: false,
addCodeForm: {
cardName: '',
remark: '',
skipVerify: true,
image: ''
},
staffStatus: false,
staffInfo: [],
tagJson: [],
tagJsonLength: 0,
codeId: null,
autoWelcome: true,
editStatus: false,
previewListStart: [],
codeRules: {
cardName: [{ required: true, message: '请输入渠道名称', trigger: 'blur' }],
image: [{ required: true, message: '请上传头像', trigger: 'change' }],
operation: [{ required: true, message: '请输入对外职务', trigger: 'blur' }]
}
}
},
watch: {
tagJson: {
handler() {
this.tagJsonLength = 0
this.tagJson.forEach(item => {
this.tagJsonLength += item.labelList.length
})
this.editStatus = true
},
deep: true
},
addCodeForm: {
handler() {
this.editStatus = true
},
deep: true
},
staffInfo: {
handler() {
this.editStatus = true
},
deep: true
}
},
methods: {
handleEnlarge(src) {
this.dialogVisibleImg = true
this.dialogSrc = src
},
goback() {
// 判断有无编辑内容 无直接返回 有弹框确认是否返回
this.previewListStart.forEach(item => {
this.$refs.welcome.previewList.forEach(itm => {
if (item.attType == itm.attType) {
if (typeof item.attContent != 'object' && item.attContent != itm.attContent) {
this.editStatus = true
}
if (typeof item.attContent == 'object' && item.attContent.marketingName != itm.attContent.marketingName) {
this.editStatus = true
}
}
})
})
if (this.editStatus || (this.$refs.welcome.previewList.length > 0 && !this.codeId)) {
this.dialogVisible = true
} else {
this.$router.back()
}
},
handleSure() {
this.$router.back()
},
removeTag(item, idx, index) {
item.labelList.splice(idx, 1)
if (item.labelList && item.labelList.length == 0) {
this.tagJson.splice(index, 1)
}
},
removeStaff(index) {
this.$refs.selectEmpForm.selectEmp = []
this.staffInfo.splice(index, 1)
},
handleAddEmp() {
this.staffStatus = false
this.$refs.selectEmpForm.init(this.staffInfo)
},
handleAddTag() {
this.$refs.selectTagForm.init(this.tagJson)
},
selectTable(item) {
this.staffInfo = item.map(item => {
return {
staffId: item.id,
staffName: item.staffName
}
})
},
tagSelected(item) {
this.tagJson = item
},
handleSave: utils.debounce(function() {
// 校验是否选择跟进专员
if (this.staffInfo && this.staffInfo.length == 0) {
this.staffStatus = true
return
}
if (this.addCodeForm && !this.addCodeForm.image) {
this.hasImage = false
return
}
this.$refs['codeForm'].validate(valid => {
if (valid) {
let param = Object.assign({ id: this.codeId }, this.addCodeForm)
let tagJson = this.tagJson.map(item => {
let tagIds = item.labelList.map(tag => {
return tag.id
})
let name = item.labelList.map(tag => {
return tag.name
})
return {
groupId: item.labelGroup.id,
tagIds: tagIds.join(','),
name: name.join(','),
labelType: item.labelGroup.name
}
})
param.tagJson = JSON.stringify(tagJson)
param.autoWelcome = this.autoWelcome ? 0 : -1
let staffId = []
this.staffInfo.forEach(item => {
staffId.push(item.staffId)
})
let chooseApi
if (this.codeId) {
chooseApi = 'updateBussinessCard'
} else {
chooseApi = 'addBussinessCard'
}
delete param.staffInfo
param.staffId = staffId.join(',')
param.skipVerify ? (param.skipVerify = 1) : (param.skipVerify = 0)
const previewList = this.$refs.welcome.previewList ? this.$common.utils.deepClone(this.$refs.welcome.previewList) :[]
const attachmentList = previewList.map(item => {
if (item.attType == 1) {
item.attContent = item.attContent.replaceAll('[@昵称]', '@昵称')
item.attContent = item.attContent.replaceAll('@昵称', '[@昵称]')
} else if (item.attType == 7) {
item.attContent = JSON.stringify(item.attContent)
}
return item
})
param.welcomeInfo = attachmentList
this.$apis.businessCard[chooseApi](param).then(res => {
if (res){
this.$router.back()
}
})
}
})
}, 300),
detailBussinessCard(cardId) {
this.$apis.businessCard.getBussinessCardDetail({ cardId }).then(res => {
this.addCodeForm = Object.assign({}, res)
// 自动通过验证
this.addCodeForm.skipVerify = this.addCodeForm.skipVerify == 1 ? true : false
this.staffInfo = [
{
staffId: res.staffId || null,
staffName: res.staffName || ''
}
]
// 选择标签处理
const tagJson = eval(res.tagJson)
const tagJsonList = tagJson.map(item => {
let name = item.name.split(',')
let ids = item.tagIds.split(',')
let labelList = name.map((tag, index) => {
return { id: ids[index], name: tag }
})
return {
labelGroup: {
id: item.groupId,
name: item.labelType
},
labelList
}
})
this.tagJson = tagJsonList
this.autoWelcome = res.autoWelcome == '0' ? true : false
if (res.welcomeList && res.welcomeList.length != 0) {
const previewList = res.welcomeList.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
return item
})
this.$refs.welcome.updateList(previewList)
}
this.$nextTick(() => {
this.editStatus = false
this.previewListStart = this.$common.utils.deepClone(this.$refs.welcome.previewList)
})
})
}
},
mounted() {
const { id } = this.$route.query
if (id) {
this.codeId = id
this.detailBussinessCard(id)
}
}
}
</script>
<style lang="scss" scoped>
.cancelBtn{
background:none
}
.image-dialog {
/deep/ {
.el-dialog__header {
border-bottom: 0px;
padding: 0px;
}
}
}
.rareFollowStaff {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
.channel-main {
margin-bottom: 16px;
.upload-panel {
cursor: pointer;
width: 104px;
height: 104px;
background: rgba(0, 0, 0, 0.04);
background-size: 100% 100%;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 4px;
text-align: center;
position: relative;
.upload-view {
width: 100%;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.3s;
&:hover {
opacity: 1;
}
i {
color: rgba(255, 255, 255, 0.8);
font-size: 16px;
&:first-child {
margin-right: 5px;
}
}
}
input {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
cursor: pointer;
}
.upload-icon {
font-size: 20px;
margin-top: 25px;
color: rgba(0, 0, 0, 0.45);
}
.upload-text {
font-size: 14px;
height: 20px;
line-height: 20px;
color: #666666;
}
}
}
.channel-main-welcome {
.welcome-panel {
margin: 20px 10px 10px 10px;
padding: 0px 20px 20px;
.welcome-switch {
margin-bottom: 20px;
label {
margin-right: 10px;
font-size: 14px;
font-weight: 400;
color: #666666;
}
}
.welcome-box {
margin-left: 48px;
/deep/ .content{
width: 64%;
}
}
}
}
.footer-panel {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
bottom: 0px;
height: 64px;
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
.chanel-form-title {
padding: 20px;
font-size: 16px;
font-weight: 600;
color: #333333;
line-height: 16px;
border-bottom: 1px solid #d8d8d8;
}
.code-body-form {
padding: 20px;
width: 60%;
.form-tips {
font-size: 12px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
.form-tips-btn {
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
margin-left: 10px;
> span {
color: #5850ff;
}
}
.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 5px 0px 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;
}
}
.el-tag {
margin-right: 4px;
height: 26px;
line-height: 24px;
margin-bottom: 5px;
}
}
.channel-main-guidance {
display: flex;
padding: 20px;
box-sizing: border-box;
align-items: center;
margin-bottom: 20px;
.channel-main-guidance-item {
flex: 1;
height: 142px;
background: url('../../assets/img/channel/bg.png'), no-repeat;
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: 500;
color: #333333;
line-height: 22px;
}
&-info {
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
}
.channel-arrow {
margin: 0 16px;
width: 20px;
height: 15px;
img {
width: 100%;
}
}
}
</style>
<template>
<div class="channel-main scrm-box-f">
<div class="scrm-flex">
<el-radio-group v-model="timeRadio" size="mini" @change="handleTab">
<el-radio-button label="1">昨天</el-radio-button>
<el-radio-button label="2">近1周</el-radio-button>
<el-radio-button label="3">近2周</el-radio-button>
<el-radio-button label="4">近1个月</el-radio-button>
</el-radio-group>
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item" label-width="80px">
<el-form-item size="small" label="访问时间">
<el-date-picker :picker-options="pickerOptions" @change="handleTime" value-format="yyyy-MM-dd" v-model="createTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item size="small" style="float: right; margin-left: 40px">
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
</div>
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch">
<div slot="newlyCount" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'day', scope.scope.timeFrame)" v-if="scope.scope.newlyCount">{{ scope.scope.newlyCount }}</div>
<div v-else>0</div>
</div>
<div slot="newlyKeepCount" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'status', scope.scope.timeFrame)" v-if="scope.scope.newlyKeepCount">{{ scope.scope.newlyKeepCount }}</div>
<div v-else>0</div>
</div>
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleEmpDetail(scope.scope)">访问记录</el-button>
</div>
</GLTable>
<page-detail ref="empDetailForm"></page-detail>
</div>
</template>
<script>
import pageDetail from '@/components/pageDetail'
export default {
name: 'accountList',
components: {
pageDetail
},
data() {
return {
timeRadio: 1,
trendType: 1,
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
},
channel: [],
createTime: [],
tableSearchForm: {},
tableParams: {
listName: 'data',
tableOption: false,
tableColumns: [
{
label: '微信名称',
prop: 'codeName'
},
{
label: '手机号码',
prop: 'codeName'
},
{
label: '已加企微',
prop: 'newlyCount',
formatter: value => {
return '是'
}
},
{
label: '渠道名称',
prop: 'codeName'
},
{
label: '名片来源',
prop: 'newlyKeepCount',
addHtml: 'newlyKeepCount'
},
{
label: '日期',
prop: 'timeFrame'
},
{
label: '操作',
prop: 'optionBtns',
width: '80px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
layout: 'sizes, prev, pager, next, jumper, ->, total',
tableData: [],
tableTotal: 0,
startTime: '',
endTime: '',
selectItem: [],
codeIds: [],
colorList: ['#5850FF', '#2CCA74', '#EB4E4E', '#FF6D00', '#F8C900', '#2CCAC4', '#E74EEB', '#6F2828']
}
},
// watch: {
// createTime(value) {
// if (value) {
// this.startTime = value[0]
// this.endTime = value[1]
// this.timeRadio = null
// this.trendType = null
// } else {
// this.startTime = ''
// this.endTime = ''
// this.timeRadio = 1
// this.trendType = 1
// }
// this.getFollower()
// this.codeSearch()
// }
// },
methods: {
handleTime() {
const value = this.createTime
if (value && value.length > 0) {
this.startTime = value[0]
this.endTime = value[1]
this.timeRadio = null
this.trendType = null
} else {
this.startTime = ''
this.endTime = ''
this.timeRadio = 1
this.trendType = 1
}
this.getFollower()
this.codeSearch()
},
handleTab() {
this.createTime = []
this.trendType = this.timeRadio
this.createTime = ''
this.endTime = ''
this.codeSearch()
this.getFollower()
},
handleSearch() {
this.codeSearch()
},
handleEmpDetail(scope, value, day) {
this.$refs.empDetailForm.init(scope, value, day)
},
codeSearch() {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum,
startTime: this.startTime,
endTime: this.endTime,
trendType: this.trendType
}
this.$apis.overview.codeSearch(params).then(res => {
this.tableData = res.data
this.tableTotal = res.count
})
},
codeTrend() {
let codeIds = this.codeIds.map(item => {
return item.codeState
})
let codeName = this.codeIds.map(item => {
return item.codeName
})
const { trendType, startTime, endTime } = this
let params = {
codeIds,
trendType: trendType ? trendType : null,
startTime,
endTime
}
this.$apis.overview.codeTrend(params).then(res => {
this.$refs.channelLine.init(res, codeName)
})
},
selectTable(value) {
this.codeIds = value.map(item => {
return {
codeState: item.codeState,
codeName: item.codeName,
totalNum: item.totalNum
}
})
this.getFollower()
},
handleChannel() {
this.$refs.channelForm.init(this.codeIds)
},
getFollowerTotal() {
var params = {
pageSize: 1000,
pageNum: 1
}
this.$apis.channel.listChannelCodeByPage(params).then(res => {
console.log(res)
this.tableData = res.data
this.tableTotal = res.count
this.tableData.forEach(item => {
this.selectCode.forEach((itm, index) => {
if (itm.codeState == item.codeState) {
this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(item)
}
})
})
})
},
getFollower() {
let codeState = this.codeIds.map(item => item.codeState)
var params = {
startTime: this.startTime,
endTime: this.endTime,
trendType: this.trendType,
pageSize: 8,
pageNum: 1,
codeState
}
this.$apis.channel.listChannelCodeByPage(params).then(res => {
this.channel = res.data
this.codeIds = this.channel.map(item => {
return {
codeState: item.codeState,
codeName: item.codeName,
totalNum: item.totalNum
}
})
this.codeTrend()
})
}
},
mounted() {
this.codeSearch()
this.getFollower()
}
}
</script>
<style lang="scss" scoped>
.channel-main {
padding: 20px;
/deep/ {
.el-radio-group {
margin-top: 3px;
}
}
}
.link-dialog {
text-decoration: underline;
cursor: pointer;
}
.channel-chart {
display: flex;
.channel-chart-desc {
width: 300px;
min-height: 310px;
padding: 10px;
display: flex;
flex-direction: column;
justify-content: space-between;
margin-bottom: 30px;
.chart-desc-title {
display: flex;
justify-content: space-between;
font-size: 14px;
font-weight: 600;
color: #333333;
line-height: 20px;
.chart-title-time {
color: #5850ff;
}
}
.chart-desc-item {
display: flex;
justify-content: space-between;
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 17px;
margin-top: 10px;
.chart-item-title {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
span {
vertical-align: middle;
display: inline-block;
width: 12px;
height: 2px;
margin-right: 10px;
}
}
}
.chart-desc-add {
font-size: 12px;
font-weight: 400;
color: #5850ff;
line-height: 17px;
text-align: center;
}
.chart-desc-addNum {
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 17px;
text-align: center;
}
}
&-box {
flex: 1;
.channel-chart-title {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
}
.channel-chart-container {
margin-top: 20px;
}
}
}
</style>
<template>
<div>
<div class="form-panel scrm-box-f">
<GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="accessToRecords(scope.scope)">访问记录</el-button>
</div>
<div slot="visitCont" slot-scope="scope">
<div class="visitCont" @click="visitCisitCont(scope.scope)">{{ scope.scope.visitCont || '--' }}</div>
</div>
<div slot="followType" slot-scope="scope">
<el-switch @change="changeType(scope.scope.activityId, scope.scope.followType)" v-model="scope.scope.followType" :active-value="1" :inactive-value="0"></el-switch>
</div>
<div slot="staffName" slot-scope="scope">
<div class="codeName">{{ scope.scope.staffName }}</div>
<div class="codeRemark" v-if="scope.scope.operation">{{ scope.scope.operation }}</div>
</div>
<div slot="productItems" slot-scope="scope" class="product-panel">
<el-popover trigger="hover" placement="top" v-if="productItem(scope.scope.productItems).length > 2">
<GLFull
:labelWidth="110"
:label="item"
textType="tag"
:identi="
`text_${Math.random()
.toString()
.replace('.', '')}`
"
v-for="(item, index) in productItem(scope.scope.productItems)"
:key="index"
></GLFull>
<div slot="reference" class="name-wrapper">
<div v-for="(item, index) in productItem(scope.scope.productItems)" :key="index" v-show="index < 3">
<template v-if="index == 2 && productItem(scope.scope.productItems).length > 2">
<div class="accountType-row">
<span>{{ '...(' + productItem(scope.scope.productItems).length + ')' }}</span>
</div>
</template>
<GLFull :labelWidth="110" :label="item" textType="tag" v-if="index < 2"></GLFull>
</div>
</div>
</el-popover>
<GLFull
:labelWidth="110"
:label="item"
textType="tag"
:identi="
`text_${Math.random()
.toString()
.replace('.', '')}`
"
v-for="(item, index) in productItem(scope.scope.productItems)"
:key="index"
v-else
></GLFull>
<!-- <div class="product-item" v-for="(item, index) in productItem(scope.scope.productItems)" :key="index">{{ item }}</div> -->
</div>
</GLTable>
</div>
<el-dialog class="recordDialog" title="访问记录" :visible.sync="dialogTableVisible" width="38%" :top="0">
<el-table :data="recordRelationList">
<el-table-column type="index" :index="1" label="序号" width="120"></el-table-column>
<el-table-column property="pageName" label="访问页面" width="220"></el-table-column>
<el-table-column property="createdTime" label="访问时间"></el-table-column>
</el-table>
</el-dialog>
</div>
</template>
<script>
import util from '@/utils/util'
export default {
name: 'activityList',
data() {
return {
dialogTableVisible: false,
dialogVisibleDel: false,
selectItem: '',
loading: false,
tableSearchForm: {
staffName: '',
cardName: '',
followType: ''
},
searchFormData: [
{
label: '申请时间:',
name: 'createTime',
type: 'datePicker',
placeholder: '',
isClear: true,
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
}
},
{
label: '渠道名称',
name: 'cardName',
type: 'input'
},
{
label: '名片来源',
name: 'staffName',
type: 'input'
},
{
label: '是否跟进',
name: 'followType',
type: 'select',
placeholder: '请选择',
optionId: 'value',
optionLabel: 'label',
optionList: [
{
value: '',
label: '全部'
},
{
value: '1',
label: '是'
},
{
value: '0',
label: '否'
}
]
}
],
tableData: [],
// 表格按钮
tableParams: {
listName: 'data',
tableOption: false,
tableColumns: [
{
label: '门店名称',
prop: 'merchantName',
width: '210px'
},
{
label: '主营车型',
prop: 'carModel',
width: '140px'
},
{
label: '联系人',
prop: 'contactName'
},
{
label: '联系电话',
prop: 'contactPhone',
width: '140px'
},
{
label: '渠道',
prop: 'cardName',
width: '140px'
},
{
label: '名片来源',
prop: 'staffName',
width: '130px'
},
{
label: '申请场景',
prop: 'businessScenario',
width: '190px'
},
{
label: '申请活动',
prop: 'productItems',
addHtml: 'productItems',
width: '300px'
},
{
label: '申请时间',
prop: 'createdTime',
width: '190px'
},
{
label: '是否跟进',
prop: 'followType',
width: '190px',
addHtml: 'followType'
},
{
label: '操作',
prop: 'optionBtns',
width: '120px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
layout: 'sizes, prev, pager, next, jumper, ->, total',
tableTotal: 0,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
recordRelationList: []
}
},
methods: {
productItem(row) {
return (row && row.split(',')) || []
},
// 查看访问记录弹框
accessToRecords(scope) {
this.dialogTableVisible = true
const { activityId, followType } = scope
this.$apis.businessCard.pagerecord({ activityId, followType }).then(res => {
this.recordRelationList = res
})
},
// 跳转访问量
visitCisitCont(scope) {
const { cardName, visitCont, id: cardId, staffName } = scope
if (!visitCont) return
this.$parent.query = { cardName, cardId, staffName }
this.$parent.activeName = '2'
},
staffNameSplit(name) {
return name ? name.split(',') : ''
},
handleSearch() {
this.activityRecord()
},
handleReset() {
this.tableSearchForm = {}
this.activityRecord()
},
handleAddCode() {
this.$router.push('/businessCard/addCode')
},
downloadIamge(imgsrc) {
util.downloadIamge(imgsrc)
},
changeType(activityId, followType) {
this.$apis.businessCard
.activityFollow({
activityId,
followType
})
.then(res => {
if (res) {
this.$message({
type: 'success',
message: '操作成功!'
})
}
this.handleSearch()
})
this.dialogVisibleDel = false
},
handleDelete(scope) {
this.dialogVisibleDel = true
this.selectItem = scope
},
activityRecord() {
if (this.tableSearchForm.createTime) {
this.tableSearchForm.startApplyDate = new Date(this.tableSearchForm.createTime[0]).toLocaleDateString().replace(/\//g, '/')
this.tableSearchForm.endApplyDate = new Date(this.tableSearchForm.createTime[1]).toLocaleDateString().replace(/\//g, '/')
}
const params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum
}
delete params.createTime
this.loading = true
this.$apis.businessCard.activityRecord(params).then(res => {
this.loading = false
if (res) {
this.tableData = res.data
this.tableTotal = res.count
}
})
}
},
mounted() {
this.activityRecord()
}
}
</script>
<style>
.el-popover {
max-width: 800px;
}
</style>
<style lang="scss" scoped>
.product-item {
line-height: 26px;
padding: 0 8px;
height: 26px;
background: #e9ecf7;
display: inline-block;
margin-bottom: 6px;
}
.product-panel {
/deep/ {
.name-wrapper {
display: flex;
> div {
display: inline-block;
}
}
}
}
.recordDialog {
/deep/.el-dialog {
height: 100vh;
overflow: auto;
margin-right: 0;
margin-bottom: 0;
}
}
.link-dialog {
text-decoration: underline;
cursor: pointer;
}
.visitCont {
cursor: pointer;
color: #5850ff;
}
.popover-panel {
width: 1000px;
}
.form-header {
margin-bottom: 16px;
}
.form-panel {
padding: 20px;
/deep/ .el-popover {
max-width: 1000px;
}
}
.qrCode-popover {
text-align: center;
}
.download-link {
cursor: pointer;
margin-top: 6px;
font-size: 14px;
font-weight: 400;
color: #5850ff;
line-height: 20px;
}
.codeRemark {
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
.tag-panel {
//margin-bottom: -8px;
.tag-item {
border-radius: 4px;
border: 1px solid #e8e8ea;
display: inline-block;
padding: 4px 6px;
margin-right: 3px;
}
}
.allTagsWrap {
position: relative;
display: -webkit-box;
// max-height: 56px;
overflow: hidden;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
padding-bottom: -2px;
box-sizing: border-box;
// &:hover {
// -webkit-line-clamp: 9999;
// // .tag-box-wrap {
// // margin-bottom: 10px;
// // }
// }
.tag-box-wrap {
display: inline-block;
margin-right: 10px;
// margin-bottom: 2px;
padding: 0 10px;
box-sizing: border-box;
min-width: 76px;
max-width: 200px;
height: 26px;
line-height: 26px;
border-radius: 4px;
border: 1px solid #e8e8ea;
background: #fafbfe;
text-align: center;
font-size: 14px;
font-weight: 400;
color: #666666;
max-width: 245px;
cursor: pointer;
margin-bottom: 3px;
// &:first-child{
// margin-bottom: 4px;
// }
}
// .tag-box-wrap + .tag-box-wrap {
// margin-bottom: 4px;
// }
.expande-button-wrap {
position: absolute;
right: 0;
bottom: 0;
.expande-button {
color: #fafbfe;
cursor: pointer;
i {
height: 8px;
}
span {
height: 20px;
font-size: 14px;
font-weight: 400;
color: #fafbfe;
line-height: 20px;
}
}
}
}
.link-dialog {
label {
color: #5850ff;
}
}
.accountType-row {
text-align: left;
position: relative;
font-size: 14px;
line-height: 14px;
padding-left: 15px;
border-radius: 4px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
//margin-bottom: 5px;
margin-right: 5px;
&-tag {
display: inline-block;
border: 1px solid #e8e8ea;
background: #fafbfe;
text-align: center;
font-size: 14px;
font-weight: 400;
color: #666;
max-width: 150px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
i {
color: #75acff;
margin-right: 3px;
}
}
</style>
<template>
<div>
<div class="form-header">
<GLButton type="primary" size="small" icon="el-icon-add" @click="handleAddCode" fn="新建智能名片">
<i class="el-icon-plus"></i>
新建智能名片
</GLButton>
</div>
<div class="form-panel scrm-box-f">
<GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
</div>
<div slot="joinEntToday" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'day')" v-if="scope.scope.joinEntToday">{{ scope.scope.joinEntToday }}</div>
<div v-else>0</div>
</div>
<div slot="joinEntTotal" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope)" v-if="scope.scope.joinEntTotal">{{ scope.scope.joinEntTotal }}</div>
<div v-else>0</div>
</div>
<div slot="visitCont" slot-scope="scope">
<div class="visitCont" @click="visitCisitCont(scope.scope)">{{ scope.scope.visitCont || '--' }}</div>
</div>
<div slot="qrCode" slot-scope="scope">
<el-popover placement="bottom" width="400" trigger="hover">
<div class="qrCode-popover">
<img :src="scope.scope.miniprogramCode" style="width: 360px; height: 360px" />
<div class="download-link" @click="downloadIamge(scope.scope.miniprogramCode)">下载二维码</div>
</div>
<img :src="scope.scope.miniprogramCode" style="width: 36px; height: 36px" slot="reference" />
</el-popover>
</div>
<div slot="tagJson" slot-scope="scope" class="tag-panel">
<el-popover trigger="hover" placement="top" v-if="JSON.parse(scope.scope.tagJson) && JSON.parse(scope.scope.tagJson).length > 3">
<GLTitle :content="item.name" class="accountType-row accountType-row-tag" v-for="(item, index) in JSON.parse(scope.scope.tagJson)" :key="index"></GLTitle>
<div slot="reference" class="name-wrapper" style="display:flex">
<div style="display:flex" v-for="(item, index) in JSON.parse(scope.scope.tagJson)" :key="index" v-show="index < 4">
<div :title="item.name" class="accountType-row accountType-row-tag" v-if="index == 3 && JSON.parse(scope.scope.tagJson).length > 3">{{ '...(' + JSON.parse(scope.scope.tagJson).length + ')' }}</div>
<GLTitle :content="item.name" class="accountType-row accountType-row-tag" v-else></GLTitle>
</div>
</div>
</el-popover>
<div style="display:flex">
<template v-if="JSON.parse(scope.scope.tagJson) && JSON.parse(scope.scope.tagJson).length <= 3 && JSON.parse(scope.scope.tagJson).length > 0">
<div style="display:flex" v-for="(item, index) in JSON.parse(scope.scope.tagJson)" :key="index">
<GLTitle :content="item.name" class="accountType-row accountType-row-tag"></GLTitle>
</div>
</template>
</div>
<div v-if="!JSON.parse(scope.scope.tagJson) || (JSON.parse(scope.scope.tagJson) && JSON.parse(scope.scope.tagJson).length == 0)">--</div>
</div>
<div slot="cardName" slot-scope="scope">
<div class="codeName">{{ scope.scope.cardName }}</div>
<div class="codeRemark" v-if="scope.scope.remark">备注:{{ scope.scope.remark }}</div>
</div>
<div slot="staffName" slot-scope="scope">
<div class="codeName">{{ scope.scope.staffName }}</div>
<div class="codeRemark" v-if="scope.scope.operation">{{ scope.scope.operation }}</div>
</div>
</GLTable>
</div>
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisibleDel = false" type="error" content="删除该智能名片将失去该名片统计数据,是否删除?" :visible.sync="dialogVisibleDel" mode="small"></GLDialog>
<emp-detail ref="empDetailForm"></emp-detail>
</div>
</template>
<script>
import util from '@/utils/util'
import empDetail from '@/components/empDetail'
export default {
name: 'cardList',
components: { empDetail },
data() {
return {
dialogVisibleDel: false,
selectItem: '',
loading: false,
tableSearchForm: {
staffName: '',
cardName: ''
},
searchFormData: [
{
label: '员工',
name: 'staffName',
type: 'input',
placeholder: '请输入员工姓名'
},
{
label: '渠道名称',
name: 'cardName',
type: 'input',
placeholder: '请输入渠道名称'
}
],
tableData: [],
// 表格按钮
tableButtonList: [
{
type: 'GLButton',
name: '编辑',
attrs: {
type: 'text',
fn: '编辑智能名片'
},
listeners: {
click: this.handleEdit
}
},
{
type: 'GLButton',
name: '删除',
attrs: {
type: 'text',
fn: '删除智能名片'
},
listeners: {
click: this.handleDelete
}
}
],
tableParams: {
listName: 'data',
tableOption: false,
tableColumns: [
{
label: '渠道名称',
prop: 'cardName',
width: '210px',
addHtml: 'cardName'
},
{
label: '员工',
prop: 'staffName',
width: '140px',
addHtml: 'staffName'
},
{
label: '手机号',
prop: 'staffPhone',
width: '160px'
},
{
label: '访问量',
prop: 'visitCont',
width: '140px',
addHtml: 'visitCont'
},
{
label: '今日新增客户',
prop: 'joinEntToday',
width: '140px',
addHtml: 'joinEntToday'
},
{
label: '总新增客户',
prop: 'joinEntTotal',
width: '130px',
addHtml: 'joinEntTotal'
},
{
label: '名片地址',
prop: 'miniprogramCode',
addHtml: 'qrCode',
width: '136px'
},
{
label: '标签',
prop: 'tagJson',
addHtml: 'tagJson',
width: '400px'
},
{
label: '创建时间',
prop: 'createdTime',
width: '190px'
},
{
label: '操作',
prop: 'optionBtns',
width: '120px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
layout: 'sizes, prev, pager, next, jumper, ->, total',
tableTotal: 0,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' }
}
},
methods: {
//员工详情
handleEmpDetail(scope, status) {
this.$refs.empDetailForm.init(scope, status)
},
// 跳转访问量
visitCisitCont(scope) {
const { cardName, visitCont, id: cardId, staffName } = scope
if (!visitCont) return
this.$parent.query = { cardName, cardId, staffName }
this.$parent.activeName = '2'
},
staffNameSplit(name) {
return name ? name.split(',') : ''
},
handleEdit(scope) {
this.$router.push({
path: '/businessCard/addCode',
query: {
id: scope.id
}
})
},
handleSearch() {
this.listBussinessCardByPage()
},
handleReset() {
this.tableSearchForm = {}
this.listBussinessCardByPage()
},
handleAddCode() {
this.$router.push('/businessCard/addCode')
},
downloadIamge(imgsrc) {
util.downloadIamge(imgsrc)
},
handleSure() {
const { id: cardId } = this.selectItem
this.$apis.businessCard
.delBussinessCardApi({
cardId
})
.then(res => {
if (res) {
this.$message({
type: 'success',
message: '删除成功!'
})
}
this.handleSearch()
})
this.dialogVisibleDel = false
},
handleDelete(scope) {
this.dialogVisibleDel = true
this.selectItem = scope
},
listBussinessCardByPage() {
const params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum
}
this.loading = true
this.$apis.businessCard.getBussinessCardListApi(params).then(res => {
this.loading = false
if (res) {
this.tableData = res.data
this.tableTotal = res.count
}
})
}
},
mounted() {
this.listBussinessCardByPage()
}
}
</script>
<style>
.el-popover {
max-width: 800px;
}
</style>
<style lang="scss" scoped>
.link-dialog {
text-decoration: underline;
cursor: pointer;
}
.visitCont {
cursor: pointer;
color: #5850ff;
}
.popover-panel {
width: 1000px;
}
.form-header {
margin-bottom: 16px;
}
.form-panel {
padding: 20px;
/deep/ .el-popover {
max-width: 1000px;
}
}
.qrCode-popover {
text-align: center;
}
.download-link {
cursor: pointer;
margin-top: 6px;
font-size: 14px;
font-weight: 400;
color: #5850ff;
line-height: 20px;
}
.codeRemark {
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
.tag-panel {
//margin-bottom: -8px;
.tag-item {
border-radius: 4px;
border: 1px solid #e8e8ea;
display: inline-block;
padding: 4px 6px;
margin-right: 3px;
}
}
.allTagsWrap {
position: relative;
display: -webkit-box;
// max-height: 56px;
overflow: hidden;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
padding-bottom: -2px;
box-sizing: border-box;
// &:hover {
// -webkit-line-clamp: 9999;
// // .tag-box-wrap {
// // margin-bottom: 10px;
// // }
// }
.tag-box-wrap {
display: inline-block;
margin-right: 10px;
// margin-bottom: 2px;
padding: 0 10px;
box-sizing: border-box;
min-width: 76px;
max-width: 200px;
height: 26px;
line-height: 26px;
border-radius: 4px;
border: 1px solid #e8e8ea;
background: #fafbfe;
text-align: center;
font-size: 14px;
font-weight: 400;
color: #666666;
max-width: 245px;
cursor: pointer;
margin-bottom: 3px;
// &:first-child{
// margin-bottom: 4px;
// }
}
// .tag-box-wrap + .tag-box-wrap {
// margin-bottom: 4px;
// }
.expande-button-wrap {
position: absolute;
right: 0;
bottom: 0;
.expande-button {
color: #fafbfe;
cursor: pointer;
i {
height: 8px;
}
span {
height: 20px;
font-size: 14px;
font-weight: 400;
color: #fafbfe;
line-height: 20px;
}
}
}
}
.link-dialog {
label {
color: #5850ff;
}
}
.accountType-row {
text-align: left;
position: relative;
font-size: 14px;
line-height: 14px;
padding-left: 15px;
border-radius: 4px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
//margin-bottom: 5px;
margin-right: 5px;
&-tag {
display: inline-block;
border: 1px solid #e8e8ea;
background: #fafbfe;
text-align: center;
font-size: 14px;
font-weight: 400;
color: #666;
max-width: 150px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
i {
color: #75acff;
margin-right: 3px;
}
}
</style>
import Vue from 'vue'
const componentsFiles = require.context(`./`, true, /.vue$/)
componentsFiles.keys().forEach(path => {
const component = componentsFiles(path).default
Vue.component(component.name, component)
})
<template>
<div class="channel-main scrm-box-f">
<div class="scrm-flex">
<el-radio-group v-model="timeRadio" size="mini" @change="handleTab">
<el-radio-button label="1">昨天</el-radio-button>
<el-radio-button label="2">近1周</el-radio-button>
<el-radio-button label="3">近2周</el-radio-button>
<el-radio-button label="4">近1个月</el-radio-button>
</el-radio-group>
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item" label-width="80px">
<el-form-item size="small" label="访问时间">
<el-date-picker :picker-options="pickerOptions" @change="handleTime" value-format="yyyy-MM-dd" v-model="createTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item size="small" label="渠道名称">
<el-input size="small" v-model="tableSearchForm.keyWord" placeholder="请输入渠道名称"></el-input>
</el-form-item>
<el-form-item size="small" style="float: right; margin-left: 40px">
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
</div>
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch">
<div slot="newlyCount" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'day', scope.scope.timeFrame)" v-if="scope.scope.newlyCount">{{ scope.scope.newlyCount }}</div>
<div v-else>0</div>
</div>
<div slot="newlyKeepCount" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'status', scope.scope.timeFrame)" v-if="scope.scope.newlyKeepCount">{{ scope.scope.newlyKeepCount }}</div>
<div v-else>0</div>
</div>
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleEmpDetail(scope.scope)">访问记录</el-button>
</div>
</GLTable>
<page-detail ref="empDetailForm"></page-detail>
</div>
</template>
<script>
import pageDetail from '@/components/pageDetail'
export default {
name: 'proxyList',
components: {
pageDetail
},
data() {
return {
timeRadio: 1,
trendType: 1,
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
},
channel: [],
createTime: [],
tableSearchForm: {},
tableParams: {
listName: 'data',
tableOption: false,
tableColumns: [
{
label: '微信名称',
prop: 'codeName'
},
{
label: '手机号码',
prop: 'codeName'
},
{
label: '已加企微',
prop: 'newlyCount',
formatter: value => {
return '是'
}
},
{
label: '渠道名称',
prop: 'codeName'
},
{
label: '名片来源',
prop: 'newlyKeepCount',
addHtml: 'newlyKeepCount'
},
{
label: '日期',
prop: 'timeFrame'
},
{
label: '操作',
prop: 'optionBtns',
width: '80px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
layout: 'sizes, prev, pager, next, jumper, ->, total',
tableData: [],
tableTotal: 0,
startTime: '',
endTime: '',
selectItem: [],
codeIds: [],
colorList: ['#5850FF', '#2CCA74', '#EB4E4E', '#FF6D00', '#F8C900', '#2CCAC4', '#E74EEB', '#6F2828']
}
},
// watch: {
// createTime(value) {
// if (value) {
// this.startTime = value[0]
// this.endTime = value[1]
// this.timeRadio = null
// this.trendType = null
// } else {
// this.startTime = ''
// this.endTime = ''
// this.timeRadio = 1
// this.trendType = 1
// }
// this.getFollower()
// this.codeSearch()
// }
// },
methods: {
handleTime() {
const value = this.createTime
if (value && value.length > 0) {
this.startTime = value[0]
this.endTime = value[1]
this.timeRadio = null
this.trendType = null
} else {
this.startTime = ''
this.endTime = ''
this.timeRadio = 1
this.trendType = 1
}
this.getFollower()
this.codeSearch()
},
handleTab() {
this.createTime = []
this.trendType = this.timeRadio
this.createTime = ''
this.endTime = ''
this.codeSearch()
this.getFollower()
},
handleSearch() {
this.codeSearch()
},
handleEmpDetail(scope, value, day) {
this.$refs.empDetailForm.init(scope, value, day)
},
codeSearch() {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum,
startTime: this.startTime,
endTime: this.endTime,
trendType: this.trendType
}
this.$apis.overview.codeSearch(params).then(res => {
this.tableData = res.data
this.tableTotal = res.count
})
},
codeTrend() {
let codeIds = this.codeIds.map(item => {
return item.codeState
})
let codeName = this.codeIds.map(item => {
return item.codeName
})
const { trendType, startTime, endTime } = this
let params = {
codeIds,
trendType: trendType ? trendType : null,
startTime,
endTime
}
this.$apis.overview.codeTrend(params).then(res => {
this.$refs.channelLine.init(res, codeName)
})
},
selectTable(value) {
this.codeIds = value.map(item => {
return {
codeState: item.codeState,
codeName: item.codeName,
totalNum: item.totalNum
}
})
this.getFollower()
},
handleChannel() {
this.$refs.channelForm.init(this.codeIds)
},
getFollowerTotal() {
var params = {
pageSize: 1000,
pageNum: 1
}
this.$apis.channel.listChannelCodeByPage(params).then(res => {
console.log(res)
this.tableData = res.data
this.tableTotal = res.count
this.tableData.forEach(item => {
this.selectCode.forEach((itm, index) => {
if (itm.codeState == item.codeState) {
this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(item)
}
})
})
})
},
getFollower() {
let codeState = this.codeIds.map(item => item.codeState)
var params = {
startTime: this.startTime,
endTime: this.endTime,
trendType: this.trendType,
pageSize: 8,
pageNum: 1,
codeState
}
this.$apis.channel.listChannelCodeByPage(params).then(res => {
this.channel = res.data
this.codeIds = this.channel.map(item => {
return {
codeState: item.codeState,
codeName: item.codeName,
totalNum: item.totalNum
}
})
this.codeTrend()
})
}
},
mounted() {
this.codeSearch()
this.getFollower()
}
}
</script>
<style lang="scss" scoped>
.channel-main {
padding: 20px;
/deep/ {
.el-radio-group {
margin-top: 3px;
}
}
}
.link-dialog {
text-decoration: underline;
cursor: pointer;
}
.channel-chart {
display: flex;
.channel-chart-desc {
width: 300px;
min-height: 310px;
padding: 10px;
display: flex;
flex-direction: column;
justify-content: space-between;
margin-bottom: 30px;
.chart-desc-title {
display: flex;
justify-content: space-between;
font-size: 14px;
font-weight: 600;
color: #333333;
line-height: 20px;
.chart-title-time {
color: #5850ff;
}
}
.chart-desc-item {
display: flex;
justify-content: space-between;
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 17px;
margin-top: 10px;
.chart-item-title {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
span {
vertical-align: middle;
display: inline-block;
width: 12px;
height: 2px;
margin-right: 10px;
}
}
}
.chart-desc-add {
font-size: 12px;
font-weight: 400;
color: #5850ff;
line-height: 17px;
text-align: center;
}
.chart-desc-addNum {
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 17px;
text-align: center;
}
}
&-box {
flex: 1;
.channel-chart-title {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
}
.channel-chart-container {
margin-top: 20px;
}
}
}
</style>
<template>
<div class="channel-main scrm-box-f">
<div class="scrm-GLCombiForm">
<GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<!-- <el-form :inline="true" :model="tableSearchForm" class="follow-form-item" label-width="130px">
<el-form-item size="small" label="访问时间:">
<el-date-picker :picker-options="pickerOptions" @change="handleTime" value-format="yyyy-MM-dd" v-model="createTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item size="small" label="渠道名称:">
<el-input size="small" v-model="tableSearchForm.cardName" placeholder="请输入渠道名称" :disabled="isShowInput"></el-input>
</el-form-item>
<el-form-item size="small" label="名片来源:">
<el-input size="small" v-model="tableSearchForm.staffName" placeholder="请输入名片来源" :disabled="isShowInput"></el-input>
</el-form-item>
<el-form-item size="small" style="float: right; margin-left: 12px">
<el-button type="primary" @click="handleSearch">查询</el-button>
<el-button @click="handleReset" class="resetBtn">重置</el-button>
</el-form-item>
</el-form> -->
</div>
<div class="titleAndTime">
<div class="listTitle">访问列表</div>
<el-radio-group v-model="timeRadio" size="mini" @change="handleTab">
<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>
</div>
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="accessToRecords(scope)">访问记录</el-button>
</div>
<div class="table-btns" slot="nickName" slot-scope="scope">
{{ scope.scope.nickName }}
<span class="typeInfo">{{ scope.scope.type == '1' ? '@微信' : scope.scope.type == '2' ? '@企微' : '' }}</span>
</div>
<div class="table-btns" slot="isJoin" slot-scope="scope">
{{ scope.scope.isJoin == '0' ? '否' : scope.scope.isJoin == '1' ? '是' : '--' }}
</div>
</GLTable>
<el-dialog class="recordDialog" title="访问记录" :visible.sync="dialogTableVisible" width="38%" :top="0">
<el-table :data="recordRelationList">
<el-table-column type="index" :index="1" label="序号" width="120"></el-table-column>
<el-table-column property="pageName" label="访问页面" width="220"></el-table-column>
<el-table-column property="createdTime" label="访问时间"></el-table-column>
</el-table>
</el-dialog>
</div>
</template>
<script>
export default {
name: 'recordList',
data() {
return {
isShowInput: false,
recordRelationList: [],
dialogTableVisible: false,
timeRadio: 1,
dateInterval: 1,
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
},
channel: [],
tableSearchForm: {
createTime: '',
cardName: '',
staffName: ''
},
searchFormData: [
{
label: '访问时间',
name: 'createTime',
type: 'datePicker',
placeholder: '',
isClear: true,
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
}
},
{
label: '渠道名称',
name: 'cardName',
type: 'input'
},
{
label: '名片来源',
name: 'staffName',
type: 'input'
}
],
tableParams: {
listName: 'data',
tableOption: false,
tableColumns: [
{
label: '访客',
prop: 'nickName',
addHtml: 'nickName'
},
{
label: '手机号码',
prop: 'phone'
},
{
label: '已加企微',
prop: 'isJoin',
addHtml: 'isJoin'
},
{
label: '渠道名称',
prop: 'cardName'
},
{
label: '名片来源',
prop: 'staffName'
},
{
label: '最后访问日期',
prop: 'lastTime'
},
{
label: '访问时间',
prop: 'optionBtns',
width: '100px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
layout: 'sizes, prev, pager, next, jumper, ->, total',
tableData: [],
tableTotal: 0,
startDate: '',
endDate: '',
colorList: ['#5850FF', '#2CCA74', '#EB4E4E', '#FF6D00', '#F8C900', '#2CCAC4', '#E74EEB', '#6F2828']
}
},
methods: {
// 查看访问记录弹框
accessToRecords(scope) {
this.dialogTableVisible = true
this.$nextTick(() => {
this.recordRelationList = scope.scope.recordRelationList
})
},
handleTime() {
const value = this.createTime
if (value && value.length > 0) {
this.startDate = value[0]
this.endDate = value[1]
this.timeRadio = null
this.dateInterval = null
} else {
this.startDate = ''
this.endDate = ''
this.timeRadio = 1
this.dateInterval = 1
}
this.codeSearch()
},
handleTab() {
this.createTime = []
this.dateInterval = this.timeRadio
this.startDate = ''
this.endDate = ''
this.codeSearch()
},
handleReset() {
this.isShowInput = false
Object.keys(this.tableSearchForm).forEach(key => {
this.tableSearchForm[key] = ''
})
this.createTime = []
this.timeRadio = 1
let params = {
...this.tableSearchForm,
pageSize: 10,
pageNum: 1,
dateInterval: 1
}
this.sendPageListApi(params)
},
handleSearch() {
this.codeSearch()
},
codeSearch() {
if (this.tableSearchForm.createTime) {
this.tableSearchForm.startDate = new Date(this.tableSearchForm.createTime[0]).toLocaleDateString().replace(/\//g, '-')
this.tableSearchForm.endDate = new Date(this.tableSearchForm.createTime[1]).toLocaleDateString().replace(/\//g, '-')
}
let params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum,
dateInterval: this.dateInterval
}
delete params.createTime
this.sendPageListApi(params)
},
sendPageListApi(params) {
this.$apis.businessCard.getaccessToRecordsPage(params).then(res => {
this.tableData = res.data
this.tableTotal = res.count
})
}
},
mounted() {
if (this.$parent.query && this.$parent.query.cardName) {
let { cardName, cardId, staffName } = this.$parent.query
this.timeRadio = this.dateInterval = 4
this.$set(this.tableSearchForm, 'cardName', cardName)
this.$set(this.tableSearchForm, 'staffName', staffName)
this.$set(this.tableSearchForm, 'cardId', cardId)
this.isShowInput = true
}
this.codeSearch()
},
beforeDestroy() {
this.$parent.query = {}
}
}
</script>
<style lang="scss" scoped>
.resetBtn {
margin-left: 8px;
}
.titleAndTime {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
.listTitle {
font-size: 16px;
font-weight: 600;
color: #333;
}
}
.typeInfo {
font-size: 12px;
color: #2cca74;
}
/deep/.recordDialog {
.el-dialog {
height: 100vh;
overflow: auto;
margin-right: 0;
margin-bottom: 0;
}
}
.channel-main {
padding: 20px;
/deep/ {
.el-radio-group {
margin-top: 3px;
}
}
}
.link-dialog {
text-decoration: underline;
cursor: pointer;
}
.channel-chart {
display: flex;
.channel-chart-desc {
width: 300px;
min-height: 310px;
padding: 10px;
display: flex;
flex-direction: column;
justify-content: space-between;
margin-bottom: 30px;
.chart-desc-title {
display: flex;
justify-content: space-between;
font-size: 14px;
font-weight: 600;
color: #333333;
line-height: 20px;
.chart-title-time {
color: #5850ff;
}
}
.chart-desc-item {
display: flex;
justify-content: space-between;
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 17px;
margin-top: 10px;
.chart-item-title {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
span {
vertical-align: middle;
display: inline-block;
width: 12px;
height: 2px;
margin-right: 10px;
}
}
}
.chart-desc-add {
font-size: 12px;
font-weight: 400;
color: #5850ff;
line-height: 17px;
text-align: center;
}
.chart-desc-addNum {
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 17px;
text-align: center;
}
}
&-box {
flex: 1;
.channel-chart-title {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
}
.channel-chart-container {
margin-top: 20px;
}
}
}
</style>
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-10-12 09:30:11
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-10-18 16:03:33
* @FilePath: \scrm-micro-drainage\src\views\businessCard\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="channel-main">
<GLTabs v-model="activeName" :tabPaneList="tabPaneList" class="tabs-panel"></GLTabs>
<components :is="tabName"></components>
</div>
</template>
<script>
const tabPaneList = [
{
label: '智能名片',
name: '1'
},
{
label: '访问记录',
name: '2'
},
{
label: '活动申请',
name: '3'
}
// {
// label: '代理申请',
// name: '4'
// }
]
import './components'
export default {
name: 'businessCard',
data() {
return {
activeName: '1',
tabPaneList
}
},
computed: {
tabName() {
let sname
switch (this.activeName) {
case '1':
sname = 'cardList'
break
case '2':
sname = 'recordList'
break
case '3':
sname = 'activityList'
break
// case '4':
// sname = 'proxyList'
// break
}
return sname
}
}
}
</script>
<style lang="scss" scoped>
.channel-main {
.tabs-panel {
margin-bottom: 10px;
}
}
</style>
<template> <template>
<div class="scrm-main"> <div class="scrm-main">
<div class="channel-main-guidance scrm-box-f">
<div class="channel-main-guidance-item">
<div class="channel-main-guidance-item-head">
<img src="@/assets/img/channel/staff.png" />
<div class="channel-main-guidance-item-title">配置名片关联的员工</div>
</div>
<div class="channel-main-guidance-item-info">名片可关联一个或多个员工。配置多名员工时,客户扫码后仅会添加随机的某个员工。</div>
</div>
<div class="channel-arrow">
<img src="@/assets/img/channel/channel-arrow.png" />
</div>
<div class="channel-main-guidance-item">
<div class="channel-main-guidance-item-head">
<img src="@/assets/img/channel/equity.png" />
<div class="channel-main-guidance-item-title">配置客户领取的权益</div>
</div>
<div class="channel-main-guidance-item-info">客户添加员工为好友后,系统将通过欢迎语发送相关的权益礼包。 礼包内容可结合互联网权益、自店权益。由于企微官方限制,使用前请先确认已取消统一的欢迎语。</div>
</div>
<div class="channel-arrow">
<img src="@/assets/img/channel/channel-arrow.png" />
</div>
<div class="channel-main-guidance-item">
<div class="channel-main-guidance-item-head">
<img src="@/assets/img/channel/card.png" />
<div class="channel-main-guidance-item-title">生成智能员工名片</div>
</div>
<div class="channel-main-guidance-item-info">名片生成后长期有效,可结合门店业务需要,添加到门店活动易拉宝、员工卡座立牌、活动海报,实现灵活的集客。</div>
</div>
</div>
<div class="channel-main scrm-box-f"> <div class="channel-main scrm-box-f">
<div class="chanel-form-title">基本信息</div> <div class="chanel-form-title">基本信息</div>
<div class="chanel-form-box"> <div class="chanel-form-box gl-form-page">
<el-form ref="codeForm" :model="addCodeForm" class="code-body-form" label-width="120px" :rules="codeRules"> <el-form ref="codeForm" :model="addCodeForm" class="code-body-form" label-width="154px" :rules="codeRules">
<el-row> <!-- <el-row> -->
<el-form-item label="渠道名称" prop="codeName"> <el-form-item label="渠道名称:" prop="codeName">
<el-input size="small" v-model.trim="addCodeForm.codeName" placeholder="请输入渠道名称" maxlength="30"></el-input> <el-input size="small" v-model.trim="addCodeForm.codeName" placeholder="请输入渠道名称" maxlength="30"></el-input>
</el-form-item> </el-form-item>
</el-row> <!-- </el-row>
<el-row> <el-row> -->
<el-form-item label="备注"> <el-form-item label="备注:">
<el-input size="small" v-model.trim="addCodeForm.codeRemark" placeholder="请输入备注" maxlength="30"></el-input> <el-input size="small" v-model.trim="addCodeForm.codeRemark" placeholder="请输入备注" maxlength="30"></el-input>
<div class="form-tips">设置备注,便于后续管理查找</div> <div class="form-tips">设置备注,便于后续管理查找</div>
</el-form-item> </el-form-item>
</el-row> <!-- </el-row>
<el-row> <el-row> -->
<el-form-item label="自动通过验证"> <el-form-item label="自动通过验证:">
<el-switch v-model="addCodeForm.autoAdd" active-color="#5850FF" inactive-color="#999999"></el-switch> <el-switch v-model="addCodeForm.autoAdd" active-color="#5850FF" inactive-color="#999999"></el-switch>
<span class="form-tips-btn">开启后,客户添加使用人员无需好友验证</span> <span class="form-tips-btn">开启后,客户添加使用人员无需好友验证</span>
</el-form-item> </el-form-item>
</el-row> <!-- </el-row>
<el-row> <el-row> -->
<el-form-item label="选择标签"> <el-form-item label="选择标签:">
<el-button size="small" @click="handleAddTag"> <el-button size="small" @click="handleAddTag">
<i class="el-icon-plus"></i>
选择标签
</el-button>
<span class="form-tips-btn">
已选择
<span>{{ taggingLength }}</span>
个标签
</span>
<div class="form-tips">自动为通过该活码添加的客户打上所选标签</div>
<div class="el-input-tag input-tag-wrapper" v-show="taggingLength">
<template v-if="tagging && tagging.length > 0">
<template v-for="(item, index) in tagging">
<el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item, idx, index)">
{{ tag ? tag.name : '' }}
</el-tag>
</template>
</template>
</div>
</el-form-item>
<!-- </el-row>
<el-row> -->
<div class="el-form-item is-required">
<label for="codeName" class="el-form-item__label" style="width: 154px">选择专员:</label>
<div class="el-form-item__content" style="margin-left: 154px">
<el-button size="small" @click="handleAddEmp">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
选择标签 选择专员
</el-button> </el-button>
<span class="form-tips-btn"> <span class="form-tips-btn">
已选择 已选择
<span>{{ taggingLength }}</span> <span>{{ staffInfo.length }}</span>
个标签 人
</span> </span>
<div class="form-tips">自动为通过该活码添加的客户打上所选标签</div> <div class="form-tips">客户扫码后将添加所选专员为好友,选择多名专员则按ABAB的顺序添加客户</div>
<div class="el-input-tag input-tag-wrapper" v-show="taggingLength"> <div class="el-input-tag input-tag-wrapper" v-show="staffInfo.length">
<template v-if="tagging && tagging.length > 0"> <el-tag effect="plain" type="info" v-for="(tag, idx) in staffInfo" :key="idx" closable :disable-transitions="false" @close="removeStaff(idx)">
<template v-for="(item, index) in tagging"> <i class="el-icon-user-solid"></i>
<el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item, idx, index)"> {{ tag.staffName }}
{{ tag ? tag.name : '' }} </el-tag>
</el-tag>
</template>
</template>
</div>
</el-form-item>
</el-row>
<el-row>
<div class="el-form-item is-required">
<label for="codeName" class="el-form-item__label" style="width: 120px">选择专员</label>
<div class="el-form-item__content" style="margin-left: 120px">
<el-button size="small" @click="handleAddEmp">
<i class="el-icon-plus"></i>
选择专员
</el-button>
<span class="form-tips-btn">
已选择
<span>{{ staffInfo.length }}</span>
人
</span>
<div class="form-tips">客户扫码后将添加所选专员为好友,选择多名专员则按ABAB的顺序添加客户</div>
<div class="el-input-tag input-tag-wrapper" v-show="staffInfo.length">
<el-tag effect="plain" type="info" v-for="(tag, idx) in staffInfo" :key="idx" closable :disable-transitions="false" @close="removeStaff(idx)">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
</div>
<div class="el-form-item__error" v-if="staffStatus">请选择专员</div>
</div> </div>
<div class="el-form-item__error" v-if="staffStatus">请选择专员</div>
</div> </div>
</el-row> </div>
<!-- </el-row> -->
</el-form> </el-form>
</div> </div>
</div> </div>
...@@ -75,11 +104,10 @@ ...@@ -75,11 +104,10 @@
<div class="chanel-form-title">欢迎语</div> <div class="chanel-form-title">欢迎语</div>
<div class="welcome-panel"> <div class="welcome-panel">
<div class="welcome-switch"> <div class="welcome-switch">
<label>自动发送欢迎语</label> <label>自动发送欢迎语:</label>
<el-switch v-model="autoWelcome" active-color="#5850FF" inactive-color="#999999"></el-switch> <el-switch v-model="autoWelcome" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div> </div>
<div class="welcome-box" v-show="autoWelcome"> <div class="welcome-box" v-show="autoWelcome">
<!-- <welcome-words :eventBus="eventBus" ref="welcome"></welcome-words> -->
<GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm"></GLEditor> <GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm"></GLEditor>
</div> </div>
</div> </div>
...@@ -208,21 +236,23 @@ export default { ...@@ -208,21 +236,23 @@ export default {
this.$refs['codeForm'].validate(valid => { this.$refs['codeForm'].validate(valid => {
if (valid) { if (valid) {
let param = Object.assign({ id: this.codeId }, this.addCodeForm) let param = Object.assign({ id: this.codeId }, this.addCodeForm)
let tagging = this.tagging.map(item => { if (this.tagging && this.tagging.length) {
let tagIds = item.labelList.map(tag => { let tagging = this.tagging.map(item => {
return tag.id let tagIds = item.labelList.map(tag => {
}) return tag.id
let name = item.labelList.map(tag => { })
return tag.name let name = item.labelList.map(tag => {
return tag.name
})
return {
groupId: item.labelGroup.id,
tagIds: tagIds.join(','),
name: name.join(','),
labelType: item.labelGroup.name
}
}) })
return { param.tagging = JSON.stringify(tagging)
groupId: item.labelGroup.id, }
tagIds: tagIds.join(','),
name: name.join(','),
labelType: item.labelGroup.name
}
})
param.tagging = JSON.stringify(tagging)
param.autoWelcome = this.autoWelcome ? 1 : 0 param.autoWelcome = this.autoWelcome ? 1 : 0
param.codeSystem = 0 param.codeSystem = 0
let staffId = [] let staffId = []
...@@ -265,22 +295,25 @@ export default { ...@@ -265,22 +295,25 @@ export default {
this.addCodeForm.autoAdd = this.addCodeForm.autoAdd == 1 ? true : false this.addCodeForm.autoAdd = this.addCodeForm.autoAdd == 1 ? true : false
this.staffInfo = res.staffInfo this.staffInfo = res.staffInfo
const tagging = eval(res.tagging) const tagging = eval(res.tagging)
const taggingList = tagging.map(item => { if (tagging && tagging.length) {
let name = item.name.split(',') const taggingList = tagging.map(item => {
let ids = item.tagIds.split(',') let name = item.name.split(',')
console.log(ids) let ids = item.tagIds.split(',')
let labelList = name.map((tag, index) => { console.log(ids)
return { id: ids[index], name: tag } let labelList = name.map((tag, index) => {
return { id: ids[index], name: tag }
})
return {
labelGroup: {
id: item.groupId,
name: item.labelType
},
labelList
}
}) })
return { this.tagging = taggingList
labelGroup: { }
id: item.groupId,
name: item.labelType
},
labelList
}
})
this.tagging = taggingList
this.autoWelcome = res.autoWelcome ? true : false this.autoWelcome = res.autoWelcome ? true : false
if (res.welcomeInfo.length != 0) { if (res.welcomeInfo.length != 0) {
const previewList = res.welcomeInfo.map(item => { const previewList = res.welcomeInfo.map(item => {
...@@ -329,7 +362,7 @@ export default { ...@@ -329,7 +362,7 @@ export default {
} }
} }
.welcome-box { .welcome-box {
margin-left: 48px; margin-left: 62px;
} }
} }
} }
...@@ -404,4 +437,48 @@ export default { ...@@ -404,4 +437,48 @@ export default {
margin-bottom: 5px; margin-bottom: 5px;
} }
} }
.channel-main-guidance {
display: flex;
padding: 20px;
box-sizing: border-box;
align-items: center;
margin-bottom: 20px;
.channel-main-guidance-item {
flex: 1;
height: 142px;
background: url('../../assets/img/channel/bg.png'), no-repeat;
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: 500;
color: #333333;
line-height: 22px;
}
&-info {
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
}
.channel-arrow {
margin: 0 16px;
width: 20px;
height: 15px;
img {
width: 100%;
}
}
}
</style> </style>
...@@ -7,10 +7,11 @@ ...@@ -7,10 +7,11 @@
<GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams"> <GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams">
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<GLButton type="text" @click="handleDetail(scope.scope)" fn="到店咨询客户数据">数据</GLButton> <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
<!-- <GLButton type="text" @click="handleDetail(scope.scope)" fn="到店咨询客户数据">数据</GLButton>
<GLButton type="text" @click="handleEdit(scope.scope)" fn="活码编辑">修改</GLButton> <GLButton type="text" @click="handleEdit(scope.scope)" fn="活码编辑">修改</GLButton>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> <el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
<GLButton type="text" @click="handleAddPoster(scope.scope)" fn="活码海报">活码海报</GLButton> <GLButton type="text" @click="handleAddPoster(scope.scope)" fn="活码海报">活码海报</GLButton> -->
</div> </div>
<div slot="yesterdayNum" slot-scope="scope"> <div slot="yesterdayNum" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'day')" v-if="scope.scope.yesterdayNum">{{ scope.scope.yesterdayNum }}</div> <div class="link-dialog" @click="handleEmpDetail(scope.scope, 'day')" v-if="scope.scope.yesterdayNum">{{ scope.scope.yesterdayNum }}</div>
...@@ -22,20 +23,9 @@ ...@@ -22,20 +23,9 @@
</div> </div>
<div slot="staffInfo" slot-scope="scope"> <div slot="staffInfo" slot-scope="scope">
<el-popover trigger="hover" placement="top" v-if="staffNameSplit(scope.scope.staffName).length > 3"> <el-popover trigger="hover" placement="top" v-if="staffNameSplit(scope.scope.staffName).length > 3">
<GLFull <GLFull :labelWidth="110" :label="item" textType="user" :identi="`text_${Math.random().toString().replace('.', '')}`" v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index"></GLFull>
:labelWidth="110"
:label="item"
textType="user"
:identi="
`text_${Math.random()
.toString()
.replace('.', '')}`
"
v-for="(item, index) in staffNameSplit(scope.scope.staffName)"
:key="index"
></GLFull>
<div slot="reference" class="name-wrapper"> <div slot="reference" class="name-wrapper">
<div v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-show="index < 4"> <div style="display: inline-block" v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-show="index < 4">
<template v-if="index == 3 && staffNameSplit(scope.scope.staffName).length > 3"> <template v-if="index == 3 && staffNameSplit(scope.scope.staffName).length > 3">
<div class="accountType-row"> <div class="accountType-row">
<i class="el-icon-user-solid"></i> <i class="el-icon-user-solid"></i>
...@@ -46,19 +36,7 @@ ...@@ -46,19 +36,7 @@
</div> </div>
</div> </div>
</el-popover> </el-popover>
<GLFull <GLFull :labelWidth="110" :label="item" textType="user" :identi="`text_${Math.random().toString().replace('.', '')}`" v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-else></GLFull>
:labelWidth="110"
:label="item"
textType="user"
:identi="
`text_${Math.random()
.toString()
.replace('.', '')}`
"
v-for="(item, index) in staffNameSplit(scope.scope.staffName)"
:key="index"
v-else
></GLFull>
<!-- <div v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-else> <!-- <div v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-else>
<div class="accountType-row"> <div class="accountType-row">
<i class="el-icon-user-solid"></i> <i class="el-icon-user-solid"></i>
...@@ -67,11 +45,13 @@ ...@@ -67,11 +45,13 @@
</div> --> </div> -->
</div> </div>
<div slot="qrCode" slot-scope="scope"> <div slot="qrCode" slot-scope="scope">
<el-popover placement="bottom" width="400" trigger="click"> <el-popover placement="bottom" trigger="click">
<img :src="scope.scope.qrCode" style="width: 360px; height: 360px" /> <div>
<img :src="scope.scope.qrCode" style="width: 80px; height: 80px" slot="reference" /> <img :src="scope.scope.qrCode" style="width: 140px; height: 140px" />
<div class="download-link" @click="downloadIamge(scope.scope.qrCode)">下载二维码</div>
</div>
<img :src="scope.scope.qrCode" style="width: 36px; height: 36px" slot="reference" />
</el-popover> </el-popover>
<div class="download-link" @click="downloadIamge(scope.scope.qrCode)">下载二维码</div>
</div> </div>
<div slot="tagging" slot-scope="scope" class="tag-panel"> <div slot="tagging" slot-scope="scope" class="tag-panel">
<el-popover trigger="hover" placement="top" v-if="scope.scope.taggingList && scope.scope.taggingList.length > 3"> <el-popover trigger="hover" placement="top" v-if="scope.scope.taggingList && scope.scope.taggingList.length > 3">
...@@ -107,7 +87,7 @@ ...@@ -107,7 +87,7 @@
<script> <script>
import util from '@/utils/util' import util from '@/utils/util'
import empDetail from './empDetail.vue' import empDetail from '@/components/empDetail'
export default { export default {
components: { empDetail }, components: { empDetail },
name: 'channelList', name: 'channelList',
...@@ -135,6 +115,52 @@ export default { ...@@ -135,6 +115,52 @@ export default {
} }
], ],
tableData: [], tableData: [],
// 表格按钮
tableButtonList: [
{
type: 'GLButton',
name: '数据',
attrs: {
type: 'text',
fn: '到店咨询客户数据'
},
listeners: {
click: this.handleDetail
}
},
{
type: 'GLButton',
name: '活码海报',
attrs: {
type: 'text',
fn: '活码海报'
},
listeners: {
click: this.handleAddPoster
}
},
{
type: 'GLButton',
name: '修改',
attrs: {
type: 'text',
fn: '活码编辑'
},
listeners: {
click: this.handleEdit
}
},
{
type: 'el-button',
name: '删除',
attrs: {
type: 'text'
},
listeners: {
click: this.handleDelete
}
}
],
tableParams: { tableParams: {
listName: 'data', listName: 'data',
tableOption: false, tableOption: false,
...@@ -142,47 +168,49 @@ export default { ...@@ -142,47 +168,49 @@ export default {
{ {
label: '渠道名称', label: '渠道名称',
prop: 'codeRemark', prop: 'codeRemark',
minWidth: 200,
addHtml: 'codeRemark' addHtml: 'codeRemark'
}, },
{ {
label: '今日新增客户数', label: '今日新增客户数',
prop: 'yesterdayNum', prop: 'yesterdayNum',
width: '130px', width: 130,
addHtml: 'yesterdayNum' addHtml: 'yesterdayNum'
}, },
{ {
label: '总新增客户数', label: '总新增客户数',
prop: 'totalNum', prop: 'totalNum',
width: '120px', width: 120,
addHtml: 'totalNum' addHtml: 'totalNum'
}, },
{ {
label: '使用专员', label: '使用专员',
prop: 'staffInfo', prop: 'staffInfo',
width: '130px', minWidth: 400,
addHtml: 'staffInfo', addHtml: 'staffInfo',
align: 'left' align: 'left'
}, },
{ {
label: '活码', label: '活码',
prop: 'qrCode', prop: 'qrCode',
addHtml: 'qrCode' addHtml: 'qrCode',
width: '100px'
}, },
{ {
label: '标签', label: '标签',
prop: 'tagging', prop: 'tagging',
addHtml: 'tagging', addHtml: 'tagging',
width: '150px' minWidth: 200
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'createdTime', prop: 'createdTime',
width: '180px' minWidth: 180
}, },
{ {
label: '操作', label: '操作',
prop: 'optionBtns', prop: 'optionBtns',
width: '220px', width: '170px',
addHtml: 'optionBtns', addHtml: 'optionBtns',
fixed: 'right' fixed: 'right'
} }
...@@ -314,14 +342,19 @@ export default { ...@@ -314,14 +342,19 @@ export default {
/deep/ .el-popover { /deep/ .el-popover {
max-width: 1000px; max-width: 1000px;
} }
.name-wrapper {
display: flex;
}
} }
.download-link { .download-link {
cursor: pointer; cursor: pointer;
margin-top: 6px; margin-top: 4px;
font-size: 14px; font-size: 14px;
font-weight: 400; color: #5850ff;
color: #666666; font-weight: 600;
color: #5850ff;
line-height: 20px; line-height: 20px;
text-align: center;
} }
.codeRemark { .codeRemark {
font-size: 14px; font-size: 14px;
...@@ -417,7 +450,7 @@ export default { ...@@ -417,7 +450,7 @@ export default {
padding: 6px; padding: 6px;
display: inline-block; display: inline-block;
margin-bottom: 5px; margin-bottom: 5px;
margin-right: 5px; margin-right: 4px;
&-tag { &-tag {
display: inline-block; display: inline-block;
border: 1px solid #e8e8ea; border: 1px solid #e8e8ea;
......
...@@ -64,9 +64,9 @@ ...@@ -64,9 +64,9 @@
<script> <script>
import utils from '@/utils/util' import utils from '@/utils/util'
import linechart from './linechart' import linechart from '@/components/linechart'
import selectChannel from './selectChannel' import selectChannel from '@/components/selectChannel'
import empDetail from './empDetail.vue' import empDetail from '@/components/empDetail'
export default { export default {
name: 'channelStatistics', name: 'channelStatistics',
components: { components: {
......
...@@ -151,21 +151,20 @@ export default { ...@@ -151,21 +151,20 @@ export default {
label: '客户性别', label: '客户性别',
prop: 'customerSex', prop: 'customerSex',
formatter: cellValue => { formatter: cellValue => {
console.log(cellValue)
return cellValue.customerSex == 1 ? '男' : '女' return cellValue.customerSex == 1 ? '男' : '女'
}, },
width: '80px' minWidth: 100
}, },
{ {
label: '状态', label: '状态',
prop: 'status', prop: 'status',
addHtml: 'status', addHtml: 'status',
width: '80px' minWidth: 100
}, },
{ {
label: '跟进员工', label: '跟进员工',
prop: 'followStaff', prop: 'followStaff',
width: '80px' minWidth: 100
}, },
{ {
label: '添加时间', label: '添加时间',
...@@ -174,7 +173,7 @@ export default { ...@@ -174,7 +173,7 @@ export default {
{ {
label: '操作', label: '操作',
prop: 'optionBtns', prop: 'optionBtns',
width: '80px', minWidth: '80px',
addHtml: 'optionBtns' addHtml: 'optionBtns'
} }
] ]
...@@ -230,6 +229,7 @@ export default { ...@@ -230,6 +229,7 @@ export default {
}) })
}, },
init(item, value, day) { init(item, value, day) {
this.createTime = [] this.createTime = []
this.pStatus = null this.pStatus = null
this.staffIds = null this.staffIds = null
......
<template> <template>
<div class="channel-main"> <div class="channel-main">
<el-tabs v-model="activeName" @tab-click="handleClick"> <GLTabs v-model="activeName" :tabPaneList="tabPaneList" class="tabs-panel"></GLTabs>
<el-tab-pane label="渠道码列表" name="first"></el-tab-pane>
<el-tab-pane label="数据统计" name="second"></el-tab-pane>
</el-tabs>
<channel-list v-if="activeName == 'first'"></channel-list> <channel-list v-if="activeName == 'first'"></channel-list>
<channel-statistics v-if="activeName == 'second'"></channel-statistics> <channel-statistics v-if="activeName == 'second'"></channel-statistics>
</div> </div>
...@@ -20,10 +17,31 @@ export default { ...@@ -20,10 +17,31 @@ export default {
}, },
data() { data() {
return { return {
activeName: 'first' activeName: 'first',
tabPaneList: [
{
label: '渠道码列表',
name: 'first'
},
{
label: '数据统计',
name: 'second'
}
]
} }
}, },
methods: { methods: {
render(createElement){
createElement('div',{
class:{
'channel-main':true
}
},[
createElement('el-tabs',{
})
])
},
jumpWx() { jumpWx() {
this.$history.push('/settings/enterpriseWechat/index') this.$history.push('/settings/enterpriseWechat/index')
}, },
...@@ -62,10 +80,8 @@ export default { ...@@ -62,10 +80,8 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.channel-main { .channel-main {
/deep/ { .tabs-panel {
.el-tabs__nav-wrap::after { margin-bottom: 10px;
height: 0px;
}
} }
} }
</style> </style>
...@@ -33,9 +33,9 @@ ...@@ -33,9 +33,9 @@
</div> </div>
</div> </div>
</div> </div>
<GLDialog @onOk="savePoster" @onCancel="dialogVisible = false" v-loading="loadingDrag" title="创建活码海报" :visible.sync="dialogVisible"> <el-dialog title="创建活码海报" :visible.sync="dialogVisible">
<div class="poster-draggable-title">拖动活码可调整活码位置</div> <div class="poster-draggable-title">拖动活码可调整活码位置</div>
<div class="poster-draggable"> <div class="poster-draggable" v-loading="loadingDrag">
<div <div
class="poster-image" class="poster-image"
v-if="dragHeight" v-if="dragHeight"
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
:style="{ :style="{
'background-image': 'url(' + codeUrl + ')' 'background-image': 'url(' + codeUrl + ')'
}" }"
:parent="true" parent=".poster-image"
@dragging="onDrag" @dragging="onDrag"
@resizing="onResize" @resizing="onResize"
:customId="index" :customId="index"
...@@ -63,11 +63,11 @@ ...@@ -63,11 +63,11 @@
></vue-draggable-resizable> ></vue-draggable-resizable>
</div> </div>
</div> </div>
<!-- <span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogVisible = false">取 消</el-button> <el-button size="small" @click="dialogVisible = false">取 消</el-button>
<el-button size="small" type="primary" @click="savePoster">确 定</el-button> <el-button size="small" type="primary" @click="savePoster">确 定</el-button>
</span> --> </span>
</GLDialog> </el-dialog>
</div> </div>
</template> </template>
...@@ -252,11 +252,10 @@ export default { ...@@ -252,11 +252,10 @@ export default {
getDraggable(img_url) { getDraggable(img_url) {
let img = new Image() let img = new Image()
img.src = img_url img.src = img_url
let self = this img.onload = () => {
img.onload = function() { this.dragHeight = (img.height * 375) / img.width
self.dragHeight = (img.height * 375) / img.width this.dialogVisible = true
self.dialogVisible = true this.loading = false
self.loading = false
} }
} }
}, },
...@@ -300,6 +299,8 @@ export default { ...@@ -300,6 +299,8 @@ export default {
.poster-draggable { .poster-draggable {
display: flex; display: flex;
justify-content: center; justify-content: center;
// height: 500px;
// overflow: auto;
.poster-image { .poster-image {
background-size: 100% 100%; background-size: 100% 100%;
width: 375px; width: 375px;
......
...@@ -11,20 +11,43 @@ ...@@ -11,20 +11,43 @@
<el-row> <el-row>
<el-form-item size="small" label="使用员工:"> <el-form-item size="small" label="使用员工:">
<div class="form-row"> <div class="form-row">
<div class="emp-item" v-for="(item, index) in detailCodeForm.staffInfo" :key="index"> <template v-for="(item, index) in detailCodeForm.staffInfo">
<i class="el-icon-user-solid"></i> <div class="emp-item" :key="index" v-if="index < 10">
{{ item.staffName }} <i class="el-icon-user-solid"></i>
</div> {{ item.staffName }}
</div>
<template v-if="detailCodeForm.staffInfo.length > 10 && index == 10">
<el-popover placement="top" width="600" trigger="hover" :key="index">
<span slot="reference" class="emp-item">...({{ detailCodeForm.staffInfo.length }})</span>
<div class="form-row">
<div class="emp-item" :key="index1" v-for="(item, index1) in detailCodeForm.staffInfo">
<i class="el-icon-user-solid"></i>
{{ item.staffName }}
</div>
</div>
</el-popover>
</template>
</template>
</div> </div>
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row> <el-row>
<el-form-item size="small" label="标签:"> <el-form-item size="small" label="标签:">
<div class="form-row"> <div class="form-row">
<template v-for="item in tagging"> <template v-for="(tag, idx) in tagging">
<div class="tag-item" v-for="(tag, idx) in item.labelList" :key="idx"> <div class="tag-item" :key="idx" v-if="idx < 10">
{{ tag.name }} {{ tag }}
</div> </div>
<template v-if="tagging.length > 10 && idx == 10">
<el-popover placement="top" width="600" trigger="hover" :key="idx">
<span slot="reference" class="emp-item">...({{ tagging.length }})</span>
<div class="form-row">
<div class="tag-item" v-for="(tag, idx1) in tagging" :key="idx1">
{{ tag }}
</div>
</div>
</el-popover>
</template>
</template> </template>
</div> </div>
</el-form-item> </el-form-item>
...@@ -180,7 +203,14 @@ export default { ...@@ -180,7 +203,14 @@ export default {
labelList labelList
} }
}) })
this.tagging = taggingList this.tagging = []
for (let i = 0; i < taggingList.length; i++) {
for (let j = 0; j < taggingList[i].labelList.length; j++) {
this.tagging.push(taggingList[i].labelList[j].name)
}
}
// this.tagging = taggingList
// console.log(this.tagging, '00000000000')
this.welcomeInfo = res.welcomeInfo.map(item => { this.welcomeInfo = res.welcomeInfo.map(item => {
let attContent let attContent
if (item.attType == 7) { if (item.attType == 7) {
...@@ -240,45 +270,6 @@ export default { ...@@ -240,45 +270,6 @@ export default {
} }
.detail-form { .detail-form {
margin-top: 10px; margin-top: 10px;
.form-row {
display: flex;
flex-wrap: wrap;
margin-top: 5px;
.tag-item {
display: inline-block;
text-align: center;
min-width: 76px;
background: #fafbfe;
border: 1px solid #e8e8ea;
line-height: 14px;
box-sizing: border-box;
padding: 6px 6px;
font-size: 14px;
border-radius: 4px;
line-height: 14px;
font-weight: 400;
color: #666;
margin-right: 5px;
margin-bottom: 5px;
}
.emp-item {
text-align: left;
position: relative;
font-size: 14px;
line-height: 14px;
padding-left: 15px;
-webkit-border-radius: 4px;
border-radius: 4px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
i {
color: #75acff;
}
}
}
.welcome-panel { .welcome-panel {
.welcome-title { .welcome-title {
font-size: 16px; font-size: 16px;
...@@ -369,34 +360,67 @@ export default { ...@@ -369,34 +360,67 @@ export default {
} }
} }
} }
.form-row {
display: flex;
flex-wrap: wrap;
margin-top: 5px;
.tag-item {
display: inline-block;
text-align: center;
min-width: 76px;
background: #fafbfe;
border: 1px solid #e8e8ea;
line-height: 14px;
box-sizing: border-box;
padding: 3px 6px;
font-size: 14px;
border-radius: 4px;
line-height: 20px;
font-weight: 400;
color: #666;
margin-right: 4px;
margin-bottom: 5px;
box-sizing: border-box;
}
.emp-item {
text-align: left;
position: relative;
font-size: 14px;
line-height: 14px;
padding-left: 15px;
-webkit-border-radius: 4px;
border-radius: 4px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
i {
color: #75acff;
}
}
}
.tab-panel { .tab-panel {
margin-top: 20px;
margin-bottom: 10px;
display: inline-block;
/deep/ { /deep/ {
.el-checkbox:last-of-type {
margin-right: 8px;
}
.el-tabs__nav { .el-tabs__nav {
border: 0; border: none;
} }
.el-tabs__header { .el-tabs__header {
border: 0;
background-color: #f4f6fc;
margin: 0px; margin: 0px;
} }
.el-tabs__item {
border: none;
width: 180px;
height: 32px;
line-height: 32px;
margin: 2px;
text-align: center;
}
.el-tabs__item.is-active { .el-tabs__item.is-active {
background-color: #fff; background: #fff;
border-radius: 4px; border-bottom: none !important;
font-weight: 600; }
.el-tabs__item {
border: 1px solid #e5e5e5 !important;
border-bottom: none;
border-radius: 4px 4px 0px 0px;
background: #fafafa;
&:first-child {
margin-right: 5px;
}
} }
} }
} }
......
...@@ -4,29 +4,32 @@ ...@@ -4,29 +4,32 @@
<div class="drainage-title">营销配置</div> <div class="drainage-title">营销配置</div>
<div class="form-main"> <div class="form-main">
<div class="drainage-form"> <div class="drainage-form">
<div class="drainage-form-item"> <!-- <div class="drainage-form-item">
<label class="is-require" style="line-height: 32px">营销名称</label> <label class="is-require" style="line-height: 32px">营销名称</label>
<div style="position: relative"> <div style="position: relative">
<el-input @focus="imNameStatus = false" type="type" size="small" placeholder="请输入营销名称" v-model.trim="imName" :disabled="!editStatus" maxlength="30"></el-input> <el-input @focus="imNameStatus = false" type="type" size="small" placeholder="请输入营销名称" v-model.trim="imName" :disabled="!editStatus" maxlength="30"></el-input>
<div class="el-form-item__error" v-if="imNameStatus">请输入营销名称</div> <div class="el-form-item__error" v-if="imNameStatus">请输入营销名称</div>
</div> </div>
</div> </div> -->
<div class="drainage-form-item"> <div class="drainage-form-item">
<label>群发短信</label> <!-- <label>群发短信</label> -->
<div class="message-panel"> <div class="gl-form-page">
<el-form ref="configForm" label-position="left" label-width="100px" :model="addForm" :rules="addRules" class="code-body-form"> <el-form ref="configForm" label-width="154px" :model="addForm" :rules="addRules" class="code-body-form">
<el-form-item label="营销名称:" prop="imName">
<el-input @focus="imNameStatus = false" type="type" size="small" placeholder="请输入营销名称" v-model.trim="imName" :disabled="!editStatus" maxlength="30"></el-input>
</el-form-item>
<el-form-item label="推送规则:"><div class="configForm-desc">系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信下放。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</div></el-form-item> <el-form-item label="推送规则:"><div class="configForm-desc">系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信下放。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</div></el-form-item>
<el-form-item size="small" label="营销时间" prop="time"> <el-form-item size="small" label="营销时间:" prop="time">
<el-time-picker is-range :disabled="!editStatus" value-format="HH:mm" format="HH:mm" v-model="addForm.time" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker> <el-time-picker is-range :disabled="!editStatus" value-format="HH:mm" format="HH:mm" v-model="addForm.time" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker>
</el-form-item> </el-form-item>
<el-form-item label="短信内容" prop="content"> <el-form-item label="短信内容:" prop="content">
<el-input type="textarea" v-model="addForm.content" rows="5" :disabled="!editStatus" maxlength="280" show-word-limit></el-input> <el-input type="textarea" v-model="addForm.content" rows="5" :disabled="!editStatus" maxlength="280" show-word-limit></el-input>
<div class="form-tips">70字內(含70字)计一条,超过70字,按70字/条计费。</div> <div class="form-tips">70字內(含70字)计一条,超过70字,按70字/条计费。</div>
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div> <div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item> </el-form-item>
<div class="drainage-form-item"> <div class="drainage-form-item">
<label style="width: 100px; text-align: left; color: #666"> <label>
自动打标签 自动打标签:
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。"> <el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" /> <img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
...@@ -43,8 +46,8 @@ ...@@ -43,8 +46,8 @@
</div> </div>
</div> </div>
<div class="drainage-form-item"> <div class="drainage-form-item">
<label> <label style="margin-left: 20px">
跟进员工 跟进员工:
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。"> <el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" /> <img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
...@@ -71,7 +74,7 @@ ...@@ -71,7 +74,7 @@
<div class="chanel-form-title">欢迎语</div> <div class="chanel-form-title">欢迎语</div>
<div class="welcome-panel"> <div class="welcome-panel">
<div class="welcome-switch"> <div class="welcome-switch">
<label>自动发送欢迎语</label> <label>自动发送欢迎语:</label>
<el-switch v-model="autoWelcome" :disabled="!editStatus" active-color="#5850FF" inactive-color="#999999"></el-switch> <el-switch v-model="autoWelcome" :disabled="!editStatus" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div> </div>
<div class="welcome-box" v-show="!editStatus && autoWelcome"> <div class="welcome-box" v-show="!editStatus && autoWelcome">
...@@ -219,30 +222,33 @@ export default { ...@@ -219,30 +222,33 @@ export default {
this.addForm.content = res.dracImMessageConResponse.content this.addForm.content = res.dracImMessageConResponse.content
this.imName = res.imName this.imName = res.imName
this.autoWelcome = res.autoWelcome ? true : false this.autoWelcome = res.autoWelcome ? true : false
const previewList = res.dracScrmWelcomeConfigDTOS.map(item => { const dracScrmWelcomeConfigDTOS = res.dracScrmWelcomeConfigDTOS ? res.dracScrmWelcomeConfigDTOS : []
const previewList = dracScrmWelcomeConfigDTOS.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent) if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
if (item.attType == 1) item.attContent = item.attContent.replaceAll('[@昵称]', '<span style="color:#5850FF">@昵称</span>').replaceAll(/\n/g, '<br>') if (item.attType == 1) item.attContent = item.attContent.replaceAll('[@昵称]', '<span style="color:#5850FF">@昵称</span>').replaceAll(/\n/g, '<br>')
return item return item
}) })
console.log(previewList)
this.welcomeInfo = previewList this.welcomeInfo = previewList
const tagging = eval(res.tagging) const tagging = eval(res.tagging)
const taggingList = tagging.map(item => { if (tagging && tagging.length) {
let name = item.name.split(',') const taggingList = tagging.map(item => {
let ids = item.tagIds.split(',') let name = item.name.split(',')
console.log(ids) let ids = item.tagIds.split(',')
let labelList = name.map((tag, index) => { console.log(ids)
return { id: ids[index], name: tag } let labelList = name.map((tag, index) => {
return { id: ids[index], name: tag }
})
return {
labelGroup: {
id: item.groupId,
name: item.labelType
},
labelList
}
}) })
return { this.tagging = taggingList
labelGroup: { }
id: item.groupId,
name: item.labelType
},
labelList
}
})
this.tagging = taggingList
this.$nextTick(() => { this.$nextTick(() => {
this.saveStatus = false this.saveStatus = false
}) })
...@@ -282,7 +288,7 @@ export default { ...@@ -282,7 +288,7 @@ export default {
} }
} }
.welcome-box { .welcome-box {
margin-left: 48px; margin-left: 70px;
&-contaner { &-contaner {
margin: 20px; margin: 20px;
background: rgba(247, 247, 247, 0.52); background: rgba(247, 247, 247, 0.52);
...@@ -449,9 +455,11 @@ export default { ...@@ -449,9 +455,11 @@ export default {
} }
} }
label { label {
width: 120px; font-size: 14px;
text-align: right; text-align: right;
margin-right: 20px; color: #666;
width: 140px;
margin-right: 12px;
height: 36px; height: 36px;
line-height: 36px; line-height: 36px;
img { img {
......
...@@ -21,15 +21,16 @@ ...@@ -21,15 +21,16 @@
</el-row> </el-row>
</el-form> </el-form>
<GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams"> <GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams">
<div slot="status" slot-scope="scope">
<span :class="['task_icon',scope.scope.status==1?'green-icon':'yellow-icon']">{{ scope.scope.statusName }}</span>
</div>
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">短信内容</el-button> <el-button type="text" @click="handleDetail(scope.scope)">短信内容</el-button>
</div> </div>
</GLTable> </GLTable>
<GLDialog title="提示" :hasFooter="true" :content="messageContent" :visible.sync="dialogVisible" mode="small"> <GLDialog title="短信内容" :hasFooter="true" :content="messageContent" :visible.sync="dialogVisible" mode="small">
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" type="primary" @click="dialogVisible = false"> <el-button size="small" type="primary" @click="dialogVisible = false">确定</el-button>
确定
</el-button>
</span> </span>
</GLDialog> </GLDialog>
</div> </div>
...@@ -75,7 +76,8 @@ export default { ...@@ -75,7 +76,8 @@ export default {
}, },
{ {
label: '发送状态', label: '发送状态',
prop: 'statusName' prop: 'statusName',
addHtml: 'status'
}, },
{ {
label: '发送时间', label: '发送时间',
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class="drainage-title">指定客户</div> <div class="drainage-title">指定客户</div>
<div class="drainage-form"> <div class="drainage-form">
<div class="drainage-form-item"> <div class="drainage-form-item">
<label>指定方式</label> <label style="margin: 0 0 0 32px">指定方式:</label>
<div class="upload-box drainage-type"> <div class="upload-box drainage-type">
<el-radio-group v-model="selectType"> <el-radio-group v-model="selectType">
<el-radio :label="1">通过标签筛选</el-radio> <el-radio :label="1">通过标签筛选</el-radio>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</div> </div>
</div> </div>
<div class="drainage-form-item" v-if="selectType == 1"> <div class="drainage-form-item" v-if="selectType == 1">
<label>客户信息</label> <label style="margin: 0 0 0 32px">客户信息:</label>
<div class="upload-box"> <div class="upload-box">
<el-button size="small" @click="handleScreenTag"> <el-button size="small" @click="handleScreenTag">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</div> </div>
</div> </div>
<div class="drainage-form-item" v-if="selectType == 3"> <div class="drainage-form-item" v-if="selectType == 3">
<label>客户信息</label> <label style="margin: 0 0 0 32px">客户信息:</label>
<div class="upload-box"> <div class="upload-box">
<el-button size="small" @click="handleCrowd"> <el-button size="small" @click="handleCrowd">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</div> </div>
</div> </div>
<div class="drainage-form-item" v-if="selectType == 2"> <div class="drainage-form-item" v-if="selectType == 2">
<label>客户信息</label> <label style="margin: 0 0 0 32px">客户信息:</label>
<div class="upload-box"> <div class="upload-box">
<div class="upload-file-panel"> <div class="upload-file-panel">
<div class="image-uploader"> <div class="image-uploader">
...@@ -83,22 +83,25 @@ ...@@ -83,22 +83,25 @@
<div class="drainage-title">营销配置</div> <div class="drainage-title">营销配置</div>
<div class="form-main"> <div class="form-main">
<div class="drainage-form"> <div class="drainage-form">
<div class="drainage-form-item"> <!-- <div class="drainage-form-item">
<label class="is-require" style="line-height: 32px">营销名称</label> <label class="is-require" style="line-height: 32px">营销名称</label>
<div style="position: relative"> <div style="position: relative">
<el-input @focus="imNameStatus = false" type="type" size="small" placeholder="请输入营销名称" v-model.trim="imName" :disabled="!editStatus" maxlength="30"></el-input> <el-input @focus="imNameStatus = false" type="type" size="small" placeholder="请输入营销名称" v-model.trim="imName" :disabled="!editStatus" maxlength="30"></el-input>
<div class="el-form-item__error" v-if="imNameStatus">请输入营销名称</div> <div class="el-form-item__error" v-if="imNameStatus">请输入营销名称</div>
</div> </div>
</div> </div> -->
<div class="drainage-form-item"> <div class="drainage-form-item">
<label>群发短信</label> <!-- <label>群发短信</label> -->
<div class="message-panel"> <div class="gl-form-page">
<el-form ref="configForm" label-position="left" label-width="100px" :model="addForm" :rules="addRules" class="code-body-form"> <el-form ref="configForm" label-width="154px" :model="addForm" :rules="addRules" class="code-body-form">
<el-form-item label="推送规则:"><div class="configForm-desc">系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信下放。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</div></el-form-item> <el-form-item label="营销名称:" prop="imName">
<el-form-item size="small" label="营销时间" prop="time"> <el-input @focus="imNameStatus = false" type="type" size="small" placeholder="请输入营销名称" v-model.trim="addForm.imName" :disabled="!editStatus" maxlength="30"></el-input>
</el-form-item>
<el-form-item label="推送时间:">系统将在「开始营销时间」之后启动智系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信发送。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</el-form-item>
<el-form-item size="small" label="营销时间:" prop="time">
<el-time-picker is-range :disabled="!editStatus" value-format="HH:mm" format="HH:mm" v-model="addForm.time" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker> <el-time-picker is-range :disabled="!editStatus" value-format="HH:mm" format="HH:mm" v-model="addForm.time" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker>
</el-form-item> </el-form-item>
<el-form-item label="短信内容" prop="content"> <el-form-item label="短信内容:" prop="content">
<el-input type="textarea" v-model="addForm.content" rows="5" :disabled="!editStatus" maxlength="280" show-word-limit></el-input> <el-input type="textarea" v-model="addForm.content" rows="5" :disabled="!editStatus" maxlength="280" show-word-limit></el-input>
<div class="select-panel" v-if="editStatus"> <div class="select-panel" v-if="editStatus">
<div @click="handleSelectMessage"> <div @click="handleSelectMessage">
...@@ -109,8 +112,8 @@ ...@@ -109,8 +112,8 @@
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div> <div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item> </el-form-item>
<div class="drainage-form-item"> <div class="drainage-form-item">
<label style="width: 100px; text-align: left; color: #666"> <label>
自动打标签 自动打标签:
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。"> <el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" /> <img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
...@@ -139,8 +142,8 @@ ...@@ -139,8 +142,8 @@
</div> </div>
</div> </div>
<div class="drainage-form-item" v-if="editStatus"> <div class="drainage-form-item" v-if="editStatus">
<label class="is-require"> <label class="is-require" style="margin-left: 20px">
跟进员工 跟进员工:
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。"> <el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" /> <img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
...@@ -161,8 +164,8 @@ ...@@ -161,8 +164,8 @@
</div> </div>
</div> </div>
<div class="drainage-form-item" v-else> <div class="drainage-form-item" v-else>
<label> <label style="margin-left: 20px">
跟进员工 跟进员工:
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。"> <el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" /> <img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
...@@ -189,7 +192,7 @@ ...@@ -189,7 +192,7 @@
<div class="chanel-form-title">欢迎语</div> <div class="chanel-form-title">欢迎语</div>
<div class="welcome-panel"> <div class="welcome-panel">
<div class="welcome-switch"> <div class="welcome-switch">
<label>自动发送欢迎语</label> <label>自动发送欢迎语:</label>
<el-switch v-model="autoWelcome" :disabled="!editStatus" active-color="#5850FF" inactive-color="#999999"></el-switch> <el-switch v-model="autoWelcome" :disabled="!editStatus" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div> </div>
<div class="welcome-box" v-show="editStatus && autoWelcome"> <div class="welcome-box" v-show="editStatus && autoWelcome">
...@@ -313,6 +316,7 @@ export default { ...@@ -313,6 +316,7 @@ export default {
footerLeft: 0, footerLeft: 0,
footerWidth: 0, footerWidth: 0,
addForm: { addForm: {
imName: '',
desc: '', desc: '',
content: `【${this.$globalState.session.merchantName}】`, content: `【${this.$globalState.session.merchantName}】`,
time: ['9:00:00', '18:00:00'] time: ['9:00:00', '18:00:00']
...@@ -331,6 +335,7 @@ export default { ...@@ -331,6 +335,7 @@ export default {
ModelItem: {}, ModelItem: {},
merchantName: this.$globalState.session.merchantName, merchantName: this.$globalState.session.merchantName,
addRules: { addRules: {
imName: [{ required: true, message: '请输入营销名称', trigger: 'blur' }],
time: [ time: [
{ required: true, message: '请选择营销时间', trigger: 'change' }, { required: true, message: '请选择营销时间', trigger: 'change' },
{ validator: validateTime, trigger: 'change' } { validator: validateTime, trigger: 'change' }
...@@ -344,7 +349,7 @@ export default { ...@@ -344,7 +349,7 @@ export default {
}, },
watch: { watch: {
'addForm.content': { 'addForm.content': {
handler: function() { handler: function () {
this.content = [] this.content = []
let str = this.addForm.content let str = this.addForm.content
let num = 70 let num = 70
...@@ -380,7 +385,7 @@ export default { ...@@ -380,7 +385,7 @@ export default {
deep: true deep: true
}, },
tagging: { tagging: {
handler: function() { handler: function () {
this.taggingLength = 0 this.taggingLength = 0
this.tagging.forEach(item => { this.tagging.forEach(item => {
this.taggingLength += item.labelList.length this.taggingLength += item.labelList.length
...@@ -631,7 +636,7 @@ export default { ...@@ -631,7 +636,7 @@ export default {
const groupIds = this.crowding.map(item => item.crowdId) const groupIds = this.crowding.map(item => item.crowdId)
let params = { let params = {
autoWelcome: this.autoWelcome ? 1 : 0, autoWelcome: this.autoWelcome ? 1 : 0,
imName: this.imName, imName: this.addForm.imName,
imType: 2, imType: 2,
tagging: JSON.stringify(tagging), tagging: JSON.stringify(tagging),
filterTagging: JSON.stringify(this.filterTagging), filterTagging: JSON.stringify(this.filterTagging),
...@@ -707,7 +712,7 @@ export default { ...@@ -707,7 +712,7 @@ export default {
this.dracImFollowStaffResponses = res.dracImFollowStaffResponses this.dracImFollowStaffResponses = res.dracImFollowStaffResponses
this.addForm.time = [res.dracImMessageConResponse.startTime, res.dracImMessageConResponse.endTime] this.addForm.time = [res.dracImMessageConResponse.startTime, res.dracImMessageConResponse.endTime]
this.addForm.content = res.dracImMessageConResponse.content this.addForm.content = res.dracImMessageConResponse.content
this.imName = res.imName this.addForm.imName = res.imName
this.autoWelcome = res.autoWelcome ? true : false this.autoWelcome = res.autoWelcome ? true : false
const previewList = res.dracScrmWelcomeConfigDTOS.map(item => { const previewList = res.dracScrmWelcomeConfigDTOS.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent) if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
...@@ -776,7 +781,7 @@ export default { ...@@ -776,7 +781,7 @@ export default {
} }
} }
.welcome-box { .welcome-box {
margin-left: 48px; margin-left: 61px;
&-contaner { &-contaner {
margin: 20px; margin: 20px;
background: rgba(247, 247, 247, 0.52); background: rgba(247, 247, 247, 0.52);
...@@ -947,9 +952,11 @@ export default { ...@@ -947,9 +952,11 @@ export default {
} }
} }
label { label {
width: 120px; font-size: 14px;
text-align: right; text-align: right;
margin-right: 20px; color: #666;
width: 140px;
margin-right: 12px;
height: 36px; height: 36px;
line-height: 36px; line-height: 36px;
img { img {
...@@ -982,7 +989,9 @@ export default { ...@@ -982,7 +989,9 @@ export default {
color: #717171; color: #717171;
line-height: 30px; line-height: 30px;
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
width: 580px !important;
border-top: 0px; border-top: 0px;
box-sizing: border-box;
> div { > div {
cursor: pointer; cursor: pointer;
margin-right: 10px; margin-right: 10px;
...@@ -995,7 +1004,7 @@ export default { ...@@ -995,7 +1004,7 @@ export default {
.upload-box { .upload-box {
margin-bottom: 10px; margin-bottom: 10px;
&.drainage-type { &.drainage-type {
margin-left: -10px; margin-left: -28px;
} }
.tag-count { .tag-count {
color: #666666; color: #666666;
......
...@@ -14,8 +14,11 @@ ...@@ -14,8 +14,11 @@
</div> </div>
<div class="square-tabel scrm-box-f"> <div class="square-tabel scrm-box-f">
<div class="square-tabel-form"> <div class="square-tabel-form">
<GLCombiForm ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="imStatus" slot-scope="scope">
<span :class="['task_icon',scope.scope.imStatus==3?'green-icon':'yellow-icon']">{{ scope.scope.imStatusName }}</span>
</div>
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<GLButton type="text" @click="handleDetail(scope.scope)" fn="智能营销配置">查看配置</GLButton> <GLButton type="text" @click="handleDetail(scope.scope)" fn="智能营销配置">查看配置</GLButton>
<!-- <GLButton :disabled="scope.scope.imStatus!=1" type="text" @click="handleStatistics(scope.scope)" fn="营销统计">营销统计</GLButton> --> <!-- <GLButton :disabled="scope.scope.imStatus!=1" type="text" @click="handleStatistics(scope.scope)" fn="营销统计">营销统计</GLButton> -->
...@@ -92,26 +95,28 @@ export default { ...@@ -92,26 +95,28 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '营销名称', label: '营销名称',
prop: 'imName' prop: 'imName',
minWidth: '150px'
}, },
{ {
label: '营销客户数', label: '营销客户数',
prop: 'customerCount', prop: 'customerCount',
width: '120px' minWidth: '120px'
}, },
{ {
label: '状态', label: '状态',
prop: 'imStatusName' prop: 'imStatusName',
addHtml:'imStatus'
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'createdTime', prop: 'createdTime',
width: '180px' minWidth: '180px'
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createdName', prop: 'createdName',
width: '220px' minWidth: '220px'
}, },
{ {
label: '操作', label: '操作',
......
...@@ -71,14 +71,14 @@ ...@@ -71,14 +71,14 @@
<div class="form-main"> <div class="form-main">
<div class="drainage-form"> <div class="drainage-form">
<div class="drainage-form-item"> <div class="drainage-form-item">
<label>群发短信</label> <!-- <label>群发短信</label> -->
<div class="message-panel"> <div class="gl-form-page">
<el-form ref="configForm" label-position="left" label-width="100px" :model="addForm" :rules="addRules" class="code-body-form"> <el-form ref="configForm" label-width="154px" :model="addForm" :rules="addRules" class="code-body-form">
<el-form-item label="推送时间:">系统将在「开始营销时间」之后启动智系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信发送。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</el-form-item> <el-form-item label="推送时间:">系统将在「开始营销时间」之后启动智系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信发送。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</el-form-item>
<el-form-item size="small" label="营销时间" prop="time"> <el-form-item size="small" label="营销时间:" prop="time">
<el-time-picker is-range :disabled="!editStatus" value-format="HH:mm" format="HH:mm" v-model="addForm.time" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker> <el-time-picker is-range :disabled="!editStatus" value-format="HH:mm" format="HH:mm" v-model="addForm.time" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker>
</el-form-item> </el-form-item>
<el-form-item label="短信内容" prop="content"> <el-form-item label="短信内容:" prop="content">
<el-input :disabled="!editStatus" type="textarea" v-model="addForm.content" rows="5" maxlength="280" show-word-limit></el-input> <el-input :disabled="!editStatus" type="textarea" v-model="addForm.content" rows="5" maxlength="280" show-word-limit></el-input>
<div class="select-panel" v-if="editStatus"> <div class="select-panel" v-if="editStatus">
<div @click="handleSelectMessage"> <div @click="handleSelectMessage">
...@@ -89,8 +89,8 @@ ...@@ -89,8 +89,8 @@
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div> <div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item> </el-form-item>
<div class="drainage-form-item"> <div class="drainage-form-item">
<label style="width: 100px; text-align: left; color: #666"> <label style="width: 140px;font-size:14px; text-align: right; color: #666">
自动打标签 自动打标签:
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。"> <el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" /> <img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
...@@ -120,8 +120,8 @@ ...@@ -120,8 +120,8 @@
</div> </div>
</div> </div>
<div class="drainage-form-item" v-if="editStatus"> <div class="drainage-form-item" v-if="editStatus">
<label class="is-require"> <label class="is-require" style="width: 140px;font-size:14px; text-align: right; color: #666">
跟进员工 跟进员工:
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。"> <el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" /> <img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
...@@ -142,8 +142,8 @@ ...@@ -142,8 +142,8 @@
</div> </div>
</div> </div>
<div class="drainage-form-item" v-else> <div class="drainage-form-item" v-else>
<label> <label style="width: 140px;font-size:14px; text-align: right; color: #666;margin-left:20px;">
跟进员工 跟进员工:
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。"> <el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" /> <img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
<div class="chanel-form-title">欢迎语</div> <div class="chanel-form-title">欢迎语</div>
<div class="welcome-panel"> <div class="welcome-panel">
<div class="welcome-switch"> <div class="welcome-switch">
<label>自动发送欢迎语</label> <label>自动发送欢迎语:</label>
<el-switch :disabled="!editStatus" v-model="autoWelcome" active-color="#5850FF" inactive-color="#999999"></el-switch> <el-switch :disabled="!editStatus" v-model="autoWelcome" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div> </div>
<div class="welcome-box" v-show="editStatus && autoWelcome"> <div class="welcome-box" v-show="editStatus && autoWelcome">
...@@ -620,7 +620,7 @@ export default { ...@@ -620,7 +620,7 @@ export default {
} }
} }
.welcome-box { .welcome-box {
margin-left: 48px; margin-left: 60px;
&-contaner { &-contaner {
margin: 20px; margin: 20px;
background: rgba(247, 247, 247, 0.52); background: rgba(247, 247, 247, 0.52);
...@@ -817,9 +817,9 @@ export default { ...@@ -817,9 +817,9 @@ export default {
display: flex; display: flex;
margin-top: 20px; margin-top: 20px;
label { label {
width: 120px; width: 140px;
text-align: right; text-align: right;
margin-right: 20px; margin-right: 12px;
height: 36px; height: 36px;
line-height: 36px; line-height: 36px;
img { img {
...@@ -828,6 +828,7 @@ export default { ...@@ -828,6 +828,7 @@ export default {
vertical-align: middle; vertical-align: middle;
} }
&.is-require { &.is-require {
padding-left: 20px;
&::before { &::before {
content: '*'; content: '*';
color: #f56c6c; color: #f56c6c;
...@@ -855,6 +856,8 @@ export default { ...@@ -855,6 +856,8 @@ export default {
line-height: 30px; line-height: 30px;
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
border-top: 0px; border-top: 0px;
width: 580px!important;
box-sizing: border-box;
> div { > div {
cursor: pointer; cursor: pointer;
margin-right: 10px; margin-right: 10px;
...@@ -898,8 +901,8 @@ export default { ...@@ -898,8 +901,8 @@ export default {
} }
} }
.message-panel { .message-panel {
background: #f7f7f7; // background: #f7f7f7;
border: 1px solid #dcdfe6; // border: 1px solid #dcdfe6;
padding: 20px; padding: 20px;
flex: 1; flex: 1;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -110,6 +110,9 @@ ...@@ -110,6 +110,9 @@
</GLButton> </GLButton>
</div> </div>
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="state" slot-scope="scope">
<span :class="['task_icon',scope.scope.state==1?'green-icon':'yellow-icon']">{{ scope.scope.state== 1 ? '已处理' : '处理中' }}</span>
</div>
<div slot="importNumber" slot-scope="scope"> <div slot="importNumber" slot-scope="scope">
<div class="number-form"> <div class="number-form">
<span>{{ scope.scope.entmicroNumber }}</span> <span>{{ scope.scope.entmicroNumber }}</span>
...@@ -241,11 +244,12 @@ export default { ...@@ -241,11 +244,12 @@ export default {
} }
}, },
{ {
label: '事件处理状态', label: '数据处理状态',
prop: 'state', prop: 'state',
formatter: cellValue => { addHtml: 'state',
return cellValue.state == 1 ? '已处理' : '处理中' // formatter: cellValue => {
} // return cellValue.state == 1 ? '已处理' : '处理中'
// }
}, },
{ {
label: '导入人员', label: '导入人员',
...@@ -275,8 +279,9 @@ export default { ...@@ -275,8 +279,9 @@ export default {
methods: { methods: {
importsCount() { importsCount() {
this.$apis.square.importsCount({}).then(res => { this.$apis.square.importsCount({}).then(res => {
console.log(res) if (res) {
this.countAll = res this.countAll = res
}
}) })
}, },
handleReset() { handleReset() {
...@@ -302,9 +307,9 @@ export default { ...@@ -302,9 +307,9 @@ export default {
jumpDetail(status) { jumpDetail(status) {
let url let url
if (status) { if (status) {
url = `/custom/clientManage/index?isJoin=${status}&addWay=企微魔方` url = `/custom/clientManage/index?isJoin=${status}&addWay=数据魔方`
} else { } else {
url = `/custom/clientManage/index?addWay=企微魔方` url = `/custom/clientManage/index?addWay=数据魔方`
} }
this.$history.push(url) this.$history.push(url)
}, },
...@@ -353,8 +358,10 @@ export default { ...@@ -353,8 +358,10 @@ export default {
} }
} }
this.$apis.square.queryCrowdTree(params).then(res => { this.$apis.square.queryCrowdTree(params).then(res => {
const crowdUnitList = res.crowdUnitList.find(item => item.crowdName == '已加企微,待匹配客户') if (res && res.crowdUnitList) {
this.crowdId = crowdUnitList.crowdId const crowdUnitList = res.crowdUnitList.find(item => item.crowdName == '已加企微,待匹配客户')
this.crowdId = crowdUnitList ? crowdUnitList.crowdId : ''
}
}) })
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!