Commit a5a9009c by xinla

Merge branch 'front_end_dev_1.5'

2 parents 515e0d41 f4391e9f
......@@ -2,5 +2,5 @@
ENV = 'development'
# 基础api(根据实际情况,自行配置,下为示例)
VUE_APP_BASE_API = 'http://demo.linkwechat.cn'
VUE_APP_BASE_API = 'http://demo.linkwechat.cn/api'
/***
* @file:
* @author: qi.yeqing
* @Date: 2021-05-25 11:19:34
*/
import request from '@/utils/request'
const service = window.CONFIG.services.wecom + '/sensitive'
......@@ -79,7 +84,7 @@ export function deleteSensitive(tableId) {
*/
export function getSensitiveRecord(params) {
return request({
url: service + '/act/hit/list',
url: service + '/list',
method: 'get',
params,
})
......
......@@ -5,17 +5,17 @@
<el-tab-pane label="敏感记录" name="1">
<el-table :data="recordSensitive" stripe style="width: 100%"
:header-cell-style="{background:'#fff'}">
<el-table-column prop="operator" label="操作员工">
<el-table-column prop="createBy" label="操作员工">
</el-table-column>
<el-table-column prop="operateTarget" label="操作对象">
<el-table-column prop="auditUserName" label="操作对象">
</el-table-column>
<el-table-column prop="sensitiveAct" label="敏感行为">
<el-table-column prop="patternWords" label="敏感行为">
</el-table-column>
<el-table-column prop="updateTime" label="操作时间">
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
v-show="recordPageTotal > 0"
:total="recordPageTotal"
:page.sync="recordPageConfig.pageNum"
:limit.sync="recordPageConfig.pageSize"
......@@ -66,7 +66,6 @@ export default {
},
mounted() {
this.getSensiveRecordList()
this.getSensitiveManagementList()
},
methods: {
getSensiveRecordList() {
......@@ -89,7 +88,12 @@ export default {
console.log(e)
},
handleClick(tab, event) {
console.log(tab, event)
console.log(this.activeName==='2')
if(this.activeName==='2'){
this.getSensitiveManagementList()
}else{
this.getSensiveRecordList()
}
}
}
}
......
......@@ -173,7 +173,8 @@ export default {
selectedUser(list) {
// console.log(list)
this.queryUser = list
this.form.scopeType = list.map((d) => d.department) + ''
this.form.scopeType = 2; //list.map((d) => d.department) + ''
console.log(list,'scopeType')
this.form.auditScopeId = list.map((d) => d.userId) + ''
this.getSensitiveList()
},
......
......@@ -99,7 +99,7 @@
<div class="sub-title">匹配词间用逗号隔开</div>
</el-form-item>
<el-form-item label="审计范围" :required="true" :error="rangeErrorMsg">
<div class="tag-input" @click="openAuditUserRange">
<div class="tag-input" style="width:auto;" @click="openAuditUserRange">
<span class="tag-place" v-if="!auditUserRange.length"
>请选择<span class="prompt-title"
>若不选择,则默认全体成员</span
......@@ -116,7 +116,7 @@
</div>
</el-form-item>
<el-form-item label="审计人" :required="true" :error="errorMsg">
<div class="tag-input" @click="openAuditUser">
<div class="tag-input" style="width:auto;" @click="openAuditUser">
<span class="tag-place" v-if="!auditUser.length"
>请选择<span class="prompt-title">请选择部门负责人</span></span
>
......@@ -237,7 +237,7 @@ export default {
const params = this.addForm
let auditUserScope = []
const obj = {
scopeType: this.auditUserRange.map((d) => d.department) + '',
scopeType:2,// this.auditUserRange.map((d) => d.department) + '',
auditScopeId: this.auditUserRange.map((d) => d.userId) + '',
auditScopeName: this.auditUserRange.map((d) => d.name) + '',
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!