修改禅道已知bug

This commit is contained in:
qq787203167
2022-07-02 13:57:11 +08:00
parent 0c7e693472
commit 6d70cc7e90
2 changed files with 23 additions and 14 deletions
@@ -261,7 +261,8 @@
watch: { watch: {
currentPersonRole: { currentPersonRole: {
handler: function() { handler: function() {
this.getTableList(); console.log(123)
this.getTableList()
}, },
immediate: true immediate: true
} }
@@ -377,7 +378,7 @@
this.areaVisible = true this.areaVisible = true
// this.$refs.ruleForm.clearValidate() // this.$refs.ruleForm.clearValidate()
this.$nextTick(() => { this.$nextTick(() => {
this.Dateline = {...this.Dateline} this.Dateline = { ...this.Dateline }
this.getquerySdtList(record) this.getquerySdtList(record)
this.$refs.ruleForm.clearValidate() this.$refs.ruleForm.clearValidate()
}) })
@@ -406,17 +407,19 @@
getAndUserId(result) { getAndUserId(result) {
let query = { let query = {
paramsManifestId: this.$route.query.id, paramsManifestId: this.$route.query.id,
projectId:this.$route.query.projectId, projectId: this.$route.query.projectId,
userId: this.userInfo().id userId: this.userInfo().id
} }
getAction('/params/userTypeLog/queryCurrentType', query).then((res) => { getAction('/params/userTypeLog/queryCurrentType', query).then((res) => {
if (res.success) { if (res.success) {
if (res.result && res.result.userType){ if (res.result && res.result.userType) {
this.getTableList(res.result.userType) this.getTableList(res.result.userType)
}else{ console.log(11)
} else {
console.log(222)
this.getTableList(result[0].value) this.getTableList(result[0].value)
} }
this.$emit('LoginUserType', result, this.currentPersonRole,res.result.userType) this.$emit('LoginUserType', result, this.currentPersonRole, res.result.userType)
} else { } else {
} }
@@ -532,7 +535,9 @@
this.dataSource = tt this.dataSource = tt
this.total = res.result.total this.total = res.result.total
this.selectedRowKeys = [] this.selectedRowKeys = []
this.loading = false setTimeout(() => {
this.loading = false
}, 500)
} else { } else {
this.loading = false this.loading = false
} }
@@ -616,7 +621,9 @@
this.selectedRowrowValue = [] this.selectedRowrowValue = []
this.$emit('value', this.selectedRowKeys) this.$emit('value', this.selectedRowKeys)
this.$emit('rowValue', this.selectedRowrowValue) this.$emit('rowValue', this.selectedRowrowValue)
this.loading = false setTimeout(() => {
this.loading = false
}, 500)
} else { } else {
this.loading = false this.loading = false
} }
@@ -638,7 +645,7 @@
detailClick(item, index) { detailClick(item, index) {
// this.$emit('detailClick', item) // this.$emit('detailClick', item)
} }
}, }
} }
</script> </script>
<style lang='less'> <style lang='less'>
@@ -734,10 +741,12 @@
transform: none !important; transform: none !important;
bottom: 0; bottom: 0;
} }
.rowClassRed{
background: #f3d9de; .rowClassRed {
background: #f3d9de;
} }
.rowClassRedYellow{
background: yellow; .rowClassRedYellow {
background: yellow;
} }
</style> </style>
@@ -817,7 +817,7 @@
LoginUserType(val, currentPersonRole,userType) { LoginUserType(val, currentPersonRole,userType) {
this.RoleType = [] this.RoleType = []
if (this.currentPersonRole == '') { if (this.currentPersonRole == '') {
this.currentPersonRole = val.length >= 1 ? val[0].value : '' this.currentPersonRole = currentPersonRole || userType || val[0].value
} }
this.RoleType = val this.RoleType = val
this.formInlineRoleSwitching.roleSwitchingCode = currentPersonRole || userType || val[0].value this.formInlineRoleSwitching.roleSwitchingCode = currentPersonRole || userType || val[0].value