Commit 09887162 by liudx

修改bug

parent 081d36af
...@@ -62,7 +62,10 @@ ...@@ -62,7 +62,10 @@
></cooperation> ></cooperation>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="科创能力评价" tab="科创能力评价"> <a-tab-pane key="科创能力评价" tab="科创能力评价">
<technology :technologyData="technologyData"></technology> <technology
:technologyData="technologyData"
:company_name="baseinfo.company_name"
></technology>
</a-tab-pane> </a-tab-pane>
</a-tabs> </a-tabs>
<a-modal <a-modal
...@@ -186,8 +189,8 @@ export default { ...@@ -186,8 +189,8 @@ export default {
}, },
visible: false, visible: false,
max_value_purchase: 0, max_value_purchase: 0,
max_value_apply:0, max_value_apply: 0,
max_list_apply:[], max_list_apply: [],
email: "", email: "",
value: undefined, value: undefined,
activeKey: "企业概况", activeKey: "企业概况",
...@@ -319,7 +322,7 @@ export default { ...@@ -319,7 +322,7 @@ export default {
jointApplication({ id: id }).then((res) => { jointApplication({ id: id }).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.jointData = res.data; this.jointData = res.data;
this.max_list_apply = this.jointData.max_list this.max_list_apply = this.jointData.max_list;
this.max_value_apply = this.max_value_apply =
this.jointData.max_list.length > 0 this.jointData.max_list.length > 0
? this.jointData.max_list[0].max_value ? this.jointData.max_list[0].max_value
...@@ -390,8 +393,7 @@ export default { ...@@ -390,8 +393,7 @@ export default {
this.technologyData.technical_quality_avg, this.technologyData.technical_quality_avg,
this.technologyData.technical_volume_avg, this.technologyData.technical_volume_avg,
], ],
name: "均值", name: this.technologyData.company_industry,
areaStyle: { areaStyle: {
color: "#F7B46A", color: "#F7B46A",
}, },
...@@ -416,7 +418,7 @@ export default { ...@@ -416,7 +418,7 @@ export default {
this.technologyData.technical_quality, this.technologyData.technical_quality,
this.technologyData.technical_volume, this.technologyData.technical_volume,
], ],
name: "科创能力分值", name: this.baseinfo.company_name,
areaStyle: { areaStyle: {
color: "#5A95F7", color: "#5A95F7",
...@@ -1012,7 +1014,7 @@ export default { ...@@ -1012,7 +1014,7 @@ export default {
let company_finance = that.baseinfo.company_finance; let company_finance = that.baseinfo.company_finance;
let max_value_purchase = that.max_value_purchase; let max_value_purchase = that.max_value_purchase;
let max_list_apply = that.max_list_apply; let max_list_apply = that.max_list_apply;
let max_value_apply = that.max_value_apply let max_value_apply = that.max_value_apply;
let date = new Date(); let date = new Date();
var year = date.getFullYear(); var year = date.getFullYear();
var month = date.getMonth() + 1; var month = date.getMonth() + 1;
...@@ -1283,6 +1285,7 @@ export default { ...@@ -1283,6 +1285,7 @@ export default {
created() { created() {
this.id = this.$route.query.id; this.id = this.$route.query.id;
this.init(this.id); this.init(this.id);
window.scrollTo(0, 0); window.scrollTo(0, 0);
}, },
......
...@@ -79,13 +79,14 @@ export default { ...@@ -79,13 +79,14 @@ export default {
}, },
props: { props: {
technologyData: Object, technologyData: Object,
company_name:String,
}, },
beforeMount() { beforeMount() {
this.init() this.init()
}, },
created() { created() {
this.technology = this.$props.technologyData; this.technology = this.$props.technologyData;
this.name = this.$props.company_name
console.log() console.log()
}, },
methods: { methods: {
...@@ -137,8 +138,7 @@ export default { ...@@ -137,8 +138,7 @@ export default {
{ {
// value: [20, 10, 25], // value: [20, 10, 25],
value:[this.technology.company_competitiveness_avg,this.technology.technical_quality_avg,this.technology.technical_volume_avg], value:[this.technology.company_competitiveness_avg,this.technology.technical_quality_avg,this.technology.technical_volume_avg],
name: "均值", name: this.technology.company_industry,
areaStyle: { areaStyle: {
color: "#F7B46A", color: "#F7B46A",
}, },
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
{ {
// value: [10, 15, 15], // value: [10, 15, 15],
value:[this.technology.company_competitiveness,this.technology.technical_quality,this.technology.technical_volume], value:[this.technology.company_competitiveness,this.technology.technical_quality,this.technology.technical_volume],
name: "科创能力分值", name: this.name,
areaStyle: { areaStyle: {
color: "#5A95F7", color: "#5A95F7",
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
<div class="home_main"> <div class="home_main">
<div class="sider"> <div class="sider">
{{ current }}
<div <div
:class="[current == item.name ? 'sider_item active' : 'sider_item ']" :class="[current == item.name ? 'sider_item active' : 'sider_item ']"
v-for="item in siderArr" v-for="item in siderArr"
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<div style="position: relative"> <div style="position: relative">
<div <div
v-if="patent_cate == 'title'" v-if="patent_cate == 'title'"
style="cursor: pointer;width: 80%;" style="cursor: pointer; width: 80%"
v-html="item.title" v-html="item.title"
@click="lenovnoPatentDetails(item)" @click="lenovnoPatentDetails(item)"
></div> ></div>
...@@ -162,7 +162,7 @@ export default { ...@@ -162,7 +162,7 @@ export default {
name: "patent", name: "patent",
data() { data() {
return { return {
timer:null, timer: null,
zh_CN, zh_CN,
search_result_show: false, search_result_show: false,
search_result: [], search_result: [],
...@@ -371,6 +371,7 @@ export default { ...@@ -371,6 +371,7 @@ export default {
}, },
//联想搜索 //联想搜索
onInput() { onInput() {
console.log(11111111111111);
patentLenovo({ keyword: this.keyword }).then((res) => { patentLenovo({ keyword: this.keyword }).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.search_result_show = true; this.search_result_show = true;
...@@ -386,6 +387,8 @@ export default { ...@@ -386,6 +387,8 @@ export default {
}, },
// //
onFocus() { onFocus() {
console.log(2222222222222);
if (this.keyword) { if (this.keyword) {
patentLenovo({ keyword: this.keyword }).then((res) => { patentLenovo({ keyword: this.keyword }).then((res) => {
if (res.code == 0) { if (res.code == 0) {
...@@ -409,7 +412,6 @@ export default { ...@@ -409,7 +412,6 @@ export default {
}, },
//从联想结果打开专利页面 //从联想结果打开专利页面
lenovnoPatentDetails(item) { lenovnoPatentDetails(item) {
this.$router.push({ this.$router.push({
path: "/patentDetails", path: "/patentDetails",
query: { query: {
...@@ -432,7 +434,8 @@ export default { ...@@ -432,7 +434,8 @@ export default {
created() { created() {
this.type = "专利"; this.type = "专利";
this.keyword = this.$route.query.keyword; this.keyword = this.$route.query.keyword;
if (!this.keyword && sessionStorage.getItem("searchzl") == "") { this.keyword ? (this.filter = [this.keyword]) : (this.filter = []);
if (sessionStorage.getItem("searchzl") == "") {
this.getList(this.keyword); this.getList(this.keyword);
} }
...@@ -511,7 +514,6 @@ export default { ...@@ -511,7 +514,6 @@ export default {
padding: 15px 5px 15px 25px; padding: 15px 5px 15px 25px;
font-family: "SF Pro Text"; font-family: "SF Pro Text";
font-size: 16px; font-size: 16px;
} }
.search_result_item:hover { .search_result_item:hover {
background-color: #f5fbff; background-color: #f5fbff;
......
...@@ -292,6 +292,7 @@ ...@@ -292,6 +292,7 @@
<a-descriptions-item :span="2" label="注册地址">{{ <a-descriptions-item :span="2" label="注册地址">{{
item.address item.address
}}</a-descriptions-item> }}</a-descriptions-item>
<template v-if="item.patents.length != 0">
<a-descriptions-item <a-descriptions-item
:span="3" :span="3"
label="专利信息" label="专利信息"
...@@ -301,21 +302,25 @@ ...@@ -301,21 +302,25 @@
<div v-html="item.patents[1]"></div> <div v-html="item.patents[1]"></div>
<div v-html="item.patents[2]"></div> <div v-html="item.patents[2]"></div>
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item <a-descriptions-item
:span="3" :span="3"
label="专利信息" label="专利信息"
v-else-if="item.patents.length == 0" v-else-if="item.patents.length == 0"
> >
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item :span="3" label="专利信息" v-else> <a-descriptions-item :span="3" label="专利信息" v-else>
<template v-for="patent in item.patents"> <template v-for="patent in item.patents">
<div v-html="patent"></div> <div v-html="patent"></div>
</template> </template>
</a-descriptions-item> </a-descriptions-item>
</template>
<template v-if="item.business_scope">
<a-descriptions-item :span="3" label="经营范围"> <a-descriptions-item :span="3" label="经营范围">
<div v-html="item.business_scope"></div> <div v-html="item.business_scope"></div>
</a-descriptions-item> </a-descriptions-item>
</template>
</a-descriptions> </a-descriptions>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment