提交 20c4fb9c authored 作者: coderBryanFu's avatar coderBryanFu

update

...@@ -126,17 +126,42 @@ export function getSanctionOverview(params) { ...@@ -126,17 +126,42 @@ export function getSanctionOverview(params) {
}) })
} }
// 规则限制-背景分析
export function getBackGround(params) {
return request({
method: 'GET',
url: `/api/ruleLimitInfo/getBackGround/${params}`
})
}
// 实体清单-制裁概况-获取发布机构机构动态 // 规则限制-限制条款
/** export function getLimitClause(params) {
* @param {Object} data
* @param {string} data.orgId
* @header token
*/
export function getPublishOrgInfo(data) {
return request({ return request({
method: 'POST', method: 'GET',
url: `/api/organization/relate/news`, url: `/api/ruleLimitInfo/getLimitClause/${params}`
data,
}) })
} }
\ No newline at end of file
// 规则限制-相关举措
export function getRelevantMeasures(params) {
return request({
method: 'GET',
url: `/api/ruleLimitInfo/getRelevantMeasures/${params}`
})
}
// // 实体清单-制裁概况-获取发布机构机构动态
// /**
// * @param {Object} data
// * @param {string} data.orgId
// * @header token
// */
// export function getPublishOrgInfo(data) {
// return request({
// method: 'POST',
// url: `/api/organization/relate/news`,
// data,
// })
// }
\ No newline at end of file
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<div class="title">{{ item.RULENAME }}</div> <div class="title">{{ item.RULENAME }}</div>
<div class="content">{{ item.RULEINTRODUCTION }}</div> <div class="content">{{ item.RULEINTRODUCTION }}</div>
<div class="domain"> <div class="domain">
<div v-for="(domain, i) in item.ruleAreas" :key="i" class="domain-item">{{ domain }}</div> <div v-for="(domain, i) in item.ruleAreas" :key="i" class="domain-item" :class="getClassName(domain)">{{ domain }}</div>
</div> </div>
<div <div
class="type" class="type"
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<div <div
v-for="(ele, index) in item.area" v-for="(ele, index) in item.area"
:key="index" :key="index"
:class="{ type1: ele !== '', type3: ele === '' }" :class="[{ type1: ele !== '', type3: ele === '' }, getClassName(ele)]"
>{{ ele }}</div> >{{ ele }}</div>
</div> </div>
</div> </div>
...@@ -470,6 +470,41 @@ const getDate = (item) => { ...@@ -470,6 +470,41 @@ const getDate = (item) => {
} }
} }
const getClassName = (type) => {
let className = ''
switch (type) {
case '人工智能':
className = 'ai'
break
case '新材料':
className = 'material'
break
case '量子科技':
className = 'technology'
break
case '生物科技':
className = 'organism'
break
case '航空航天':
className = 'aerospace'
break
case '能源':
className = 'energy'
break
case '集成电路':
className = 'integrated'
break
case '':
className = 'none-class'
break
default:
className = 'other'
}
return className
}
onMounted(async () => { onMounted(async () => {
await getRuleLimitListApi() await getRuleLimitListApi()
try { try {
...@@ -506,6 +541,62 @@ const handlePageChangeACTA = p => { ...@@ -506,6 +541,62 @@ const handlePageChangeACTA = p => {
width: 1600px; width: 1600px;
height: 1565px; height: 1565px;
position: relative; position: relative;
// 领域样式
// 人工智能
.ai {
border: 1px solid rgba(255, 163, 158, 1);
background: rgba(255, 241, 240, 1);
color: rgba(245, 34, 45, 1);
}
// 新材料
.material {
border: 1px solid rgba(135, 232, 222, 1);
background: rgba(230, 255, 251, 1);
color: rgba(19, 168, 168, 1);
}
// 量子科技
.technology {
border: 1px solid rgba(211, 173, 247, 1);
background: rgba(249, 240, 255, 1);
color: rgba(114, 46, 209, 1);
}
// 生物科技
.organism {
border: 1px solid rgba(145, 202, 255, 1);
background: rgba(230, 244, 255, 1);
color: rgba(22, 119, 255, 1);
}
// 航空航天
.aerospace {
border: 1px solid rgba(173, 198, 255, 1);
background: rgba(240, 245, 255, 1);
color: rgba(22, 119, 255, 1);
}
// 能源
.energy {
border: 1px solid rgba(217, 247, 190, 1);
background: rgba(246, 255, 237, 1);
color: rgba(56, 158, 13, 1);
}
// 集成电路
.integrated {
border: 1px solid rgba(186, 224, 255, 1);
background: rgba(230, 244, 255, 1);
color: rgba(9, 88, 217, 1);
}
// 其他
.other {
border: 1px solid rgba(186, 224, 255, 1);
background: rgba(230, 244, 255, 1);
color: rgba(9, 88, 217, 1);
}
// 无类型
.none-class {
background: transparent;
border: none;
}
.nav { .nav {
width: 332px; width: 332px;
height: 42px; height: 42px;
...@@ -727,9 +818,9 @@ const handlePageChangeACTA = p => { ...@@ -727,9 +818,9 @@ const handlePageChangeACTA = p => {
cursor: pointer; cursor: pointer;
} }
.type { .type {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
padding: 2px 8px; padding: 2px 8px;
border-radius: 20px; border-radius: 20px;
font-size: 16px; font-size: 16px;
...@@ -760,8 +851,8 @@ const handlePageChangeACTA = p => { ...@@ -760,8 +851,8 @@ const handlePageChangeACTA = p => {
font-family: "Microsoft YaHei"; font-family: "Microsoft YaHei";
line-height: 20px; line-height: 20px;
margin-right: 8px; margin-right: 8px;
color: rgb(5, 95, 194); // color: rgb(5, 95, 194);
background-color: rgba(231, 243, 255, 1); // background-color: rgba(231, 243, 255, 1);
} }
} }
} }
...@@ -1005,9 +1096,9 @@ const handlePageChangeACTA = p => { ...@@ -1005,9 +1096,9 @@ const handlePageChangeACTA = p => {
color: rgb(95, 101, 108); color: rgb(95, 101, 108);
} }
.type1 { .type1 {
border-color: rgba(145, 202, 255, 1); // border-color: rgba(145, 202, 255, 1);
color: rgba(22, 119, 255, 1); // color: rgba(22, 119, 255, 1);
background-color: rgba(230, 244, 255, 1); // background-color: rgba(230, 244, 255, 1);
border-radius: 4px; border-radius: 4px;
border: 1px solid; border: 1px solid;
padding: 2px 8px; padding: 2px 8px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论