Commit 6d158c26 by 胡悦

Merge branch 'master' of 192.168.3.233:saas/scrm-micro-settings

2 parents e918451a 7dad7c14
......@@ -1972,8 +1972,9 @@
},
"async-validator": {
"version": "1.8.5",
"resolved": "https://registry.nlark.com/async-validator/download/async-validator-1.8.5.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fasync-validator%2Fdownload%2Fasync-validator-1.8.5.tgz",
"resolved": "https://registry.npmmirror.com/async-validator/download/async-validator-1.8.5.tgz?cache=0&sync_timestamp=1634529574100&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fasync-validator%2Fdownload%2Fasync-validator-1.8.5.tgz",
"integrity": "sha1-3D4I7B/Q3dtn5ghC8CwM0c7G1/A=",
"dev": true,
"requires": {
"babel-runtime": "6.x"
}
......@@ -2057,7 +2058,8 @@
"babel-helper-vue-jsx-merge-props": {
"version": "2.0.3",
"resolved": "https://registry.nlark.com/babel-helper-vue-jsx-merge-props/download/babel-helper-vue-jsx-merge-props-2.0.3.tgz",
"integrity": "sha1-Iq69OzOQIyjlEyk6jkmSs4T58bY="
"integrity": "sha1-Iq69OzOQIyjlEyk6jkmSs4T58bY=",
"dev": true
},
"babel-loader": {
"version": "8.0.6",
......@@ -2116,6 +2118,7 @@
"version": "6.26.0",
"resolved": "https://registry.nlark.com/babel-runtime/download/babel-runtime-6.26.0.tgz",
"integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=",
"dev": true,
"requires": {
"core-js": "^2.4.0",
"regenerator-runtime": "^0.11.0"
......@@ -2124,12 +2127,14 @@
"core-js": {
"version": "2.6.12",
"resolved": "https://registry.npmmirror.com/core-js/download/core-js-2.6.12.tgz",
"integrity": "sha1-2TM9+nsGXjR8xWgiGdb2kIWcwuw="
"integrity": "sha1-2TM9+nsGXjR8xWgiGdb2kIWcwuw=",
"dev": true
},
"regenerator-runtime": {
"version": "0.11.1",
"resolved": "https://registry.nlark.com/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz?cache=0&sync_timestamp=1626993001371&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fregenerator-runtime%2Fdownload%2Fregenerator-runtime-0.11.1.tgz",
"integrity": "sha1-vgWtf5v30i4Fb5cmzuUBf78Z4uk="
"integrity": "sha1-vgWtf5v30i4Fb5cmzuUBf78Z4uk=",
"dev": true
}
}
},
......@@ -2642,6 +2647,7 @@
"version": "1.0.2",
"resolved": "https://registry.nlark.com/call-bind/download/call-bind-1.0.2.tgz",
"integrity": "sha1-sdTonmiBGcPJqQOtMKuy9qkZvjw=",
"dev": true,
"requires": {
"function-bind": "^1.1.1",
"get-intrinsic": "^1.0.2"
......@@ -2761,7 +2767,8 @@
"charenc": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz",
"integrity": "sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc="
"integrity": "sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=",
"dev": true
},
"check-types": {
"version": "8.0.3",
......@@ -3432,7 +3439,8 @@
"crypt": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz",
"integrity": "sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs="
"integrity": "sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=",
"dev": true
},
"crypto-browserify": {
"version": "3.12.0",
......@@ -3723,7 +3731,8 @@
"deepmerge": {
"version": "1.5.2",
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz",
"integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ=="
"integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ==",
"dev": true
},
"default-gateway": {
"version": "5.0.5",
......@@ -4177,6 +4186,7 @@
"version": "2.15.6",
"resolved": "https://registry.nlark.com/element-ui/download/element-ui-2.15.6.tgz",
"integrity": "sha1-yWCa3TWvWmhqS3aF3B11fHXgHfM=",
"dev": true,
"requires": {
"async-validator": "~1.8.1",
"babel-helper-vue-jsx-merge-props": "^2.0.0",
......@@ -5666,7 +5676,8 @@
"function-bind": {
"version": "1.1.1",
"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": {
"version": "1.0.1",
......@@ -5746,6 +5757,7 @@
"version": "1.1.1",
"resolved": "https://registry.nlark.com/get-intrinsic/download/get-intrinsic-1.1.1.tgz",
"integrity": "sha1-FfWfN2+FXERpY5SPDSTNNje0q8Y=",
"dev": true,
"requires": {
"function-bind": "^1.1.1",
"has": "^1.0.3",
......@@ -5857,9 +5869,10 @@
}
},
"glsx-common": {
"version": "1.4.4",
"resolved": "https://registry.npmmirror.com/glsx-common/download/glsx-common-1.4.4.tgz",
"integrity": "sha1-WCA0gtJw5Lu60Ag9Zz/gxY65n8w=",
"version": "1.4.6",
"resolved": "https://registry.npmmirror.com/glsx-common/download/glsx-common-1.4.6.tgz",
"integrity": "sha1-9d2r/+KTOf0h4ZE6zX2luRXtgx0=",
"dev": true,
"requires": {
"axios": "^0.21.3",
"md5": "^2.3.0",
......@@ -5871,6 +5884,7 @@
"version": "0.21.4",
"resolved": "https://registry.npmmirror.com/axios/download/axios-0.21.4.tgz?cache=0&sync_timestamp=1633067660010&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Faxios%2Fdownload%2Faxios-0.21.4.tgz",
"integrity": "sha1-xnuQ3AVo5cHPKwuFjEO6KOLtpXU=",
"dev": true,
"requires": {
"follow-redirects": "^1.14.0"
}
......@@ -5878,12 +5892,14 @@
"follow-redirects": {
"version": "1.14.4",
"resolved": "https://registry.nlark.com/follow-redirects/download/follow-redirects-1.14.4.tgz?cache=0&sync_timestamp=1631622163078&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ffollow-redirects%2Fdownload%2Ffollow-redirects-1.14.4.tgz",
"integrity": "sha1-g4/fSKi73XnlLuUfsclOPtmLk3k="
"integrity": "sha1-g4/fSKi73XnlLuUfsclOPtmLk3k=",
"dev": true
},
"qs": {
"version": "6.10.1",
"resolved": "https://registry.nlark.com/qs/download/qs-6.10.1.tgz",
"integrity": "sha1-STFIL6jWR6Wqt5nFJx0hM7mB+2o=",
"dev": true,
"requires": {
"side-channel": "^1.0.4"
}
......@@ -5891,9 +5907,10 @@
}
},
"glsx-components": {
"version": "1.0.6",
"resolved": "https://registry.npmmirror.com/glsx-components/download/glsx-components-1.0.6.tgz",
"integrity": "sha1-tnrRdgyDpqwA1Ey0qT77GsKqFM4=",
"version": "1.0.8",
"resolved": "https://registry.npmmirror.com/glsx-components/download/glsx-components-1.0.8.tgz",
"integrity": "sha1-WrbF7R0J75U3UwslqKHUps3QWwo=",
"dev": true,
"requires": {
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
......@@ -5904,7 +5921,8 @@
"core-js": {
"version": "3.18.3",
"resolved": "https://registry.npmmirror.com/core-js/download/core-js-3.18.3.tgz",
"integrity": "sha1-hqC7otjsPfhg/vzAeo0Rl3nwFQk="
"integrity": "sha1-hqC7otjsPfhg/vzAeo0Rl3nwFQk=",
"dev": true
}
}
},
......@@ -5970,6 +5988,7 @@
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
"integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
"dev": true,
"requires": {
"function-bind": "^1.1.1"
}
......@@ -6000,7 +6019,8 @@
"has-symbols": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz",
"integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg=="
"integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==",
"dev": true
},
"has-unicode": {
"version": "2.0.1",
......@@ -6609,7 +6629,8 @@
"is-buffer": {
"version": "1.1.6",
"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": {
"version": "1.1.5",
......@@ -7346,6 +7367,7 @@
"version": "2.3.0",
"resolved": "https://registry.npm.taobao.org/md5/download/md5-2.3.0.tgz",
"integrity": "sha1-w9qaaq46MLRreww0m4exENw72k8=",
"dev": true,
"requires": {
"charenc": "0.0.2",
"crypt": "0.0.2",
......@@ -8038,7 +8060,8 @@
"normalize-wheel": {
"version": "1.0.1",
"resolved": "https://registry.npm.taobao.org/normalize-wheel/download/normalize-wheel-1.0.1.tgz",
"integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
"integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU=",
"dev": true
},
"npm-run-path": {
"version": "2.0.2",
......@@ -9783,7 +9806,8 @@
"resize-observer-polyfill": {
"version": "1.5.1",
"resolved": "https://registry.nlark.com/resize-observer-polyfill/download/resize-observer-polyfill-1.5.1.tgz",
"integrity": "sha1-DpAg3T0hAkRY1OvSfiPkAmmBBGQ="
"integrity": "sha1-DpAg3T0hAkRY1OvSfiPkAmmBBGQ=",
"dev": true
},
"resolve": {
"version": "1.14.1",
......@@ -10244,6 +10268,7 @@
"version": "1.1.1",
"resolved": "https://registry.npm.taobao.org/sha1/download/sha1-1.1.1.tgz",
"integrity": "sha1-rdqnqTFo85PxnrKxUJFhjicA+Eg=",
"dev": true,
"requires": {
"charenc": ">= 0.0.1",
"crypt": ">= 0.0.1"
......@@ -10283,6 +10308,7 @@
"version": "1.0.4",
"resolved": "https://registry.nlark.com/side-channel/download/side-channel-1.0.4.tgz",
"integrity": "sha1-785cj9wQTudRslxY1CkAEfpeos8=",
"dev": true,
"requires": {
"call-bind": "^1.0.0",
"get-intrinsic": "^1.0.2",
......@@ -10292,7 +10318,8 @@
"object-inspect": {
"version": "1.11.0",
"resolved": "https://registry.nlark.com/object-inspect/download/object-inspect-1.11.0.tgz?cache=0&sync_timestamp=1626120241132&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fobject-inspect%2Fdownload%2Fobject-inspect-1.11.0.tgz",
"integrity": "sha1-nc6xRs7dQUig2eUauI00z1CZIrE="
"integrity": "sha1-nc6xRs7dQUig2eUauI00z1CZIrE=",
"dev": true
}
}
},
......@@ -11088,7 +11115,8 @@
"throttle-debounce": {
"version": "1.1.0",
"resolved": "https://registry.npm.taobao.org/throttle-debounce/download/throttle-debounce-1.1.0.tgz?cache=0&sync_timestamp=1604313832516&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fthrottle-debounce%2Fdownload%2Fthrottle-debounce-1.1.0.tgz",
"integrity": "sha1-UYU9o3vmihVctugns1FKPEIuic0="
"integrity": "sha1-UYU9o3vmihVctugns1FKPEIuic0=",
"dev": true
},
"through": {
"version": "2.3.8",
......
......@@ -11,7 +11,6 @@
"axios": "^0.21.1",
"core-js": "^3.4.4",
"el-tree-transfer": "^2.2.6",
"glsx-components": "^1.0.6",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
"vuex": "^3.1.2"
......@@ -28,7 +27,8 @@
"eslint": "^5.16.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-vue": "^5.0.0",
"glsx-common": "^1.4.4",
"glsx-common": "^1.4.6",
"glsx-components": "^1.0.8",
"node-sass": "^4.14.1",
"prettier": "^1.19.1",
"sass-loader": "^8.0.0",
......
......@@ -4,7 +4,7 @@ import { fetchConfig } from '@/config'
import { GLButton, GLTable, GLExternal } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router'
import render from './render'
import 'glsx-components/dist/glsx-components.css'
import 'glsx-components/src/theme/theme.scss'
import ElementUI from 'element-ui'
let routes = []
let router = null
......
......@@ -175,8 +175,10 @@ export default {
overflow-x: hidden;
}
.bloc-info-module /deep/ .el-table__body-wrapper::-webkit-scrollbar {
display: none;
height: 1px;
width: 8px;
}
.bloc-info-module /deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {
background: #E9E8FF;
border-radius: 7px;
}
......
......@@ -42,7 +42,6 @@ export default {
}
},
created() {
console.log(this.$globalState)
const { session } = this.$globalState
this.platform = session.merchantModel
this.loginInfo = session
......@@ -60,23 +59,19 @@ export default {
item.date = `${this.dateFormat(item.starttime, 'YYYY.MM.DD')}--${this.dateFormat(item.endtime, 'YYYY.MM.DD')}`
return item
})
let aaa = this.storesList[0]
for (let i = 0; i < 30; i++) {
this.storesList.push(aaa)
}
})
},
dateFormat: function (dateTime, format = 'yyyy-MM-dd') {
const date = new Date(dateTime)
const config = {
const date = new Date(dateTime)
const config = {
YYYY: date.getFullYear(),
MM: date.getMonth()+1,//getMonth() 方法根据本地时间返回指定日期的月份(从 0 到 11)
MM: date.getMonth() + 1, //getMonth() 方法根据本地时间返回指定日期的月份(从 0 到 11)
DD: date.getDate(),
HH: date.getHours(),
mm: date.getMinutes(),
ss: date.getSeconds(),
ss: date.getSeconds()
}
for(const key in config){
for (const key in config) {
format = format.replace(key, config[key])
}
return format
......@@ -85,7 +80,7 @@ export default {
}
</script>
<style lang="scss" scoped>
.out_main{
.out_main {
box-sizing: border-box;
padding: 0 20px 64px 40px;
}
......@@ -98,8 +93,12 @@ export default {
overflow-y: scroll;
}
.base-info-index::-webkit-scrollbar {
display: none;
width: 0px;
height: 1px;
width: 8px;
}
.base-info-index::-webkit-scrollbar-thumb {
background: #e9e8ff;
border-radius: 7px;
}
.top_widget {
width: 100%;
......
......@@ -74,14 +74,15 @@ export default {
value: 'id',
label: 'label',
children: 'children',
disabled:'entmicroName'
checkStrictly: true,
disabled: 'entmicroName'
},
mypropsParam: {
label: 'departmentName',
value: 'id',
children: 'children',
checkStrictly: true,
disabled:'relevanceMerchant'
disabled: 'relevanceMerchant'
},
dataList: [],
customWidth: 113,
......@@ -111,7 +112,7 @@ export default {
merchantId: id,
merchantName: curLabel
}
this.$refs.cascaderRef1.dropDownVisible = false
},
// 获取当前选择的部门
getCurDepartment(val) {
......@@ -120,7 +121,7 @@ export default {
let curLabel = labels[labels.length - 1]
this.tempDepart = {
departmentId: ids,
departmentName: curLabel,
departmentName: curLabel
}
this.$refs.cascaderRef.dropDownVisible = false
},
......@@ -136,23 +137,23 @@ export default {
},
// 关联当前选择的
handlerGL() {
if(!this.curTempMerchant){
if (!this.curTempMerchant) {
this.$message({
message: '请选择门店/商户',
type: 'warning'
})
return;
return
}
if(!this.tempDepart){
if (!this.tempDepart) {
this.$message({
message: '请选择企微门店',
type: 'warning'
})
return;
return
}
this.curGLData = {
...this.curTempMerchant,
...this.tempDepart,
...this.tempDepart
}
let flag = false
this.dataList.forEach(item => {
......@@ -170,37 +171,59 @@ export default {
this.dataList.push(this.curGLData)
this.setBtnWidth()
},
closeCurRouter(){
closeCurRouter() {
history.go(-1)
},
// 批量关联
handleMutiGL() {
if(!this.dataList.length){
if (!this.dataList.length) {
this.$message({
message: '请选择',
type: 'warning'
})
return;
return
}
let merchantIds = []
let departmentIds = []
let departNames = []
let arrpara1 = []
let arrpara2 = []
let arrpara3 = []
this.dataList.forEach(item => {
merchantIds.push(item.merchantId)
departmentIds.push(item.departmentId)
departNames.push(item.departmentName)
})
let para = {
'list.merchantId': merchantIds,
'list.departmentId': departmentIds,
'list.departName': departNames,
}
merchantIds.forEach((item, index) => {
let keyval = `list[${index}].merchantId`
let val = item
arrpara1.push({
[keyval]: val
})
})
departmentIds.forEach((item, index) => {
let keyval = `list[${index}].departmentId`
let val = item
arrpara2.push({
[keyval]: val
})
})
departNames.forEach((item, index) => {
let keyval = `list[${index}].departName`
let val = item
arrpara3.push({
[keyval]: val
})
})
let all = [...arrpara1, ...arrpara2, ...arrpara3]
let para = Object.assign({}, ...all)
toGL(para).then(res => {
if (res) {
this.$message({
message: '操作成功',
type: 'success'
})
history.go(-1)
}
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!