修改样式

This commit is contained in:
gongjiale 2022-12-02 16:05:46 +08:00
parent 8afd825ffc
commit 44f03b7e96
14 changed files with 372 additions and 296 deletions

View File

@ -248,7 +248,6 @@ export default {
this.dataForm.taskId = this.$route.params.taskId this.dataForm.taskId = this.$route.params.taskId
if (type === '同意') { if (type === '同意') {
debugger
// if (this.input !== '') { // if (this.input !== '') {
console.log('this.dataForm', this.dataForm) console.log('this.dataForm', this.dataForm)
const params = qs.stringify({ const params = qs.stringify({
@ -267,6 +266,7 @@ export default {
return return
} }
bus.$emit('applicationforRequirementsInit') bus.$emit('applicationforRequirementsInit')
bus.$emit('workInit')
this.$message({ this.$message({
message: this.$t('prompt.success'), message: this.$t('prompt.success'),
type: 'success', type: 'success',
@ -302,6 +302,7 @@ export default {
return return
} }
bus.$emit('applicationforRequirementsInit') bus.$emit('applicationforRequirementsInit')
bus.$emit('workInit')
this.$message({ this.$message({
message: this.$t('prompt.success'), message: this.$t('prompt.success'),
type: 'success', type: 'success',

View File

@ -174,7 +174,8 @@ export default {
} }
return return
} }
bus.$emit('AbilityResourcesRemovedInit') bus.$emit('commentInit')
bus.$emit('workInit')
this.$message({ this.$message({
message: this.$t('prompt.success'), message: this.$t('prompt.success'),
type: 'success', type: 'success',
@ -209,7 +210,8 @@ export default {
} }
return return
} }
bus.$emit('AbilityResourcesRemovedInit') bus.$emit('commentInit')
bus.$emit('workInit')
this.$message({ this.$message({
message: this.$t('prompt.success'), message: this.$t('prompt.success'),
type: 'success', type: 'success',
@ -259,20 +261,7 @@ export default {
} }
}, },
created () { created () {
// this.dataForm = this.$router.currentRoute.params.id
this.init() this.init()
console.log('fromList', this.$router.currentRoute.params.businessKey)
// this.dataForm = this.$router.currentRoute.params.params.params.resourceDTO
var callbacks = {
startProcessSuccessCallback: this.closeCurrentTab,
startProcessErrorCallback: this.startProcessErrorCallback,
taskHandleSuccessCallback: this.closeCurrentTab,
taskHandleErrorCallback: this.taskHandleErrorCallback,
formSaveSuccessCallback: null,
formSaveErrorCallback: null
}
//
this.initProcessMultiple(callbacks)
this.taskId = this.$route.params.taskId this.taskId = this.$route.params.taskId
this.dataForm.taskId = this.$route.params.taskId this.dataForm.taskId = this.$route.params.taskId
}, },

View File

@ -252,6 +252,7 @@ export default {
return return
} }
bus.$emit('AbilityResourcesRemovedInit') bus.$emit('AbilityResourcesRemovedInit')
bus.$emit('workInit')
this.$message({ this.$message({
message: this.$t('prompt.success'), message: this.$t('prompt.success'),
type: 'success', type: 'success',
@ -287,6 +288,7 @@ export default {
return return
} }
bus.$emit('AbilityResourcesRemovedInit') bus.$emit('AbilityResourcesRemovedInit')
bus.$emit('workInit')
this.$message({ this.$message({
message: this.$t('prompt.success'), message: this.$t('prompt.success'),
type: 'success', type: 'success',

View File

@ -128,6 +128,7 @@
</template> </template>
<script> <script>
import bus from '@/views/bus.js'
import mixinViewModule from '@/mixins/view-module' import mixinViewModule from '@/mixins/view-module'
import processModule from '@/mixins/process-module' import processModule from '@/mixins/process-module'
export default { export default {
@ -150,6 +151,14 @@ export default {
} }
}, },
components: {}, components: {},
created () {
bus.$off('commentInit')
bus.$on('commentInit', () => {
debugger
this.getDataList()
bus.$emit('updateTaskNum')
})
},
methods: { methods: {
// //
taskHandle (row) { taskHandle (row) {

View File

@ -269,6 +269,7 @@ export default {
return return
} }
bus.$emit('abilityResourceShelfInit') bus.$emit('abilityResourceShelfInit')
bus.$emit('workInit')
this.$message({ this.$message({
message: this.$t('prompt.success'), message: this.$t('prompt.success'),
type: 'success', type: 'success',
@ -306,6 +307,7 @@ export default {
return return
} }
bus.$emit('abilityResourceShelfInit') bus.$emit('abilityResourceShelfInit')
bus.$emit('workInit')
this.$message({ this.$message({
message: this.$t('prompt.success'), message: this.$t('prompt.success'),
type: 'success', type: 'success',

View File

@ -443,6 +443,7 @@ export default {
return return
} }
bus.$emit('competencyApplicationInit') bus.$emit('competencyApplicationInit')
bus.$emit('workInit')
this.$message({ this.$message({
message: this.$t('prompt.success'), message: this.$t('prompt.success'),
type: 'success', type: 'success',
@ -478,6 +479,7 @@ export default {
return return
} }
bus.$emit('competencyApplicationInit') bus.$emit('competencyApplicationInit')
bus.$emit('workInit')
this.$message({ this.$message({
message: this.$t('prompt.success'), message: this.$t('prompt.success'),
type: 'success', type: 'success',

View File

@ -35,7 +35,7 @@ import CenterView from '../workBench/components/center-view.vue'
import DeptChartView from '../workBench/components/dept-chart-view.vue' import DeptChartView from '../workBench/components/dept-chart-view.vue'
import deptTodoView from '../workBench/components/dept-todo-view.vue' import deptTodoView from '../workBench/components/dept-todo-view.vue'
import * as Apis from './api.js' import * as Apis from './api.js'
import bus from '@/views/bus.js'
export default { export default {
components: { components: {
deptTodoView, deptTodoView,
@ -87,6 +87,14 @@ export default {
loadingRequire: false loadingRequire: false
} }
}, },
created () {
bus.$off('workInit')
bus.$on('workInit', () => {
console.log("刷新工作台===================")
this.getToDo()
this.getHasToDo()
})
},
mounted () { mounted () {
// //
this.getToDo() this.getToDo()

View File

@ -44,7 +44,7 @@
<div class="left-list1">排行</div> <div class="left-list1">排行</div>
<div class="left-list2">部门名称</div> <div class="left-list2">部门名称</div>
<div class="left-list1">应用数</div> <div class="left-list1">应用数</div>
<div class="left-list1" style="color: #1ffefd">贡献金额</div> <div class="left-list1" style="color: #1ffefd">节省金额</div>
</div> </div>
<div style=" height: 1.7rem; overflow-y: auto;overflow-x: hidden;width: 100%;"> <div style=" height: 1.7rem; overflow-y: auto;overflow-x: hidden;width: 100%;">
<div class="left-list" v-for="(item, index) in top5DeptFundList"> <div class="left-list" v-for="(item, index) in top5DeptFundList">
@ -105,7 +105,7 @@
<div class="left-list1">序号</div> <div class="left-list1">序号</div>
<div class="left-list2">部门名称</div> <div class="left-list2">部门名称</div>
<div class="left-list1">应用数</div> <div class="left-list1">应用数</div>
<div class="left-list1" style="color: #1ffefd">贡献金额</div> <div class="left-list1" style="color: #1ffefd">节省金额</div>
</div> </div>
<div style="height: 200px; overfolw-y: auto"> <div style="height: 200px; overfolw-y: auto">
<div <div

View File

@ -160,7 +160,7 @@
height: 1.8rem; height: 1.8rem;
} }
.header1 { .header1 {
top: 78px; top: 70px;
position: absolute; position: absolute;
left: 795px; left: 795px;
align-items: center; align-items: center;

View File

@ -28,8 +28,8 @@
<template #renderItem="{ item }"> <template #renderItem="{ item }">
<a-list-item> <a-list-item>
<div class="toptitle"> <div class="toptitle">
<a-tooltip placement="topLeft"> <a-tooltip placement="topLeft" v-if="item.demandSubject.length>20">
<template #title>{{ item.demandSubject }}</template> <template #title>{{ item.demandSubject}}</template>
<span <span
@click="showDetail(item)" @click="showDetail(item)"
style="cursor: pointer" style="cursor: pointer"
@ -38,15 +38,19 @@
{{ item.demandSubject }} {{ item.demandSubject }}
</span> </span>
</a-tooltip> </a-tooltip>
<span v-else>
{{ item.demandSubject }}
</span>
<span class="time">{{ item.createDate }}</span> <span class="time">{{ item.createDate }}</span>
</div> </div>
<a-tooltip placement="topLeft">
<template #title>描述 {{ item.demandDetails }}</template> <div class="bottomdesc" v-if="item.demandDetails.length<100">
<div class="bottomdesc">
描述 {{ item.demandDetails || '--' }} 描述 {{ item.demandDetails || '--' }}
</div> </div>
</a-tooltip> <div class="bottomdesc" v-else>
描述 {{ item.demandDetails.slice(0,100) }}...<span style="cursor:pointer;color:#1492ff" @click="showDetail(item)">查看更多>></span>
</div>
</a-list-item> </a-list-item>
</template> </template>
</a-list> </a-list>
@ -194,6 +198,7 @@ onMounted(() => {
}) })
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.main-cont { .main-cont {
margin-top: 64px; margin-top: 64px;
width: 100%; width: 100%;
@ -260,6 +265,7 @@ onMounted(() => {
box-shadow: 10px 8px 10px 3px #9dc6ea; box-shadow: 10px 8px 10px 3px #9dc6ea;
padding: 20px; padding: 20px;
.toptitle { .toptitle {
cursor: pointer;
margin-bottom: 10px; margin-bottom: 10px;
& > span:first-child { & > span:first-child {
display: -webkit-box; display: -webkit-box;
@ -287,7 +293,7 @@ onMounted(() => {
.bottomdesc { .bottomdesc {
display: -webkit-box; display: -webkit-box;
/*设置为弹性盒子*/ /*设置为弹性盒子*/
-webkit-line-clamp: 1; -webkit-line-clamp: 2;
/*最多显示2行*/ /*最多显示2行*/
overflow: hidden; overflow: hidden;
/*超出隐藏*/ /*超出隐藏*/

View File

@ -9,13 +9,13 @@
<div class="algorithm-top-details"> <div class="algorithm-top-details">
<div class="left"> <div class="left">
<div class="top"> <div class="top">
<a-tooltip placement="top"> <a-tooltip placement="top" v-if="(props.dataList.name.length>20)">
<template #title>{{ props.dataList.name }}</template> <template #title>{{ props.dataList.name }}</template>
<span class="name"> <span class="name">
{{ props.dataList.name }} {{ props.dataList.name }}
</span> </span>
</a-tooltip> </a-tooltip>
<!-- <span class="name">{{ props.dataList.name }}</span> --> <span class="name" v-else>{{ props.dataList.name }}</span>
<div class="label-content"> <div class="label-content">
<p class="lable-father"> <p class="lable-father">
<span class="label" v-if="props.dataList.type"> <span class="label" v-if="props.dataList.type">
@ -27,29 +27,55 @@
<span class="label" v-if="props.dataList.shareCondition"> <span class="label" v-if="props.dataList.shareCondition">
{{ props.dataList.shareCondition }} {{ props.dataList.shareCondition }}
</span> </span>
</p> </p>
</div> </div>
<!-- <span class="label">免费</span> --> <!-- <span class="label">免费</span> -->
</div> </div>
<div class="main"> <div class="main">
<!-- <a-tooltip placement="top"> <!-- <a-tooltip placement="top">
<template #title>应用领域{{ applicationArea }}</template> <template #title>应用领域{{ applicationArea }}</template>
<div>应用领域{{ applicationArea }}</div> <div>应用领域{{ applicationArea }}</div>
</a-tooltip> --> </a-tooltip> -->
<a-tooltip placement="top"> <!-- <a-tooltip placement="top">
<template #title>{{ props.dataList.description }}</template> <template #title>{{ props.dataList.description }}</template>
<div> <div>
{{ props.dataList.description }} {{ props.dataList.description }}
</div> </div>
</a-tooltip> </a-tooltip> -->
<div style="padding-top:20px"> <div class="bottomdesc" v-if="props.dataList.description.length < 200">
<span >场景入口:</span> 场景描述 {{ props.dataList.description || '--' }}
<span style="margin-left:10px;cursor: pointer; text-decoration: underline;" </div>
@click="openScene(props.dataList.sceneUrl)">{{(props.dataList.sceneUrl)}}</span> <div class="bottomdesc" v-else-if="dowmOrUp === '展开>>'">
</div> 场景描述 {{ props.dataList.description.slice(0, 200) }}...
<span
style="cursor: pointer; color: rgb(241 211 112)"
@click="showDetail(dowmOrUp)"
>
{{ dowmOrUp }}
</span>
</div>
<div class="bottomdesc1" v-else>
场景描述 {{ props.dataList.description }}
<span
style="cursor: pointer; color: rgb(241 211 112)"
@click="showDetail(dowmOrUp)"
>
{{ dowmOrUp }}
</span>
</div>
<div style="padding-top: 20px">
<span>场景入口:</span>
<span
style="
margin-left: 10px;
cursor: pointer;
text-decoration: underline;
"
@click="openScene(props.dataList.sceneUrl)"
>
{{ props.dataList.sceneUrl }}
</span>
</div>
</div> </div>
<div class="bottom" v-if="props.dataList.id"> <div class="bottom" v-if="props.dataList.id">
<!-- 融合服务 存在fuseResourceList --> <!-- 融合服务 存在fuseResourceList -->
@ -80,287 +106,299 @@
</a-button> --> </a-button> -->
</div> </div>
</div> </div>
<div class="right"> <div class="right"></div>
</div>
</div> </div>
</template> </template>
<script setup> <script setup>
// import { ShoppingCartOutlined } from '@ant-design/icons-vue' // import { ShoppingCartOutlined } from '@ant-design/icons-vue'
import { defineProps, ref, watch } from 'vue' import { defineProps, ref, watch } from 'vue'
import { scInsert, scDel } from '@/api/personalCenter' import { scInsert, scDel } from '@/api/personalCenter'
import { sgcInsert } from '@/api/home' import { sgcInsert } from '@/api/home'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import mybus from '@/myplugins/mybus' import mybus from '@/myplugins/mybus'
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
// //
const router = useRouter() const router = useRouter()
const props = defineProps({ let dowmOrUp = ref('展开>>') // down ; up
dataList: { type: Object, default: null },
//
const showDetail = (val) => {
if (val === '展开>>') {
dowmOrUp.value = '收起<<'
} else {
dowmOrUp.value = '展开>>'
}
}
const props = defineProps({
dataList: { type: Object, default: null },
})
console.log('dataList------------>', props.dataList)
const applicationArea = ref('')
// //
const addShoppingCart = () => {
if (props.dataList.isInShoppingCart) {
message.error('已经加入申购车了')
} else {
console.log('加入申购车==================>', props.dataList)
sgcInsert({
delFlag: '0',
resourceId: props.dataList.id,
// userId: userId.value,
}).then((res) => {
console.log(res)
message.success('添加申购车成功!')
mybus.emit('getSgcNum')
props.dataList.isInShoppingCart = true
console.log(
props.dataList.isInShoppingCart,
'props.dataList.isInShoppingCart'
)
})
}
}
//
const openScene = (val) => {
window.open(val, '_blank')
}
// //
function toView() {
// window.open(newpage.href, '_blank')
// router.push({
// path: '/apply',
// query: {
// name: props.dataList.name,
// resourceId: [props.dataList.id],
// },
// })
console.log('一键申请===================>', props.dataList)
localStorage.setItem(
'applyList',
JSON.stringify([
{
arr: [
{
delFlag: props.dataList.delFlag,
description: props.dataList.description,
resourceId: props.dataList.id,
resourceName: props.dataList.name,
time: props.dataList.createDate,
type: props.dataList.type,
// componentType: '',
},
],
deptId: props.dataList.deptId,
deptName: props.dataList.deptName,
},
])
)
router.push({
path: '/apply',
})
}
// --
const handleAKeyApplication = () => {
let _applyList = []
;(props.dataList.fuseResourceList || []).map((v) => {
let resource = v.resource || {}
let obj = {
arr: [
{
delFlag: resource.delFlag,
description: resource.description,
resourceId: resource.id,
resourceName: resource.name,
time: resource.createDate,
type: resource.type,
},
],
deptId: resource.deptId,
deptName: resource.deptName,
}
_applyList.push(obj)
}) })
console.log('dataList------------>', props.dataList) localStorage.setItem('applyList', JSON.stringify(_applyList))
const applicationArea = ref('') router.push({
// // path: '/apply',
const addShoppingCart = () => { })
if (props.dataList.isInShoppingCart) { }
message.error('已经加入申购车了')
//
const scFlag2 = ref(true)
const goTOCollection = () => {
console.log('收藏===================》', props.dataList)
if (scFlag2.value) {
scFlag2.value = false
if (props.dataList.isCollect == 'true') {
scDel([props.dataList.id]).then((res) => {
if (res.data.msg === 'success') {
message.success('取消成功')
// eslint-disable-next-line vue/no-mutating-props
props.dataList.isCollect = 'false'
scFlag2.value = true
}
})
} else { } else {
console.log('加入申购车==================>', props.dataList) scInsert([
sgcInsert({ {
delFlag: '0', resourceId: props.dataList.id,
resourceId: props.dataList.id, },
// userId: userId.value, ]).then((res) => {
}).then((res) => { if (res.data.msg === 'success') {
console.log(res) message.success('添加收藏成功!')
message.success('添加申购车成功!') // eslint-disable-next-line vue/no-mutating-props
mybus.emit('getSgcNum') props.dataList.isCollect = 'true'
props.dataList.isInShoppingCart = true scFlag2.value = true
console.log( }
props.dataList.isInShoppingCart,
'props.dataList.isInShoppingCart'
)
}) })
} }
} }
// // scInsert([{ resourceId: props.dataList.id }]).then((res) => {
const openScene = (val) => { // console.log(res)
window.open(val, "_blank"); // message.success('')
} // })
// // }
function toView() { if (props.dataList.infoList) {
// window.open(newpage.href, '_blank') applicationArea.value = props.dataList.infoList.filter(
// router.push({ (val) => val.attrType === '应用领域'
// path: '/apply', )[0].attrValue
// query: { }
// name: props.dataList.name, watch(
// resourceId: [props.dataList.id], () => props.dataList,
// }, (val) => {
// }) if (val) {
console.log('一键申请===================>', props.dataList) console.log('props.dataList-----watch------->', val)
localStorage.setItem(
'applyList',
JSON.stringify([
{
arr: [
{
delFlag: props.dataList.delFlag,
description: props.dataList.description,
resourceId: props.dataList.id,
resourceName: props.dataList.name,
time: props.dataList.createDate,
type: props.dataList.type,
// componentType: '',
},
],
deptId: props.dataList.deptId,
deptName: props.dataList.deptName,
},
])
)
router.push({
path: '/apply',
})
}
// --
const handleAKeyApplication = () => {
let _applyList = []
;(props.dataList.fuseResourceList || []).map((v) => {
let resource = v.resource || {}
let obj = {
arr: [
{
delFlag: resource.delFlag,
description: resource.description,
resourceId: resource.id,
resourceName: resource.name,
time: resource.createDate,
type: resource.type,
},
],
deptId: resource.deptId,
deptName: resource.deptName,
}
_applyList.push(obj)
})
localStorage.setItem('applyList', JSON.stringify(_applyList)) applicationArea.value = props.dataList.infoList.filter(
router.push({ (val) => val.attrType === '应用领域'
path: '/apply', )[0].attrValue
})
}
//
const scFlag2 = ref(true)
const goTOCollection = () => {
console.log('收藏===================》', props.dataList)
if (scFlag2.value) {
scFlag2.value = false
if (props.dataList.isCollect == 'true') {
scDel([props.dataList.id]).then((res) => {
if (res.data.msg === 'success') {
message.success('取消成功')
// eslint-disable-next-line vue/no-mutating-props
props.dataList.isCollect = 'false'
scFlag2.value = true
}
})
} else {
scInsert([
{
resourceId: props.dataList.id,
},
]).then((res) => {
if (res.data.msg === 'success') {
message.success('添加收藏成功!')
// eslint-disable-next-line vue/no-mutating-props
props.dataList.isCollect = 'true'
scFlag2.value = true
}
})
}
} }
// scInsert([{ resourceId: props.dataList.id }]).then((res) => {
// console.log(res)
// message.success('')
// })
} }
if (props.dataList.infoList) { )
applicationArea.value = props.dataList.infoList.filter(
(val) => val.attrType === '应用领域'
)[0].attrValue
}
watch(
() => props.dataList,
(val) => {
if (val) {
console.log('props.dataList-----watch------->', val)
applicationArea.value = props.dataList.infoList.filter(
(val) => val.attrType === '应用领域'
)[0].attrValue
}
}
)
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.algorithm-top-details { .algorithm-top-details {
height: 6rem; height: 6rem;
padding: 1.8rem 0 0; padding: 1.8rem 0 0;
background: url('~@/assets/detailsAll/sf_top_bg.png') no-repeat; background: url('~@/assets/detailsAll/sf_top_bg.png') no-repeat;
background-size: 100%; background-size: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
.left { .left {
max-width: 7.2rem; max-width: 7.2rem;
color: #fff; color: #fff;
margin-right: 0.8rem; margin-right: 0.8rem;
.top { .top {
display: flex; display: flex;
align-items: center; align-items: center;
span { span {
font-size: 0.14rem; font-size: 0.14rem;
}
.name {
// max-width: 3.3rem;
// overflow: hidden;
// text-overflow: ellipsis;
// white-space: nowrap;
font-size: 0.4rem;
margin-right: 0.2rem;
font-size: 0.4rem;
margin-right: 0.2rem;
max-width: 6rem;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
word-break: break-all;
}
.label-content {
position: relative;
}
.lable-father {
position: absolute;
min-width: 3.5rem;
right: -3.5rem;
top: 0;
}
.label {
padding: 0.01rem 0.1rem;
margin-right: 0.1rem;
border-radius: 0.13rem;
background: rgba(255, 255, 255, 0.4);
}
} }
.main { .name {
margin-top: 0.2rem; // max-width: 3.3rem;
font-size: 0.18rem; // overflow: hidden;
line-height: 0.34rem; // text-overflow: ellipsis;
// white-space: nowrap;
// & > div:nth-of-type(1) { font-size: 0.4rem;
// overflow: hidden; margin-right: 0.2rem;
// text-overflow: ellipsis; font-size: 0.4rem;
// white-space: nowrap; margin-right: 0.2rem;
// } max-width: 6rem;
text-overflow: -o-ellipsis-lastline;
& > div:nth-of-type(1) { overflow: hidden;
max-height: 1rem; text-overflow: ellipsis;
overflow: hidden; display: -webkit-box;
text-overflow: ellipsis; -webkit-line-clamp: 1;
display: -webkit-box; -webkit-box-orient: vertical;
-webkit-line-clamp: 3; word-break: break-all;
-webkit-box-orient: vertical;
word-break: break-all;
}
} }
.bottom { .label-content {
margin-top: 0.4rem; position: relative;
display: flex; }
.ant-btn { .lable-father {
height: 0.5rem; position: absolute;
margin-right: 0.2rem; min-width: 3.5rem;
background: #ff8b55; right: -3.5rem;
border-radius: 0.06rem; top: 0;
font-size: 0.2rem; }
display: flex;
justify-content: center;
align-items: center;
}
.ant-btn:nth-of-type(1) { .label {
width: 1.8rem; padding: 0.01rem 0.1rem;
} margin-right: 0.1rem;
border-radius: 0.13rem;
.ant-btn:nth-of-type(2) { background: rgba(255, 255, 255, 0.4);
width: 2.2rem;
}
.ant-btn:nth-of-type(3) {
width: 1.45rem;
}
} }
} }
.right { .main {
width: 5.8rem; .bottomdesc {
height: 4rem; display: -webkit-box;
background: url('~@/assets/detailsAll/sf_right_bg.png') no-repeat; /*设置为弹性盒子*/
background-size: 100%; -webkit-line-clamp: 4;
margin-top: -0.4rem; /*最多显示2行*/
overflow: hidden;
/*超出隐藏*/
text-overflow: ellipsis;
/*超出显示为省略号*/
-webkit-box-orient: vertical;
word-break: break-all;
width: 800px;
font-size: 14px;
}
.bottomdesc1 {
overflow: auto;
width: 800px;
font-size: 14px;
height: 200px;
}
margin-top: 0.2rem;
font-size: 0.18rem;
line-height: 0.34rem;
}
.bottom {
margin-top: 0.4rem;
display: flex;
.ant-btn {
height: 0.5rem;
margin-right: 0.2rem;
background: #ff8b55;
border-radius: 0.06rem;
font-size: 0.2rem;
display: flex;
justify-content: center;
align-items: center;
}
.ant-btn:nth-of-type(1) {
width: 1.8rem;
}
.ant-btn:nth-of-type(2) {
width: 2.2rem;
}
.ant-btn:nth-of-type(3) {
width: 1.45rem;
}
} }
} }
.right {
width: 5.8rem;
height: 4rem;
background: url('~@/assets/detailsAll/sf_right_bg.png') no-repeat;
background-size: 100%;
margin-top: -0.4rem;
}
}
</style> </style>

View File

@ -420,7 +420,7 @@
}) })
mybus.on('changeMenuStyle', (data) => { mybus.on('changeMenuStyle', (data) => {
debugger
targetRouter.value = data targetRouter.value = data
if (data.path == '/algorithmCompare') { if (data.path == '/algorithmCompare') {
jumpPage( jumpPage(

View File

@ -31,9 +31,11 @@
/> />
<i class="searchImg" aria-hidden="true"></i> <i class="searchImg" aria-hidden="true"></i>
<button class="button-reset" @click="resetAction()">重置</button> <button class="button-reset" @click="resetAction()">重置</button>
<div class="hengxian"></div> <div class="hengxian"></div>
</div> </div>
</div> </div>
<div v-if="number === 0" class="checkResult">检测结果: <span>{{resourceTotal}}</span></div>
<div v-loading="loadingData"> <div v-loading="loadingData">
<searchResultList <searchResultList
v-if="number === 1" v-if="number === 1"
@ -52,7 +54,9 @@
:resourceTotal="resourceTotal" :resourceTotal="resourceTotal"
:selectCardsname="number == 0 ? '融合服务' : '赋能场景'" :selectCardsname="number == 0 ? '融合服务' : '赋能场景'"
/> />
<div class="pagination"> <div class="pagination">
<a-pagination <a-pagination
v-if="resourceList.data && resourceList.data.length > 0" v-if="resourceList.data && resourceList.data.length > 0"
v-model:current="currentPage" v-model:current="currentPage"
@ -330,9 +334,22 @@
}) })
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.checkResult{
margin-left: 0.2rem;
font-size: 14px;
font-weight: 500;
color: #212121;
margin-top: 10px;
span {
font-size: 18px;
color: #0087ff;
}
}
.resultListSearchInput-father { .resultListSearchInput-father {
background: #f3f5f9; background: #f3f5f9;
padding: 0.2rem; padding: 0rem 0.2rem;
.resultListSearchInput-son { .resultListSearchInput-son {
background: #fff; background: #fff;

View File

@ -347,6 +347,8 @@
message.success(`${info.file.name} 文件上传成功`) message.success(`${info.file.name} 文件上传成功`)
formName.enclosure = info.file.response.data formName.enclosure = info.file.response.data
} else if (info.file.status === 'error') { } else if (info.file.status === 'error') {
formName.enclosure = ''
fileList.value=[]
message.error(`${info.file.name} 文件上传失败`) message.error(`${info.file.name} 文件上传失败`)
} }
} }