Commit 609df83c by 李长胜

修改rop-scrm-entmicro接口地址

1 parent 4b167d21
import { http } from '@/main' import { http,http2 } from '@/main'
// const defaultPath = 'scrm.api.live.' // const defaultPath = 'scrm.api.live.'
//计算提示面板出现的次数,第一次显示,之后不显示 //计算提示面板出现的次数,第一次显示,之后不显示
const getLoginCount = params => { const getLoginCount = params => {
params.method = 'entmicro.api.common.findLoginCount' params.method = 'entmicro.api.common.findLoginCount'
return http({ return http2({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getServiceListApi = params => { const getServiceListApi = params => {
......
...@@ -20,4 +20,5 @@ Vue.prototype.size = 'small' ...@@ -20,4 +20,5 @@ Vue.prototype.size = 'small'
start() start()
export { bootstrap, mount, unmount } from '@/setup' export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
export const http2 = params => Vue.prototype.$http2(params)
export const http_common = params => Vue.prototype.$http_common(params) export const http_common = params => Vue.prototype.$http_common(params)
...@@ -13,7 +13,7 @@ let instance = null ...@@ -13,7 +13,7 @@ let instance = null
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, sign_common, request_common } = await fetchConfig() const { response, request,request2, sign, secret, sign_common, request_common } = await fetchConfig()
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
...@@ -21,6 +21,7 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -21,6 +21,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox Vue.prototype.$messageBox = messageBox
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.$http2 = new common.Http({ response, request:request2, 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
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] }) // Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
......
...@@ -125,7 +125,8 @@ ...@@ -125,7 +125,8 @@
<!-- :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" --> <!-- :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" -->
<glsx-dialog title="" top="30vh" :hasScroll="false" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleConfirm"> <glsx-dialog title="" top="30vh" :hasScroll="false" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<div class="content-body"> <div class="content-body">
当前有内容信息未保存,是否继续取消 <img src="@/assets/icon-warning.png" alt="" />
<div>当前有内容信息未保存,是否继续返回?</div>
</div> </div>
</glsx-dialog> </glsx-dialog>
</div> </div>
...@@ -602,22 +603,30 @@ export default { ...@@ -602,22 +603,30 @@ export default {
/deep/ .el-dialog__header{ /deep/ .el-dialog__header{
border: 0; border: 0;
} }
/deep/ .el-dialog__body{ /deep/ .el-dialog__body {
border-bottom: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6;
padding: 20px 25px; padding: 20px 25px;
.content-body{ .content-body {
height: 136px;
line-height: 121px;
font-size: 18px;
text-align: center; text-align: center;
font-weight: 400; height: 98px;
color: #333333; line-height: 26px;
div {
font-size: 16px;
color: #333333;
font-weight: 400;
font-weight: 400;
color: #333333;
}
} }
} }
/deep/ .el-dialog__footer { /deep/ .el-dialog__footer {
text-align: center; border: 0;
padding-top: 15px; text-align: center;
padding-bottom: 15px; padding-top: 15px;
} padding-bottom: 15px;
.el-button--small{
padding:8px 26px;
}
}
} }
</style> </style>
...@@ -128,7 +128,10 @@ ...@@ -128,7 +128,10 @@
</div> </div>
</glsx-dialog> </glsx-dialog>
<glsx-dialog title="" top="30vh" :hasScroll="false" class="tipDialog" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isTipDialogVisible" :showClose="false" @closeDialog="handleTipClose" @confirmDialog="handleTipConfirm"> <glsx-dialog title="" top="30vh" :hasScroll="false" class="tipDialog" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isTipDialogVisible" :showClose="false" @closeDialog="handleTipClose" @confirmDialog="handleTipConfirm">
<div class="content-body">当前有内容信息未保存,是否继续返回</div> <div class="content-body">
<img src="@/assets/icon-warning.png" alt="" />
<div>当前有内容信息未保存,是否继续返回?</div>
</div>
</glsx-dialog> </glsx-dialog>
</div> </div>
</template> </template>
...@@ -790,20 +793,27 @@ export default { ...@@ -790,20 +793,27 @@ export default {
/deep/ .el-dialog__body { /deep/ .el-dialog__body {
border-bottom: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6;
padding: 20px 25px; padding: 20px 25px;
.content-body { .content-body {
height: 136px; text-align: center;
line-height: 121px; height: 98px;
font-size: 18px; line-height: 26px;
text-align: center; div {
font-size: 16px;
color: #333333;
font-weight: 400;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
} }
} }
}
/deep/ .el-dialog__footer { /deep/ .el-dialog__footer {
border: 0; border: 0;
text-align: center; text-align: center;
padding-top: 15px; padding-top: 15px;
padding-bottom: 15px; padding-bottom: 15px;
.el-button--small{
padding:8px 26px;
}
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!