Commit de5bf8f4 by 匡雅琴

Merge branch 'huy_dev_v2.7.0' into 'v2.7.0'

Huy dev v2.7.0

See merge request !7
2 parents da1f09ab 3069d2bc
This diff could not be displayed because it is too large.
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.4.2",
"glsx-components": "^1.4.6",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-amap": "^0.5.10",
......
......@@ -26,8 +26,9 @@
</div>
<img src="./assets/logo.png" alt="" srcset="" />
</div> -->
<!-- <keep-alive exclude="viewConfig"> -->
<router-view />
<!-- </keep-alive> -->
</div>
</template>
......
......@@ -53,7 +53,8 @@ const transferLicenseAccount = params => {
url: 'rop-scrm-wechat/router',
method: 'post',
data: params,
sign: true
sign: true,
returnAll: true
})
}
......
......@@ -70,4 +70,18 @@ $base-color: '#5850FF';
.dot6 {
background-color: #5850FF;
}
}
\ No newline at end of file
}
.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 @@
import Vue from 'vue'
import { message } from '@/plugins/element.js'
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 ElementUI from 'element-ui'
import 'glsx-components/dist/glsx-components.css'
......@@ -23,6 +23,7 @@ Vue.use(GLTable)
Vue.use(GLCombiForm)
Vue.use(GLFooter)
Vue.use(GLTableButton)
Vue.use(GLDialog)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, sign_common, secret, request_common } = await fetchConfig(true) //globalState.configSwitch
Vue.prototype.$history = history
......@@ -30,7 +31,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$globalState = globalState
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_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
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData)
......
......@@ -10,7 +10,7 @@
<div class="container">
<div class="container-header">
<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" />
</el-popover>
</div>
......@@ -89,7 +89,7 @@ export default {
name: 'merchantId',
type: 'input',
isClear: true,
placeholder: '输入关键字搜索',
placeholder: '请输入商户号',
listeners: {
input: value => {
this.searchForm.condition.merchantId = value.replace(/[^\d]/g, '')
......@@ -102,7 +102,8 @@ export default {
tableColumns: [
{
label: '商户号',
prop: 'merchantId'
prop: 'merchantId',
width: '120'
},
{
label: '商户名称',
......@@ -111,7 +112,8 @@ export default {
},
{
label: '关联企业微信名称',
prop: 'corpFullName'
prop: 'corpFullName',
width: '300'
},
{
label: '是否已购许可',
......@@ -166,7 +168,8 @@ export default {
return '一键激活许可'
},
attrs: {
type: 'text'
type: 'text',
loading: this.loading
},
listeners: {
click: row => this.handelActivate(row)
......@@ -216,14 +219,28 @@ export default {
}
this.$apis.accountConfig.activeAccount(params).then(res => {
this.loading = false
if (res.code == -1) {
var txt = '<i class="el-icon-success" style="color:#2CCA74;font-size:48px;"></i><p>已激活&nbsp;' + `${res.data ? res.data : 0}` + '&nbsp;个</p>'
this.$confirm(txt, '提示', {
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.$alert(txt, '提示', {
confirmButtonText: '我知道了',
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 {
</script>
<style lang="scss" scoped>
/deep/ .el-button .el-button--default .el-button--small .el-button--primary .confirmbtn {
color: red !important;
}
.container {
.table-box {
margin: 20px 0;
......@@ -270,7 +290,9 @@ export default {
border: 1px solid #5850ff;
}
}
/deep/.el-table th > .cell {
padding: 0 16px;
/deep/ {
.el-table th > .cell {
padding: 0 16px;
}
}
</style>
......@@ -25,7 +25,7 @@
</GLTable>
</div>
</div>
<el-dialog class="trans-dia" title="帐号接口许可转移" :visible.sync="dialogTransferVisible" width="50%" :before-close="handleClose">
<GLDialog class="trans-dia" title="帐号接口许可转移" :visible.sync="dialogTransferVisible">
<el-form :model="transferForm">
<el-form-item label="转移员工:">
<el-select @change="selectTransferStaff" v-model="transferForm.staff" filterable :size="size" placeholder="请选择或输入关键字搜索">
......@@ -38,7 +38,7 @@
<el-button :size="size" @click="handleClose">取消</el-button>
<el-button :size="size" type="primary" @click="transferCount">提交</el-button>
</span>
</el-dialog>
</GLDialog>
</div>
</template>
......@@ -186,12 +186,15 @@ export default {
this.dialogTransferVisible = true
this.notActiveStaffList = res.data
} else {
var txt = '<i class="el-icon-warning" style="color:#e6a23c;font-size:48px;"></i><p>无可用的用户转移</p>'
this.$confirm(txt, '提示', {
// var txt = '<i class="el-icon-warning" style="color:#e6a23c;font-size:48px;"></i><p>无可用的用户转移</p>'
this.$confirm('无可用的用户转移', '提示', {
confirmButtonText: '我知道了',
dangerouslyUseHTMLString: true,
showClose: true,
showCancelButton: false
showCancelButton: false,
confirmButtonClass: 'confirmbtn',
type: 'warning',
customClass: 'gl-message-box confirm-btn'
})
}
})
......@@ -210,14 +213,23 @@ export default {
params.handoverUserid = this.handoverUserid
params.takeoverUserid = this.takeoverUserid
this.$apis.accountConfig.transferLicenseAccount(params).then(res => {
if (res) {
if (res.code == 0) {
this.$message({
message: '账号转移成功',
type: 'success'
type: 'success',
customClass: 'global-messageZindex'
})
this.getListApi()
this.dialogTransferVisible = false
this.transferForm.staff = ''
} else {
this.$message({
message: '账号转移失败,请联系管理员',
type: 'error',
customClass: 'global-messageZindex'
})
this.dialogTransferVisible = false
this.transferForm.staff = ''
}
})
},
......@@ -275,4 +287,7 @@ export default {
/deep/ .el-dialog__title {
font-weight: 600;
}
.global-messageZindex {
z-index: 3000 !important;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!