From e45cb00314d0d027996a6155d05bde749ab4acd8 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 22 六月 2022 10:57:56 +0800
Subject: [PATCH] 1.解决了部分浏览器兼容问题
---
src/views/jcsz/jsqd.vue | 41 ++++++++++++++++++++++++++---------------
1 files changed, 26 insertions(+), 15 deletions(-)
diff --git a/src/views/jcsz/jsqd.vue b/src/views/jcsz/jsqd.vue
index 4580a21..0eaa63c 100644
--- a/src/views/jcsz/jsqd.vue
+++ b/src/views/jcsz/jsqd.vue
@@ -1,7 +1,8 @@
<template>
<div>
- <div class="body" style="background-color: #ffffff; padding: 20px 10px 0 20px;" :style="{height:mainHeight+'px'}">
- <div style="height: 50px;">
+ <div class="body" style="background-color: #ffffff; padding: 20px 10px 0 20px;">
+ <!-- <div class="body" style="background-color: #ffffff; padding: 20px 10px 0 20px;" :style="{height:mainHeight+'px'}">-->
+ <div>
<el-form
ref="form"
:model="form"
@@ -47,11 +48,12 @@
:data="tableData"
border
highlight-current-row
- :style="{width: 100+'%',height:tableHeight+'px'}"
:header-cell-style="this.$headerCellStyle"
:cell-style="this.$cellStyle"
@sort-change="sortChange"
>
+ <!-- :style="{width: 100+'%',height:tableHeight+'px'}"-->
+
<!-- <el-table-column-->
<!-- type="selection"-->
<!-- width="50"-->
@@ -91,6 +93,7 @@
prop="lm_date"
label="鍒涘缓鏃堕棿"
sortable="custom"
+ show-overflow-tooltip
/>
<el-table-column
prop="lm_date"
@@ -765,13 +768,12 @@
AddUpdateRole(data).then(res => {
if (res.code === '200') {
this.$message.success(this.operation === 'add' ? '娣诲姞鎴愬姛锛�' : '淇敼鎴愬姛锛�')
+ this.dialogVisible = false
this.getRoleSearch()
} else {
this.$message.error(this.operation === 'add' ? '娣诲姞澶辫触锛�' : '淇敼澶辫触锛�')
}
})
-
- this.dialogVisible = false
}
})
},
@@ -975,7 +977,7 @@
this.$nextTick(() => {
$('input:checkbox').eq(0).prop('checked', true)// 鑷畾涔夊崟閫夋鍥炴樉
})
- }, 1)
+ }, 10)
this.dialogFormRight.rightCurrentCode = this.dialogFormRight.rightPCArr[0].code
}
// 3.绗笁绉嶆儏鍐礟C鏈�変腑锛孉PP宸查�変腑
@@ -986,7 +988,7 @@
this.$nextTick(() => {
$('input:checkbox').eq(1).prop('checked', true)// 鑷畾涔夊崟閫夋鍥炴樉
})
- }, 1)
+ }, 10)
this.dialogFormRight.rightCurrentCode = this.dialogFormRight.rightAPPArr[0].code
}
// 4.绗洓绉嶆儏鍐礟C宸查�変腑锛孉PP宸查�変腑
@@ -1000,7 +1002,7 @@
$('input:checkbox').eq(0).prop('checked', true)// 鑷畾涔夊崟閫夋鍥炴樉
$('input:checkbox').eq(1).prop('checked', true)// 鑷畾涔夊崟閫夋鍥炴樉
})
- }, 1)
+ }, 10)
this.dialogFormRight.rightCurrentCode = this.dialogFormRight.rightPCArr[0].code
}
this.dialogFormRight.rightOperationArr.push({
@@ -1043,8 +1045,12 @@
}
})
this.$nextTick(() => {
- this.$refs.rightPCRef.setCheckedKeys(this.dialogFormRight.rightPCArrSelected)
- this.$refs.rightAPPRef.setCheckedKeys(this.dialogFormRight.rightAPPArrSelected)
+ if (this.$refs.rightPCRef) {
+ this.$refs.rightPCRef.setCheckedKeys(this.dialogFormRight.rightPCArrSelected)
+ }
+ if (this.$refs.rightAPPRef) {
+ this.$refs.rightAPPRef.setCheckedKeys(this.dialogFormRight.rightAPPArrSelected)
+ }
})
},
// 鍒嗛厤鏉冮檺鍏抽棴浜嬩欢
@@ -1054,8 +1060,12 @@
this.dialogFormRight.rightAPPArr = []
this.dialogFormRight.rightAPPArrSelected = []
this.dialogFormRight.rightOperationArr = []
- this.$refs.rightPCRef.setCheckedKeys([])
- this.$refs.rightAPPRef.setCheckedKeys([])
+ if (this.$refs.rightPCRef) {
+ this.$refs.rightPCRef.setCheckedKeys([])
+ }
+ if (this.$refs.rightAPPRef) {
+ this.$refs.rightAPPRef.setCheckedKeys([])
+ }
},
// 鏉冮檺瀵硅瘽妗嗗彇娑堜簨浠�
rightDialogVisibleCancel() {
@@ -1071,7 +1081,7 @@
const children = []
let flag = false // 琛ㄧずchildren閲屾湁鍊紁ush杩涘幓浜�
item.children.forEach(it => {
- if (this.dialogFormRight.rightPCArrSelected.includes(it.code)) {
+ if (this.dialogFormRight.rightPCArrSelected.includes(it.code) || this.dialogFormRight.rightPCArrSelected.includes('PC')) {
flag = true
children.push(
{ code: it.code, name: it.name, flag: 'Y' }
@@ -1090,7 +1100,7 @@
const children = []
let flag = false // 琛ㄧずchildren閲屾湁鍊紁ush杩涘幓浜�
item.children.forEach(it => {
- if (this.dialogFormRight.rightAPPArrSelected.includes(it.code)) {
+ if (this.dialogFormRight.rightAPPArrSelected.includes(it.code) || this.dialogFormRight.rightAPPArrSelected.includes('APP')) {
flag = true
children.push(
{ code: it.code, name: it.name, flag: 'Y' }
@@ -1393,7 +1403,8 @@
}
::v-deep .el-input__inner {
- height: 30px
+ height: 30px;
+ line-height:30px;
}
::v-deep .el-table .caret-wrapper {
--
Gitblit v1.9.3