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);
//专利详情页面
export const patentDetail = p => get('/api/patent/patentDetail/'+p.id);
//导出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);
// 企业搜索接口
......
......@@ -119,6 +119,7 @@ export default {
{
type: "radar",
radarIndex: 0,
symbol: 'none',
data: [
{
value: [20, 10, 25],
......@@ -139,6 +140,7 @@ export default {
{
type: "radar",
radarIndex: 0,
symbol: 'none',
data: [
{
value: [10, 20, 10],
......@@ -159,37 +161,6 @@ export default {
],
};
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() {
var data = [
......@@ -218,11 +189,11 @@ export default {
this.option2 = {
tooltip: {
formatter: "{a} <br/>{b} : {c}%",
formatter: "{a} <br/>{b} : {c}",
},
series: [
{
name: "Pressure",
name: "总分",
startAngle: 180,
endAngle: 0,
min: 0,
......@@ -240,7 +211,7 @@ export default {
data: [
{
value: 50,
name: "总分",
name: "科创能力总分值",
},
],
},
......@@ -254,6 +225,7 @@ export default {
<style lang="less" scoped>
.company_con {
clear: both;
// min-height: 900px;
position: relative;
display: flex;
justify-content: flex-start;
......
......@@ -35,15 +35,6 @@
:rules="formRules"
>
<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="请输入手机号">
<template #prefix>
<img src="../../static/login/icon-user.png" alt="" />
......
......@@ -195,23 +195,21 @@ export default {
file.type === "image/gif" ||
file.type === "image/jpg";
if (!isJpgOrPng) {
return this.$message.error("请上传正确的图片格式!");
return message.error("请上传正确的图片格式!");
}
const isLt2M = file.size / 1024 / 1024 < 2;
if (!isLt2M) {
return this.$message.error("图片大小必须小于2MB!");
return message.error("图片大小必须小于2MB!");
}
},
imageUpload(file) {
console.log(file);
let data = new FormData();
data.append("head_img", file.file);
console.log(data);
uploadFile(data).then((res) => {
if (res.code == 0) {
message.success(res.msg);
this.img = res.data.file_url;
// console.log( this.img)
} else {
message.error(res.msg);
......@@ -224,7 +222,7 @@ export default {
if (res.code == 0) {
this.formState.name = res.data.name;
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.phone = res.data.phone;
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