【修改】修改dataId为reportId

This commit is contained in:
zhoulingpo
2023-05-17 13:48:31 +08:00
parent 12e6b536fb
commit 616ddbd8fb
4 changed files with 46 additions and 13 deletions
+23 -9
View File
@@ -794,15 +794,29 @@ export default {
handleRemove (user, type) {
let delIndex = -1
this.checkedList.map((checkedItem, chkIndex) => {
if (user.USID === checkedItem.USID) {
delIndex = chkIndex
if (type !== 'table') {
this.checkedRow([checkedItem])
if(this.isShowOrg){
this.checkedList.map((checkedItem, chkIndex) => {
if ( user.id === checkedItem.id ) {
delIndex = chkIndex
if (type !== 'table') {
this.checkedRow([checkedItem])
}
return false
}
return false
}
})
})
}else{
this.checkedList.map((checkedItem, chkIndex) => {
if (user.USID === checkedItem.USID ) {
delIndex = chkIndex
if (type !== 'table') {
this.checkedRow([checkedItem])
}
return false
}
})
}
this.checkedList.splice(delIndex, 1)
this.checkedIdList.splice(delIndex, 1)
},
@@ -826,7 +840,7 @@ export default {
if (this.tableData[i].USID == row.USID && !this.isOrg) {
// console.log(this.tableData[i], '666')
this.$refs.orgTable && this.$refs.orgTable.toggleRowSelection(this.tableData[i])
}else if (this.tableData[i].id == row.id&& this.isOrg){
}else if (this.tableData[i].id == row.id && this.isOrg){
this.$refs.orgTable && this.$refs.orgTable.toggleRowSelection(this.tableData[i])
}
+10 -1
View File
@@ -136,10 +136,19 @@ export default {
})
return
}else{
let routeList=menu.map(item=> item.href)
let params
if(routeList.indexOf('/report/list')>-1){
params={ path: '/report/list', query: { id: 'AEHJB8YNJ3' }}
}else if(routeList.indexOf('/report/manager')>-1){
params={ path: '/report/manager', query: { id: 'AEHJB8YNJ3' }}
}else if(routeList.indexOf('/userCenter/processCenter')>-1){
params={ path: '/userCenter/processCenter', query: { id: 'AEHJB8YNJ3' }}
}
this.$message.success('登录成功')
this.getMarket().then((resx)=>{
this.$store.commit('setMarketpre', resx)
this.$router.push({ path: '/report/list', query: { id: 'AEHJB8YNJ3' } })
this.$router.push(params)
}).catch((resx)=>{
this.$store.commit('setMarketpre', '')
this.$router.push({ path: '/report/list', query: { id: 'AEHJB8YNJ3' } })
+5 -2
View File
@@ -104,7 +104,7 @@
<el-input v-model="form.attribution" maxlength="50" show-word-limit placeholder="请输入归属地"></el-input>
</el-form-item>
<el-form-item label="部门14位码:" >
<el-input v-model="form.bmdm14" maxlength="50" show-word-limit placeholder="部门14位码"></el-input>
<el-input v-model="form.bmdm14" maxlength="14" show-word-limit placeholder="部门14位码"></el-input>
</el-form-item>
<!--<el-form-item label="密码:" :required="mode === 'add'" v-if="mode !== 'view'">-->
<!--<el-input v-model="form.password" maxlength="20" type="password" placeholder="请输入密码"></el-input>-->
@@ -264,7 +264,10 @@ export default {
if (!this.form.departmentCode) {
return this.$message.warning('请检查部门编码') && false
}
if (!this.form.leveL || !(/^[a-zA-Z0-9]*$/.test(this.form.leveL))) {
if(!this.form.leveL ){
return this.$message.warning('请检查部门级别') && false
}
if ( !(/^[0-9]*$/.test(this.form.leveL))) {
return this.$message.warning('部门级别只能为纯数字') && false
}
return true
+8 -1
View File
@@ -86,7 +86,7 @@
<div class="user-form">
<el-form :model="form" label-width="186px" :disabled="mode === 'view'">
<el-form-item label="用户名:" required>
<el-input v-model="form.account" maxlength="20" show-word-limit placeholder="请输入用户名"></el-input>
<el-input :disabled="mode=='modify'" v-model="form.account" maxlength="20" show-word-limit placeholder="请输入用户名"></el-input>
</el-form-item>
<!--<el-form-item label="密码:" :required="mode === 'add'" v-if="mode !== 'view'">-->
<!--<el-input v-model="form.password" maxlength="20" type="password" placeholder="请输入密码"></el-input>-->
@@ -176,6 +176,7 @@ export default {
},
handleClick(){
if(this.mode === 'view')return
this.orgTableVal=this.form.orgId
this.orgTableValName=this.form.orgName
this.visibleOrgTable=true
@@ -257,7 +258,11 @@ export default {
},
// 验证
checkUserForm () {
if (!this.form.account){
return this.$message.warning('用户名不能为空') && false
}
if (this.mode === 'add') {
if (!this.form.account || !(/^[a-zA-Z0-9]*$/.test(this.form.account))) {
return this.$message.warning('用户名只能为纯数字、纯字母或字母数字组合') && false
}
@@ -279,7 +284,9 @@ export default {
// return this.$message.warning('请检查密码') && false;
// }
// }
}
if (this.form.cellPhoneNumber && !(/^1[3|4|5|7|8|9][0-9]{9}$/.test(this.form.cellPhoneNumber))) {
return this.$message.warning('请检查手机号') && false
}