Commit b0dfe3cc by liudx

联调导出接口

parent a776e5f0
No preview for this file type
...@@ -6,7 +6,7 @@ export const patentselect = p => post('/api/patent/patents',p); ...@@ -6,7 +6,7 @@ export const patentselect = p => post('/api/patent/patents',p);
//专利详情页面 //专利详情页面
export const patentDetail = p => get('/api/patent/patentDetail/'+p.id); export const patentDetail = p => get('/api/patent/patentDetail/'+p.id);
//导出word给后端传递base64 //导出word给后端传递base64
export const exportword = p => post('/api/patent/patentDetail/125',p); export const exportword = p => post('/api/users/enterprisePatentExport',p);
//专利智能推荐 //专利智能推荐
export const Recommend = p => post('/api/patent/intelligentRecommendation/'+p.id,p); export const Recommend = p => post('/api/patent/intelligentRecommendation/'+p.id,p);
// 企业搜索接口 // 企业搜索接口
......
...@@ -119,6 +119,7 @@ export default { ...@@ -119,6 +119,7 @@ export default {
{ {
type: "radar", type: "radar",
radarIndex: 0, radarIndex: 0,
symbol: 'none',
data: [ data: [
{ {
value: [20, 10, 25], value: [20, 10, 25],
...@@ -139,6 +140,7 @@ export default { ...@@ -139,6 +140,7 @@ export default {
{ {
type: "radar", type: "radar",
radarIndex: 0, radarIndex: 0,
symbol: 'none',
data: [ data: [
{ {
value: [10, 20, 10], value: [10, 20, 10],
...@@ -159,37 +161,6 @@ export default { ...@@ -159,37 +161,6 @@ export default {
], ],
}; };
chart.setOption(option1); chart.setOption(option1);
//在name上移动
// let that = this;
// chart.on("mousemove", function (params) {
// that.hover = true;
// if (params.name == "技术质量") {
// that.$nextTick(() => {
// that.$refs.hover.style.left = params.event.offsetX + "px";
// that.$refs.hover.style.top = params.event.offsetY + "px";
// });
// that.con =
// "从有效专利占专利申请总量比例、有效发明专利占有效专利比例和风险专利占全部申请专利的比例分析";
// } else if (params.name == "公司竞争力") {
// that.$nextTick(() => {
// that.$refs.hover.style.left = params.event.offsetX + "px";
// that.$refs.hover.style.top = params.event.offsetY + "px";
// });
// that.con = "从公司资质类别、公司规模、对外投资和公司融资分析";
// } else if (params.name == "技术体量") {
// that.$nextTick(() => {
// that.$refs.hover.style.left = params.event.offsetX + "px";
// that.$refs.hover.style.top = params.event.offsetY + "px";
// });
// that.con = "从专利申请总量、有效专利总量和近3年专利申请增速分析";
// } else {
// that.hover = false;
// }
// });
// chart.on("mouseout", function (params) {
// that.hover = false;
// });
}, },
getOption2() { getOption2() {
var data = [ var data = [
...@@ -218,11 +189,11 @@ export default { ...@@ -218,11 +189,11 @@ export default {
this.option2 = { this.option2 = {
tooltip: { tooltip: {
formatter: "{a} <br/>{b} : {c}%", formatter: "{a} <br/>{b} : {c}",
}, },
series: [ series: [
{ {
name: "Pressure", name: "总分",
startAngle: 180, startAngle: 180,
endAngle: 0, endAngle: 0,
min: 0, min: 0,
...@@ -240,7 +211,7 @@ export default { ...@@ -240,7 +211,7 @@ export default {
data: [ data: [
{ {
value: 50, value: 50,
name: "总分", name: "科创能力总分值",
}, },
], ],
}, },
...@@ -254,6 +225,7 @@ export default { ...@@ -254,6 +225,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.company_con { .company_con {
clear: both; clear: both;
// min-height: 900px;
position: relative; position: relative;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
......
...@@ -35,15 +35,6 @@ ...@@ -35,15 +35,6 @@
:rules="formRules" :rules="formRules"
> >
<a-form-item name="phone"> <a-form-item name="phone">
<!-- :rules="[
{ required: true, message: '请输入手机号!' },
{
pattern:
/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,
message: '手机号格式不正确!',
validateTrigger: 'onBlur',
},
]" -->
<a-input v-model:value="formState.phone" placeholder="请输入手机号"> <a-input v-model:value="formState.phone" placeholder="请输入手机号">
<template #prefix> <template #prefix>
<img src="../../static/login/icon-user.png" alt="" /> <img src="../../static/login/icon-user.png" alt="" />
......
...@@ -195,23 +195,21 @@ export default { ...@@ -195,23 +195,21 @@ export default {
file.type === "image/gif" || file.type === "image/gif" ||
file.type === "image/jpg"; file.type === "image/jpg";
if (!isJpgOrPng) { if (!isJpgOrPng) {
return this.$message.error("请上传正确的图片格式!"); return message.error("请上传正确的图片格式!");
} }
const isLt2M = file.size / 1024 / 1024 < 2; const isLt2M = file.size / 1024 / 1024 < 2;
if (!isLt2M) { if (!isLt2M) {
return this.$message.error("图片大小必须小于2MB!"); return message.error("图片大小必须小于2MB!");
} }
}, },
imageUpload(file) { imageUpload(file) {
console.log(file);
let data = new FormData(); let data = new FormData();
data.append("head_img", file.file); data.append("head_img", file.file);
console.log(data);
uploadFile(data).then((res) => { uploadFile(data).then((res) => {
if (res.code == 0) { if (res.code == 0) {
message.success(res.msg); message.success(res.msg);
this.img = res.data.file_url; this.img = res.data.file_url;
// console.log( this.img) // console.log( this.img)
} else { } else {
message.error(res.msg); message.error(res.msg);
...@@ -224,7 +222,7 @@ export default { ...@@ -224,7 +222,7 @@ export default {
if (res.code == 0) { if (res.code == 0) {
this.formState.name = res.data.name; this.formState.name = res.data.name;
this.img = res.data.head_img; this.img = res.data.head_img;
this.login_name = res.data.account_number; this.login_name = res.data.account_number;
this.formState.phone = res.data.phone; this.formState.phone = res.data.phone;
this.phone = res.data.phone; this.phone = res.data.phone;
console.log(this.img); console.log(this.img);
......
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