From 6069325e1a37cf0462afda1627d4c660735dc57e Mon Sep 17 00:00:00 2001 From: suerprisePlus <15810472099@163.com> Date: 星期二, 16 七月 2024 09:51:56 +0800 Subject: [PATCH] 版本更新 --- src/components/Chat/chatList.vue | 123 +++++++++++++++++++++++++++++++++++++---- 1 files changed, 111 insertions(+), 12 deletions(-) diff --git a/src/components/Chat/chatList.vue b/src/components/Chat/chatList.vue index 844194e..6286115 100644 --- a/src/components/Chat/chatList.vue +++ b/src/components/Chat/chatList.vue @@ -16,7 +16,7 @@ {{ item.name }} </div> <div v-show="item.sourceValue" class="sourcefrom" style="float: left;margin-left:20px"> - <el-select size="small" v-model="item.sourceValue" placeholder="璧勬枡鏉ユ簮"> + <el-select size="small" v-model="item.sourceValue" placeholder="璧勬枡鏉ユ簮"> <el-option value="1" label="GEDB"></el-option> <el-option value="2" label="GeoAgent"></el-option> </el-select> @@ -28,6 +28,34 @@ </div> <div class="web__main-text"> <div v-for="(res, key) in item.list" :key="key"> + <div v-if="res.type === 'html'"> + <div v-html="res.val"></div> + </div> + <div v-if="res.type === 'JsonHtml'"> + <div class="JsonHtml"> + <table> + <tr> + <th v-show="index != 'rowspan'" v-for="(item, index) in res.val[0]" :key=index> + {{ index }} + </th> + </tr> + <tr v-if="!item.break" v-for="(item, index) in res.val" :key=index> + <td v-if="item.rowspan != ''" :rowspan="item.rowspan"> + {{ item[Object.keys(item)[0]] }} + </td> + <td v-if="Object.keys(item)[0] != n && n != 'rowspan'" v-for="(rs, n ) in item " :key="n"> {{ + item[n] }}</td> + <!-- --> + </tr> + + </table> + <div> + <p v-for="(item, index) in res.val[res.val.length - 1].break" :key=index> + {{ item.bak }} + </p> + </div> + </div> + </div> <div v-if="res.type === 'text'"> {{ res.val }} </div> @@ -141,6 +169,13 @@ } }, methods: { + setrowSpan(res, name) { + if (Object.keys(res)[0] == name) { + return res['rowspan'] + } else { + return 1 + } + }, setDownLoadFile(res) { const downloadLink = document.createElement('a'); downloadLink.href = res @@ -323,7 +358,7 @@ } -/deep/.el-input--small .el-input__inner{ +/deep/.el-input--small .el-input__inner { height: 30px; font-size: 12px; } @@ -540,29 +575,33 @@ } </style> <style> - .el-select-dropdown { background-color: #555555 !important; color: #409eff !important; - + } -.el-select-dropdown__item{ + +.el-select-dropdown__item { color: #ffffff !important; background: transparent !important; } -.el-select-dropdown__item.selected{ + +.el-select-dropdown__item.selected { color: #409eff !important; background: transparent !important; } -.el-select-dropdown__item.selected span{ + +.el-select-dropdown__item.selected span { color: #409eff !important; background: transparent !important; } -.el-select-dropdown__item:hover{ + +.el-select-dropdown__item:hover { /* background-color: #555555 !important; */ - color: #409eff!important; + color: #409eff !important; } + .parentBox { height: 100%; /* background: rgb(31, 31, 31); */ @@ -642,6 +681,55 @@ word-wrap: break-word; } +.JsonHtml table { + border: 1px solid white; + text-align: center; + line-height: 30px; + font-family: "Arial", sans-serif; + font-size: 16px; +} + +.JsonHtml tr { + border: 1px solid white; + +} + +.JsonHtml th { + border: 1px solid white; + padding: 10px 10px; +} + +.JsonHtml td { + border: 1px solid white; + padding: 10px 10px; + +} + + + +.newConcentLeft table { + border: 1px solid white; + text-align: center; + line-height: 30px; + font-family: "Arial", sans-serif; + font-size: 16px; +} + +.newConcentLeft tr { + border: 1px solid white; + +} + +.newConcentLeft th { + border: 1px solid white; + +} + +.newConcentLeft td { + border: 1px solid white; + +} + .newConcentLeft img { width: 75%; } @@ -658,17 +746,28 @@ font-size: 15px !important; line-height: 15px !important; + list-style: disc; } .newConcentLeft p { - font-size: 15px !important; + /* */ +} +.newConcentLeft h1 { + font-size: 2rem !important; + padding: 20px 0px; + border-bottom: 1px solid rgba(209, 209, 209, 0.0); +} +.newConcentLeft h2 { + padding:30px 0px; + line-height: 0px; + border-bottom: 1px solid rgba(209, 209, 209, 0.0); /* */ } </style> <style> -.web_Main_markDown h1 { +/* .web_Main_markDown h1 { line-height: 20px !important; font-size: 20px !important; } @@ -701,5 +800,5 @@ background: #555555; padding: 10px; border-radius: 10px; -} +} */ </style> -- Gitblit v1.9.3