Merge branch 'hi-ucs-dev' of http://15.2.21.221:3000/wuhongjian/hi-ucs into hi-ucs-dev

# Conflicts:
#	front/src/views/personalCenter/components/MyApply.vue
This commit is contained in:
a0049873 2022-07-01 14:32:40 +08:00
commit 9e609538f1
16 changed files with 267 additions and 82 deletions

View File

@ -66,21 +66,35 @@
</el-form-item> </el-form-item>
</div> </div>
<div v-if="!shifoushizujian"> <div v-if="!shifoushizujian">
<el-form-item label="组件名称"> <el-form-item label="组件名称" v-if="algorithmShow">
<el-input <el-input
v-model="dataForm.name" v-model="dataForm.name"
:disabled="fieldDisabled" :disabled="fieldDisabled"
placeholder="组件名称" placeholder="组件名称"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="应用描述"> <el-form-item label="算法名称" v-if="nameNotShow">
<el-input
v-model="dataForm.name"
:disabled="fieldDisabled"
placeholder="算法名称"
></el-input>
</el-form-item>
<el-form-item label="应用描述" v-if="algorithmShow">
<el-input <el-input
v-model="dataForm.description" v-model="dataForm.description"
:disabled="fieldDisabled" :disabled="fieldDisabled"
placeholder="应用描述" placeholder="应用描述"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="部门联系人"> <el-form-item label="算法描述" v-if="nameNotShow">
<el-input
v-model="dataForm.description"
:disabled="fieldDisabled"
placeholder="算法描述"
></el-input>
</el-form-item>
<el-form-item label="部门联系人" v-if="algorithmShow">
<el-input <el-input
v-model="dataForm.deptContacts" v-model="dataForm.deptContacts"
:disabled="fieldDisabled" :disabled="fieldDisabled"
@ -94,7 +108,7 @@
placeholder="共享类型" placeholder="共享类型"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="共享方式" v-if="coverageNotShow"> <el-form-item label="共享方式" v-if="coverageNotShow && algorithmShow">
<el-input <el-input
v-model="dataForm.shareMode" v-model="dataForm.shareMode"
:disabled="fieldDisabled" :disabled="fieldDisabled"
@ -117,7 +131,7 @@
</el-form-item> </el-form-item>
<el-form-item label="接口请求方式" v-if="coverageNotShow"> <el-form-item label="接口请求方式" v-if="coverageNotShow">
<el-input <el-input
v-model="dataForm.applyCount" v-model="dataForm.apiMethodType"
:disabled="fieldDisabled" :disabled="fieldDisabled"
placeholder="接口请求方式" placeholder="接口请求方式"
></el-input> ></el-input>
@ -180,7 +194,9 @@ export default {
dataForm: [], dataForm: [],
id: '', id: '',
shifoushizujian: true, shifoushizujian: true,
coverageNotShow: true coverageNotShow: true,
nameNotShow: false,
algorithmShow: true
} }
}, },
watch: {}, watch: {},
@ -209,13 +225,16 @@ export default {
} }
this.dataForm = res.data.resourceDTO this.dataForm = res.data.resourceDTO
if (this.dataForm.type != '应用资源') { if (this.dataForm.type != '应用资源') {
this.shifoushizujian = false
this.dataForm.infoList.forEach((val) => { this.dataForm.infoList.forEach((val) => {
if (val.attrValue === '图层服务') { if (val.attrValue === '图层服务') {
this.coverageNotShow = false this.coverageNotShow = false
console.log(this.coverageNotShow, 'wowowo') } else if (val.attrValue === '智能算法') {
this.nameNotShow = true
this.algorithmShow = false
console.log(this.nameNotShow, 'wowowo')
} }
}) })
this.shifoushizujian = false
} else { } else {
this.shifoushizujian = true this.shifoushizujian = true
} }

View File

@ -30,6 +30,12 @@ export default {
type: Array, type: Array,
default: () => [] default: () => []
}, },
colorArray: {
type: Array,
default: () => [
'#fe845e', '#ff3e55', '#d5c438', '#ff9999', '#9c78ed', '#48c760', '#48c6c7', '#0058e1',
]
},
}, },
watch: { watch: {
dataList: { dataList: {
@ -62,9 +68,6 @@ export default {
this.myChart = chartDom && echarts.init(chartDom); this.myChart = chartDom && echarts.init(chartDom);
let lengendArr = this.dataListCopy.filter(v => v.name); let lengendArr = this.dataListCopy.filter(v => v.name);
let colorArray = [
'#fe845e', '#ff3e55', '#d5c438', '#ff9999', '#9c78ed', '#48c760', '#48c6c7', '#0058e1',
]
let total = 0; let total = 0;
this.dataListCopy.map(v => { this.dataListCopy.map(v => {
@ -98,7 +101,17 @@ export default {
}, },
], ],
tooltip: { tooltip: {
triagger: 'item' triagger: 'item',
formatter: (params) => {
let str = ''
if (params.name == '线') {
str = ''
} else {
str = `<span style="display:inline-block;margin-right:5px;
border-radius:10px;width:10px;height:10px;background-color:${params.color};"></span>${params.name}: ${params.value}`
}
return str;
}
}, },
"legend": { "legend": {
type: 'scroll', type: 'scroll',
@ -119,7 +132,7 @@ export default {
"type": "pie", "type": "pie",
"center": ["50%", "40%"], "center": ["50%", "40%"],
"radius": ["50%", "63%"], "radius": ["50%", "63%"],
"color": colorArray, "color": this.colorArray,
"startAngle": 135, "startAngle": 135,
label: { label: {
show: false show: false
@ -163,18 +176,19 @@ export default {
}, },
data: this.dataListCopy, data: this.dataListCopy,
}, },
{ {
"type": "pie", "type": "pie",
"center": ["50%", "40%"], "center": ["50%", "40%"],
"radius": ["35%", "36%"], "radius": ["38%", "39%"],
"label": { "label": {
"show": false "show": false
}, },
hoverAnimation: false,
showTooltip: false,
color: ['#d8dde8'], color: ['#d8dde8'],
"data": [{ "data": [{
"value": 78, "value": 0,
"name": "实例1", "name": "线",
}] }]
} }
] ]

View File

@ -12,9 +12,16 @@
</div> </div>
</div> </div>
<div class="list-box" v-if="dataInfo.list.length > 0"> <div class="list-box" v-if="dataInfo.list.length > 0">
<div class="list-item" v-for="(item, i) in dataInfo.list" :key="i">
<div v-for="(item, i) in dataInfo.list" :key="i">
<el-tooltip effect="dark" :content="item[dataInfo.nameStr]" placement="top">
<div class="list-item ellipsis">
{{ item[dataInfo.nameStr] || '--' }} {{ item[dataInfo.nameStr] || '--' }}
</div> </div>
</el-tooltip>
</div>
<div class="more"> <div class="more">
查看更多 > 查看更多 >
</div> </div>
@ -49,6 +56,13 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.ellipsis {
//
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.no-margin-left { .no-margin-left {
margin-left: 0; margin-left: 0;
} }
@ -77,7 +91,8 @@ export default {
.left-box { .left-box {
display: flex; display: flex;
justify-content: center; justify-content: center;
width: 80px; // width: 80px;
width: 100px;
border-radius: 2px; border-radius: 2px;
height: 100%; height: 100%;
} }
@ -100,6 +115,7 @@ export default {
color: #000; color: #000;
margin-top: 25px; margin-top: 25px;
margin-bottom: 18px; margin-bottom: 18px;
text-align: center;
} }
.num { .num {

View File

@ -5,23 +5,25 @@
<div class="no-box"> <div class="no-box">
<div class="no no2"> <div class="no no2">
<div class="name" :style="{ color: colorObj[2] }">{{ no2Obj.name || '--' }}</div> <div class="name" :style="{ color: colorObj[2] }">{{ no2Obj.name || '--' }}</div>
<div class="count">{{ no2Obj.count }}</div> <div class="count">{{ formatCount(no2Obj.count) }}</div>
</div> </div>
<div class="no no1"> <div class="no no1">
<div class="name" :style="{ color: colorObj[1] }">{{ no1Obj.name }}</div> <div class="name" :style="{ color: colorObj[1] }">{{ no1Obj.name || '--' }}</div>
<div class="count">{{ no1Obj.count }}</div> <div class="count">{{ formatCount(no1Obj.count) }}</div>
</div> </div>
<div class="no no3"> <div class="no no3">
<div class="name" :style="{ color: colorObj[3] }">{{ no3Obj.name }}</div> <div class="name" :style="{ color: colorObj[3] }">{{ no3Obj.name || '--' }}</div>
<div class="count">{{ no3Obj.count }}</div> <div class="count">{{ formatCount(no3Obj.count) }}</div>
</div> </div>
</div> </div>
<div class="flex-row-between row-name" v-for="(data, i) in listInfo" :key="i"> <div class="flex-row-between row-name" v-for="(data, i) in listInfo" :key="i">
<div class="left"> <div class="left">
<div class="row-index">{{ i + 3 }}</div> <div class="row-index">{{ i + 3 }}</div>
<div class="name-text">{{ data.name }}</div> <el-tooltip effect="dark" :content="data.name" placement="top">
<div class="name-text ellipsis">{{ data.name || '--' }}</div>
</el-tooltip>
</div> </div>
<div class="count-text">{{ data.count }}</div> <div class="count-text">{{ formatCount(data.count) }}</div>
</div> </div>
</div> </div>
<div class="no-data" v-else>暂无数据</div> <div class="no-data" v-else>暂无数据</div>
@ -84,19 +86,29 @@ export default {
this[`no${k}Obj`].count = _arr[i].count this[`no${k}Obj`].count = _arr[i].count
} }
this.listInfo = [] this.listInfo = []
this.listInfo.push(_arr[3]) this.listInfo.push(_arr[3] || {})
this.listInfo.push(_arr[4]) this.listInfo.push(_arr[4] || {})
}, err => { }, err => {
this.loading = false; this.loading = false;
this.$message.error(err); this.$message.error(err);
}); });
}, },
formatCount(count) {
return count || count === 0 ? count : '--'
}
}, },
components: { contentTitle } components: { contentTitle }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.ellipsis {
//
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.flex-row-between { .flex-row-between {
display: flex; display: flex;
width: 100%; width: 100%;
@ -161,6 +173,7 @@ export default {
font-size: 16px; font-size: 16px;
margin-bottom: 10px; margin-bottom: 10px;
margin-top: 70px; margin-top: 70px;
width: 150px;
} }
.count { .count {
@ -182,6 +195,7 @@ export default {
font-size: 16px; font-size: 16px;
color: #464545; color: #464545;
margin-left: 10px; margin-left: 10px;
width: 430px;
} }

View File

@ -23,7 +23,7 @@ export default {
title: "名称", title: "名称",
key: "name", key: "name",
dataIndex: "name", dataIndex: "name",
width: 220 width: 250
}, },
{ {
title: "类型", title: "类型",
@ -35,7 +35,7 @@ export default {
title: "单位", title: "单位",
key: "deptContacts", key: "deptContacts",
dataIndex: "deptContacts", dataIndex: "deptContacts",
width: 114 width: 144
}, },
{ {
title: "时间", title: "时间",
@ -47,14 +47,8 @@ export default {
title: "当前申请数", title: "当前申请数",
key: "applyCount", key: "applyCount",
dataIndex: "applyCount", dataIndex: "applyCount",
width: 115 width: 145
}, },
{
title: "调用数量",
key: "visit",
dataIndex: "visit",
width: 90
}
], ],
data: [ data: [

View File

@ -8,11 +8,14 @@
style="margin-left: 0"></dept-todo-view> style="margin-left: 0"></dept-todo-view>
</div> </div>
<div class="flex-row-start dept-chart-box"> <div class="flex-row-start dept-chart-box">
<dept-chart-view id="shelves" title="部门上架" v-loading="loadingResource" :dataList="resourceData"> <dept-chart-view id="shelves" title="部门上架" v-loading="loadingResource" :dataList="resourceData"
:colorArray="resourceColor">
</dept-chart-view> </dept-chart-view>
<dept-chart-view id="apply" title="部门申请" v-loading="loadingApply" :dataList="applyData"> <dept-chart-view id="apply" title="部门申请" v-loading="loadingApply" :dataList="applyData"
:colorArray="applyColor">
</dept-chart-view> </dept-chart-view>
<dept-chart-view id="demand" title="部门需求" v-loading="loadingRequire" :dataList="requireData"> <dept-chart-view id="demand" title="部门需求" v-loading="loadingRequire" :dataList="requireData"
:colorArray="requireColor">
</dept-chart-view> </dept-chart-view>
</div> </div>
</div> </div>
@ -65,12 +68,15 @@ export default {
list: [], list: [],
nameStr: 'processDefinitionName' nameStr: 'processDefinitionName'
}, },
// //
resourceData: [], resourceData: [],
// resourceColor: ['#7b2cff', '#fd5151', , '#2ca1ff', '#0adbfa', '#febe13', '#65e5dd', '#f071ff', '#85f67a'],
//
applyData: [], applyData: [],
// applyColor: ["#5085f2", "#e75fc3", "#f87be2", "#f2719a", "#fca4bb", "#f59a8f", "#fdb301", "#57e7ec", "#cf9ef1"],
//
requireData: [], requireData: [],
requireColor: ['#FD866A', '#9E87FF', '#58D5FF', '#73DDFF', '#73ACFF', '#FDD56A', '#FDB36A',],
loadingToDo: false, loadingToDo: false,
loadingHasToDo: false, loadingHasToDo: false,
loadingResource: false, loadingResource: false,
@ -105,7 +111,7 @@ export default {
} }
console.log('res----待办-------->', res.data); console.log('res----待办-------->', res.data);
this.toToData.list = res.data.data.records || [] this.toToData.list = res.data.data.records || []
this.toToData.num = res.data.data.records.length || 0 this.toToData.num = res.data.data.total || 0
}, err => { }, err => {
this.$message.error(err); this.$message.error(err);
this.loadingToDo = false; this.loadingToDo = false;
@ -125,7 +131,7 @@ export default {
} }
console.log('res----已办-------->', res.data); console.log('res----已办-------->', res.data);
this.hasToDodoData.list = res.data.data.records || [] this.hasToDodoData.list = res.data.data.records || []
this.hasToDodoData.num = res.data.data.records.length || 0 this.hasToDodoData.num = res.data.data.total || 0
}, err => { }, err => {
this.$message.error(err) this.$message.error(err)
this.loadingHasToDo = false; this.loadingHasToDo = false;

View File

@ -80,3 +80,17 @@ export function dataResourceInfo(params) {
params, params,
}) })
} }
//-
export function callTheTrendPort(start, end, params) {
return request({
url: '/metrics/api/v1/query_range?query=sum(increase(apigateway_http_status%5B1d%5D))&start=' + start + '&end=' + end + '&step=' + params,
method: 'get',
})
}
//-
export function totalCallsSnum(params) {
return request({
url: '/metrics/api/v1/query?query=sum(apigateway_http_status)&time=1655793262.495' + params,
method: 'get',
})
}

View File

@ -117,6 +117,8 @@
import { import {
assemblerBaseStatic, assemblerBaseStatic,
componentServiceRank, componentServiceRank,
callTheTrendPort,
totalCallsSnum,
} from '@/api/capabilityCloud' } from '@/api/capabilityCloud'
import * as moment from 'moment' import * as moment from 'moment'
let snum = ref([ let snum = ref([
@ -145,20 +147,50 @@
.subtract('days', 6 - i) .subtract('days', 6 - i)
.format('MM-DD') .format('MM-DD')
callTheTrendData.value.time.push(time) callTheTrendData.value.time.push(time)
callTheTrendData.value.snum.push('0')
console.log('time', callTheTrendData.value, name) console.log('time', callTheTrendData.value, name)
} }
const start = parseInt(
(Date.parse(new Date()) - 168 * 60 * 60 * 1000) / 1000
)
const end = Date.parse(new Date()) / 1000
callTheTrendPort(start, end, 86400).then((res) => {
if (res.data.data.result) {
res.data.data.result[0].values.splice(0, 1)
res.data.data.result[0].values.map((item) => {
callTheTrendData.value.snum.push(parseInt(item[1]))
})
callTheTrend(callTheTrendData.value) callTheTrend(callTheTrendData.value)
} else {
callTheTrendData.value.snum = ['0', '0', '0', '0', '0', '0', '0']
callTheTrend(callTheTrendData.value)
}
})
} else { } else {
for (let i = 0; i < 31; i++) { for (let i = 0; i < 31; i++) {
let time = moment() let time = moment()
.subtract('days', 30 - i) .subtract('days', 30 - i)
.format('MM-DD') .format('MM-DD')
callTheTrendData.value.time.push(time) callTheTrendData.value.time.push(time)
callTheTrendData.value.snum.push('0')
console.log('time', callTheTrendData.value, name) console.log('time', callTheTrendData.value, name)
} }
const start = parseInt(
(Date.parse(new Date()) - 720 * 60 * 60 * 1000) / 1000
)
const end = Date.parse(new Date()) / 1000
callTheTrendPort(start, end, 86400).then((res) => {
if (res.data.data.result) {
// res.data.data.result.splice(0, 1)
res.data.data.result[0].values.map((item) => {
callTheTrendData.value.snum.push(parseInt(item[1]))
})
callTheTrend(callTheTrendData.value) callTheTrend(callTheTrendData.value)
} else {
for (let i = 0; i < 30; i++) {
callTheTrendData.value.snum.push('0')
}
callTheTrend(callTheTrendData.value)
}
})
} }
} }
//echarts //echarts
@ -316,10 +348,18 @@
}) })
}) })
} }
//
const TotalCallsAPI = () => {
const end = Date.parse(new Date()) / 1000
totalCallsSnum(end).then((res) => {
snum.value[1].num = res.data.data.result[0].value[1]
})
}
const init = () => { const init = () => {
timeSwitch(timeSwitchindex.value) timeSwitch(timeSwitchindex.value)
NumberOfComponentServices() NumberOfComponentServices()
ranking(dataclick.value) ranking(dataclick.value)
TotalCallsAPI()
} }
onMounted(() => { onMounted(() => {
init() init()

View File

@ -28,10 +28,16 @@
<!-- <span class="label">免费</span> --> <!-- <span class="label">免费</span> -->
</div> </div>
<div class="main"> <div class="main">
<a-tooltip placement="top">
<template #title>应用领域{{ applicationArea }}</template>
<div>应用领域{{ applicationArea }}</div> <div>应用领域{{ applicationArea }}</div>
</a-tooltip>
<a-tooltip placement="top">
<template #title>{{ props.dataList.description }}</template>
<div> <div>
{{ props.dataList.description }} {{ props.dataList.description }}
</div> </div>
</a-tooltip>
</div> </div>
<div class="bottom" v-if="props.dataList.id"> <div class="bottom" v-if="props.dataList.id">
<a-button type="primary" @click="toView()"> <a-button type="primary" @click="toView()">

View File

@ -26,10 +26,16 @@
<!-- <span class="label">免费</span> --> <!-- <span class="label">免费</span> -->
</div> </div>
<div class="main"> <div class="main">
<a-tooltip placement="top">
<template #title>应用领域{{ applicationArea }}</template>
<div>应用领域{{ applicationArea }}</div> <div>应用领域{{ applicationArea }}</div>
</a-tooltip>
<a-tooltip placement="top">
<template #title>{{ props.dataList.description }}</template>
<div> <div>
{{ props.dataList.description }} {{ props.dataList.description }}
</div> </div>
</a-tooltip>
</div> </div>
<div class="bottom" v-if="props.dataList.id"> <div class="bottom" v-if="props.dataList.id">
<!-- <a-button type="primary" @click="toView()"> <!-- <a-button type="primary" @click="toView()">

View File

@ -28,11 +28,16 @@
<!-- <span class="label">免费</span> --> <!-- <span class="label">免费</span> -->
</div> </div>
<div class="main"> <div class="main">
<div>应用领域{{ businessArea }}</div> <a-tooltip placement="top">
<!-- 应用描述 --> <template #title>应用领域{{ applicationArea }}</template>
<div>应用领域{{ applicationArea }}</div>
</a-tooltip>
<a-tooltip placement="top">
<template #title>{{ props.dataList.description }}</template>
<div> <div>
{{ props.dataList.description }} {{ props.dataList.description }}
</div> </div>
</a-tooltip>
</div> </div>
<div class="bottom" v-if="props.dataList.id"> <div class="bottom" v-if="props.dataList.id">
<a-button type="primary" @click="toView()"> <a-button type="primary" @click="toView()">

View File

@ -28,10 +28,16 @@
<!-- <span class="label">免费</span> --> <!-- <span class="label">免费</span> -->
</div> </div>
<div class="main"> <div class="main">
<a-tooltip placement="top">
<template #title>应用领域{{ applicationArea }}</template>
<div>应用领域{{ applicationArea }}</div> <div>应用领域{{ applicationArea }}</div>
</a-tooltip>
<a-tooltip placement="top">
<template #title>{{ props.dataList.description }}</template>
<div> <div>
{{ props.dataList.description }} {{ props.dataList.description }}
</div> </div>
</a-tooltip>
</div> </div>
<div class="bottom" v-if="props.dataList.id"> <div class="bottom" v-if="props.dataList.id">
<a-button type="primary" @click="toView()"> <a-button type="primary" @click="toView()">

View File

@ -28,11 +28,16 @@
<!-- <span class="label">免费</span> --> <!-- <span class="label">免费</span> -->
</div> </div>
<div class="main"> <div class="main">
<div>应用领域{{ businessArea }}</div> <a-tooltip placement="top">
<!-- 应用描述 --> <template #title>应用领域{{ applicationArea }}</template>
<div>应用领域{{ applicationArea }}</div>
</a-tooltip>
<a-tooltip placement="top">
<template #title>{{ props.dataList.description }}</template>
<div> <div>
{{ props.dataList.description }} {{ props.dataList.description }}
</div> </div>
</a-tooltip>
</div> </div>
<div class="bottom" v-if="props.dataList.id"> <div class="bottom" v-if="props.dataList.id">
<a-button type="primary" @click="toView()"> <a-button type="primary" @click="toView()">

View File

@ -284,6 +284,7 @@
background-color: #fff; background-color: #fff;
border-radius: 0.02rem; border-radius: 0.02rem;
box-shadow: 0 0.05rem 0.2rem #ccc; box-shadow: 0 0.05rem 0.2rem #ccc;
position: relative;
div:nth-of-type(1) { div:nth-of-type(1) {
height: 1.02rem; height: 1.02rem;
line-height: 1.02rem; line-height: 1.02rem;
@ -336,6 +337,8 @@
text-align: center; text-align: center;
margin-top: 0.1rem; margin-top: 0.1rem;
margin-left: 0.85rem; margin-left: 0.85rem;
position: absolute;
bottom: 0.2rem;
} }
.btn:hover { .btn:hover {
background: rgba(0, 88, 225, 0.3); background: rgba(0, 88, 225, 0.3);

View File

@ -367,20 +367,34 @@
</a-form-item> </a-form-item>
</div> </div>
<div v-if="!shifoushizujian"> <div v-if="!shifoushizujian">
<a-form-item label="组件名称"> <a-form-item label="组件名称" v-if="algorithmShow">
<a-input <a-input
v-model:value="dataForm.data.name" v-model:value="dataForm.data.name"
disabled="true" disabled="true"
placeholder="组件名称" placeholder="组件名称"
></a-input> ></a-input>
</a-form-item> </a-form-item>
<a-form-item label="应用描述"> <a-form-item label="算法名称" v-if="nameNotShow">
<a-input
v-model:value="dataForm.data.name"
disabled="true"
placeholder="算法名称"
></a-input>
</a-form-item>
<a-form-item label="应用描述" v-if="algorithmShow">
<a-input <a-input
v-model:value="dataForm.data.description" v-model:value="dataForm.data.description"
disabled="true" disabled="true"
placeholder="应用描述" placeholder="应用描述"
></a-input> ></a-input>
</a-form-item> </a-form-item>
<a-form-item label="算法描述" v-if="nameNotShow">
<a-input
v-model:value="dataForm.data.description"
disabled="true"
placeholder="算法描述"
></a-input>
</a-form-item>
<a-form-item label="部门联系人"> <a-form-item label="部门联系人">
<a-input <a-input
v-model:value="dataForm.data.deptContacts" v-model:value="dataForm.data.deptContacts"
@ -418,7 +432,7 @@
</a-form-item> </a-form-item>
<a-form-item label="接口请求方式"> <a-form-item label="接口请求方式">
<a-input <a-input
v-model:value="dataForm.data.applyCount" v-model:value="dataForm.data.apiMethodType"
disabled="true" disabled="true"
placeholder="接口请求方式" placeholder="接口请求方式"
></a-input> ></a-input>
@ -551,6 +565,8 @@
id: '', id: '',
}) })
let shifoushizujian = ref('') let shifoushizujian = ref('')
let nameNotShow = ref('')
let algorithmShow = ref('')
const dataForm = reactive({ data: {} }) const dataForm = reactive({ data: {} })
// //
const dataSource = reactive({ data: [] }) const dataSource = reactive({ data: [] })
@ -637,6 +653,17 @@
shifoushizujian.value = true shifoushizujian.value = true
} else { } else {
shifoushizujian.value = false shifoushizujian.value = false
console.log(res.data.data.resourceDTO)
debugger
res.data.data.resourceDTO.infoList.forEach((val) => {
console.log(val, '111111111111111111111111')
if (val.attrValue === '智能算法') {
nameNotShow.value = true
algorithmShow.value = false
console.log(nameNotShow.value, algorithmShow.value, 'wowowo')
debugger
}
})
} }
console.log('222222222222', dataForm.data) console.log('222222222222', dataForm.data)
}) })

View File

@ -664,13 +664,23 @@
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
width: 100%; width: 100%;
text-overflow: -o-ellipsis-lastline; // text-overflow: -o-ellipsis-lastline;
// overflow: hidden;
// text-overflow: ellipsis;
// display: -webkit-box;
// -webkit-line-clamp: 3;
// -webkit-box-orient: vertical;
display: flex;
color: #999999;
span {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 3; -webkit-line-clamp: 1;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
color: #999999; max-width: 8.1rem;
line-height: 24px;
}
} }
.content-body-bottom { .content-body-bottom {
display: flex; display: flex;