Commit 367f655c by 匡雅琴

第一轮bug修复

1 parent 664b8584
This diff could not be displayed because it is too large.
...@@ -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.2", "glsx-components": "^1.4.6",
"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",
......
...@@ -26,8 +26,9 @@ ...@@ -26,8 +26,9 @@
</div> </div>
<img src="./assets/logo.png" alt="" srcset="" /> <img src="./assets/logo.png" alt="" srcset="" />
</div> --> </div> -->
<!-- <keep-alive exclude="viewConfig"> -->
<router-view /> <router-view />
<!-- </keep-alive> -->
</div> </div>
</template> </template>
......
...@@ -53,7 +53,8 @@ const transferLicenseAccount = params => { ...@@ -53,7 +53,8 @@ const transferLicenseAccount = params => {
url: 'rop-scrm-wechat/router', url: 'rop-scrm-wechat/router',
method: 'post', method: 'post',
data: params, data: params,
sign: true sign: true,
returnAll: true
}) })
} }
......
...@@ -71,3 +71,17 @@ $base-color: '#5850FF'; ...@@ -71,3 +71,17 @@ $base-color: '#5850FF';
background-color: #5850FF; background-color: #5850FF;
} }
} }
.confirm-btn {
.confirmbtn {
border-color: var(--primaryColor, #5850ff) !important;
color: #fff !important;
background-color: var(--primaryColor, #5850ff) !important;
&:hover {
background-color: #8883fd;
}
&:active {
background-color: #3a32e1;
}
}
}
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
import Vue from 'vue' import Vue from 'vue'
import { message } from '@/plugins/element.js' import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config' import { fetchConfig } from '@/config'
import { GLButton, GLTable, GLCombiForm, GLFooter, GLTableButton } from 'glsx-components' //权限按钮 (根据权限动态创建) import { GLButton, GLTable, GLCombiForm, GLFooter, GLTableButton, GLDialog } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router' import { getRoutes } from '@/router'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
import 'glsx-components/dist/glsx-components.css' import 'glsx-components/dist/glsx-components.css'
...@@ -23,6 +23,7 @@ Vue.use(GLTable) ...@@ -23,6 +23,7 @@ Vue.use(GLTable)
Vue.use(GLCombiForm) Vue.use(GLCombiForm)
Vue.use(GLFooter) Vue.use(GLFooter)
Vue.use(GLTableButton) Vue.use(GLTableButton)
Vue.use(GLDialog)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, sign_common, secret, request_common } = await fetchConfig(true) //globalState.configSwitch const { response, request, sign, sign_common, secret, request_common } = await fetchConfig(true) //globalState.configSwitch
Vue.prototype.$history = history Vue.prototype.$history = history
...@@ -30,7 +31,7 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -30,7 +31,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } }) Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData) routes = getRoutes(routesData)
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="container"> <div class="container">
<div class="container-header"> <div class="container-header">
<span>帐号接口许可</span> <span>帐号接口许可</span>
<el-popover placement="bottom" width="280" trigger="hover" content="企微代开发应用的帐号接口许可管理。"> <el-popover placement="bottom" width="280" trigger="hover" content="企微代开发应用的帐号接口许可管理">
<img src="@/assets/icon-tip.png" slot="reference" class="count-item-question" /> <img src="@/assets/icon-tip.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
</div> </div>
...@@ -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>
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
name: 'merchantId', name: 'merchantId',
type: 'input', type: 'input',
isClear: true, isClear: true,
placeholder: '输入关键字搜索', placeholder: '请输入商户号',
listeners: { listeners: {
input: value => { input: value => {
this.searchForm.condition.merchantId = value.replace(/[^\d]/g, '') this.searchForm.condition.merchantId = value.replace(/[^\d]/g, '')
...@@ -102,7 +102,8 @@ export default { ...@@ -102,7 +102,8 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '商户号', label: '商户号',
prop: 'merchantId' prop: 'merchantId',
width: '120'
}, },
{ {
label: '商户名称', label: '商户名称',
...@@ -111,7 +112,8 @@ export default { ...@@ -111,7 +112,8 @@ export default {
}, },
{ {
label: '关联企业微信名称', label: '关联企业微信名称',
prop: 'corpFullName' prop: 'corpFullName',
width: '300'
}, },
{ {
label: '是否已购许可', label: '是否已购许可',
...@@ -166,7 +168,8 @@ export default { ...@@ -166,7 +168,8 @@ export default {
return '一键激活许可' return '一键激活许可'
}, },
attrs: { attrs: {
type: 'text' type: 'text',
loading: this.loading
}, },
listeners: { listeners: {
click: row => this.handelActivate(row) click: row => this.handelActivate(row)
...@@ -216,14 +219,28 @@ export default { ...@@ -216,14 +219,28 @@ export default {
} }
this.$apis.accountConfig.activeAccount(params).then(res => { this.$apis.accountConfig.activeAccount(params).then(res => {
this.loading = false this.loading = false
if (res.code == -1) { if (res) {
var txt = '<i class="el-icon-success" style="color:#2CCA74;font-size:48px;"></i><p>已激活&nbsp;' + `${res.data ? res.data : 0}` + '&nbsp;个</p>' // <i class="el-icon-success" style="color:#2CCA74;font-size:48px;"></i>
this.$confirm(txt, '提示', { var txt = '<p>已激活&nbsp;' + `${res.data ? res.data : 0}` + '&nbsp;个</p>'
this.$alert(txt, '提示', {
confirmButtonText: '我知道了', confirmButtonText: '我知道了',
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
showClose: true, // showCancelButton: false,
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('激活失败')
} }
}) })
}, },
...@@ -245,6 +262,9 @@ export default { ...@@ -245,6 +262,9 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
/deep/ .el-button .el-button--default .el-button--small .el-button--primary .confirmbtn {
color: red !important;
}
.container { .container {
.table-box { .table-box {
margin: 20px 0; margin: 20px 0;
...@@ -270,7 +290,9 @@ export default { ...@@ -270,7 +290,9 @@ export default {
border: 1px solid #5850ff; border: 1px solid #5850ff;
} }
} }
/deep/.el-table th > .cell { /deep/ {
.el-table th > .cell {
padding: 0 16px; padding: 0 16px;
}
} }
</style> </style>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</GLTable> </GLTable>
</div> </div>
</div> </div>
<el-dialog class="trans-dia" title="帐号接口许可转移" :visible.sync="dialogTransferVisible" width="50%"> <GLDialog class="trans-dia" title="帐号接口许可转移" :visible.sync="dialogTransferVisible">
<el-form :model="transferForm"> <el-form :model="transferForm">
<el-form-item label="转移员工:"> <el-form-item label="转移员工:">
<el-select @change="selectTransferStaff" v-model="transferForm.staff" filterable :size="size" placeholder="请选择或输入关键字搜索"> <el-select @change="selectTransferStaff" v-model="transferForm.staff" filterable :size="size" placeholder="请选择或输入关键字搜索">
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<el-button :size="size" @click="handleClose">取消</el-button> <el-button :size="size" @click="handleClose">取消</el-button>
<el-button :size="size" type="primary" @click="transferCount">提交</el-button> <el-button :size="size" type="primary" @click="transferCount">提交</el-button>
</span> </span>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -184,14 +184,17 @@ export default { ...@@ -184,14 +184,17 @@ export default {
this.$apis.accountConfig.findNotActiveStaff(params).then(res => { this.$apis.accountConfig.findNotActiveStaff(params).then(res => {
if (res.data) { if (res.data) {
this.dialogTransferVisible = true this.dialogTransferVisible = true
this.notActiveStaffList = res this.notActiveStaffList = 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(txt, '提示', { this.$confirm('无可用的用户转移', '提示', {
confirmButtonText: '我知道了', confirmButtonText: '我知道了',
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
showClose: true, showClose: true,
showCancelButton: false showCancelButton: false,
confirmButtonClass: 'confirmbtn',
type: 'warning',
customClass: 'gl-message-box confirm-btn'
}) })
} }
}) })
...@@ -210,14 +213,23 @@ export default { ...@@ -210,14 +213,23 @@ export default {
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) { if (res.code == 0) {
this.$message({ this.$message({
message: '账号转移成功', message: '账号转移成功',
type: 'success' type: 'success',
customClass: 'global-messageZindex'
}) })
this.getListApi() this.getListApi()
this.dialogTransferVisible = false this.dialogTransferVisible = false
this.transferForm.staff = '' this.transferForm.staff = ''
} else {
this.$message({
message: '账号转移失败,请联系管理员',
type: 'error',
customClass: 'global-messageZindex'
})
this.dialogTransferVisible = false
this.transferForm.staff = ''
} }
}) })
}, },
...@@ -275,4 +287,7 @@ export default { ...@@ -275,4 +287,7 @@ export default {
/deep/ .el-dialog__title { /deep/ .el-dialog__title {
font-weight: 600; font-weight: 600;
} }
.global-messageZindex {
z-index: 3000 !important;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!