浏览代码

网页解析样式调整

Xiao_123 13 小时之前
父节点
当前提交
fd7213e167

+ 12 - 8
src/views/menduner/system/talentMap/components/webPageParsing.vue

@@ -13,7 +13,7 @@
 					class="!w-60vw"
 					type="textarea"
 					:rows="1"
-					placeholder="请输入需要爬取的页面"
+					placeholder="请输入需要爬取的页面,多个页面请用 ',' 隔开"
 				/>
 			</el-form-item>
 			<el-form-item>
@@ -28,10 +28,7 @@
 				<el-card class="!h-500px" v-loading="!content.data">
 					<template #header>
 						<div class="flex items-center justify-between">
-							<div 
-								class="flex-1 overflow-hidden whitespace-nowrap" 
-								style="text-overflow: ellipsis;"
-							>{{ content.url }}</div>
+							<el-text class="flex-1" truncated>{{ content.url }}</el-text>
 							<div class="!w-85px">
 								<Icon icon="ep:view" size="25" class="ml-10px cursor-pointer" color="#409eff" @click="showPage(content)" />
 								<Icon icon="ep:refresh" size="25" class=" ml-18px cursor-pointer" color="#409eff" @click="handleReload(content)" />
@@ -44,7 +41,13 @@
               <el-tab-pane v-for="(v, k) in content.data.data[0]" :key="k" :label="k" :name="k" class="overflow-y-auto !h-360px">
 								<template v-if="k === 'html'">
 									<div class="position-sticky float-right">
-										<el-button type="primary" class="cursor-pointer" @click="content.showHtml = !content.showHtml" :icon="SetUp" circle />
+										<el-button
+											type="primary"
+											class="cursor-pointer"
+											@click="content.showHtml = !content.showHtml"
+											:icon="SetUp"
+											circle
+										/>
 									</div>
                   <pre v-if="!content.showHtml">{{ v }}</pre>
                   <div v-else v-html="v"></div>
@@ -64,8 +67,9 @@
 		:with-header="false"
 		:modal="true"
 	>
-		<iframe class="!w-100%" style="height: calc(100vh - 90px);" :src="drawerUrl" frameborder="0"></iframe>
-		<div class="position-sticky left-20px !h-50px lh-50px" style="border-top: 1px solid #e1e1e1;">
+		<iframe class="!w-100% !h-[calc(100vh-90px)]" :src="drawerUrl" frameborder="0"></iframe>
+		<el-divider class="!ma-0" />
+		<div class="position-sticky left-20px !h-50px lh-50px">
 			<el-button type="primary" class="!w-100px" @click="drawer = false; drawerUrl = ''">关 闭</el-button>
 		</div>
 	</el-drawer>

+ 3 - 3
src/views/menduner/system/talentMap/labeling/LabelingForm.vue

@@ -66,7 +66,7 @@
   </Dialog>
 </template>
 
-<script setup lang="ts">
+<script setup>
 import { talentLabelingApi } from '@/api/menduner/system/talentMap/labeling'
 import { talentTagApi } from '@/api/menduner/system/talentMap/tag'
 
@@ -90,7 +90,7 @@ const getTagList = async () => {
 }
 
 /** 打开弹窗 */
-const open = async (data: any) => {
+const open = async (data) => {
 	previewUrl.value = null
   dialogVisible.value = true
 	talentItem.value = data
@@ -119,7 +119,7 @@ const closeClick = (item) => {
 }
 
 // 标签添加
-const handleAdd = (item: any) => {
+const handleAdd = (item) => {
 	talentSelectedTags.value.push(item)
 }