Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6fbbecd7
authored
Aug 22, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/front_end_dev_1.5'
2 parents
e3971f1f
15df366a
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
736 additions
and
539 deletions
linkwe-mobile/.env.development
linkwe-mobile/.env.production
linkwe-mobile/package-lock.json
linkwe-mobile/package.json
linkwe-mobile/public/index.html
linkwe-mobile/src/components/StepList.vue
linkwe-mobile/src/styles/common.css
linkwe-mobile/src/utils/index.js
linkwe-mobile/src/views/portrait/index.vue
linkwe-ui/src/views/conversation/content/component/chatListClass.vue
linkwe-ui/src/views/conversation/content/component/chatListClassTab.vue
linkwe-ui/src/views/conversation/content/customer.vue
linkwe-ui/src/views/conversation/content/employee.vue
linkwe-ui/src/views/system/user/index.vue
linkwe-mobile/.env.development
View file @
6fbbecd
# 开发环境配置
# 开发环境配置
ENV = 'development'
ENV = 'development'
# 塬微管理系统/开发环境
# 基础api(根据实际情况,自行配置,下为示例)
VUE_APP_BASE_API = 'http://146.56.222.200/api'
VUE_APP_BASE_API = 'http://demo.linkwechat.cn'
# VUE_APP_BASE_API = 'http://3x2d6z.natappfree.cc'
# 开发环境IP
VUE_APP_BASE_URL = 'http://192.168.0.101'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
linkwe-mobile/.env.production
View file @
6fbbecd
# 生产环境配置
# 生产环境配置
ENV = 'production'
ENV = 'production'
# 塬微管理系统/生产环境api
# 基础api
# VUE_APP_BASE_API = 'http://106.13.201.219'
VUE_APP_BASE_API = 'http://demo.linkwechat.cn'
VUE_APP_BASE_API = 'http://146.56.222.200/api'
# 生产环境IP
# 路由基础路径
# VUE_APP_BASE_URL = 'http://106.13.201.219'
VUE_APP_BASE_URL = '/'
VUE_APP_BASE_URL = 'http://146.56.222.200/api'
\ No newline at end of file
\ No newline at end of file
linkwe-mobile/package-lock.json
View file @
6fbbecd
...
@@ -1036,6 +1036,19 @@
...
@@ -1036,6 +1036,19 @@
"to-fast-properties"
:
"^2.0.0"
"to-fast-properties"
:
"^2.0.0"
}
}
},
},
"@fortawesome/fontawesome-common-types"
:
{
"version"
:
"0.2.36"
,
"resolved"
:
"https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.36.tgz"
,
"integrity"
:
"sha512-a/7BiSgobHAgBWeN7N0w+lAhInrGxksn13uK7231n2m8EDPE3BMCl9NZLTGrj9ZXfCmC6LM0QLqXidIizVQ6yg=="
},
"@fortawesome/free-solid-svg-icons"
:
{
"version"
:
"5.15.4"
,
"resolved"
:
"https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.15.4.tgz"
,
"integrity"
:
"sha512-JLmQfz6tdtwxoihXLg6lT78BorrFyCf59SAwBM6qV/0zXyVeDygJVb3fk+j5Qat+Yvcxp1buLTY5iDh1ZSAQ8w=="
,
"requires"
:
{
"@fortawesome/fontawesome-common-types"
:
"^0.2.36"
}
},
"@hapi/address"
:
{
"@hapi/address"
:
{
"version"
:
"2.1.4"
,
"version"
:
"2.1.4"
,
"resolved"
:
"https://registry.npm.taobao.org/@hapi/address/download/@hapi/address-2.1.4.tgz"
,
"resolved"
:
"https://registry.npm.taobao.org/@hapi/address/download/@hapi/address-2.1.4.tgz"
,
...
@@ -1732,16 +1745,6 @@
...
@@ -1732,16 +1745,6 @@
"integrity"
:
"sha1-/q7SVZc9LndVW4PbwIhRpsY1IPo="
,
"integrity"
:
"sha1-/q7SVZc9LndVW4PbwIhRpsY1IPo="
,
"dev"
:
true
"dev"
:
true
},
},
"ansi-styles"
:
{
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
,
"integrity"
:
"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-convert"
:
"^2.0.1"
}
},
"big.js"
:
{
"big.js"
:
{
"version"
:
"3.2.0"
,
"version"
:
"3.2.0"
,
"resolved"
:
"https://registry.npm.taobao.org/big.js/download/big.js-3.2.0.tgz"
,
"resolved"
:
"https://registry.npm.taobao.org/big.js/download/big.js-3.2.0.tgz"
,
...
@@ -1774,47 +1777,12 @@
...
@@ -1774,47 +1777,12 @@
"unique-filename"
:
"^1.1.1"
"unique-filename"
:
"^1.1.1"
}
}
},
},
"chalk"
:
{
"version"
:
"4.1.1"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz"
,
"integrity"
:
"sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"color-convert"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
,
"integrity"
:
"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-name"
:
"~1.1.4"
}
},
"color-name"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
,
"optional"
:
true
},
"emojis-list"
:
{
"emojis-list"
:
{
"version"
:
"2.1.0"
,
"version"
:
"2.1.0"
,
"resolved"
:
"https://registry.npm.taobao.org/emojis-list/download/emojis-list-2.1.0.tgz"
,
"resolved"
:
"https://registry.npm.taobao.org/emojis-list/download/emojis-list-2.1.0.tgz"
,
"integrity"
:
"sha1-TapNnbAPmBmIDHn6RXrlsJof04k="
,
"integrity"
:
"sha1-TapNnbAPmBmIDHn6RXrlsJof04k="
,
"dev"
:
true
"dev"
:
true
},
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"html-webpack-plugin"
:
{
"html-webpack-plugin"
:
{
"version"
:
"3.2.0"
,
"version"
:
"3.2.0"
,
"resolved"
:
"https://registry.npm.taobao.org/html-webpack-plugin/download/html-webpack-plugin-3.2.0.tgz?cache=0&sync_timestamp=1609777842352&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhtml-webpack-plugin%2Fdownload%2Fhtml-webpack-plugin-3.2.0.tgz"
,
"resolved"
:
"https://registry.npm.taobao.org/html-webpack-plugin/download/html-webpack-plugin-3.2.0.tgz?cache=0&sync_timestamp=1609777842352&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhtml-webpack-plugin%2Fdownload%2Fhtml-webpack-plugin-3.2.0.tgz"
,
...
@@ -1864,16 +1832,6 @@
...
@@ -1864,16 +1832,6 @@
"minipass"
:
"^3.1.1"
"minipass"
:
"^3.1.1"
}
}
},
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
},
"terser-webpack-plugin"
:
{
"terser-webpack-plugin"
:
{
"version"
:
"2.3.8"
,
"version"
:
"2.3.8"
,
"resolved"
:
"https://registry.npm.taobao.org/terser-webpack-plugin/download/terser-webpack-plugin-2.3.8.tgz?cache=0&sync_timestamp=1603881694762&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fterser-webpack-plugin%2Fdownload%2Fterser-webpack-plugin-2.3.8.tgz"
,
"resolved"
:
"https://registry.npm.taobao.org/terser-webpack-plugin/download/terser-webpack-plugin-2.3.8.tgz?cache=0&sync_timestamp=1603881694762&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fterser-webpack-plugin%2Fdownload%2Fterser-webpack-plugin-2.3.8.tgz"
,
...
@@ -1900,56 +1858,6 @@
...
@@ -1900,56 +1858,6 @@
"define-properties"
:
"^1.1.2"
,
"define-properties"
:
"^1.1.2"
,
"object.getownpropertydescriptors"
:
"^2.0.3"
"object.getownpropertydescriptors"
:
"^2.0.3"
}
}
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.2.0"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.2.0.tgz"
,
"integrity"
:
"sha512-TitGhqSQ61RJljMmhIGvfWzJ2zk9m1Qug049Ugml6QP3t0e95o0XJjk29roNEiPKJQBEi8Ord5hFuSuELzSp8Q=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
},
"dependencies"
:
{
"big.js"
:
{
"version"
:
"5.2.2"
,
"resolved"
:
"https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz"
,
"integrity"
:
"sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"emojis-list"
:
{
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz"
,
"integrity"
:
"sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q=="
,
"dev"
:
true
,
"optional"
:
true
},
"json5"
:
{
"version"
:
"2.2.0"
,
"resolved"
:
"https://registry.npmjs.org/json5/-/json5-2.2.0.tgz"
,
"integrity"
:
"sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"minimist"
:
"^1.2.5"
}
},
"loader-utils"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz"
,
"integrity"
:
"sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"big.js"
:
"^5.2.2"
,
"emojis-list"
:
"^3.0.0"
,
"json5"
:
"^2.1.2"
}
}
}
}
}
}
}
},
},
...
@@ -3665,6 +3573,11 @@
...
@@ -3665,6 +3573,11 @@
"integrity"
:
"sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
,
"integrity"
:
"sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
,
"dev"
:
true
"dev"
:
true
},
},
"cookie-storage"
:
{
"version"
:
"6.1.0"
,
"resolved"
:
"https://registry.npmjs.org/cookie-storage/-/cookie-storage-6.1.0.tgz"
,
"integrity"
:
"sha512-HeVqbVy8BjXhAAuFtL6MTG+witHoLbxfky2jgVh9FmxmyL6IKa9gSSyPNjevXCCCxPu6Tzd9J8+eXTRQzYU/cg=="
},
"copy-anything"
:
{
"copy-anything"
:
{
"version"
:
"2.0.1"
,
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npm.taobao.org/copy-anything/download/copy-anything-2.0.1.tgz"
,
"resolved"
:
"https://registry.npm.taobao.org/copy-anything/download/copy-anything-2.0.1.tgz"
,
...
@@ -3694,6 +3607,11 @@
...
@@ -3694,6 +3607,11 @@
"integrity"
:
"sha1-Z29us8OZl8LuGsOpJP1hJHSPV40="
,
"integrity"
:
"sha1-Z29us8OZl8LuGsOpJP1hJHSPV40="
,
"dev"
:
true
"dev"
:
true
},
},
"copy-text-to-clipboard"
:
{
"version"
:
"3.0.1"
,
"resolved"
:
"https://registry.npmjs.org/copy-text-to-clipboard/-/copy-text-to-clipboard-3.0.1.tgz"
,
"integrity"
:
"sha512-rvVsHrpFcL4F2P8ihsoLdFHmd404+CMg71S756oRSeQgqk51U3kicGdnvfkrxva0xXH92SjGS62B0XIJsbh+9Q=="
},
"copy-webpack-plugin"
:
{
"copy-webpack-plugin"
:
{
"version"
:
"5.1.2"
,
"version"
:
"5.1.2"
,
"resolved"
:
"https://registry.npm.taobao.org/copy-webpack-plugin/download/copy-webpack-plugin-5.1.2.tgz"
,
"resolved"
:
"https://registry.npm.taobao.org/copy-webpack-plugin/download/copy-webpack-plugin-5.1.2.tgz"
,
...
@@ -10592,6 +10510,11 @@
...
@@ -10592,6 +10510,11 @@
"has-flag"
:
"^3.0.0"
"has-flag"
:
"^3.0.0"
}
}
},
},
"svelte-fa"
:
{
"version"
:
"2.2.1"
,
"resolved"
:
"https://registry.npmjs.org/svelte-fa/-/svelte-fa-2.2.1.tgz"
,
"integrity"
:
"sha512-zSMwI7P9654VSFDXUVsJ748QwKRcWHrb5ZW1FVLiD/9X81hpY2QSXcDtDgqtTyulvXQcl/2khFfk0CNMRYLlNA=="
},
"svg-tags"
:
{
"svg-tags"
:
{
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npm.taobao.org/svg-tags/download/svg-tags-1.0.0.tgz"
,
"resolved"
:
"https://registry.npm.taobao.org/svg-tags/download/svg-tags-1.0.0.tgz"
,
...
@@ -10952,11 +10875,6 @@
...
@@ -10952,11 +10875,6 @@
"punycode"
:
"^2.1.1"
"punycode"
:
"^2.1.1"
}
}
},
},
"transitionEnd"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/transitionEnd/-/transitionEnd-1.0.2.tgz"
,
"integrity"
:
"sha1-GRTbW0Wn79w0oBr2koWjppOHFjM="
},
"tryer"
:
{
"tryer"
:
{
"version"
:
"1.0.1"
,
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npm.taobao.org/tryer/download/tryer-1.0.1.tgz"
,
"resolved"
:
"https://registry.npm.taobao.org/tryer/download/tryer-1.0.1.tgz"
,
...
@@ -11360,12 +11278,23 @@
...
@@ -11360,12 +11278,23 @@
"dev"
:
true
"dev"
:
true
},
},
"vconsole"
:
{
"vconsole"
:
{
"version"
:
"3.4.0"
,
"version"
:
"3.9.1"
,
"resolved"
:
"https://registry.npmjs.org/vconsole/-/vconsole-3.4.0.tgz"
,
"resolved"
:
"https://registry.npmjs.org/vconsole/-/vconsole-3.9.1.tgz"
,
"integrity"
:
"sha512-N9py7Ch9M9nzsigYf8T/WHIOood7jq2MNtUWDqicnrCsPsOZj8Z3NsmFgBmDA3bPKwnzace11HXHxYKPfwV32A=="
,
"integrity"
:
"sha512-pAqWMsRtxxmXRzTGAG9AT/qfzmQ9Df0UPuQ0ut1aSUiwvK5Hki3IrxurE9iFkFsJX8cGmSjYEAQf7fRc86VBhA=="
,
"requires"
:
{
"requires"
:
{
"@fortawesome/free-solid-svg-icons"
:
"^5.15.3"
,
"cookie-storage"
:
"^6.1.0"
,
"copy-text-to-clipboard"
:
"^3.0.1"
,
"core-js"
:
"^3.11.0"
,
"mutation-observer"
:
"^1.0.3"
,
"mutation-observer"
:
"^1.0.3"
,
"transitionEnd"
:
"^1.0.2"
"svelte-fa"
:
"^2.2.1"
},
"dependencies"
:
{
"core-js"
:
{
"version"
:
"3.16.2"
,
"resolved"
:
"https://registry.npmjs.org/core-js/-/core-js-3.16.2.tgz"
,
"integrity"
:
"sha512-P0KPukO6OjMpjBtHSceAZEWlDD1M2Cpzpg6dBbrjFqFhBHe/BwhxaP820xKOjRn/lZRQirrCusIpLS/n2sgXLQ=="
}
}
}
},
},
"vendors"
:
{
"vendors"
:
{
...
@@ -11460,6 +11389,87 @@
...
@@ -11460,6 +11389,87 @@
}
}
}
}
},
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.5.0"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.5.0.tgz"
,
"integrity"
:
"sha512-WXh+7AgFxGTgb5QAkQtFeUcHNIEq3PGVQ8WskY5ZiFbWBkOwcCPRs4w/2tVyTbh2q6TVRlO3xfvIukUtjsu62A=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
},
"dependencies"
:
{
"ansi-styles"
:
{
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
,
"integrity"
:
"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-convert"
:
"^2.0.1"
}
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"color-convert"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
,
"integrity"
:
"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-name"
:
"~1.1.4"
}
},
"color-name"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
,
"optional"
:
true
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"loader-utils"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz"
,
"integrity"
:
"sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"big.js"
:
"^5.2.2"
,
"emojis-list"
:
"^3.0.0"
,
"json5"
:
"^2.1.2"
}
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
}
}
},
"vue-router"
:
{
"vue-router"
:
{
"version"
:
"3.4.9"
,
"version"
:
"3.4.9"
,
"resolved"
:
"https://registry.npm.taobao.org/vue-router/download/vue-router-3.4.9.tgz?cache=0&sync_timestamp=1609110108136&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-router%2Fdownload%2Fvue-router-3.4.9.tgz"
,
"resolved"
:
"https://registry.npm.taobao.org/vue-router/download/vue-router-3.4.9.tgz?cache=0&sync_timestamp=1609110108136&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-router%2Fdownload%2Fvue-router-3.4.9.tgz"
,
...
...
linkwe-mobile/package.json
View file @
6fbbecd
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"core-js"
:
"^3.6.5"
,
"core-js"
:
"^3.6.5"
,
"normalize.css"
:
"^8.0.1"
,
"normalize.css"
:
"^8.0.1"
,
"vant"
:
"^2.12.2"
,
"vant"
:
"^2.12.2"
,
"vconsole"
:
"^3.
4.0
"
,
"vconsole"
:
"^3.
9.1
"
,
"vue"
:
"^2.6.11"
,
"vue"
:
"^2.6.11"
,
"vue-router"
:
"^3.2.0"
,
"vue-router"
:
"^3.2.0"
,
"vuex"
:
"^3.4.0"
"vuex"
:
"^3.4.0"
...
...
linkwe-mobile/public/index.html
View file @
6fbbecd
...
@@ -3,10 +3,13 @@
...
@@ -3,10 +3,13 @@
<head>
<head>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
name=
"renderer"
content=
"webkit"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0, maximum-scale=1, user-scalable=no"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<title>
<
%= htmlWebpackPlugin.options.title %>
</title>
<title>
<
%= htmlWebpackPlugin.options.title %>
</title>
<script
src=
"http://res.wx.qq.com/open/js/jweixin-1.2.0.js"
></script>
<script
src=
"http://res.wx.qq.com/open/js/jweixin-1.2.0.js"
></script>
<script
src=
"https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"
></script>
<script
src=
"https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"
></script>
</head>
</head>
...
@@ -14,7 +17,7 @@
...
@@ -14,7 +17,7 @@
<body>
<body>
<noscript>
<noscript>
<strong>
We're sorry but
<
%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
<strong>
We're sorry but
<
%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
Please enable it to continue.
</strong>
Please enable it to continue.
</strong>
</noscript>
</noscript>
<div
id=
"app"
></div>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
<!-- built files will be auto injected -->
...
...
linkwe-mobile/src/components/StepList.vue
View file @
6fbbecd
...
@@ -7,11 +7,10 @@
...
@@ -7,11 +7,10 @@
loading-text=
"上划加载更多"
loading-text=
"上划加载更多"
>
>
<van-cell
v-for=
"(item, index) in wList"
:key=
"index"
>
<van-cell
v-for=
"(item, index) in wList"
:key=
"index"
>
<!--
{{
item
[
0
].
createDate
}}
-->
<!-- 时间 -->
<!-- 时间 -->
<p
class=
"f12"
style=
"position:relative; "
>
<p
class=
"f12"
style=
"position:relative; "
>
{{
getTime1
(
item
[
0
].
createDate
)
}}
{{
dateFormat
(
item
[
0
].
createTime
,
'yyyy-MM-dd'
)
}}
{{
getTime3
(
getTime1
(
item
[
0
].
createDate
)
)
}}
{{
dateFormat
(
item
[
0
].
createTime
,
'ww'
)
}}
<!--
{{
item1
.
trajectoryType
}}
-->
<!--
{{
item1
.
trajectoryType
}}
-->
</p>
</p>
<!--
<van-cell>
-->
<!--
<van-cell>
-->
...
@@ -24,7 +23,7 @@
...
@@ -24,7 +23,7 @@
>
>
<van-step
class=
"msg"
>
<van-step
class=
"msg"
>
<span
class=
"f12 po"
>
<span
class=
"f12 po"
>
{{
getTime2
(
getTime1
(
item1
.
createDate
)
)
}}
</span
{{
dateFormat
(
item
[
0
].
createTime
,
'hh:mm'
)
}}
</span
>
>
<span
class=
"fs14"
>
{{
chargeType
(
item1
.
trajectoryType
)
}}
</span>
<span
class=
"fs14"
>
{{
chargeType
(
item1
.
trajectoryType
)
}}
</span>
<span
class=
"finish-box"
>
<span
class=
"finish-box"
>
...
@@ -47,13 +46,14 @@
...
@@ -47,13 +46,14 @@
</van-step>
-->
</van-step>
-->
</van-steps>
</van-steps>
</van-cell>
</van-cell>
<
van-divider
/
>
<
!--
<van-divider
/>
--
>
</van-list>
</van-list>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
removeTrajectory
,
handleWait
}
from
'@/api/portrait'
import
{
removeTrajectory
,
handleWait
}
from
'@/api/portrait'
import
{
dateFormat
}
from
'@/utils'
export
default
{
export
default
{
props
:
[
'stepList'
],
props
:
[
'stepList'
],
inject
:
[
'reload'
],
inject
:
[
'reload'
],
...
@@ -63,9 +63,6 @@ export default {
...
@@ -63,9 +63,6 @@ export default {
active
:
-
1
,
active
:
-
1
,
// 轨迹外层按时间
// 轨迹外层按时间
wlist
:
[],
wlist
:
[],
// 轨迹内层
nlist
:
[],
oldele
:
[],
content
:
''
,
content
:
''
,
type
:
0
,
type
:
0
,
wList
:
[],
wList
:
[],
...
@@ -76,54 +73,49 @@ export default {
...
@@ -76,54 +73,49 @@ export default {
watch
:
{
watch
:
{
stepList
(
newVal
,
oldVal
)
{
stepList
(
newVal
,
oldVal
)
{
// console.log(newVal, oldVal);
// console.log(newVal, oldVal);
if
(
newVal
!=
oldVal
)
{
this
.
wList
=
[]
// debugger
let
dayList
=
[]
this
.
wlist
=
[]
this
.
wList
=
[]
this
.
oldele
=
[]
this
.
nlist
=
[]
}
newVal
.
forEach
((
ele
)
=>
{
newVal
.
forEach
((
ele
)
=>
{
this
.
oldele
.
push
(
parseInt
(
this
.
getTime
(
ele
.
createDate
))
)
let
date
=
this
.
dateFormat
(
ele
.
createTime
,
'yyyyMMdd'
)
// console.log(parseInt(this.getTime(ele.createDate)));
dayList
.
includes
(
date
)
||
dayList
.
push
(
date
)
})
})
// console.log(this.oldele);
dayList
.
sort
((
a
,
b
)
=>
b
-
a
)
this
.
oldele
=
this
.
newArr
(
this
.
oldele
).
sort
(
this
.
f
)
for
(
let
i
=
0
;
i
<
dayList
.
length
;
i
++
)
{
// console.log(this.oldele);
let
timeList
=
[]
for
(
let
i
=
0
;
i
<
this
.
oldele
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
newVal
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
newVal
.
length
;
j
++
)
{
// console.log(newVal[j].createDate);
// console.log(newVal[j].createTime);
if
(
this
.
oldele
[
i
]
==
this
.
getTime
(
newVal
[
j
].
createDate
))
{
if
(
dayList
[
i
]
==
this
.
dateFormat
(
newVal
[
j
].
createTime
,
'yyyyMMdd'
))
{
this
.
nlist
.
push
(
newVal
[
j
])
timeList
.
push
(
newVal
[
j
])
// console.log(this.nlist);
}
}
}
}
this
.
wlist
.
push
(
this
.
nlist
)
this
.
wList
.
push
(
timeList
)
this
.
nlist
=
[]
}
}
this
.
loading
=
false
this
.
finished
=
true
// console.log(this.wlist);
// console.log(this.wlist);
this
.
onLoad
()
//
this.onLoad()
}
}
},
},
methods
:
{
methods
:
{
onLoad
()
{
onLoad
()
{
// 异步更新数据
//
//
异步更新数据
// setTimeout 仅做示例,真实场景中一般为 ajax 请求
//
//
setTimeout 仅做示例,真实场景中一般为 ajax 请求
setTimeout
(()
=>
{
//
setTimeout(() => {
// debugger
//
// debugger
let
total
=
this
.
wlist
.
length
>
10
?
10
:
this
.
wlist
.
length
//
let total = this.wlist.length > 10 ? 10 : this.wlist.length
for
(
let
i
=
0
;
i
<
total
;
i
++
)
{
//
for (let i = 0; i < total; i++) {
this
.
wList
.
push
(
this
.
wlist
[
i
])
//
this.wList.push(this.wlist[i])
}
//
}
// 加载状态结束
// console.log(this.wList)
this
.
loading
=
false
// // 加载状态结束
// this.loading = false
// 数据全部加载完成
//
// 数据全部加载完成
if
(
this
.
wList
.
length
>=
this
.
wlist
.
length
)
{
//
if (this.wList.length >= this.wlist.length) {
this
.
finished
=
true
//
this.finished = true
}
//
}
},
1000
)
//
}, 1000)
},
},
// 根据数字判断类型
// 根据数字判断类型
chargeType
(
num
)
{
chargeType
(
num
)
{
...
@@ -137,85 +129,34 @@ export default {
...
@@ -137,85 +129,34 @@ export default {
return
(
this
.
type
=
'待办动态'
)
return
(
this
.
type
=
'待办动态'
)
}
}
},
},
// 数组去重
dateFormat
(
data
,
format
)
{
newArr
(
arr
)
{
return
dateFormat
(
new
Date
(
data
),
format
)
return
Array
.
from
(
new
Set
(
arr
))
},
// 数组由大到小排序
f
(
a
,
b
)
{
//排序函数
return
-
(
a
-
b
)
//取反并返回比较参数
},
// 时间处理器
getTime
(
data
)
{
const
date
=
new
Date
(
data
)
// console.log(timer.getFullYear());
var
Y
=
date
.
getFullYear
()
var
M
=
date
.
getMonth
()
+
1
<
10
?
'0'
+
(
date
.
getMonth
()
+
1
)
:
date
.
getMonth
()
+
1
var
D
=
date
.
getDate
()
<
10
?
'0'
+
date
.
getDate
()
:
date
.
getDate
()
return
Y
+
M
+
D
},
getTime1
(
data
)
{
const
date
=
new
Date
(
data
)
// console.log(timer.getFullYear());
var
Y
=
date
.
getFullYear
()
+
'-'
var
M
=
(
date
.
getMonth
()
+
1
<
10
?
'0'
+
(
date
.
getMonth
()
+
1
)
:
date
.
getMonth
()
+
1
)
+
'-'
var
D
=
date
.
getDate
()
<
10
?
'0'
+
date
.
getDate
()
:
date
.
getDate
()
return
Y
+
M
+
D
},
getTime2
(
data
)
{
const
date
=
new
Date
(
data
)
// console.log(timer.getFullYear());
var
h
=
(
date
.
getHours
()
<
10
?
'0'
+
date
.
getHours
()
:
date
.
getHours
())
+
':'
var
m
=
date
.
getMinutes
()
<
10
?
'0'
+
date
.
getMinutes
()
:
date
.
getMinutes
()
return
h
+
m
},
// 处理星期几
getTime3
(
time
)
{
var
dateArray
=
time
.
split
(
'-'
)
var
date
=
new
Date
(
dateArray
[
0
],
parseInt
(
dateArray
[
1
]
-
1
),
dateArray
[
2
]
)
var
week
=
'星期'
+
'日一二三四五六'
.
charAt
(
date
.
getDay
())
return
week
},
},
// 删除轨迹
// 删除轨迹
delDynamic
(
id
)
{
delDynamic
(
id
)
{
removeTrajectory
(
id
)
this
.
$dialog
.
confirm
({
title
:
'警告'
,
message
:
'确定要删除吗?'
})
.
then
(()
=>
{
return
removeTrajectory
(
id
)
})
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
// console.log(data.code);
this
.
$toast
.
success
(
'删除成功'
)
if
(
data
.
code
==
200
)
{
// 重新获取全部数据
// 提示删除成功
this
.
$emit
(
'reload'
)
// this.msgSuccess("删除成功");
// debugger
// location.reload();
this
.
$toast
.
success
(
'删除成功'
)
this
.
reload
()
// 重新获取全部数据
}
})
})
.
catch
((
err
)
=>
{
.
catch
(()
=>
{
console
.
log
(
err
)
// on cancel
})
})
},
},
// 点击完成
// 点击完成
finDynamic
(
id
)
{
finDynamic
(
id
)
{
handleWait
(
id
)
handleWait
(
id
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
if
(
data
.
code
==
200
)
{
this
.
$emit
(
'reload'
)
// this.delDynamic(id);
this
.
reload
()
}
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
console
.
log
(
err
)
console
.
log
(
err
)
...
@@ -250,17 +191,15 @@ export default {
...
@@ -250,17 +191,15 @@ export default {
color
:
#9c9c9c
;
color
:
#9c9c9c
;
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
600
;
font-weight
:
600
;
margin-right
:
16px
;
}
}
.con
{
.con
{
left
:
51px
;
left
:
51px
;
margin-top
:
20px
;
margin-top
:
20px
;
}
}
.finish-box
{
.finish-box
{
display
:
inline-block
;
float
:
right
;
position
:
relative
;
position
:
relative
;
left
:
100px
;
width
:
80px
;
width
:
25%
;
}
}
.finish
{
.finish
{
position
:
absolute
;
position
:
absolute
;
...
...
linkwe-mobile/src/styles/common.css
View file @
6fbbecd
...
@@ -310,18 +310,6 @@ ais {
...
@@ -310,18 +310,6 @@ ais {
.pt5
{
.pt5
{
padding-top
:
5px
;
padding-top
:
5px
;
}
}
.pb5
{
padding-bottom
:
5px
;
}
.pt10
{
padding-top
:
10px
;
}
.pt15
{
padding-top
:
15px
;
}
.pt20
{
padding-top
:
20px
;
}
.pr5
{
.pr5
{
padding-right
:
5px
;
padding-right
:
5px
;
...
@@ -335,6 +323,16 @@ ais {
...
@@ -335,6 +323,16 @@ ais {
padding-left
:
5px
;
padding-left
:
5px
;
}
}
.pt10
{
padding-top
:
10px
;
}
.pt15
{
padding-top
:
15px
;
}
.pt20
{
padding-top
:
20px
;
}
.mt5
{
.mt5
{
margin-top
:
5px
;
margin-top
:
5px
;
}
}
...
@@ -347,14 +345,14 @@ ais {
...
@@ -347,14 +345,14 @@ ais {
margin-bottom
:
5px
;
margin-bottom
:
5px
;
}
}
.mb8
{
margin-bottom
:
8px
;
}
.ml5
{
.ml5
{
margin-left
:
5px
;
margin-left
:
5px
;
}
}
.mb8
{
margin-bottom
:
8px
;
}
.mt10
{
.mt10
{
margin-top
:
10px
;
margin-top
:
10px
;
}
}
...
...
linkwe-mobile/src/utils/index.js
View file @
6fbbecd
...
@@ -19,3 +19,35 @@ export function param2Obj(url) {
...
@@ -19,3 +19,35 @@ export function param2Obj(url) {
'"}'
'"}'
)
)
}
}
// 日期时间格式化
export
function
dateFormat
(
date
=
new
Date
(),
fmt
=
'yyyy-MM-dd hh:mm:ss'
)
{
var
o
=
{
'M+'
:
date
.
getMonth
()
+
1
,
//月份
'd+'
:
date
.
getDate
(),
//日
'h+'
:
date
.
getHours
(),
//小时
'm+'
:
date
.
getMinutes
(),
//分
's+'
:
date
.
getSeconds
(),
//秒
'q+'
:
Math
.
floor
((
date
.
getMonth
()
+
3
)
/
3
),
//季度
'S+'
:
date
.
getMilliseconds
(),
//毫秒
'w+'
:
'星期'
+
'日一二三四五六'
.
charAt
(
date
.
getDay
())
//星期
}
if
(
/
(
y+
)
/
.
test
(
fmt
))
{
fmt
=
fmt
.
replace
(
RegExp
.
$1
,
(
date
.
getFullYear
()
+
''
).
substr
(
4
-
RegExp
.
$1
.
length
)
)
}
for
(
var
k
in
o
)
{
if
(
new
RegExp
(
'('
+
k
+
')'
).
test
(
fmt
))
{
fmt
=
fmt
.
replace
(
RegExp
.
$1
,
RegExp
.
$1
.
length
==
1
?
o
[
k
]
:
(
'00'
+
o
[
k
]).
substr
((
''
+
o
[
k
]).
length
)
)
}
}
return
fmt
}
linkwe-mobile/src/views/portrait/index.vue
View file @
6fbbecd
...
@@ -22,7 +22,8 @@
...
@@ -22,7 +22,8 @@
>
{{
>
{{
form
.
remark
form
.
remark
?
form
.
remark
?
form
.
remark
:
(
form
.
name
||
''
)
+
'-'
+
(
form
.
remarkCorpName
||
''
)
:
(
form
.
name
||
''
)
+
(
form
.
remarkCorpName
?
'-'
+
form
.
remarkCorpName
:
''
)
}}
}}
</span
</span
><span
><span
...
@@ -69,27 +70,17 @@
...
@@ -69,27 +70,17 @@
<div>
客户标签
</div>
<div>
客户标签
</div>
<div
class=
"data"
is-link
@
click=
"labelEdit"
>
编辑
</div>
<div
class=
"data"
is-link
@
click=
"labelEdit"
>
编辑
</div>
</div>
</div>
<van-row
gutter=
"10"
class=
"labelstyle"
>
<div
v-if=
"form.weTagGroupList"
class=
"labelstyle mt10"
>
<van-col
<template
v-for=
"item in form.weTagGroupList"
>
span=
"4.5"
v-for=
"(item, index) in form.weTagGroupList"
:key=
"index"
>
<div
<div
class=
"label"
class=
"label"
v-for=
"(
item1, index1
) in item.weTags"
v-for=
"(
unit, unique
) in item.weTags"
:key=
"
index1
"
:key=
"
unique
"
>
>
{{
item1
.
name
}}
{{
unit
.
name
}}
</div>
</div>
</van-col>
</
template
>
<!--
<van-col
span=
"4.5"
>
<div
class=
"label"
>
标签1
</div></van-col>
</div>
<van-col
span=
"4.5"
>
<div
class=
"label"
>
标签1
</div></van-col>
<van-col
span=
"4.5"
>
<div
class=
"label"
>
标签1
</div></van-col>
<van-col
span=
"4.5"
>
<div
class=
"label"
>
标签1
</div></van-col>
<van-col
span=
"4.5"
>
<div
class=
"label"
>
标签1
</div></van-col>
<van-col
span=
"4.5"
>
<div
class=
"label"
>
标签1
</div></van-col>
-->
</van-row>
</div>
</div>
<div
class=
"divider"
></div>
<div
class=
"divider"
></div>
...
@@ -128,48 +119,13 @@
...
@@ -128,48 +119,13 @@
<van-tab
:name=
"3"
title=
"活动动态"
></van-tab>
<van-tab
:name=
"3"
title=
"活动动态"
></van-tab>
<van-tab
:name=
"4"
title=
"待办动态"
></van-tab>
<van-tab
:name=
"4"
title=
"待办动态"
></van-tab>
</van-tabs>
</van-tabs>
<!--
<van-row
gutter=
"8"
class=
"labelstyle"
>
<van-col
span=
"6"
>
<div
class=
"label1"
@
click=
"changeInfo('information')"
:style=
"styleActive1"
>
信息动态
</div></van-col
>
<van-col
span=
"6"
>
<div
class=
"label1"
@
click=
"changeInfo('socialContact')"
:style=
"styleActive2"
>
社交动态
</div></van-col
>
<van-col
span=
"6"
>
<div
class=
"label1"
@
click=
"changeInfo('activity')"
:style=
"styleActive3"
>
活动动态
</div></van-col
>
<van-col
span=
"6"
>
<div
class=
"label1"
@
click=
"changeInfo('dealtWith')"
:style=
"styleActive4"
>
待办动态
</div></van-col
>
</van-row>
-->
<!-- 步骤条 -->
<!-- 步骤条 -->
<StepList
:stepList=
"list"
></StepList>
<div
class=
"ac"
>
<van-loading
v-if=
"loadingStep"
type=
"spinner"
/>
</div>
<StepList
:stepList=
"list"
@
reload=
"changeInfo()"
></StepList>
</div>
</div>
<!-- 点击客户标签里的编辑触发弹出框开始 -->
<!-- 点击客户标签里的编辑触发弹出框开始 -->
...
@@ -274,7 +230,7 @@
...
@@ -274,7 +230,7 @@
/>
/>
</van-action-sheet>
</van-action-sheet>
<!-- 保存 -->
<!-- 保存 -->
<div
style=
"margin: 30px
;
"
>
<div
style=
"margin: 30px"
>
<van-button
<van-button
round
round
block
block
...
@@ -336,8 +292,9 @@ export default {
...
@@ -336,8 +292,9 @@ export default {
// 待办动态
// 待办动态
todonewsshow
:
false
,
todonewsshow
:
false
,
// 接口开始
// 接口开始
// externalUserid: 'wmiGuBCgAAoCBD1frD3hRplbsXoBLx6g', // 客户Id
externalUserid
:
''
,
// externalUserid: 'wmiGuBCgAAgeijfvvpJ62cBfwrB-c4kw',
// externalUserid: 'wmiGuBCgAAoCBD1frD3hRplbsXoBLx6g', // 客户IdwmiGuBCgAAoCBD1frD3hRplbsXoBLx6g
// externalUserid: 'wmiGuBCgAAsQVuCR_zoXfnQsnCGG25rQ',
form
:
{
form
:
{
name
:
''
,
// 昵称
name
:
''
,
// 昵称
remarkMobiles
:
''
,
// 手机号
remarkMobiles
:
''
,
// 手机号
...
@@ -375,7 +332,8 @@ export default {
...
@@ -375,7 +332,8 @@ export default {
loading
:
false
,
loading
:
false
,
finished
:
false
,
finished
:
false
,
list
:
[],
list
:
[],
agentId
:
''
agentId
:
''
,
// 1000012,
loadingStep
:
false
}
}
},
},
watch
:
{
watch
:
{
...
@@ -386,7 +344,7 @@ export default {
...
@@ -386,7 +344,7 @@ export default {
computed
:
{
computed
:
{
userId
()
{
userId
()
{
return
this
.
$store
.
state
.
userId
return
this
.
$store
.
state
.
userId
//
|| 'FengJuZhuDeJieDao'
// || 'FengJuZhuDeJieDao'
},
},
// activeLabel : () => {
// activeLabel : () => {
// this.addTag.forEach((value) => {
// this.addTag.forEach((value) => {
...
@@ -410,12 +368,13 @@ export default {
...
@@ -410,12 +368,13 @@ export default {
let
hash
=
param2Obj
(
window
.
location
.
hash
)
let
hash
=
param2Obj
(
window
.
location
.
hash
)
query
=
Object
.
assign
(
query
,
hash
)
query
=
Object
.
assign
(
query
,
hash
)
this
.
agentId
=
query
.
agentId
this
.
agentId
=
query
.
agentId
//
console.log(agentId)
console
.
log
(
agentId
)
// this.findAddaddEmployes()
// this.findAddaddEmployes()
// this.findAddGroupNum()
// this.findAddGroupNum()
// this.getCustomerInfo()
// this.getCustomerInfo()
// this.findTrajectory()
// this.findTrajectory()
// getAllTags()
// getAllTags()
// .then(({ data }) => {
// .then(({ data }) => {
// this.alllabel = data
// this.alllabel = data
...
@@ -490,6 +449,8 @@ export default {
...
@@ -490,6 +449,8 @@ export default {
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
// 重新获取列表
// 重新获取列表
this
.
findAddaddEmployes
()
this
.
findAddaddEmployes
()
this
.
findTrajectory
()
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
this
.
$toast
.
success
(
'保存成功'
)
this
.
$toast
.
success
(
'保存成功'
)
this
.
usershow
=
false
this
.
usershow
=
false
...
@@ -501,6 +462,7 @@ export default {
...
@@ -501,6 +462,7 @@ export default {
},
},
// 获取轨迹信息
// 获取轨迹信息
findTrajectory
(
page
)
{
findTrajectory
(
page
)
{
this
.
loadingStep
=
true
let
query
=
{
let
query
=
{
pageNum
:
page
,
pageNum
:
page
,
pageSize
:
10
,
pageSize
:
10
,
...
@@ -508,14 +470,15 @@ export default {
...
@@ -508,14 +470,15 @@ export default {
externalUserid
:
this
.
externalUserid
externalUserid
:
this
.
externalUserid
}
}
Object
.
assign
(
query
,
this
.
query
)
Object
.
assign
(
query
,
this
.
query
)
page
&&
(
query
.
page
=
page
)
findTrajectory
(
query
)
findTrajectory
(
query
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
// console.log(data.total);
// console.log(data.total);
this
.
list
=
data
.
rows
this
.
list
=
data
.
rows
this
.
loadingStep
=
false
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
console
.
log
(
err
)
console
.
log
(
err
)
this
.
loadingStep
=
false
})
})
},
},
// 点击信息动态
// 点击信息动态
...
@@ -530,9 +493,9 @@ export default {
...
@@ -530,9 +493,9 @@ export default {
userId
:
this
.
userId
,
userId
:
this
.
userId
,
externalUserid
:
this
.
externalUserid
,
externalUserid
:
this
.
externalUserid
,
content
:
this
.
conagency
,
content
:
this
.
conagency
,
createDate
:
new
Date
(
this
.
dateagency
)
,
createDate
:
this
.
dateagency
,
startTime
:
new
Date
(
this
.
startTime
)
,
startTime
:
`
${
this
.
dateagency
}
${
this
.
startTime
}
:00`
,
endTime
:
new
Date
(
this
.
endTime
)
,
endTime
:
`
${
this
.
dateagency
}
${
this
.
endTime
}
:00`
,
status
:
1
,
status
:
1
,
agentId
:
this
.
agentId
agentId
:
this
.
agentId
}
}
...
@@ -542,8 +505,6 @@ export default {
...
@@ -542,8 +505,6 @@ export default {
this
.
dateagency
=
''
this
.
dateagency
=
''
this
.
startTime
=
''
this
.
startTime
=
''
this
.
endTime
=
''
this
.
endTime
=
''
// 重新获取列表
this
.
findTrajectory
()
},
},
// 待办日期
// 待办日期
formatDate
(
dateagency
)
{
formatDate
(
dateagency
)
{
...
@@ -636,7 +597,7 @@ export default {
...
@@ -636,7 +597,7 @@ export default {
this
.
show
=
true
this
.
show
=
true
if
(
this
.
form
.
weTagGroupList
)
{
if
(
this
.
form
.
weTagGroupList
)
{
this
.
form
.
weTagGroupList
.
forEach
((
ele
)
=>
{
this
.
form
.
weTagGroupList
.
forEach
((
ele
)
=>
{
this
.
addTag
.
push
(...
ele
.
weTags
[
0
]
)
this
.
addTag
.
push
(...
ele
.
weTags
)
})
})
}
}
// 获取用户当前的lable,将当前用户的lable与所有lable进行对比,相同的弹框内蓝色展示
// 获取用户当前的lable,将当前用户的lable与所有lable进行对比,相同的弹框内蓝色展示
...
@@ -763,8 +724,7 @@ export default {
...
@@ -763,8 +724,7 @@ export default {
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
align-items
:
center
;
align-items
:
center
;
.label,
.label
{
.label1
{
display
:
inline-block
;
display
:
inline-block
;
min-width
:
45px
;
min-width
:
45px
;
font-size
:
12px
;
font-size
:
12px
;
...
...
linkwe-ui/src/views/conversation/content/component/chatListClass.vue
View file @
6fbbecd
...
@@ -6,7 +6,10 @@
...
@@ -6,7 +6,10 @@
<span
class=
"fr download"
@
click=
"exportList()"
>
下载会话
</span>
<span
class=
"fr download"
@
click=
"exportList()"
>
下载会话
</span>
</div>
</div>
</div>
</div>
<el-tabs
v-model=
"activeTab"
>
<el-tabs
v-model=
"activeTab"
@
tab-click=
"(v) => opened.includes(v.name) || opened.push(v.name)"
>
<el-tab-pane
<el-tab-pane
v-for=
"(item, index) of list"
v-for=
"(item, index) of list"
:key=
"index"
:key=
"index"
...
@@ -14,6 +17,7 @@
...
@@ -14,6 +17,7 @@
:name=
"item.type"
:name=
"item.type"
>
>
<chatListClassTab
<chatListClassTab
v-if=
"opened.includes(item.type)"
:queryChat=
"queryChat"
:queryChat=
"queryChat"
:type=
"item.type"
:type=
"item.type"
></chatListClassTab>
></chatListClassTab>
...
@@ -36,6 +40,7 @@ export default {
...
@@ -36,6 +40,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
activeTab
:
'all'
,
activeTab
:
'all'
,
opened
:
[
'all'
],
list
:
[
list
:
[
{
{
label
:
'全部'
,
label
:
'全部'
,
...
@@ -60,7 +65,11 @@ export default {
...
@@ -60,7 +65,11 @@ export default {
]
]
}
}
},
},
watch
:
{},
watch
:
{
queryChat
()
{
this
.
opened
=
[
'all'
]
}
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
exportList
()
{
exportList
()
{
...
...
linkwe-ui/src/views/conversation/content/component/chatListClassTab.vue
View file @
6fbbecd
...
@@ -141,13 +141,15 @@ export default {
...
@@ -141,13 +141,15 @@ export default {
this
.
getList
(
1
)
this
.
getList
(
1
)
}
}
},
},
created
()
{},
created
()
{
this
.
getList
(
1
)
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
getList
(
page
)
{
getList
(
page
)
{
if
(
!
this
.
queryChat
.
fromId
)
{
//
if (!this.queryChat.fromId) {
return
//没有选择人
//
return //没有选择人
}
//
}
this
.
loading
=
true
this
.
loading
=
true
let
query
=
{
let
query
=
{
msgType
:
this
.
type
==
'all'
?
''
:
this
.
type
,
msgType
:
this
.
type
==
'all'
?
''
:
this
.
type
,
...
...
linkwe-ui/src/views/conversation/content/customer.vue
View file @
6fbbecd
...
@@ -44,6 +44,14 @@
...
@@ -44,6 +44,14 @@
></i>
></i>
</el-col>
</el-col>
</el-row>
</el-row>
<div class="
ac
mt10
mb15
"
>
{{
customerList
.
length
!=
customerTotal
?
'下拉加载更多'
:
'看到底了~'
}}
<
/div
>
<
/template
>
<
/template
>
<
el
-
empty
v
-
else
:
image
-
size
=
"100"
><
/el-empty
>
<
el
-
empty
v
-
else
:
image
-
size
=
"100"
><
/el-empty
>
<
/ul
>
<
/ul
>
...
...
linkwe-ui/src/views/conversation/content/employee.vue
View file @
6fbbecd
...
@@ -126,7 +126,7 @@ export default {
...
@@ -126,7 +126,7 @@ export default {
},
},
groupFn
(
data
)
{
groupFn
(
data
)
{
this
.
queryChat
=
{
this
.
queryChat
=
{
fromId
:
this
.
fromId
,
//
fromId: this.fromId,
receiveName
:
data
.
name
,
receiveName
:
data
.
name
,
roomId
:
data
.
receiver
roomId
:
data
.
receiver
}
}
...
...
linkwe-ui/src/views/system/user/index.vue
View file @
6fbbecd
...
@@ -4,81 +4,251 @@
...
@@ -4,81 +4,251 @@
<!--部门数据-->
<!--部门数据-->
<el-col
:span=
"4"
:xs=
"24"
>
<el-col
:span=
"4"
:xs=
"24"
>
<div
class=
"head-container"
>
<div
class=
"head-container"
>
<el-input
v-model=
"deptName"
placeholder=
"请输入部门名称"
clearable
size=
"small"
prefix-icon=
"el-icon-search"
style=
"margin-bottom: 20px"
/>
<el-input
v-model=
"deptName"
placeholder=
"请输入部门名称"
clearable
size=
"small"
prefix-icon=
"el-icon-search"
style=
"margin-bottom: 20px"
/>
</div>
</div>
<div
class=
"head-container"
>
<div
class=
"head-container"
>
<el-tree
:data=
"deptOptions"
:props=
"defaultProps"
:expand-on-click-node=
"false"
:filter-node-method=
"filterNode"
ref=
"tree"
default-expand-all
@
node-click=
"handleNodeClick"
/>
<el-tree
:data=
"deptOptions"
:props=
"defaultProps"
:expand-on-click-node=
"false"
:filter-node-method=
"filterNode"
ref=
"tree"
default-expand-all
@
node-click=
"handleNodeClick"
/>
</div>
</div>
</el-col>
</el-col>
<!--用户数据-->
<!--用户数据-->
<el-col
:span=
"20"
:xs=
"24"
>
<el-col
:span=
"20"
:xs=
"24"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"用户名称"
prop=
"userName"
>
<el-form-item
label=
"用户名称"
prop=
"userName"
>
<el-input
v-model=
"queryParams.userName"
placeholder=
"请输入用户名称"
clearable
size=
"small"
style=
"width: 240px"
@
keyup
.
enter
.
native=
"handleQuery"
/>
<el-input
v-model=
"queryParams.userName"
placeholder=
"请输入用户名称"
clearable
size=
"small"
style=
"width: 240px"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"手机号码"
prop=
"phonenumber"
>
<el-form-item
label=
"手机号码"
prop=
"phonenumber"
>
<el-input
v-model=
"queryParams.phonenumber"
placeholder=
"请输入手机号码"
clearable
size=
"small"
style=
"width: 240px"
@
keyup
.
enter
.
native=
"handleQuery"
/>
<el-input
v-model=
"queryParams.phonenumber"
placeholder=
"请输入手机号码"
clearable
size=
"small"
style=
"width: 240px"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"用户状态"
clearable
size=
"small"
style=
"width: 240px"
>
<el-select
<el-option
v-for=
"dict in statusOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
/>
v-model=
"queryParams.status"
placeholder=
"用户状态"
clearable
size=
"small"
style=
"width: 240px"
>
<el-option
v-for=
"dict in statusOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"创建时间"
>
<el-form-item
label=
"创建时间"
>
<el-date-picker
v-model=
"dateRange"
size=
"small"
style=
"width: 240px"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"-"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
<el-date-picker
v-model=
"dateRange"
size=
"small"
style=
"width: 240px"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"-"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"cyan"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
type=
"cyan"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button
>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['system:user:add']"
>
新增
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['system:user:add']"
>
新增
</el-button
>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"success"
icon=
"el-icon-edit"
size=
"mini"
:disabled=
"single"
@
click=
"handleUpdate"
v-hasPermi=
"['system:user:edit']"
>
修改
</el-button>
<el-button
type=
"success"
icon=
"el-icon-edit"
size=
"mini"
:disabled=
"single"
@
click=
"handleUpdate"
v-hasPermi=
"['system:user:edit']"
>
修改
</el-button
>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
v-hasPermi=
"['system:user:remove']"
>
删除
</el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
v-hasPermi=
"['system:user:remove']"
>
删除
</el-button
>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"info"
icon=
"el-icon-upload2"
size=
"mini"
@
click=
"handleImport"
v-hasPermi=
"['system:user:import']"
>
导入
</el-button>
<el-button
type=
"info"
icon=
"el-icon-upload2"
size=
"mini"
@
click=
"handleImport"
v-hasPermi=
"['system:user:import']"
>
导入
</el-button
>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
v-hasPermi=
"['system:user:export']"
>
导出
</el-button>
<el-button
type=
"warning"
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
v-hasPermi=
"['system:user:export']"
>
导出
</el-button
>
</el-col>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
<el-table
v-loading=
"loading"
:data=
"userList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"userList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
<el-table-column
label=
"用户编号"
align=
"center"
prop=
"userId"
/>
<el-table-column
label=
"用户编号"
align=
"center"
prop=
"userId"
/>
<el-table-column
label=
"用户名称"
align=
"center"
prop=
"userName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
<el-table-column
label=
"用户昵称"
align=
"center"
prop=
"nickName"
:show-overflow-tooltip=
"true"
/>
label=
"用户名称"
<el-table-column
label=
"部门"
align=
"center"
prop=
"dept.deptName"
:show-overflow-tooltip=
"true"
/>
align=
"center"
<el-table-column
label=
"手机号码"
align=
"center"
prop=
"phonenumber"
width=
"120"
/>
prop=
"userName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"用户昵称"
align=
"center"
prop=
"nickName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"部门"
align=
"center"
prop=
"dept.deptName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"手机号码"
align=
"center"
prop=
"phonenumber"
width=
"120"
/>
<el-table-column
label=
"状态"
align=
"center"
>
<el-table-column
label=
"状态"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.status"
active-value=
"0"
inactive-value=
"1"
@
change=
"handleStatusChange(scope.row)"
></el-switch>
<el-switch
v-model=
"scope.row.status"
active-value=
"0"
inactive-value=
"1"
@
change=
"handleStatusChange(scope.row)"
></el-switch>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
width=
"160"
>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
width=
"160"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"180"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
width=
"180"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['system:user:edit']"
>
修改
</el-button>
<el-button
<el-button
v-if=
"scope.row.userId !== 1"
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:user:remove']"
>
删除
</el-button>
size=
"mini"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-key"
@
click=
"handleResetPwd(scope.row)"
v-hasPermi=
"['system:user:resetPwd']"
>
重置
</el-button>
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['system:user:edit']"
>
修改
</el-button
>
<el-button
v-if=
"scope.row.userId !== 1"
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:user:remove']"
>
删除
</el-button
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-key"
@
click=
"handleResetPwd(scope.row)"
v-hasPermi=
"['system:user:resetPwd']"
>
重置
</el-button
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<pagination
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -93,31 +263,57 @@
...
@@ -93,31 +263,57 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"归属部门"
prop=
"deptId"
>
<el-form-item
label=
"归属部门"
prop=
"deptId"
>
<treeselect
v-model=
"form.deptId"
:options=
"deptOptions"
:disable-branch-nodes=
"true"
:show-count=
"true"
placeholder=
"请选择归属部门"
/>
<treeselect
v-model=
"form.deptId"
:options=
"deptOptions"
:disable-branch-nodes=
"true"
:show-count=
"true"
placeholder=
"请选择归属部门"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"手机号码"
prop=
"phonenumber"
>
<el-form-item
label=
"手机号码"
prop=
"phonenumber"
>
<el-input
v-model=
"form.phonenumber"
placeholder=
"请输入手机号码"
maxlength=
"11"
/>
<el-input
v-model=
"form.phonenumber"
placeholder=
"请输入手机号码"
maxlength=
"11"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"邮箱"
prop=
"email"
>
<el-form-item
label=
"邮箱"
prop=
"email"
>
<el-input
v-model=
"form.email"
placeholder=
"请输入邮箱"
maxlength=
"50"
/>
<el-input
v-model=
"form.email"
placeholder=
"请输入邮箱"
maxlength=
"50"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
v-if=
"form.userId == undefined"
label=
"用户名称"
prop=
"userName"
>
<el-form-item
v-if=
"form.userId == undefined"
label=
"用户名称"
prop=
"userName"
>
<el-input
v-model=
"form.userName"
placeholder=
"请输入用户名称"
/>
<el-input
v-model=
"form.userName"
placeholder=
"请输入用户名称"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
v-if=
"form.userId == undefined"
label=
"用户密码"
prop=
"password"
>
<el-form-item
<el-input
v-model=
"form.password"
placeholder=
"请输入用户密码"
type=
"password"
/>
v-if=
"form.userId == undefined"
label=
"用户密码"
prop=
"password"
>
<el-input
v-model=
"form.password"
placeholder=
"请输入用户密码"
type=
"password"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -125,14 +321,24 @@
...
@@ -125,14 +321,24 @@
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"用户性别"
>
<el-form-item
label=
"用户性别"
>
<el-select
v-model=
"form.sex"
placeholder=
"请选择"
>
<el-select
v-model=
"form.sex"
placeholder=
"请选择"
>
<el-option
v-for=
"dict in sexOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
></el-option>
<el-option
v-for=
"dict in sexOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"状态"
>
<el-form-item
label=
"状态"
>
<el-radio-group
v-model=
"form.status"
>
<el-radio-group
v-model=
"form.status"
>
<el-radio
v-for=
"dict in statusOptions"
:key=
"dict.dictValue"
:label=
"dict.dictValue"
>
{{dict.dictLabel}}
</el-radio>
<el-radio
v-for=
"dict in statusOptions"
:key=
"dict.dictValue"
:label=
"dict.dictValue"
>
{{ dict.dictLabel }}
</el-radio
>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -141,14 +347,26 @@
...
@@ -141,14 +347,26 @@
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"岗位"
>
<el-form-item
label=
"岗位"
>
<el-select
v-model=
"form.postIds"
multiple
placeholder=
"请选择"
>
<el-select
v-model=
"form.postIds"
multiple
placeholder=
"请选择"
>
<el-option
v-for=
"item in postOptions"
:key=
"item.postId"
:label=
"item.postName"
:value=
"item.postId"
:disabled=
"item.status == 1"
></el-option>
<el-option
v-for=
"item in postOptions"
:key=
"item.postId"
:label=
"item.postName"
:value=
"item.postId"
:disabled=
"item.status == 1"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"角色"
>
<el-form-item
label=
"角色"
>
<el-select
v-model=
"form.roleIds"
multiple
placeholder=
"请选择"
>
<el-select
v-model=
"form.roleIds"
multiple
placeholder=
"请选择"
>
<el-option
v-for=
"item in roleOptions"
:key=
"item.roleId"
:label=
"item.roleName"
:value=
"item.roleId"
:disabled=
"item.status == 1"
></el-option>
<el-option
v-for=
"item in roleOptions"
:key=
"item.roleId"
:label=
"item.roleName"
:value=
"item.roleId"
:disabled=
"item.status == 1"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -156,7 +374,11 @@
...
@@ -156,7 +374,11 @@
<el-row>
<el-row>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
>
<el-form-item
label=
"备注"
>
<el-input
v-model=
"form.remark"
type=
"textarea"
placeholder=
"请输入内容"
></el-input>
<el-input
v-model=
"form.remark"
type=
"textarea"
placeholder=
"请输入内容"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -168,18 +390,40 @@
...
@@ -168,18 +390,40 @@
</el-dialog>
</el-dialog>
<!-- 用户导入对话框 -->
<!-- 用户导入对话框 -->
<el-dialog
:title=
"upload.title"
:visible
.
sync=
"upload.open"
width=
"400px"
append-to-body
>
<el-dialog
<el-upload
ref=
"upload"
:limit=
"1"
accept=
".xlsx, .xls"
:headers=
"upload.headers"
:action=
"upload.url + '?updateSupport=' + upload.updateSupport"
:disabled=
"upload.isUploading"
:on-progress=
"handleFileUploadProgress"
:on-success=
"handleFileSuccess"
:auto-upload=
"false"
drag
>
:title=
"upload.title"
:visible
.
sync=
"upload.open"
width=
"400px"
append-to-body
>
<el-upload
ref=
"upload"
:limit=
"1"
accept=
".xlsx, .xls"
:headers=
"upload.headers"
:action=
"upload.url + '?updateSupport=' + upload.updateSupport"
:disabled=
"upload.isUploading"
:on-progress=
"handleFileUploadProgress"
:on-success=
"handleFileSuccess"
:auto-upload=
"false"
drag
>
<i
class=
"el-icon-upload"
></i>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
将文件拖到此处,或
<em>
点击上传
</em>
<em>
点击上传
</em>
</div>
</div>
<div
class=
"el-upload__tip"
slot=
"tip"
>
<div
class=
"el-upload__tip"
slot=
"tip"
>
<el-checkbox
v-model=
"upload.updateSupport"
/>
是否更新已经存在的用户数据
<el-checkbox
<el-link
type=
"info"
style=
"font-size:12px"
@
click=
"importTemplate"
>
下载模板
</el-link>
v-model=
"upload.updateSupport"
/>
是否更新已经存在的用户数据
<el-link
type=
"info"
style=
"font-size:12px"
@
click=
"importTemplate"
>
下载模板
</el-link
>
</div>
<div
class=
"el-upload__tip"
style=
"color:red"
slot=
"tip"
>
提示:仅允许导入“xls”或“xlsx”格式文件!
</div>
</div>
<div
class=
"el-upload__tip"
style=
"color:red"
slot=
"tip"
>
提示:仅允许导入“xls”或“xlsx”格式文件!
</div>
</el-upload>
</el-upload>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitFileForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitFileForm"
>
确 定
</el-button>
...
@@ -199,15 +443,15 @@ import {
...
@@ -199,15 +443,15 @@ import {
exportUser
,
exportUser
,
resetUserPwd
,
resetUserPwd
,
changeUserStatus
,
changeUserStatus
,
importTemplate
,
importTemplate
}
from
"@/api/system/user"
;
}
from
'@/api/system/user'
import
{
getToken
}
from
"@/utils/auth"
;
import
{
getToken
}
from
'@/utils/auth'
import
{
treeselect
}
from
"@/api/system/dept"
;
import
{
treeselect
}
from
'@/api/system/dept'
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
Treeselect
from
'@riophae/vue-treeselect'
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
import
'@riophae/vue-treeselect/dist/vue-treeselect.css'
export
default
{
export
default
{
name
:
"User"
,
name
:
'User'
,
components
:
{
Treeselect
},
components
:
{
Treeselect
},
data
()
{
data
()
{
return
{
return
{
...
@@ -226,7 +470,7 @@ export default {
...
@@ -226,7 +470,7 @@ export default {
// 用户表格数据
// 用户表格数据
userList
:
null
,
userList
:
null
,
// 弹出层标题
// 弹出层标题
title
:
""
,
title
:
''
,
// 部门树选项
// 部门树选项
deptOptions
:
undefined
,
deptOptions
:
undefined
,
// 是否显示弹出层
// 是否显示弹出层
...
@@ -248,23 +492,23 @@ export default {
...
@@ -248,23 +492,23 @@ export default {
// 表单参数
// 表单参数
form
:
{},
form
:
{},
defaultProps
:
{
defaultProps
:
{
children
:
"children"
,
children
:
'children'
,
label
:
"label"
,
label
:
'label'
},
},
// 用户导入参数
// 用户导入参数
upload
:
{
upload
:
{
// 是否显示弹出层(用户导入)
// 是否显示弹出层(用户导入)
open
:
false
,
open
:
false
,
// 弹出层标题(用户导入)
// 弹出层标题(用户导入)
title
:
""
,
title
:
''
,
// 是否禁用上传
// 是否禁用上传
isUploading
:
false
,
isUploading
:
false
,
// 是否更新已经存在的用户数据
// 是否更新已经存在的用户数据
updateSupport
:
0
,
updateSupport
:
0
,
// 设置上传的请求头部
// 设置上传的请求头部
headers
:
{
Authorization
:
"Bearer "
+
getToken
()
},
headers
:
{
Authorization
:
'Bearer '
+
getToken
()
},
// 上传的地址
// 上传的地址
url
:
process
.
env
.
VUE_APP_BASE_API
+
"/system/user/importData"
,
url
:
process
.
env
.
VUE_APP_BASE_API
+
'/system/user/importData'
},
},
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
...
@@ -273,114 +517,114 @@ export default {
...
@@ -273,114 +517,114 @@ export default {
userName
:
undefined
,
userName
:
undefined
,
phonenumber
:
undefined
,
phonenumber
:
undefined
,
status
:
undefined
,
status
:
undefined
,
deptId
:
undefined
,
deptId
:
undefined
},
},
// 表单校验
// 表单校验
rules
:
{
rules
:
{
userName
:
[
userName
:
[
{
required
:
true
,
message
:
"用户名称不能为空"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
'用户名称不能为空'
,
trigger
:
'blur'
}
],
],
nickName
:
[
nickName
:
[
{
required
:
true
,
message
:
"用户昵称不能为空"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
'用户昵称不能为空'
,
trigger
:
'blur'
}
],
],
deptId
:
[
deptId
:
[
{
required
:
true
,
message
:
"归属部门不能为空"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
'归属部门不能为空'
,
trigger
:
'blur'
}
],
],
password
:
[
password
:
[
{
required
:
true
,
message
:
"用户密码不能为空"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
'用户密码不能为空'
,
trigger
:
'blur'
}
],
],
email
:
[
email
:
[
{
required
:
true
,
message
:
"邮箱地址不能为空"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
'邮箱地址不能为空'
,
trigger
:
'blur'
},
{
{
type
:
"email"
,
type
:
'email'
,
message
:
"'请输入正确的邮箱地址"
,
message
:
"'请输入正确的邮箱地址"
,
trigger
:
[
"blur"
,
"change"
],
trigger
:
[
'blur'
,
'change'
]
}
,
}
],
],
phonenumber
:
[
phonenumber
:
[
{
required
:
true
,
message
:
"手机号码不能为空"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
'手机号码不能为空'
,
trigger
:
'blur'
},
{
{
pattern
:
/^1
[
3|4|5|6|7|8|9
][
0-9
]\d{8}
$/
,
pattern
:
/^1
[
3|4|5|6|7|8|9
][
0-9
]\d{8}
$/
,
message
:
"请输入正确的手机号码"
,
message
:
'请输入正确的手机号码'
,
trigger
:
"blur"
,
trigger
:
'blur'
}
,
}
]
,
]
}
,
}
}
;
}
},
},
watch
:
{
watch
:
{
// 根据名称筛选部门树
// 根据名称筛选部门树
deptName
(
val
)
{
deptName
(
val
)
{
this
.
$refs
.
tree
.
filter
(
val
)
;
this
.
$refs
.
tree
.
filter
(
val
)
}
,
}
},
},
created
()
{
created
()
{
this
.
getList
()
;
this
.
getList
()
this
.
getTreeselect
()
;
this
.
getTreeselect
()
this
.
getDicts
(
"sys_normal_disable"
).
then
((
response
)
=>
{
this
.
getDicts
(
'sys_normal_disable'
).
then
((
response
)
=>
{
this
.
statusOptions
=
response
.
data
;
this
.
statusOptions
=
response
.
data
})
;
})
this
.
getDicts
(
"sys_user_sex"
).
then
((
response
)
=>
{
this
.
getDicts
(
'sys_user_sex'
).
then
((
response
)
=>
{
this
.
sexOptions
=
response
.
data
;
this
.
sexOptions
=
response
.
data
})
;
})
this
.
getConfigKey
(
"sys.user.initPassword"
).
then
((
response
)
=>
{
this
.
getConfigKey
(
'sys.user.initPassword'
).
then
((
response
)
=>
{
this
.
initPassword
=
response
.
msg
;
this
.
initPassword
=
response
.
msg
})
;
})
},
},
methods
:
{
methods
:
{
/** 查询用户列表 */
/** 查询用户列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
listUser
(
this
.
addDateRange
(
this
.
queryParams
,
this
.
dateRange
)).
then
(
listUser
(
this
.
addDateRange
(
this
.
queryParams
,
this
.
dateRange
)).
then
(
(
response
)
=>
{
(
response
)
=>
{
this
.
userList
=
response
.
rows
;
this
.
userList
=
response
.
rows
this
.
total
=
response
.
total
;
this
.
total
=
response
.
total
this
.
loading
=
false
;
this
.
loading
=
false
}
}
)
;
)
},
},
/** 查询部门下拉树结构 */
/** 查询部门下拉树结构 */
getTreeselect
()
{
getTreeselect
()
{
treeselect
().
then
((
response
)
=>
{
treeselect
().
then
((
response
)
=>
{
this
.
deptOptions
=
response
.
data
;
this
.
deptOptions
=
response
.
data
})
;
})
},
},
// 筛选节点
// 筛选节点
filterNode
(
value
,
data
)
{
filterNode
(
value
,
data
)
{
if
(
!
value
)
return
true
;
if
(
!
value
)
return
true
return
data
.
label
.
indexOf
(
value
)
!==
-
1
;
return
data
.
label
.
indexOf
(
value
)
!==
-
1
},
},
// 节点单击事件
// 节点单击事件
handleNodeClick
(
data
)
{
handleNodeClick
(
data
)
{
this
.
queryParams
.
deptId
=
data
.
id
;
this
.
queryParams
.
deptId
=
data
.
id
this
.
getList
()
;
this
.
getList
()
},
},
// 用户状态修改
// 用户状态修改
handleStatusChange
(
row
)
{
handleStatusChange
(
row
)
{
let
text
=
row
.
status
===
"0"
?
"启用"
:
"停用"
;
let
text
=
row
.
status
===
'0'
?
'启用'
:
'停用'
this
.
$confirm
(
this
.
$confirm
(
'确认要"'
+
text
+
'""'
+
row
.
userName
+
'"用户吗?'
,
'确认要"'
+
text
+
'""'
+
row
.
userName
+
'"用户吗?'
,
"警告"
,
'警告'
,
{
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
'取消'
,
type
:
"warning"
,
type
:
'warning'
}
}
)
)
.
then
(
function
()
{
.
then
(
function
()
{
return
changeUserStatus
(
row
.
userId
,
row
.
status
)
;
return
changeUserStatus
(
row
.
userId
,
row
.
status
)
})
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
msgSuccess
(
text
+
"成功"
);
this
.
msgSuccess
(
text
+
'成功'
)
})
.
catch
(
function
()
{
row
.
status
=
row
.
status
===
'0'
?
'1'
:
'0'
})
})
.
catch
(
function
()
{
row
.
status
=
row
.
status
===
"0"
?
"1"
:
"0"
;
});
},
},
// 取消按钮
// 取消按钮
cancel
()
{
cancel
()
{
this
.
open
=
false
;
this
.
open
=
false
this
.
reset
()
;
this
.
reset
()
},
},
// 表单重置
// 表单重置
reset
()
{
reset
()
{
...
@@ -393,161 +637,161 @@ export default {
...
@@ -393,161 +637,161 @@ export default {
phonenumber
:
undefined
,
phonenumber
:
undefined
,
email
:
undefined
,
email
:
undefined
,
sex
:
undefined
,
sex
:
undefined
,
status
:
"0"
,
status
:
'0'
,
remark
:
undefined
,
remark
:
undefined
,
postIds
:
[],
postIds
:
[],
roleIds
:
[]
,
roleIds
:
[]
}
;
}
this
.
resetForm
(
"form"
);
this
.
resetForm
(
'form'
)
},
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
queryParams
.
page
=
1
;
this
.
queryParams
.
page
=
1
this
.
getList
()
;
this
.
getList
()
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
resetQuery
()
{
resetQuery
()
{
this
.
dateRange
=
[]
;
this
.
dateRange
=
[]
this
.
resetForm
(
"queryForm"
);
this
.
resetForm
(
'queryForm'
)
this
.
handleQuery
()
;
this
.
handleQuery
()
},
},
// 多选框选中数据
// 多选框选中数据
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
userId
)
;
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
userId
)
this
.
single
=
selection
.
length
!=
1
;
this
.
single
=
selection
.
length
!=
1
this
.
multiple
=
!
selection
.
length
;
this
.
multiple
=
!
selection
.
length
},
},
/** 新增按钮操作 */
/** 新增按钮操作 */
handleAdd
()
{
handleAdd
()
{
this
.
reset
()
;
this
.
reset
()
this
.
getTreeselect
()
;
this
.
getTreeselect
()
getUser
().
then
((
response
)
=>
{
getUser
().
then
((
response
)
=>
{
this
.
postOptions
=
response
.
posts
;
this
.
postOptions
=
response
.
posts
this
.
roleOptions
=
response
.
roles
;
this
.
roleOptions
=
response
.
roles
this
.
open
=
true
;
this
.
open
=
true
this
.
title
=
"添加用户"
;
this
.
title
=
'添加用户'
this
.
form
.
password
=
this
.
initPassword
;
this
.
form
.
password
=
this
.
initPassword
})
;
})
},
},
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
reset
()
;
this
.
reset
()
this
.
getTreeselect
()
;
this
.
getTreeselect
()
const
userId
=
row
.
userId
||
this
.
ids
;
const
userId
=
row
.
userId
||
this
.
ids
getUser
(
userId
).
then
((
response
)
=>
{
getUser
(
userId
).
then
((
response
)
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
this
.
postOptions
=
response
.
posts
;
this
.
postOptions
=
response
.
posts
this
.
roleOptions
=
response
.
roles
;
this
.
roleOptions
=
response
.
roles
this
.
form
.
postIds
=
response
.
postIds
;
this
.
form
.
postIds
=
response
.
postIds
.
map
((
e
)
=>
String
(
e
))
this
.
form
.
roleIds
=
response
.
roleIds
;
this
.
form
.
roleIds
=
response
.
roleIds
.
map
((
e
)
=>
String
(
e
))
this
.
open
=
true
;
this
.
open
=
true
this
.
title
=
"修改用户"
;
this
.
title
=
'修改用户'
this
.
form
.
password
=
""
;
this
.
form
.
password
=
''
})
;
})
},
},
/** 重置密码按钮操作 */
/** 重置密码按钮操作 */
handleResetPwd
(
row
)
{
handleResetPwd
(
row
)
{
this
.
$prompt
(
'请输入"'
+
row
.
userName
+
'"的新密码'
,
"提示"
,
{
this
.
$prompt
(
'请输入"'
+
row
.
userName
+
'"的新密码'
,
'提示'
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
'取消'
})
})
.
then
(({
value
})
=>
{
.
then
(({
value
})
=>
{
resetUserPwd
(
row
.
userId
,
value
).
then
((
response
)
=>
{
resetUserPwd
(
row
.
userId
,
value
).
then
((
response
)
=>
{
if
(
response
.
code
===
200
)
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功,新密码是:"
+
value
);
this
.
msgSuccess
(
'修改成功,新密码是:'
+
value
)
}
}
})
;
})
})
})
.
catch
(()
=>
{})
;
.
catch
(()
=>
{})
},
},
/** 提交按钮 */
/** 提交按钮 */
submitForm
:
function
()
{
submitForm
:
function
()
{
this
.
$refs
[
"form"
].
validate
((
valid
)
=>
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
userId
!=
undefined
)
{
if
(
this
.
form
.
userId
!=
undefined
)
{
updateUser
(
this
.
form
).
then
((
response
)
=>
{
updateUser
(
this
.
form
).
then
((
response
)
=>
{
if
(
response
.
code
===
200
)
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
'修改成功'
)
this
.
open
=
false
;
this
.
open
=
false
this
.
getList
()
;
this
.
getList
()
}
}
})
;
})
}
else
{
}
else
{
addUser
(
this
.
form
).
then
((
response
)
=>
{
addUser
(
this
.
form
).
then
((
response
)
=>
{
if
(
response
.
code
===
200
)
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"新增成功"
);
this
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
;
this
.
open
=
false
this
.
getList
()
;
this
.
getList
()
}
}
})
;
})
}
}
}
}
})
;
})
},
},
/** 删除按钮操作 */
/** 删除按钮操作 */
handleDelete
(
row
)
{
handleDelete
(
row
)
{
const
userIds
=
row
.
userId
||
this
.
ids
;
const
userIds
=
row
.
userId
||
this
.
ids
this
.
$confirm
(
this
.
$confirm
(
'是否确认删除用户编号为"'
+
userIds
+
'"的数据项?'
,
'是否确认删除用户编号为"'
+
userIds
+
'"的数据项?'
,
"警告"
,
'警告'
,
{
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
'取消'
,
type
:
"warning"
,
type
:
'warning'
}
}
)
)
.
then
(
function
()
{
.
then
(
function
()
{
return
delUser
(
userIds
)
;
return
delUser
(
userIds
)
})
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
getList
()
;
this
.
getList
()
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
'删除成功'
)
})
})
.
catch
(
function
()
{});
.
catch
(
function
()
{})
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
const
queryParams
=
this
.
queryParams
this
.
$confirm
(
"是否确认导出所有用户数据项?"
,
"警告"
,
{
this
.
$confirm
(
'是否确认导出所有用户数据项?'
,
'警告'
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
'取消'
,
type
:
"warning"
,
type
:
'warning'
})
})
.
then
(
function
()
{
.
then
(
function
()
{
return
exportUser
(
queryParams
)
;
return
exportUser
(
queryParams
)
})
})
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
this
.
download
(
response
.
msg
)
;
this
.
download
(
response
.
msg
)
})
})
.
catch
(
function
()
{});
.
catch
(
function
()
{})
},
},
/** 导入按钮操作 */
/** 导入按钮操作 */
handleImport
()
{
handleImport
()
{
this
.
upload
.
title
=
"用户导入"
;
this
.
upload
.
title
=
'用户导入'
this
.
upload
.
open
=
true
;
this
.
upload
.
open
=
true
},
},
/** 下载模板操作 */
/** 下载模板操作 */
importTemplate
()
{
importTemplate
()
{
importTemplate
().
then
((
response
)
=>
{
importTemplate
().
then
((
response
)
=>
{
this
.
download
(
response
.
msg
)
;
this
.
download
(
response
.
msg
)
})
;
})
},
},
// 文件上传中处理
// 文件上传中处理
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
this
.
upload
.
isUploading
=
true
;
this
.
upload
.
isUploading
=
true
},
},
// 文件上传成功处理
// 文件上传成功处理
handleFileSuccess
(
response
,
file
,
fileList
)
{
handleFileSuccess
(
response
,
file
,
fileList
)
{
this
.
upload
.
open
=
false
;
this
.
upload
.
open
=
false
this
.
upload
.
isUploading
=
false
;
this
.
upload
.
isUploading
=
false
this
.
$refs
.
upload
.
clearFiles
()
;
this
.
$refs
.
upload
.
clearFiles
()
this
.
$alert
(
response
.
msg
,
"导入结果"
,
{
dangerouslyUseHTMLString
:
true
});
this
.
$alert
(
response
.
msg
,
'导入结果'
,
{
dangerouslyUseHTMLString
:
true
})
this
.
getList
()
;
this
.
getList
()
},
},
// 提交上传文件
// 提交上传文件
submitFileForm
()
{
submitFileForm
()
{
this
.
$refs
.
upload
.
submit
();
},
},
};
</
script
>
\ No newline at end of file
\ No newline at end of file
this
.
$refs
.
upload
.
submit
()
}
}
}
</
script
>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment