【修改】修改dataId为reportId
This commit is contained in:
@@ -794,15 +794,29 @@ export default {
|
|||||||
|
|
||||||
handleRemove (user, type) {
|
handleRemove (user, type) {
|
||||||
let delIndex = -1
|
let delIndex = -1
|
||||||
this.checkedList.map((checkedItem, chkIndex) => {
|
if(this.isShowOrg){
|
||||||
if (user.USID === checkedItem.USID) {
|
|
||||||
delIndex = chkIndex
|
this.checkedList.map((checkedItem, chkIndex) => {
|
||||||
if (type !== 'table') {
|
if ( user.id === checkedItem.id ) {
|
||||||
this.checkedRow([checkedItem])
|
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.checkedList.splice(delIndex, 1)
|
||||||
this.checkedIdList.splice(delIndex, 1)
|
this.checkedIdList.splice(delIndex, 1)
|
||||||
},
|
},
|
||||||
@@ -826,7 +840,7 @@ export default {
|
|||||||
if (this.tableData[i].USID == row.USID && !this.isOrg) {
|
if (this.tableData[i].USID == row.USID && !this.isOrg) {
|
||||||
// console.log(this.tableData[i], '666')
|
// console.log(this.tableData[i], '666')
|
||||||
this.$refs.orgTable && this.$refs.orgTable.toggleRowSelection(this.tableData[i])
|
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])
|
this.$refs.orgTable && this.$refs.orgTable.toggleRowSelection(this.tableData[i])
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-1
@@ -136,10 +136,19 @@ export default {
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}else{
|
}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.$message.success('登录成功')
|
||||||
this.getMarket().then((resx)=>{
|
this.getMarket().then((resx)=>{
|
||||||
this.$store.commit('setMarketpre', resx)
|
this.$store.commit('setMarketpre', resx)
|
||||||
this.$router.push({ path: '/report/list', query: { id: 'AEHJB8YNJ3' } })
|
this.$router.push(params)
|
||||||
}).catch((resx)=>{
|
}).catch((resx)=>{
|
||||||
this.$store.commit('setMarketpre', '')
|
this.$store.commit('setMarketpre', '')
|
||||||
this.$router.push({ path: '/report/list', query: { id: 'AEHJB8YNJ3' } })
|
this.$router.push({ path: '/report/list', query: { id: 'AEHJB8YNJ3' } })
|
||||||
|
|||||||
@@ -104,7 +104,7 @@
|
|||||||
<el-input v-model="form.attribution" maxlength="50" show-word-limit placeholder="请输入归属地"></el-input>
|
<el-input v-model="form.attribution" maxlength="50" show-word-limit placeholder="请输入归属地"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="部门14位码:" >
|
<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>
|
||||||
<!--<el-form-item label="密码:" :required="mode === 'add'" v-if="mode !== 'view'">-->
|
<!--<el-form-item label="密码:" :required="mode === 'add'" v-if="mode !== 'view'">-->
|
||||||
<!--<el-input v-model="form.password" maxlength="20" type="password" placeholder="请输入密码"></el-input>-->
|
<!--<el-input v-model="form.password" maxlength="20" type="password" placeholder="请输入密码"></el-input>-->
|
||||||
@@ -264,7 +264,10 @@ export default {
|
|||||||
if (!this.form.departmentCode) {
|
if (!this.form.departmentCode) {
|
||||||
return this.$message.warning('请检查部门编码') && false
|
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 this.$message.warning('部门级别只能为纯数字') && false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
<div class="user-form">
|
<div class="user-form">
|
||||||
<el-form :model="form" label-width="186px" :disabled="mode === 'view'">
|
<el-form :model="form" label-width="186px" :disabled="mode === 'view'">
|
||||||
<el-form-item label="用户名:" required>
|
<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>
|
||||||
<!--<el-form-item label="密码:" :required="mode === 'add'" v-if="mode !== 'view'">-->
|
<!--<el-form-item label="密码:" :required="mode === 'add'" v-if="mode !== 'view'">-->
|
||||||
<!--<el-input v-model="form.password" maxlength="20" type="password" placeholder="请输入密码"></el-input>-->
|
<!--<el-input v-model="form.password" maxlength="20" type="password" placeholder="请输入密码"></el-input>-->
|
||||||
@@ -176,6 +176,7 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
handleClick(){
|
handleClick(){
|
||||||
|
if(this.mode === 'view')return
|
||||||
this.orgTableVal=this.form.orgId
|
this.orgTableVal=this.form.orgId
|
||||||
this.orgTableValName=this.form.orgName
|
this.orgTableValName=this.form.orgName
|
||||||
this.visibleOrgTable=true
|
this.visibleOrgTable=true
|
||||||
@@ -257,7 +258,11 @@ export default {
|
|||||||
},
|
},
|
||||||
// 验证
|
// 验证
|
||||||
checkUserForm () {
|
checkUserForm () {
|
||||||
|
if (!this.form.account){
|
||||||
|
return this.$message.warning('用户名不能为空') && false
|
||||||
|
}
|
||||||
if (this.mode === 'add') {
|
if (this.mode === 'add') {
|
||||||
|
|
||||||
if (!this.form.account || !(/^[a-zA-Z0-9]*$/.test(this.form.account))) {
|
if (!this.form.account || !(/^[a-zA-Z0-9]*$/.test(this.form.account))) {
|
||||||
return this.$message.warning('用户名只能为纯数字、纯字母或字母数字组合') && false
|
return this.$message.warning('用户名只能为纯数字、纯字母或字母数字组合') && false
|
||||||
}
|
}
|
||||||
@@ -279,7 +284,9 @@ export default {
|
|||||||
// return this.$message.warning('请检查密码') && false;
|
// return this.$message.warning('请检查密码') && false;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.form.cellPhoneNumber && !(/^1[3|4|5|7|8|9][0-9]{9}$/.test(this.form.cellPhoneNumber))) {
|
if (this.form.cellPhoneNumber && !(/^1[3|4|5|7|8|9][0-9]{9}$/.test(this.form.cellPhoneNumber))) {
|
||||||
return this.$message.warning('请检查手机号') && false
|
return this.$message.warning('请检查手机号') && false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user