|
@@ -102,6 +102,8 @@ $("#searchInp").bind("input propertychange", function (event) {
|
|
|
|
|
|
//切换条目
|
|
|
$('.radioItem').click(function (e) {
|
|
|
+ $('.radioItem').css('color', '#333333')
|
|
|
+ $(this).css("color", '#409EF1')
|
|
|
const initDiag = disease || "急性胰腺炎"
|
|
|
const type = $(this).attr('data-type')
|
|
|
// $(this).children('img').attr('src')
|
|
@@ -213,15 +215,15 @@ $('html').click(function () {
|
|
|
let toggleTabHtml = ""
|
|
|
$(".right-aside-collapse").on("click", function () {
|
|
|
isRightCollapse = !isRightCollapse
|
|
|
-
|
|
|
if (isRightCollapse) {
|
|
|
+ $(this).attr('class', 'right-aside-collapsed')
|
|
|
toggleTabHtml = $("#tabList > .toggleTab").html()
|
|
|
$("#tabList > .toggleTab").empty()
|
|
|
// document.querySelector('.toggleTab').style.display = 'none';
|
|
|
- $(".right").animate({ "width": '110px' }, function () {
|
|
|
+ $(".right").animate({ "width": '150px' }, function () {
|
|
|
})
|
|
|
const contentWidth = $(".content").width()
|
|
|
- const leftWidth = (contentWidth - 110).toString() + 'px'
|
|
|
+ const leftWidth = (contentWidth - 150).toString() + 'px'
|
|
|
// console.log("contentWidth", leftWidth);
|
|
|
$(".content .left").animate({ 'width': leftWidth, }, function () {
|
|
|
window.graphMap.resize()
|
|
@@ -229,10 +231,11 @@ $(".right-aside-collapse").on("click", function () {
|
|
|
})
|
|
|
|
|
|
} else {
|
|
|
+ $(this).attr('class', 'right-aside-collapse')
|
|
|
$("#tabList > .toggleTab").html(toggleTabHtml)
|
|
|
- $(".right").animate({ "width": '394px' })
|
|
|
+ $(".right").animate({ "width": '461px' })
|
|
|
const contentWidth = $(".content").width()
|
|
|
- const leftWidth = (contentWidth - 394).toString() + 'px'
|
|
|
+ const leftWidth = (contentWidth - 461).toString() + 'px'
|
|
|
$(".content .left").animate({ 'width': leftWidth, }, function () {
|
|
|
window.graphMap.resize()
|
|
|
// console.log("graphMap", window.graphMap)
|
|
@@ -247,11 +250,11 @@ window.addEventListener("message", function (event) {
|
|
|
console.log("contentWidth", contentWidth)
|
|
|
let leftWidth = 0
|
|
|
if (isRightCollapse) {
|
|
|
- leftWidth = (contentWidth - 110).toString() + 'px'
|
|
|
+ leftWidth = (contentWidth - 150).toString() + 'px'
|
|
|
$(".content .left").css('width', leftWidth)
|
|
|
|
|
|
} else {
|
|
|
- leftWidth = (contentWidth - 394).toString() + 'px'
|
|
|
+ leftWidth = (contentWidth - 461).toString() + 'px'
|
|
|
$(".content .left").css('width', leftWidth)
|
|
|
|
|
|
}
|