Browse Source

去除internalMsg

master
jiangyy 5 years ago
parent
commit
d6c750eae5
  1. 14
      epmet-oper-web/src/js/ajax.js
  2. 4
      epmet-oper-web/src/views/modules/customer/customize/CategoryEdit.vue
  3. 12
      epmet-oper-web/src/views/modules/customer/customize/ConfigItem.vue
  4. 310
      epmet-oper-web/src/views/modules/customer/customize/MostList.vue
  5. 4
      epmet-oper-web/src/views/modules/customer/customize/roleList.vue
  6. 4
      epmet-oper-web/src/views/modules/customer/feedback/DetailForm.vue
  7. 12
      epmet-oper-web/src/views/modules/customer/feedback/FeedbackList.vue
  8. 4
      epmet-oper-web/src/views/modules/customer/init/RegisterList.vue
  9. 8
      epmet-oper-web/src/views/modules/customer/init/TempList.vue
  10. 115
      epmet-oper-web/src/views/modules/customer/role.vue
  11. 4
      epmet-oper-web/src/views/modules/partner/app/edit.vue
  12. 4
      epmet-oper-web/src/views/modules/partner/app/index.vue
  13. 8
      epmet-oper-web/src/views/modules/productConfig/MiniDraft.vue
  14. 12
      epmet-oper-web/src/views/modules/productConfig/subscribe/MyTempList.vue
  15. 8
      epmet-oper-web/src/views/modules/productConfig/subscribe/TempEdit.vue
  16. 10
      epmet-oper-web/src/views/modules/productConfig/subscribe/TempList.vue
  17. 129
      epmet-oper-web/src/views/modules/workPc/customer-add-or-update.vue
  18. 9
      epmet-oper-web/src/views/modules/workPc/menu.vue
  19. 4
      epmet-oper-web/src/views/pages/loginWork.vue

14
epmet-oper-web/src/js/ajax.js

