Commit c8033a15 by 匡雅琴

企微接入联调

1 parent 559a486f
...@@ -3085,6 +3085,16 @@ ...@@ -3085,6 +3085,16 @@
"integrity": "sha512-9RoKo841j1GQFSJz/nCXOj0sD7tHBtlowjYlrqIUS812x9/emfBLBt6IyMz1zIaYc/eRL8Cs6HPUVi2Hzq4sIg==", "integrity": "sha512-9RoKo841j1GQFSJz/nCXOj0sD7tHBtlowjYlrqIUS812x9/emfBLBt6IyMz1zIaYc/eRL8Cs6HPUVi2Hzq4sIg==",
"dev": true "dev": true
}, },
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"cliui": { "cliui": {
"version": "6.0.0", "version": "6.0.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz",
...@@ -3111,12 +3121,24 @@ ...@@ -3111,12 +3121,24 @@
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true "dev": true
}, },
"emojis-list": {
"version": "3.0.0",
"resolved": "https://registry.npmmirror.com/emojis-list/-/emojis-list-3.0.0.tgz",
"integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==",
"dev": true
},
"fast-deep-equal": { "fast-deep-equal": {
"version": "3.1.3", "version": "3.1.3",
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
"dev": true "dev": true
}, },
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true
},
"is-fullwidth-code-point": { "is-fullwidth-code-point": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
...@@ -3210,6 +3232,15 @@ ...@@ -3210,6 +3232,15 @@
"strip-ansi": "^6.0.1" "strip-ansi": "^6.0.1"
} }
}, },
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"terser-webpack-plugin": { "terser-webpack-plugin": {
"version": "2.3.8", "version": "2.3.8",
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-2.3.8.tgz", "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-2.3.8.tgz",
...@@ -3258,6 +3289,30 @@ ...@@ -3258,6 +3289,30 @@
} }
} }
}, },
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"loader-utils": {
"version": "2.0.2",
"resolved": "https://registry.npmmirror.com/loader-utils/-/loader-utils-2.0.2.tgz",
"integrity": "sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==",
"dev": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
}
}
},
"wrap-ansi": { "wrap-ansi": {
"version": "6.2.0", "version": "6.2.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
...@@ -7706,9 +7761,9 @@ ...@@ -7706,9 +7761,9 @@
} }
}, },
"glsx-components": { "glsx-components": {
"version": "1.4.6", "version": "1.5.2",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.4.6.tgz", "resolved": "https://registry.npmmirror.com/glsx-components/-/glsx-components-1.5.2.tgz",
"integrity": "sha512-U3eNKkIoyEPYe6dY/mOmN2ttPOUbpn0vx7lZ04deIQetiNjQaM8zTmBBOAgRJDpZT7VENjqQpBHTP3T7OSHx6A==", "integrity": "sha512-5/LaPu0B1uT7Kzl6oyIqyFT/NXIz2w7HNstiRtHaUQN1waSrPPPtzRRwywJg6CSSL+p994NaqPRnX696NAYzKg==",
"requires": { "requires": {
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
...@@ -7719,7 +7774,7 @@ ...@@ -7719,7 +7774,7 @@
"dependencies": { "dependencies": {
"element-ui": { "element-ui": {
"version": "2.15.9", "version": "2.15.9",
"resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.15.9.tgz", "resolved": "https://registry.npmmirror.com/element-ui/-/element-ui-2.15.9.tgz",
"integrity": "sha512-dx45nQLt4Hn87/Z9eRr3ex6KFZbxlFAwEU3QoW3wA5EsYftvHTyL9Pq7VnXXD7hu1Eiaup2jcs6kp+/VSFmXuA==", "integrity": "sha512-dx45nQLt4Hn87/Z9eRr3ex6KFZbxlFAwEU3QoW3wA5EsYftvHTyL9Pq7VnXXD7hu1Eiaup2jcs6kp+/VSFmXuA==",
"requires": { "requires": {
"async-validator": "~1.8.1", "async-validator": "~1.8.1",
...@@ -13282,7 +13337,7 @@ ...@@ -13282,7 +13337,7 @@
}, },
"sortablejs": { "sortablejs": {
"version": "1.10.2", "version": "1.10.2",
"resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.10.2.tgz", "resolved": "https://registry.npmmirror.com/sortablejs/-/sortablejs-1.10.2.tgz",
"integrity": "sha512-YkPGufevysvfwn5rfdlGyrGjt7/CRHwvRPogD/lC+TnvcN29jDpCifKP+rBqf+LRldfXSTh+0CGLcSg0VIxq3A==" "integrity": "sha512-YkPGufevysvfwn5rfdlGyrGjt7/CRHwvRPogD/lC+TnvcN29jDpCifKP+rBqf+LRldfXSTh+0CGLcSg0VIxq3A=="
}, },
"source-list-map": { "source-list-map": {
...@@ -14541,85 +14596,6 @@ ...@@ -14541,85 +14596,6 @@
} }
} }
}, },
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": 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,
"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,
"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,
"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
},
"emojis-list": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz",
"integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==",
"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
},
"loader-utils": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz",
"integrity": "sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==",
"dev": 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,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": { "vue-router": {
"version": "3.1.3", "version": "3.1.3",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.1.3.tgz", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.1.3.tgz",
...@@ -14661,7 +14637,7 @@ ...@@ -14661,7 +14637,7 @@
}, },
"vuedraggable": { "vuedraggable": {
"version": "2.24.3", "version": "2.24.3",
"resolved": "https://registry.npmjs.org/vuedraggable/-/vuedraggable-2.24.3.tgz", "resolved": "https://registry.npmmirror.com/vuedraggable/-/vuedraggable-2.24.3.tgz",
"integrity": "sha512-6/HDXi92GzB+Hcs9fC6PAAozK1RLt1ewPTLjK0anTYguXLAeySDmcnqE8IC0xa7shvSzRjQXq3/+dsZ7ETGF3g==", "integrity": "sha512-6/HDXi92GzB+Hcs9fC6PAAozK1RLt1ewPTLjK0anTYguXLAeySDmcnqE8IC0xa7shvSzRjQXq3/+dsZ7ETGF3g==",
"requires": { "requires": {
"sortablejs": "1.10.2" "sortablejs": "1.10.2"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.4.6", "glsx-components": "^1.5.2",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-amap": "^0.5.10", "vue-amap": "^0.5.10",
......
...@@ -11,15 +11,15 @@ ...@@ -11,15 +11,15 @@
let cfg = require('./conf.js') let cfg = require('./conf.js')
import { Http } from 'glsx-common' import { Http } from 'glsx-common'
let timeout = 30000 //超时时间 let timeout = 30000 //超时时间
export const fetchConfig = function (isEnv = true) { export const fetchConfig = function(isEnv = true) {
// if (isEnv) { // if (isEnv) {
// let { request } = cfg // let { request } = cfg
// Object.assign(request, { timeout }) // Object.assign(request, { timeout })
// return Promise.resolve(cfg) // return Promise.resolve(cfg)
// } // }
//return window.fetch('https://', {}).then(res => res.json()) //return window.fetch('https://', {}).then(res => res.json())
return new Http().get('https://oss-config.test.glsx.com.cn/mock/6215f98e60f415276f6dfe56/authorize/config') // return new Http().get('https://oss-config.test.glsx.com.cn/mock/6215f98e60f415276f6dfe56/authorize/config')
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6215f98e60f415276f6dfe56/authorize/config') return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6215f98e60f415276f6dfe56/authorize/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</div> </div>
<template slot="auth-button" slot-scope="scope" :data="scope.scope" v-if="scope.scope.isBuyPermit"> <template slot="auth-button" slot-scope="scope" :data="scope.scope" v-if="scope.scope.isBuyPermit">
<GLTableButton :buttonList="buttonList" :buttonItem="scope.scope"></GLTableButton> <GLTableButton :buttonList="buttonList" :buttonItem="scope.scope"></GLTableButton>
<el-button type="text" @click="viewConfig(scope.scope)">查看</el-button> <!-- <el-button type="text" @click="viewConfig(scope.scope)">查看</el-button> -->
<!-- <el-button type="text" @click="handelActivate(scope.scope)" :loading="loading">一键激活许可</el-button> --> <!-- <el-button type="text" @click="handelActivate(scope.scope)" :loading="loading">一键激活许可</el-button> -->
</template> </template>
</GLTable> </GLTable>
...@@ -54,6 +54,7 @@ export default { ...@@ -54,6 +54,7 @@ export default {
Icon, Icon,
loading: false, loading: false,
syncLoad: false, syncLoad: false,
dialogActivateVisible: false,
searchForm: { searchForm: {
isBuyPermit: '', isBuyPermit: '',
merchantId: '', merchantId: '',
...@@ -215,41 +216,17 @@ export default { ...@@ -215,41 +216,17 @@ export default {
this.$refs.accountTable.data.length ? (this.$refs.accountTable.tableHeightValues = '') : this.$refs.accountTable.setTableHeightFun() this.$refs.accountTable.data.length ? (this.$refs.accountTable.tableHeightValues = '') : this.$refs.accountTable.setTableHeightFun()
}, },
// 一键激活许可 // 一键激活许可
handelActivate(scope) { handelActivate(row) {
console.log(this.dialogActivateVisible)
// 获取当前页面
var pageInfo = {
pageSize: this.$refs.accountTable.page.pageSize,
pageNum: this.$refs.accountTable.page.pageNum
}
this.dialogActivateVisible = true this.dialogActivateVisible = true
this.$refs.activateDia.init() console.log(this.dialogActivateVisible)
// this.loading = true
// const { corpId, merchantId } = scope this.$refs.activateDia.init(row, pageInfo)
// var params = {
// corpId,
// merchantId
// }
// this.$apis.accountConfig.activeAccount(params).then(res => {
// this.loading = false
// if (res) {
// // <i class="el-icon-success" style="color:#2CCA74;font-size:48px;"></i>
// var txt = '<p>已激活&nbsp;' + `${res.data ? res.data : 0}` + '&nbsp;个</p>'
// this.$confirm(txt, '提示', {
// confirmButtonText: '我知道了',
// dangerouslyUseHTMLString: true,
// showCancelButton: false,
// confirmButtonClass: 'confirmbtn',
// type: 'success',
// customClass: 'gl-message-box confirm-btn',
// callback: action => {
// if (res.data && res.data > 0) {
// var pras = {
// pageSize: this.$refs.accountTable.page.pageSize,
// pageNum: this.$refs.accountTable.page.pageNum
// }
// this.$apis.accountConfig.listCustomizedAgentWithPage(pras).then(res => {})
// }
// }
// })
// } else {
// this.$message.error('激活失败')
// }
// })
}, },
// 同步购买订单 // 同步购买订单
handleSync() { handleSync() {
......
<template> <template>
<div> <div>
<GLDialog :mode="'big'" bigTitle="选择激活员工" :visible.sync="dialogTransferVisible"> <GLDialog :mode="'big'" :visible.sync="dialogTransferVisible" @close="closeDia">
<!-- <GLCombiForm :rowNumber="2" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> --> <!-- 自定义标题 -->
<el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent> <div slot="title">
<el-form-item label="员工姓名:"> <span class="title-left">选择转移员工</span>
<el-input v-model="searchForm.staffName" :size="size" placeholder="输入关键字搜索"></el-input> <span class="title-right">接口有效期至:{{ transferInfo.expireTime }}</span>
</el-form-item> </div>
<el-form-item label="部门:"> <div class="gl-form-min">
<el-select v-model="searchForm.department" placeholder="全部" :size="size"> <el-form :inline="true" class="member-form" :model="searchForm">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-form-item label="员工姓名:">
</el-select> <el-input v-model="searchForm.staffName" :size="size" placeholder="输入关键字搜索"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="启用状态:"> <el-form-item label="启用状态:">
<el-select v-model="searchForm.status" placeholder="全部" :size="size"> <el-select v-model="searchForm.openJoinStatus" placeholder="全部" :size="size">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" :size="size" class="gap8" @click="handleSearch">查询</el-button> <el-button type="primary" :size="size" class="gap8" @click="findNotActiveStaff">查询</el-button>
<el-button plain :size="size" class="btn-three" @click="handleReset">重置</el-button> <el-button plain :size="size" class="btn-three" @click="handleReset">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div>员工列表</div> </div>
<GLTable :getListApi="getListApi" :pageConf="pageConf" :searchForm="searchForm" v-loading="loading" ref="transferTable" :tableParams="tableParams" :tableData="tableTransferData" :noDataImg="url"> <div class="table-title">员工列表</div>
<GLTable :hasPage="false" :hasNum="false" :searchForm="searchForm" v-loading="loading" ref="transferTable" :tableParams="tableParams" :tableData="tableActiveData" :noDataImg="url">
<div slot="association" slot-scope="scope" class="association"> <div slot="association" slot-scope="scope" class="association">
<el-radio :label="scope.scope.id" v-model="associationRadio" @change.native="getCouponInfo()"></el-radio> <el-radio :label="scope.scope.id" v-model="associationRadio" @change.native="getTransferInfo()"></el-radio>
</div>
<div slot="openJoinStatusString" class="dot" slot-scope="scope">
<div :class="status[scope.scope.openJoinStatusString]"></div>
<span v-if="scope.scope.openJoinStatusString == '未开启'">未开启</span>
<span v-if="scope.scope.openJoinStatusString == '已开启'">已开启</span>
<span v-if="scope.scope.openJoinStatusString == '未授权'">未授权</span>
</div> </div>
</GLTable> </GLTable>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="closeDia">取 消</el-button>
<el-button size="small" type="primary" @click="transferStaff">确 定</el-button>
</span>
</GLDialog> </GLDialog>
</div> </div>
</template> </template>
<script> <script>
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
const status = {
未开启: 'dot3',
已开启: 'dot2',
未授权: 'dot3'
}
const options = [
{
value: 0,
label: '未开启'
},
{
value: 1,
label: '已开启'
},
{
value: 2,
label: '未授权'
}
]
export default { export default {
name: 'TransferDia', name: 'TransferDia',
data() { data() {
return { return {
url, url,
options: options,
status,
dialogTransferVisible: false, dialogTransferVisible: false,
associationRadio: '', associationRadio: '',
loading: false,
searchForm: { searchForm: {
isBuyPermit: '', openJoinStatus: '',
merchantId: '', staffName: ''
merchantName: ''
}, },
tableParams: { tableParams: {
listName: 'list', listName: 'list',
...@@ -52,6 +83,11 @@ export default { ...@@ -52,6 +83,11 @@ export default {
{ {
prop: 'association', prop: 'association',
addHtml: 'association', addHtml: 'association',
width: '50'
},
{
label: '序号',
prop: 'num',
width: '100' width: '100'
}, },
{ {
...@@ -68,61 +104,146 @@ export default { ...@@ -68,61 +104,146 @@ export default {
}, },
{ {
label: '启用状态', label: '启用状态',
prop: 'departmentName' prop: 'openJoinStatusString',
addHtml: 'openJoinStatusString'
} }
] ]
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }, tableActiveData: [],
tableTransferData: [] transferInfo: {},
selectStaff: {},
routerInfo: {}
} }
}, },
mounted() {}, mounted() {},
methods: { methods: {
init() { init(scope, routerInfo) {
console.log(scope, routerInfo)
this.transferInfo = scope
this.routerInfo = routerInfo
this.dialogTransferVisible = true this.dialogTransferVisible = true
this.listDepartmentTree(false) this.findNotActiveStaff(routerInfo)
}, },
listDepartmentTree(isFollowerStaff) { findNotActiveStaff() {
const params = { addChildrensFlag: true } const { corpId, merchantId } = this.routerInfo
// let pageSize = this.$refs.transferTable.page.pageSize
// let pageNum = this.$refs.transferTable.page.pageNum
var params = {
...JSON.parse(JSON.stringify(this.searchForm)),
corpId,
merchantId
// pageSize,
// pageNum
}
this.loading = true this.loading = true
params.isHavCustomer = true this.$apis.accountConfig.findNotActiveStaff(params).then(res => {
params.isFollowerStaff = isFollowerStaff console.log(res, '======')
this.$apis.accountConfig.listDepartmentTree(params).then(res => { if (res.code == 0) {
console.log(res) this.tableActiveData = res.data
this.loading = false let num = 0
if (res) { this.tableActiveData.forEach(item => {
// this.tableEmpData = this.getEmployee(res) item.num = ++num
// this.allTreeData = this.getEmployee(res) })
// this.currentTreeData = this.getEmployee(res) console.log(this.tableActiveData, '+++++')
// this.treeData = res this.loading = false
// this.$refs.empTable.tableHeightValues = this.tableEmpData.length ? '' : '230px'
// if (this.selectData && this.selectData.length) {
// this.selectData.forEach(item => {
// this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(item)
// })
// }
} else { } else {
this.treeData = [] this.loading = false
this.$message({
message: res.message,
type: 'error',
customClass: 'global-messageZindex'
})
} }
}) })
}, },
// 搜索框搜索
handleSearch() {
this.$refs.accountTable.refreshTable()
},
// 重置搜索框搜索 // 重置搜索框搜索
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
isBuyPermit: '', openJoinStatus: '',
merchantId: '', staffName: ''
merchantName: ''
} }
this.handleSearch() this.findNotActiveStaff()
},
// 选择转移员工
getTransferInfo() {
console.log(this.associationRadio)
let inx = this.tableActiveData.filter(value => value.id == this.associationRadio)
console.log(inx)
this.selectStaff = inx[0]
},
// 转移员工
transferStaff() {
this.loading = true
const { merchantId, corpId } = this.routerInfo
let params = {
merchantId,
corpId
}
params.handoverUserid = this.transferInfo.userid
params.takeoverUserid = this.selectStaff.userId
this.$apis.accountConfig.transferLicenseAccount(params).then(res => {
if (res.code == 0) {
this.loading = false
this.$message({
message: '账号转移成功',
type: 'success',
customClass: 'global-messageZindex'
})
this.dialogTransferVisible = false
this.$emit('transferStaff')
} else {
this.loading = false
this.$message({
message: res.message,
type: 'error',
customClass: 'global-messageZindex'
})
this.dialogTransferVisible = false
}
})
},
// 关闭转移员工弹窗
closeDia() {
this.associationRadio = ''
this.selectStaff = {}
this.dialogTransferVisible = false
} }
} }
} }
</script> </script>
<style lang="scss" scoped></style> <style lang="scss" scoped>
.table-title {
font-size: 16px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 600;
color: #333333;
line-height: 22px;
margin-bottom: 6px;
}
.title-left {
font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 600;
color: #333333;
line-height: 28px;
margin-right: 16px;
}
.title-right {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
line-height: 20px;
}
.association {
/deep/ .el-radio__label {
display: none;
}
}
.global-messageZindex {
z-index: 3000 !important;
}
</style>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<el-button :size="size" type="primary" @click="transferCount">提交</el-button> <el-button :size="size" type="primary" @click="transferCount">提交</el-button>
</span> </span>
</GLDialog> --> </GLDialog> -->
<TransferDia ref="TransferDia" :dialogTransferVisible="dialogTransferVisible"></TransferDia> <TransferDia ref="TransferDia" :dialogTransferVisible="dialogTransferVisible" @transferStaff="getListApi"></TransferDia>
</div> </div>
</template> </template>
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
// 账号许可转移弹窗 // 账号许可转移弹窗
handelTransfer(scope) { handelTransfer(scope) {
this.dialogTransferVisible = true this.dialogTransferVisible = true
this.$refs.TransferDia.init() this.$refs.TransferDia.init(scope, this.routerInfo)
// const { merchantId, corpId } = this.routerInfo // const { merchantId, corpId } = this.routerInfo
// let params = { // let params = {
// merchantId, // merchantId,
...@@ -189,9 +189,11 @@ export default { ...@@ -189,9 +189,11 @@ export default {
// this.handoverUserid = scope.userid // this.handoverUserid = scope.userid
// this.expireTime = scope.expireTime // this.expireTime = scope.expireTime
// this.$apis.accountConfig.findNotActiveStaff(params).then(res => { // this.$apis.accountConfig.findNotActiveStaff(params).then(res => {
// if (res.data) { // if (res) {
// this.dialogTransferVisible = true // this.dialogTransferVisible = true
// this.notActiveStaffList = res.data // this.$refs.TransferDia.init(scope, res.data)
// // this.notActiveStaffList = res.data
// // console.log(res.data, '+++++')
// } else { // } else {
// // var txt = '<i class="el-icon-warning" style="color:#e6a23c;font-size:48px;"></i><p>无可用的用户转移</p>' // // var txt = '<i class="el-icon-warning" style="color:#e6a23c;font-size:48px;"></i><p>无可用的用户转移</p>'
// this.$confirm('无可用的用户转移', '提示', { // this.$confirm('无可用的用户转移', '提示', {
...@@ -211,35 +213,35 @@ export default { ...@@ -211,35 +213,35 @@ export default {
this.takeoverUserid = id this.takeoverUserid = id
}, },
// 账号许可转移 // 账号许可转移
transferCount() { // transferCount() {
const { merchantId, corpId } = this.routerInfo // const { merchantId, corpId } = this.routerInfo
let params = { // let params = {
merchantId, // merchantId,
corpId // corpId
} // }
params.handoverUserid = this.handoverUserid // params.handoverUserid = this.handoverUserid
params.takeoverUserid = this.takeoverUserid // params.takeoverUserid = this.takeoverUserid
this.$apis.accountConfig.transferLicenseAccount(params).then(res => { // this.$apis.accountConfig.transferLicenseAccount(params).then(res => {
if (res.code == 0) { // if (res.code == 0) {
this.$message({ // this.$message({
message: '账号转移成功', // message: '账号转移成功',
type: 'success', // type: 'success',
customClass: 'global-messageZindex' // customClass: 'global-messageZindex'
}) // })
this.getListApi() // this.getListApi()
this.dialogTransferVisible = false // this.dialogTransferVisible = false
this.transferForm.staff = '' // this.transferForm.staff = ''
} else { // } else {
this.$message({ // this.$message({
message: '账号转移失败,请联系管理员', // message: '账号转移失败,请联系管理员',
type: 'error', // type: 'error',
customClass: 'global-messageZindex' // customClass: 'global-messageZindex'
}) // })
this.dialogTransferVisible = false // this.dialogTransferVisible = false
this.transferForm.staff = '' // this.transferForm.staff = ''
} // }
}) // })
}, // },
// 关闭弹窗 // 关闭弹窗
handleClose() { handleClose() {
this.dialogTransferVisible = false this.dialogTransferVisible = false
......
...@@ -8,11 +8,9 @@ ...@@ -8,11 +8,9 @@
--> -->
<template> <template>
<div class="container"> <div class="container">
<div class="container-header"> <div>
<span>代开发应用配置</span> <span class="container-header">代开发应用配置</span>
<el-popover placement="bottom" width="270" trigger="hover" content="提供企微代开发应用的配置管理。"> <span class="container-tip">提供企微代开发应用的配置管理</span>
<img src="@/assets/question.png" slot="reference" class="count-item-question" />
</el-popover>
</div> </div>
<div class="table-box"> <div class="table-box">
<GLCombiForm :formObj="searchForm.condition" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm :formObj="searchForm.condition" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
...@@ -166,6 +164,21 @@ export default { ...@@ -166,6 +164,21 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.container { .container {
&-header {
font-size: 20px;
font-weight: 600;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
margin-right: 12px;
}
&-tip {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
line-height: 20px;
}
.table-box { .table-box {
margin: 20px 0; margin: 20px 0;
padding: 20px; padding: 20px;
......
...@@ -9,69 +9,74 @@ ...@@ -9,69 +9,74 @@
<template> <template>
<div class="config-container"> <div class="config-container">
<div class="container-header"> <div class="config-title-top">
<span>企微自建应用配置管理</span> <span class="container-header">企微自建应用配置管理</span>
<el-popover placement="bottom" width="270" trigger="hover" content="提供企微自建应用的配置管理。"> <span class="container-tip">提供企微代开发应用的配置管理</span>
<img src="@/assets/question.png" slot="reference" class="count-item-question" />
</el-popover>
</div> </div>
<div class="config-content"> <div class="config-content">
<div class="config-list"> <div class="config-list">
<div class="config-title">使用配置</div> <div class="config-top">
<div class="config-item"> <div class="config-title">使用配置</div>
<div class="item-name">应用主页:</div> </div>
<div class="item-url"> <div class="config-item-box">
<el-input type="text" id="appHome" readonly class="url-input" v-model="configUrl.appHome"></el-input> <div class="config-item">
<span class="item-copy" @click="copyUrl('appHome')"> <div class="item-name">应用主页:</div>
复制 <div class="item-url">
<img src="@/assets/copy.png" alt="" /> <el-input type="text" id="appHome" readonly class="url-input" v-model="configUrl.appHome"></el-input>
</span> <span class="item-copy" @click="copyUrl('appHome')">
<img src="@/assets/copy.png" alt="" />
</span>
</div>
</div> </div>
</div> </div>
</div> </div>
<div class="config-list"> <div class="config-list">
<div class="config-title">消息回调</div> <div class="config-top">
<div class="config-item"> <div class="config-title">消息回调</div>
<div class="item-name">消息回调URL:</div>
<div class="item-url">
<el-input type="text" id="callbackUrl" readonly class="url-input" v-model="configUrl.callbackUrl"></el-input>
<span class="item-copy" @click="copyUrl('callbackUrl')">
复制
<img src="@/assets/copy.png" alt="" />
</span>
</div>
</div> </div>
<div class="config-item"> <div class="config-item-box">
<div class="item-name">消息回调Token:</div> <div class="config-item">
<div class="item-url"> <div class="item-name">URL:</div>
<el-input type="text" id="token" readonly class="url-input" v-model="configUrl.token"></el-input> <div class="item-url">
<span class="item-copy" @click="copyUrl('token')"> <el-input type="text" id="callbackUrl" readonly class="url-input" v-model="configUrl.callbackUrl"></el-input>
复制 <span class="item-copy" @click="copyUrl('callbackUrl')">
<img src="@/assets/copy.png" alt="" /> <img src="@/assets/copy.png" alt="" />
</span> </span>
</div>
</div> </div>
</div> <div class="config-item">
<div class="config-item"> <div class="item-name">Token:</div>
<div class="item-name">消息回调EncodingAESKey:</div> <div class="item-url">
<div class="item-url"> <el-input type="text" id="token" readonly class="url-input" v-model="configUrl.token"></el-input>
<el-input type="text" id="encodingAesKey" readonly class="url-input" v-model="configUrl.encodingAesKey"></el-input> <span class="item-copy" @click="copyUrl('token')">
<span class="item-copy" @click="copyUrl('encodingAesKey')"> <img src="@/assets/copy.png" alt="" />
复制 </span>
<img src="@/assets/copy.png" alt="" /> </div>
</span> </div>
<div class="config-item">
<div class="item-name">EncodingAESKey:</div>
<div class="item-url">
<el-input type="text" id="encodingAesKey" readonly class="url-input" v-model="configUrl.encodingAesKey"></el-input>
<span class="item-copy" @click="copyUrl('encodingAesKey')">
<img src="@/assets/copy.png" alt="" />
</span>
</div>
</div> </div>
</div> </div>
</div> </div>
<div class="config-list"> <div class="config-list">
<div class="config-title">应用菜单</div> <div class="config-top">
<div class="config-item" v-for="(item, index) in configUrl.agentMenuList" :key="index"> <div class="config-title">应用菜单</div>
<div class="item-name">{{ item.name }}:</div> </div>
<div class="item-url"> <div class="config-item-box">
<el-input type="text" :id="item.name" readonly class="url-input" v-model="item.url"></el-input> <div class="config-item" v-for="(item, index) in configUrl.agentMenuList" :key="index">
<span class="item-copy" @click="copyUrl(item.name)"> <div class="item-name">{{ item.name }}:</div>
复制 <div class="item-url">
<img src="@/assets/copy.png" alt="" /> <el-input type="text" :id="item.name" readonly class="url-input" v-model="item.url"></el-input>
</span> <span class="item-copy" @click="copyUrl(item.name)">
<img src="@/assets/copy.png" alt="" />
</span>
</div>
</div> </div>
</div> </div>
<!-- <div class="config-item"> <!-- <div class="config-item">
...@@ -130,50 +135,80 @@ export default { ...@@ -130,50 +135,80 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.config { .config {
&-title-top {
margin-bottom: 16px;
}
&-container { &-container {
margin-bottom: 64px; margin-bottom: 64px;
.container-header {
font-size: 20px;
font-weight: 600;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
margin-right: 12px;
}
.container-tip {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
line-height: 20px;
}
} }
&-content { &-content {
margin-top: 20px; // margin-top: 20px;
padding: 20px; // padding: 20px;
background-color: #fff; // background-color: #fff;
} }
&-title { &-title {
position: relative; position: relative;
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: #333333; color: #333333;
line-height: 28px; line-height: 56px;
margin-left: 16px; margin-left: 20px;
&::before { // &::before {
content: ''; // content: '';
display: inline-block; // display: inline-block;
position: absolute; // position: absolute;
left: -16px; // left: -16px;
top: 50%; // top: 50%;
transform: translateY(-50%); // transform: translateY(-50%);
width: 4px; // width: 4px;
height: 4px; // height: 4px;
background-color: #5850ff; // background-color: #5850ff;
border-radius: 50%; // border-radius: 50%;
} // }
} }
&-list { &-list {
margin-bottom: 20px; margin-bottom: 20px;
background-color: #fff;
} }
&-item { &-top {
margin-top: 20px; height: 56px;
margin-left: 16px; border-bottom: 1px solid #e5e5e5;
}
&-item-box {
padding: 32px 0;
font-weight: 400; font-weight: 400;
}
&-item {
display: flex;
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
.item-name { .item-name {
line-height: 20px; width: 154px;
line-height: 36px;
text-align: right;
color: #333333; color: #333333;
font-size: 14px; font-size: 14px;
margin-bottom: 10px;
} }
.item-url { .item-url {
position: relative; position: relative;
width: 552px; width: 432px;
// overflow-x: auto; // overflow-x: auto;
// height: 36px; // height: 36px;
// border: 1px solid #dce5ed; // border: 1px solid #dce5ed;
...@@ -185,7 +220,9 @@ export default { ...@@ -185,7 +220,9 @@ export default {
.url-input { .url-input {
/deep/ { /deep/ {
.el-input__inner { .el-input__inner {
padding-right: 66px !important; padding-right: 35px !important;
height: 36px !important;
line-height: 36px !important;
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!