@ -192,11 +192,11 @@ export default {
if (data.code == 0) {
//业务成功
if (typeof cb_su === 'function') {
cb_su(data.data, data.msg + ":" + data.internalMsg)
cb_su(data.data, data.msg )
}
} else {
//业务失败
if (typeof cb_err === 'function') cb_err(data.msg + ":" + data.internalMsg, data.data)
if (typeof cb_err === 'function') cb_err(data.msg , data.data)
}
} else {
if (typeof cb_err === 'function') cb_err(res)
@ -260,11 +260,11 @@ export default {
if (data.code == 0) {
//业务成功
if (typeof cb_su === 'function') {
cb_su(data.data, data.msg + ":" + data.internalMsg)
cb_su(data.data, data.msg )
}
} else {
//业务失败
if (typeof cb_err === 'function') cb_err(data.msg + ":" + data.internalMsg, data.data)
if (typeof cb_err === 'function') cb_err(data.msg , data.data)
}
} else {
if (typeof cb_err === 'function') cb_err(res)
@ -293,12 +293,12 @@ export default {
if (res) {
if (res.status === 200) {
var data = res.data
cb_su(data, data.msg + ":" + data.internalMsg)
cb_su(data, data.msg )
} else {
if (typeof cb_err === 'function') cb_err(data.msg + ":" + data.internalMsg, data)
if (typeof cb_err === 'function') cb_err(data.msg , data)
}
} else {
if (typeof cb_err === 'function') cb_err(data.msg + ":" + data.internalMsg, data)
if (typeof cb_err === 'function') cb_err(data.msg , data)
}
})
.catch((err) => {

4
epmet-oper-web/src/views/modules/customer/customize/CategoryEdit.vue

@ -156,7 +156,7 @@ export default {
}
}
const { data, code, msg, internalMsg } = await requestPost(this.url, params)
const { data, code, msg } = await requestPost(this.url, params)
if (code === 0) {
this.$message({
type: 'success',
@ -168,7 +168,7 @@ export default {
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
},
handleClose () {

12
epmet-oper-web/src/views/modules/customer/customize/ConfigItem.vue

@ -515,7 +515,7 @@ export default {
const url = "/epmetuser/govstaffrole/resigovrolelist"
// const url = "https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/epmetuser/govstaffrole/resigovrolelist"
const params = {}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.roleList = data
this.roleAllList = this.activeName === 'resi' ? data.resiRoleList : data.govRoleList
@ -523,7 +523,7 @@ export default {
this.roleCheckedArray.push(item.roleKey)
})
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.endLoading()
},
@ -681,7 +681,7 @@ export default {
const url = "/oper/customize/customerfunctionrole/customerfunctionrolelist"
// this.upOrDownForm.roleList = roleList
const { data, code, msg, internalMsg } = await requestPost(url, this.upOrDownForm)
const { data, code, msg } = await requestPost(url, this.upOrDownForm)
if (code === 0) {
@ -704,7 +704,7 @@ export default {
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.endLoading()
@ -735,13 +735,13 @@ export default {
// const url = "https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/customerfunctionrole/savecustomerfunctionrole"
// this.upOrDownForm.roleList = roleList
const { data, code, msg, internalMsg } = await requestPost(url, this.upOrDownForm)
const { data, code, msg } = await requestPost(url, this.upOrDownForm)
if (code === 0) {
this.$message.success('操作成功')
this.upOrDownDia.visible = false
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.endLoading()
},

310
epmet-oper-web/src/views/modules/customer/customize/MostList.vue

@ -7,52 +7,63 @@
<div class="line">项目外部系统流转设置</div>
</div>
<div class="h-right">
<button class="h-right-two" @click="saveSys">保存设置</button>
<button class="h-right-one" @click="resetSys">恢复默认</button>
<el-button class="diaCancel" @click="diaCancel()">取消返回</el-button>
<button class="h-right-two"
@click="saveSys">保存设置</button>
<button class="h-right-one"
@click="resetSys">恢复默认</button>
<el-button class="diaCancel"
@click="diaCancel()">取消返回</el-button>
</div>
</el-tag>
<div class="mh-child">
<el-tag class="set-overtime">项目外部系统流转</el-tag>
<el-switch
v-model="sendProjectSwitch"
active-text="开启"
inactive-text="关闭"
element
style="width: 200px"
>
<el-switch v-model="sendProjectSwitch"
active-text="开启"
inactive-text="关闭"
element
style="width: 200px">
</el-switch>
</div>
<div v-if="selectSys.length > 0" class="mh-child" style="display: flex;">
<div v-if="selectSys.length > 0"
class="mh-child"
style="display: flex;">
<el-tag class="set-overtime">已选外部系统</el-tag>
<div class="sys-list">
<div v-for="(item, index) in selectSys" :key="item.platformId" class="sys-list-item">
<div v-for="(item, index) in selectSys"
:key="item.platformId"
class="sys-list-item">
<img :src="item.icon" />
<span>{{ item.platformName }}</span>
<el-button type="text" size="small" @click="handleEditSys(item)">编辑</el-button>
<el-button type="text" style="color: red;" size="small" @click="handleSysDel(item, index)" >删除</el-button>
<el-button type="text"
size="small"
@click="handleEditSys(item)">编辑</el-button>
<el-button type="text"
style="color: red;"
size="small"
@click="handleSysDel(item, index)">删除</el-button>
</div>
</div>
</div>
<div class="mh-child">
<el-tag class="set-overtime">外部系统</el-tag>
<el-select v-model="sysOptions" multiple placeholder="请选择" @remove-tag="handlesysTag" @change="handleSys" class="overtime-input">
<el-option
v-for="item in sysList"
:key="item.platformId"
:label="item.platformName"
:value="item.platformId"
>
<el-select v-model="sysOptions"
multiple
placeholder="请选择"
@remove-tag="handlesysTag"
@change="handleSys"
class="overtime-input">
<el-option v-for="item in sysList"
:key="item.platformId"
:label="item.platformName"
:value="item.platformId">
</el-option>
</el-select>
<el-tag
style="
<el-tag style="
font-size: 14px;
background-color: white;
border: white;
color: black;
"
>可多选</el-tag>
">可多选</el-tag>
</div>
<!-- 项目滞留超期提醒 -->
@ -61,100 +72,78 @@
<div class="line">项目滞留超期提醒</div>
</div>
<div class="h-right">
<button class="h-right-two" @click="saveRemind()">保存设置</button>
<button class="h-right-one" @click="defaultRemind()">恢复默认</button>
<button class="h-right-two"
@click="saveRemind()">保存设置</button>
<button class="h-right-one"
@click="defaultRemind()">恢复默认</button>
</div>
</el-tag>
<el-form
:inline="false"
:model="remindForm"
ref="remindForm"
:label-width="'200px'"
>
<el-form-item
class="mh-child"
label="设定核算单位天/日起止时间:"
prop="startTime"
>
<el-time-picker
class="overtime-input"
arrow-control
prefix-icon="el-icon-date"
v-model="remindForm.startTime"
:picker-options="{
<el-form :inline="false"
:model="remindForm"
ref="remindForm"
:label-width="'200px'">
<el-form-item class="mh-child"
label="设定核算单位天/日起止时间:"
prop="startTime">
<el-time-picker class="overtime-input"
arrow-control
prefix-icon="el-icon-date"
v-model="remindForm.startTime"
:picker-options="{
selectableRange: '00:00:00' + '-' + '23:59:59'
}"
placeholder="任意时间点"
value-format="HH:mm:ss"
>
placeholder="任意时间点"
value-format="HH:mm:ss">
</el-time-picker>
<span style="padding: 20px"></span>
<el-time-picker
class="overtime-input"
arrow-control
prefix-icon="el-icon-date"
v-model="remindForm.endTime"
:picker-options="{
<el-time-picker class="overtime-input"
arrow-control
prefix-icon="el-icon-date"
v-model="remindForm.endTime"
:picker-options="{
selectableRange: remindForm.startTime + '-' + '23:59:59'
}"
placeholder="任意时间点"
value-format="HH:mm:ss"
>
placeholder="任意时间点"
value-format="HH:mm:ss">
</el-time-picker>
</el-form-item>
<el-form-item
class="mh-child"
label="设定滞留超期时间:"
prop="detentionDays"
>
<el-input-number
class="overtime-input"
v-model="remindForm.detentionDays"
></el-input-number>
<el-form-item class="mh-child"
label="设定滞留超期时间:"
prop="detentionDays">
<el-input-number class="overtime-input"
v-model="remindForm.detentionDays"></el-input-number>
<span style="padding: 25px">/</span>
<el-select
v-model="remindForm.calculation"
placeholder="请选择"
class="overtime-input"
>
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
>
<el-select v-model="remindForm.calculation"
placeholder="请选择"
class="overtime-input">
<el-option v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<!-- 设定即将超期时间提醒 -->
<el-form-item
class="mh-child"
label="设定即将超期时间提醒:"
prop="remindTime"
>
<el-input-number
class="overtime-input"
v-model="remindForm.remindTime"
></el-input-number>
<el-form-item class="mh-child"
label="设定即将超期时间提醒:"
prop="remindTime">
<el-input-number class="overtime-input"
v-model="remindForm.remindTime"></el-input-number>
<span style="padding: 25px">单位天</span>
</el-form-item>
<!-- 统一定时消息推送时间 -->
<el-form-item
class="mh-child"
label="统一定时消息推送时间:"
prop="pushTime"
>
<el-time-select
class="overtime-input"
v-model="remindForm.pushTime"
:picker-options="{
<el-form-item class="mh-child"
label="统一定时消息推送时间:"
prop="pushTime">
<el-time-select class="overtime-input"
v-model="remindForm.pushTime"
:picker-options="{
start: '00:00',
step: '00:5',
end: '23:59'
}"
placeholder="选择时间"
>
placeholder="选择时间">
</el-time-select>
</el-form-item>
</el-form>
@ -165,28 +154,24 @@
<div class="line">议题发布前经网络员审核</div>
</div>
<div class="h-right">
<button class="h-right-two" @click="saveReview()">保存设置</button>
<button class="h-right-one" @click="defaultReview()">恢复默认</button>
<button class="h-right-two"
@click="saveReview()">保存设置</button>
<button class="h-right-one"
@click="defaultReview()">恢复默认</button>
</div>
</el-tag>
<el-form
:inline="false"
:model="reviewForm"
ref="reviewForm"
:label-width="'200px'"
>
<el-form-item
class="mh-child"
label="议题发布前经网络员审核:"
prop="auditSwitch"
>
<el-switch
v-model="auditSwitchShow"
active-text="开启"
inactive-text="关闭"
class="overtime-input"
>
<el-form :inline="false"
:model="reviewForm"
ref="reviewForm"
:label-width="'200px'">
<el-form-item class="mh-child"
label="议题发布前经网络员审核:"
prop="auditSwitch">
<el-switch v-model="auditSwitchShow"
active-text="开启"
inactive-text="关闭"
class="overtime-input">
</el-switch>
</el-form-item>
</el-form>
@ -198,35 +183,30 @@
</div>
<div class="h-right">
<button class="h-right-two">保存设置</button>
<button class="h-right-one" @click="daibanshi()">恢复默认</button>
<button class="h-right-one"
@click="daibanshi()">恢复默认</button>
</div>
</el-tag>
<el-form
:inline="false"
:model="msgForm"
ref="msgForm"
:label-width="'200px'"
>
<el-form-item
class="mh-child"
label="待办事项发送短信通知:"
prop="switch"
>
<el-switch
v-model="msgForm.switchShow"
active-text="开启"
inactive-text="关闭"
class="overtime-input"
>
<el-form :inline="false"
:model="msgForm"
ref="msgForm"
:label-width="'200px'">
<el-form-item class="mh-child"
label="待办事项发送短信通知:"
prop="switch">
<el-switch v-model="msgForm.switchShow"
active-text="开启"
inactive-text="关闭"
class="overtime-input">
</el-switch>
</el-form-item>
<el-form-item class="mh-child" label="剩余短信数量:" prop="remindTime">
<el-input-number
class="overtime-input"
v-model="msgForm.remain"
></el-input-number>
<el-form-item class="mh-child"
label="剩余短信数量:"
prop="remindTime">
<el-input-number class="overtime-input"
v-model="msgForm.remain"></el-input-number>
<span style="padding: 25px">单位条</span>
</el-form-item>
</el-form>
@ -241,23 +221,17 @@
<button class="h-right-one">恢复默认</button>
</div>
</el-tag>
<el-form
:inline="false"
:model="groupForm"
ref="groupForm"
:label-width="'200px'"
>
<el-form-item
class="mh-child"
label="新建小组进组需小组审核:"
prop="switch"
>
<el-switch
v-model="reviewForm.switchShow"
active-text="开启"
inactive-text="关闭"
class="overtime-input"
>
<el-form :inline="false"
:model="groupForm"
ref="groupForm"
:label-width="'200px'">
<el-form-item class="mh-child"
label="新建小组进组需小组审核:"
prop="switch">
<el-switch v-model="reviewForm.switchShow"
active-text="开启"
inactive-text="关闭"
class="overtime-input">
</el-switch>
</el-form-item>
</el-form>
@ -273,7 +247,7 @@
</div>
</el-tag>
<editSys ref="edit-sys" />
<editSys ref="edit-sys" />
</div>
</template>
@ -434,11 +408,11 @@ export default {
const params = {
customerId: this.customerId
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.remindForm = data
} else {
this.$message.error(msg + ':' + internalMsg)
this.$message.error(msg)
}
},
@ -451,7 +425,7 @@ export default {
const params = {
customerId: this.customerId
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.reviewForm = data
if (data.auditSwitch === 'open') {
@ -460,7 +434,7 @@ export default {
this.auditSwitchShow = false
}
} else {
this.$message.error(msg + ':' + internalMsg)
this.$message.error(msg)
}
},
@ -474,11 +448,11 @@ export default {
customerId: this.customerId,
...this.remindForm
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.$message.success('保存成功')
} else {
this.$message.error(msg + ':' + internalMsg)
this.$message.error(msg)
}
this.endLoading()
},
@ -493,11 +467,11 @@ export default {
customerId: this.customerId,
...this.reviewForm
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.$message.success('保存成功')
} else {
this.$message.error(msg + ':' + internalMsg)
this.$message.error(msg)
}
this.endLoading()
},
@ -515,10 +489,10 @@ export default {
const params = {
customerId: this.customerId
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
} else {
this.$message.error(msg + ':' + internalMsg)
this.$message.error(msg)
}
},
async defaultReview () {
@ -535,10 +509,10 @@ export default {
const params = {
customerId: this.customerId
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
} else {
this.$message.error(msg + ':' + internalMsg)
this.$message.error(msg)
}
},
diaCancel () {

4
epmet-oper-web/src/views/modules/customer/customize/roleList.vue

@ -298,7 +298,7 @@ export default {
} else {
this.$message({
type: 'error',
message: res.internalMsg
message: res.msg
})
}
})
@ -340,7 +340,7 @@ export default {
} else {
this.$message({
type: 'error',
message: res.internalMsg
message: res.msg
})
}
})

4
epmet-oper-web/src/views/modules/customer/feedback/DetailForm.vue

@ -427,7 +427,7 @@ export default {
const params = {
adviceId: this.adviceId
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
// this.endLoading()
if (data) {
@ -439,7 +439,7 @@ export default {
}
}
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.endLoading()
},

12
epmet-oper-web/src/views/modules/customer/feedback/FeedbackList.vue

@ -297,7 +297,7 @@ export default {
source: this.env,
initState: 1
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
// this.endLoading()
if (data) {
@ -315,7 +315,7 @@ export default {
this.$forceUpdate()
}
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.endLoading()
@ -341,7 +341,7 @@ export default {
const params = {
customerId: this.tableParams.customerId,
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
if (data) {
@ -351,7 +351,7 @@ export default {
}
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.endLoading()
}
@ -392,7 +392,7 @@ export default {
this.dataListLoading = true
this.tableParams.appId = this.resiAppid
const { data, code, msg, internalMsg } = await requestPost(this.tableUrl, this.tableParams)
const { data, code, msg } = await requestPost(this.tableUrl, this.tableParams)
if (code === 0) {
this.total = data.total
this.tableData = data.list
@ -416,7 +416,7 @@ export default {
} else {
// this.$message.error(msg + "" + internalMsg)
// this.$message.error(msg )
}
this.dataListLoading = false
},

4
epmet-oper-web/src/views/modules/customer/init/RegisterList.vue

@ -446,7 +446,7 @@ export default {
// sync: sync
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
let resiList = []
@ -480,7 +480,7 @@ export default {
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.$refs.temp_list_resi_has.setTableLoading()
this.$refs.temp_list_resi_no.setTableLoading()

8
epmet-oper-web/src/views/modules/customer/init/TempList.vue

@ -167,13 +167,13 @@ export default {
params.workTempIdList = selList
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.$message.success('同步成功')
this.$emit('refresh')
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.endLoading()
@ -189,13 +189,13 @@ export default {
tempIdList: selList
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.$message.success('删除成功')
this.$emit('refresh')
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.endLoading()

115
epmet-oper-web/src/views/modules/customer/role.vue

@ -5,20 +5,34 @@
当前客户: {{customerName}}
<el-button type="primary" size="small" @click="handleSaveSort">保存顺序</el-button>
</div> -->
<el-table ref="roleTable" v-loading="loading1" :data="roleList" row-key="roleKey" border style="width: 100%">
<el-table-column type="index" width="50"></el-table-column>
<el-table ref="roleTable"
v-loading="loading1"
:data="roleList"
row-key="roleKey"
border
style="width: 100%">
<el-table-column type="index"
width="50"></el-table-column>
<!-- <el-table-column prop="roleId" label="角色ID"></el-table-column> -->
<el-table-column prop="roleName" label="角色名称" width="160">
<el-table-column prop="roleName"
label="角色名称"
width="160">
<template slot-scope="scope">
<el-input v-if="scope.row.isEdit" v-model="scope.row.roleName" clearable>
</el-input>
<el-input v-if="scope.row.isEdit"
v-model="scope.row.roleName"
clearable>
</el-input>
<span v-else>{{scope.row.constName}}</span>
</template>
</el-table-column>
<el-table-column v-if="!funcShow" prop="roleKey" label="角色Key"></el-table-column>
<el-table-column v-if="!funcShow"
prop="roleKey"
label="角色Key"></el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="toOperationConfig(scope.row.roleKey, scope.row.roleName)">功能权限</el-button>
<el-button type="primary"
size="mini"
@click="toOperationConfig(scope.row.roleKey, scope.row.roleName)">功能权限</el-button>
<!-- <span v-if="scope.row.isEdit" style="display: inline-block; margin-left: 10px;">
<el-button type="primary" size="small" @click="handleSaveChange(scope.row)">保存</el-button>
<el-button size="small" @click="scope.row.isEdit=false">取消</el-button>
@ -29,54 +43,64 @@
</el-table>
</el-card>
<el-dialog :visible.sync="funcShow"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="70%"
top="30px"
title="功能列表"
@closed="handleDialogClosed">
<div class="role-flex" v-if="funcShow">
:close-on-click-modal="false"
:close-on-press-escape="false"
width="70%"
top="30px"
title="功能列表"
@closed="handleDialogClosed">
<div class="role-flex"
v-if="funcShow">
<el-card class="flex1">
<div class="now-name">当前角色: {{roleName}}</div>
<div class="now-name">
<el-button type="primary" size="small" @click="saveOperations4Role">保存功能</el-button>
<el-button type="primary"
size="small"
@click="saveOperations4Role">保存功能</el-button>
</div>
<el-table
v-loading="loading2"
height="580"
ref="opeTable"
:data="opeList"
border
@select="handleSelectionChange"
>
<el-table-column type="selection" width="55"></el-table-column>
<el-table v-loading="loading2"
height="580"
ref="opeTable"
:data="opeList"
border
@select="handleSelectionChange">
<el-table-column type="selection"
width="55"></el-table-column>
<!-- <el-table-column prop="operationKey" label="操作Key"></el-table-column> -->
<el-table-column prop="operationName" label="操作名称"></el-table-column>
<el-table-column prop="operationName"
label="操作名称"></el-table-column>
<!-- <el-table-column prop="brief" label="简介"></el-table-column> -->
<el-table-column label="操作">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="toScopeConfig(scope.row.operationKey, scope.row.operationName)">范围配置</el-button>
<el-button type="primary"
size="small"
@click="toScopeConfig(scope.row.operationKey, scope.row.operationName)">范围配置</el-button>
</template>
</el-table-column>
</el-table>
</el-card>
<el-card v-show="roleShow" style="width: 250px; margin-left: 10px;">
<el-card v-show="roleShow"
style="width: 250px; margin-left: 10px;">
<div class="now-name">当前功能: {{funcName}}</div>
<div class="now-name"><el-button type="primary" size="small" @click="saveSettings">保存范围</el-button></div>
<div class="now-name">
<el-button type="primary"
size="small"
@click="saveSettings">保存范围</el-button>
</div>
<div>
<el-row :gutter="12">
<el-col v-loading="loading3">
<el-card shadow="hover">
<el-checkbox-group class="t" v-model="checkedScopes" @change="roleChange">
<el-checkbox
v-for="scope in scopeOptions"
:label="scope.scopeKey"
:key="scope.scopeKey"
>{{scope.scopeName}}</el-checkbox>
</el-checkbox-group>
</el-card>
</el-col>
</el-row>
<el-col v-loading="loading3">
<el-card shadow="hover">
<el-checkbox-group class="t"
v-model="checkedScopes"
@change="roleChange">
<el-checkbox v-for="scope in scopeOptions"
:label="scope.scopeKey"
:key="scope.scopeKey">{{scope.scopeName}}</el-checkbox>
</el-checkbox-group>
</el-card>
</el-col>
</el-row>
</div>
</el-card>
</div>
@ -133,7 +157,7 @@ export default {
if (typeof _data[n] === 'object') _data[n] = []
}
},
methods: {
methods: {
handleDialogClosed () {
this.roleName = ''
this.roleKey = ''
@ -168,7 +192,7 @@ export default {
this.loading2 = true
this.$http.post('/gov/access/config/roledefaultops/' + roleKey).then((resp) => {
this.opeList = resp.data.data
this.$nextTick(function () {
this.$nextTick(function() {
this.defaultCheck() //
})
setTimeout(() => {
@ -298,7 +322,7 @@ export default {
} else {
this.$message({
type: 'error',
message: res.internalMsg
message: res.msg
})
}
})
@ -340,7 +364,7 @@ export default {
} else {
this.$message({
type: 'error',
message: res.internalMsg
message: res.msg
})
}
})
@ -350,7 +374,8 @@ export default {
</script>
<style>
.role-container, .role-flex {
.role-container,
.role-flex {
display: flex;
}
.flex1 {

4
epmet-oper-web/src/views/modules/partner/app/edit.vue

@ -111,7 +111,7 @@ export default {
//
async queryExternalCustomerList () {
debugger
const { data, code, msg, internalMsg } = await requestPost(
const { data, code, msg } = await requestPost(
requestUrlPrefix + "/commonservice/externalcustomer/list",
{
pageNo: 1,
@ -122,7 +122,7 @@ export default {
if (code === 0) {
this.customerList = data.list;
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
},
//

4
epmet-oper-web/src/views/modules/partner/app/index.vue

@ -182,7 +182,7 @@ export default {
//
async queryExternalCustomerList () {
const { data, code, msg, internalMsg } = await requestPost(
const { data, code, msg } = await requestPost(
requestUrlPrefix + "/commonservice/externalcustomer/list",
{
pageNo: 1,
@ -193,7 +193,7 @@ export default {
if (code === 0) {
this.customerList = data.list;
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
},
//

8
epmet-oper-web/src/views/modules/productConfig/MiniDraft.vue

@ -143,7 +143,7 @@ export default {
const params = {
draftId: row.draftId
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.$message.success("操作成功")
@ -155,7 +155,7 @@ export default {
})
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.endLoading()
},
@ -178,14 +178,14 @@ export default {
const params = {
templateId: row.id
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.$message.success("操作成功")
this.getTemp()
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.endLoading()
})

12
epmet-oper-web/src/views/modules/productConfig/subscribe/MyTempList.vue

@ -105,12 +105,12 @@ export default {
appId: this.appId
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.dataList = data
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.dataListLoading = false
},
@ -141,13 +141,13 @@ export default {
tempId: row.priTmplId
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.$message.success('同步成功')
// this.loadData()
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.endLoading()
},
@ -178,13 +178,13 @@ export default {
priTmplId: row.priTmplId
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.$message.success('删除成功')
this.loadData()
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.endLoading()
},

8
epmet-oper-web/src/views/modules/productConfig/subscribe/TempEdit.vue

@ -179,7 +179,7 @@ export default {
appId: this.resiAppid,
titleId: this.dataForm.tid
}
const { data, code, msg, internalMsg } = await requestPost(url, _data)
const { data, code, msg } = await requestPost(url, _data)
if (code === 0) {
this.kidAllList = data
this.kidAllList.forEach(item => {
@ -187,7 +187,7 @@ export default {
})
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.endLoading()
},
@ -230,13 +230,13 @@ export default {
this.dataForm.kidList = this.kidSelIdList
this.dataForm.nameList = this.kidSelNameList
//console.log(this.dataForm)
const { data, code, msg, internalMsg } = await requestPost(url, this.dataForm)
const { data, code, msg } = await requestPost(url, this.dataForm)
if (code === 0) {
let clientType = this.dataForm.appId === this.resiAppid ? 'resi' : 'gov'
this.$emit('editDiaOK', clientType)
this.handleClose()
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
let clientType = this.dataForm.appId === this.resiAppid ? 'resi' : 'gov'
this.$emit('editDiaOK', clientType)
this.handleClose()

10
epmet-oper-web/src/views/modules/productConfig/subscribe/TempList.vue

@ -193,7 +193,7 @@ export default {
appId: this.resiAppid
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.categoryList = data
} else {
@ -209,7 +209,7 @@ export default {
this.tableParams.appId = this.resiAppid
const { data, code, msg, internalMsg } = await requestPost(url, this.tableParams)
const { data, code, msg } = await requestPost(url, this.tableParams)
if (code === 0) {
this.total = data.total
this.dataList = data.list
@ -227,7 +227,7 @@ export default {
})
} else {
// this.$message.error(msg + "" + internalMsg)
// this.$message.error(msg )
}
this.dataListLoading = false
},
@ -280,11 +280,11 @@ export default {
workTempIdList: this.workTempIdList,
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.$message.success('同步成功')
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
this.endLoading()
},

129
epmet-oper-web/src/views/modules/workPc/customer-add-or-update.vue

@ -2,38 +2,28 @@
<el-dialog :visible.sync="visible"
:title="'选择客户'"
:close-on-click-modal="false"
:close-on-press-escape="false">
:close-on-press-escape="false"
:top="diaTop">
<div class="customerDiv">
<div class="customerDiv"
:style="{height:diaHeight+'px'}">
<el-checkbox-group v-model="menuList">
<el-checkbox :indeterminate="isIndeterminate"
v-model="checkAll"
@change="handleCheckAllChange">全选</el-checkbox>
<el-checkbox v-for="(item,index) in customerList"
<el-checkbox-group v-model="menuListShow"
@change="handleCheckedCitiesChange">
<el-checkbox v-for="(item,index) in customerList "
:key="index"
class="customerItem"
:label="item.customerId"
@change="changeCheck($event,index)">{{item.customerName}}</el-checkbox>
:label="item.customerId">{{item.customerName}}</el-checkbox>
</el-checkbox-group>
</div>
<!-- <el-row>
<el-col :span="12">
<el-form-item size="mini"
:label="$t('role.menuList')">
<el-tree :data="menuList"
:props="{ label: 'name', children: 'children' }"
node-key="id"
ref="menuListTree"
accordion
show-checkbox>
</el-tree>
</el-form-item>
</el-col>
</el-row> -->
<template slot="footer">
<el-button @click="visible = false">{{ $t('cancel') }}</el-button>
<el-button type="primary"
@ -45,6 +35,7 @@
<script>
import { Loading } from 'element-ui' // Loading
import { requestPost } from "@/js/dai/request";
import { mapGetters } from 'vuex'
let loading //
export default {
@ -54,70 +45,101 @@ export default {
tableId: "",//id
customerList: [],//
menuList: [],//
customerIdList: [],//
menuList: [],//
menuListShow: [],//()
// deptList: [],
checkCustomerList: []
checkCustomerList: [],
isIndeterminate: true,
checkAll: false,
}
},
computed: {
diaWidth () {
return this.resolution === 'small' ? 60 : 50
},
diaHeight () {
return this.resolution === 'small' ? 350 : 600
},
diaTop () {
return this.resolution === 'small' ? '30px' : '100px'
},
...mapGetters(['clientHeight', 'resolution']),
},
methods: {
changeCheck (value, index) {
console.log(value, index)
this.$set(this.customerList[index], "check", value)
// this.customerList[index].check = value
handleCheckAllChange (val) {
// debugger
this.menuListShow = val ? this.customerIdList : [];
this.isIndeterminate = false;
},
handleCheckedCitiesChange (value) {
let checkedCount = value.length;
this.checkAll = checkedCount === this.customerIdList.length;
this.isIndeterminate = checkedCount > 0 && checkedCount < this.customerIdList.length;
},
async init (tableId) {
this.visible = true
this.tableId = tableId
this.startLoading()
// this.$refs.menuListTree.setCheckedKeys([])
// this.$refs.deptListTree.setCheckedKeys([])
this.customerList = []
this.customerIdList = []
this.menuList = []
await this.getMenuList()
this.menuListShow = []
await this.getCustomerList()
this.endLoading()
},
//
//
async getMenuList () {
// const url = "https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/access/govcustomermenu/getcustomerids"
const url = "/gov/access/govcustomermenu/getcustomerids"
const params = {
tableId: this.tableId
}
const { data, code, msg, internalMsg } = await requestPost(url, params)
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.menuList = data
this.menuList.forEach(element => {
if (this.customerIdList.indexOf(element) > -1) {
this.menuListShow.push(element)
}
});
this.handleCheckedCitiesChange(this.menuListShow)
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
},
//
async getCustomerList () {
window.app.ajax.get(
"/oper/crm/customer/getvalidcustomerlist",
{},
(data, rspMsg) => {
this.customerList = data;
// if (this.menuList.length > 0) {
this.customerList.forEach(element => {
this.customerIdList.push(element.customerId)
});
// this.customerList.forEach(item => {
// for (let i = 0; i < this.menuList.length; i++) {
// console.log(this.menuList[i])
// if (item.customerId === this.menuList[i]) {
// item.check = true
// // break
// }
// }
this.getMenuList()
// });
// }
console.log(this.customerList)
},
(rspMsg, data) => {
this.$message.error(rspMsg)
@ -129,27 +151,19 @@ export default {
this.checkCustomerList = []
// const url = "https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/access/govcustomermenu/addcustomermenu"
const url = "/gov/access/govcustomermenu/addcustomermenu"
// this.upOrDownForm.roleList = roleList
// this.customerList.forEach(element => {
// if (element.check) {
// this.checkCustomerList.push(element.customerId)
// }
// });
const parmas = {
tableId: this.tableId,
customerIds: this.menuList
customerIds: this.menuListShow
}
const { data, code, msg, internalMsg } = await requestPost(url, parmas)
const { data, code, msg } = await requestPost(url, parmas)
if (code === 0) {
this.$message.success("保存成功")
this.visible = false
} else {
this.$message.error(msg + ":" + internalMsg)
this.$message.error(msg)
}
},
@ -176,6 +190,7 @@ export default {
<style scoped>
.customerDiv {
margin-left: 100px;
overflow-y: scroll;
}
.customerItem {
display: block;

9
epmet-oper-web/src/views/modules/workPc/menu.vue

@ -14,6 +14,7 @@
:data="dataList"
row-key="id"
border
:height="tableHeight"
style="width: 100%;">
<el-table-column prop="name"
:label="$t('menu.name')"
@ -90,6 +91,7 @@
<script>
import mixinViewModule from '@/mixins/view-module'
import AddOrUpdate from './menu-add-or-update'
import { mapGetters } from 'vuex'
import CustomerAddOrUpdate from './customer-add-or-update'
export default {
mixins: [mixinViewModule],
@ -105,6 +107,13 @@ export default {
components: {
AddOrUpdate, CustomerAddOrUpdate
},
computed: {
tableHeight () {
// return this.resolution === 'small' ? this.clientHeight - 210 : this.clientHeight - 220
return this.clientHeight - 210
},
...mapGetters(['clientHeight', 'resolution']),
},
methods: {
showCustomerMenu (tableId) {
this.$refs['customerForm'].init(tableId)

4
epmet-oper-web/src/views/pages/loginWork.vue

@ -263,7 +263,7 @@ export default {
this.$http.post(`/auth/sso/oper/third/login`, this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
if (res.code == 8302) {
return this.$message.error(res.internalMsg)
return this.$message.error(res.msg)
}
return this.$message.error(res.msg)
}
@ -297,7 +297,7 @@ export default {
localStorage.setItem('userType', 'work')
Cookies.set('token', res.data.token)
this.$router.replace({ name: 'home' }).catch(()=>{})
this.$router.replace({ name: 'home' }).catch(() => { })
}).catch(() => {
})
this.endLoading()

Loading…
Cancel
Save