Commit 628e4027 by haozhenhua

hzh

parent c5700696
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -250,7 +250,7 @@ function addCSS(csspath) {
store: store,
data: function () {
return {
areaName: '地区',
areaName: '北京',
areaArr:[
{
name:'A-G',
......@@ -481,6 +481,7 @@ function addCSS(csspath) {
setTimeout(()=>{
$("#footer").css("visibility", "visible");
},3000);
localStorage.setItem("areaName", this.areaName);
},
methods: {
areachoice(name) {
......
......@@ -10,7 +10,7 @@
<div class="meihua-inquire-input">
<div class="lists">
<div
:class="activeClass == index ? \'active\' : \'acitves\'"
:class="activeClass == index ? \'actived\' : \'acitves\'"
@click="getItme(index)"
v-for="(item,index) in checkBoxArr"
:key="index">
......
......@@ -4,7 +4,7 @@
.policy-input-buttom{
height: 61px !important;
}
.active {
.actived {
float: left;
position: relative;
width: 77px;
......@@ -31,8 +31,8 @@
}
.active:before,
.active:after{
.actived:before,
.actived:after{
position:absolute;
content:'';
width:10px;
......@@ -47,7 +47,7 @@ pointer-events:none;
transform:rotate(45deg);
}
.active:after{
.actived:after{
bottom: -4px;
background: rgba(16,142,233,1);
}
......
......@@ -17,7 +17,6 @@
width: 97px;
height:inherit;
float: left;
background-color: #FAFAFA;
padding: 13px 20px;
box-sizing: border-box;
font-size:14px;
......@@ -27,7 +26,7 @@
.policyquery-items > .items_item {
width: calc(100% - 167px);
float: left;
padding: 5px 20px;
padding: 5px 26px;
box-sizing: border-box;
font-size:14px;
font-family:MicrosoftYaHei;
......@@ -67,19 +66,21 @@
font-weight:500;
color:rgba(72,72,72,1);
line-height:14px;
width:81px;
width:100%;
height:22px;
line-height: 22px;
border-radius:0px 0px 15px 15px;
border:1px solid rgba(240,243,240,1);
border-top: 0px;
margin-bottom: 10px;
cursor: pointer;
border: 1px solid rgba(234,237,244,1);
border-top: none;
}
.policylist-selected {
width: 100%;
min-height: 40px;
overflow: hidden;
padding-left: 20px;
line-height: 40px;
}
.policylist-selected > .leftName {
width: 97px;
......@@ -87,12 +88,13 @@
font-size:14px;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
color:rgba(121,121,121,1);
color: rgba(47,47,47,1);
}
.policylist-selected > .itemsName {
width: calc(100% - 97px);
float: left;
overflow: hidden;
padding-top: 10px;
}
.policylist-selected > .itemsName > .itemName {
float: left;
......@@ -109,12 +111,14 @@
line-height: 26px;
color: #118EE9;
position: relative;
font-size: 12px;
}
.policylist-selected > .itemsName > .itemName > i{
position: absolute;
right: 6px;
top: 7px;
right: 1px;
top: 6px;
cursor: pointer;
border: 1px dotted #333;
}
.policylist-warpper {
width: 100%;
......@@ -147,7 +151,6 @@
.policyquery-items{
border: none !important;
box-sizing: border-box;
border-bottom: 1px solid #F0F3F0 !important;
}
.policyquery-items:last-child{
border:none !important;
......@@ -156,13 +159,22 @@
width: 1200px;
margin: 0 auto;
height: 100%;
background-color: #fff;
}
.policylist-header {
width: 100%;
overflow: hidden;
border: 1px solid #F0F3F0;
padding: 20px;
box-sizing: border-box;
margin-top: 20px;
background: #fff;
border: 1px solid rgba(234,237,244,1);
}
.policylist-tile {
width: 100%;
overflow: hidden;
height: 40px;
background: rgba(15,142,233,0.1);
border-radius: 1px;
box-sizing: border-box;
}
.header-left {
......@@ -384,6 +396,7 @@
color:rgba(72,72,72,1);
margin-bottom: 15px;
cursor: pointer;
display: flex;
}
.policylist-conten-title a {
text-decoration:none !important;
......@@ -396,7 +409,6 @@
font-family:PingFangSC-Medium,PingFangSC;
font-weight:500;
color:rgba(255,255,255,1);
background-color: #597EF7;
}
.policylist-conten-text {
font-size:14px;
......@@ -411,9 +423,24 @@
font-weight:500;
color:rgba(153,153,153,1);
}
.policylist-conten-items > span {
margin-right: 40px;
.policylistsitems {
font-size:14px;
font-family:PingFangSC-Medium,PingFangSC;
font-weight:500;
color:rgba(153,153,153,1);
}
.policylist-conten-items img{
border: 1px dotted #999;
vertical-align: middle;
}
.policylistsitems img{
border: 1px dotted #999;
vertical-align: middle;
}
.zuo{
float: right;
}
.policylist-pagination {
text-align: right;
}
......
......@@ -16,7 +16,7 @@
</div>
</div>
<div class="policylist-header">
<div class="policylist-tile" style="margin-top: 15px;">
<div class="policyquery-items">
<div class="items_item" :style="headerHeight1 ? \'height:45px\' : \'height:auto\'">
<div :class="quanbu == item ? \'pitch\' : \'\'" v-for="item in quanData1" @click="quanClick1(item)">{{item}}</div>
......@@ -25,6 +25,20 @@
</div>
</div>
<div class="policylist-header" :style="headerHeight ? \'height:190px\' : \'height:auto\'">
<div class="policylist-selected" v-if="input1 || input2 || input3 || input4 || input5 || input6 || input7 || input8 || input9">
<div class="leftName">已选条件:</div>
<div class="itemsName">
<div class="itemName" v-if="input1">发布地区:{{input1}} <i class="el-icon-close" @click="inputDel(\'input1\')"></i> </div>
<div class="itemName" v-if="input2">政策级别:{{input2}} <i class="el-icon-close" @click="inputDel(\'input2\')"></i> </div>
<div class="itemName" v-if="input3">发布部门:{{input3}} <i class="el-icon-close" @click="inputDel(\'input3\')"></i> </div>
<div class="itemName" v-if="input4">扶持方式:{{input4}} <i class="el-icon-close" @click="inputDel(\'input4\')"></i> </div>
<div class="itemName" v-if="input5">企业性质:{{input5}} <i class="el-icon-close" @click="inputDel(\'input5\')"></i> </div>
<div class="itemName" v-if="input6">行业类别:{{input6}} <i class="el-icon-close" @click="inputDel(\'input6\')"></i> </div>
<div class="itemName" v-if="input7">政策类型:{{input7}} <i class="el-icon-close" @click="inputDel(\'input7\')"></i> </div>
<div class="itemName" v-if="input8">扶持领域:{{input8}} <i class="el-icon-close" @click="inputDel(\'input8\')"></i> </div>
<div class="itemName" v-if="input9">时间年限:{{input9}} <i class="el-icon-close" @click="inputDel(\'input9\')"></i> </div>
</div>
</div>
<div class="policyquery-items">
<div class="items_left">发布地区</div>
<div class="items_item" :style="headerHeight1 ? \'height:45px\' : \'height:auto\'">
......@@ -99,20 +113,7 @@
</div>
</div>
<div class="policylist-headerbut" @click="headerHeight = !headerHeight"><span v-if="headerHeight">更多</span><span v-else>收起</span></div>
<div class="policylist-selected" v-if="input1 || input2 || input3 || input4 || input5 || input6 || input7 || input8 || input9">
<div class="leftName">筛选条件:</div>
<div class="itemsName">
<div class="itemName" v-if="input1">{{input1}} <i class="el-icon-close" @click="inputDel(\'input1\')"></i> </div>
<div class="itemName" v-if="input2">{{input2}} <i class="el-icon-close" @click="inputDel(\'input2\')"></i> </div>
<div class="itemName" v-if="input3">{{input3}} <i class="el-icon-close" @click="inputDel(\'input3\')"></i> </div>
<div class="itemName" v-if="input4">{{input4}} <i class="el-icon-close" @click="inputDel(\'input4\')"></i> </div>
<div class="itemName" v-if="input5">{{input5}} <i class="el-icon-close" @click="inputDel(\'input5\')"></i> </div>
<div class="itemName" v-if="input6">{{input6}} <i class="el-icon-close" @click="inputDel(\'input6\')"></i> </div>
<div class="itemName" v-if="input7">{{input7}} <i class="el-icon-close" @click="inputDel(\'input7\')"></i> </div>
<div class="itemName" v-if="input8">{{input8}} <i class="el-icon-close" @click="inputDel(\'input8\')"></i> </div>
<div class="itemName" v-if="input9">{{input9}} <i class="el-icon-close" @click="inputDel(\'input9\')"></i> </div>
</div>
</div>
<div class="policylist-content">
<div class="brandfind-main-equal-form-box-null" v-if="recommendationsArr.length==0" style="height:500px;">
......@@ -123,9 +124,16 @@
</div>
</div>
<div v-else class="policylist-content-list" v-for="(i,k) in recommendationsArr">
<div class="policylist-conten-title" @click="articleDetails(i)">{{i.name}} </div>
<div class="policylist-conten-text"><span style="dispaly:line-block;padding: 0 10px;color:#fff;" :style="color16()">{{i.label}}</span></div>
<div class="policylist-conten-items"><span>来源:{{i.source}}</span><span>日期:{{i.date}}</span><span> <p style="float:right"><i class="el-icon-view"></i> {{i.count}}</span></p></div>
<div class="policylist-conten-title" @click="articleDetails(i)">
<div style="margin-left: -10px;" v-if="i.app_status==0"> <span style="dispaly:line-block;color:#fff;background-color: #B2B2B2;">申报已结束</span></div>
<div style="margin-left: -10px;" v-if="i.app_status==1"> <span style="dispaly:line-block;color:#fff;background-color: #FFA940">开放申报中</span></div>
<div style="margin-left: -10px;" v-if="i.app_status==2"> <span style="dispaly:line-block;color:#fff;background-color: #597EF7">即将申报</span></div>
<div style="margin-left: 15px;"> {{i.name}} </div>
</div>
<div>
<div class="policylist-conten-items"><span><img src="/imgs/tuandui.png" alt="">&nbsp;{{i.source}}</span><span> <p style="float:right"><img src="/imgs/riqi.png" alt="">&nbsp;申报日期:{{i.begindate}}/{{i.enddate}}</span></p></div>
<div class="policylistsitems"><span><img src="/imgs/zehngfu.png" alt="">&nbsp;{{i.policygrade}}|{{i.label}}</span><span style="display: block;"> <p class="zuo"><img src="/imgs/yan.png" alt="">&nbsp;浏览量:{{i.count}}</span></p></div>
</div>
</div>
</div>
......
{
template: '${tmpl}',
data: function() {
return {
total: 0,
state2: '',
show2: false,
policyArr: [],
recommendationsArr: [],
policyOptions: [{
value: '北京东方飞扬软件股份有限公司',
label: '北京东方飞扬软件股份有限公司'
}],
policyValue: '',
transformNumber: 0,
portrayalArr: [],
zctext: '',
detailPageType: true,
recommendationsObj: {},
recommendationsObjBefore: {},
recommendationsObjAfter: {},
companyObj: {},
rKey: null,
zcoName: '',
activeNames: ['1'],
headerHeight: true,
headerHeight1: true,
headerHeight2: true,
headerHeight3: true,
headerHeight4: true,
headerHeight5: true,
headerHeight6: true,
headerHeight7: true,
headerHeight8: true,
headerHeight9: true,
input1:'',
input2:'',
input3:'',
input4:'',
input5:'',
input6:'',
input7:'',
input8:'',
input9:'',
quanbu:'全部(1369)',
quanData1:[
'全部(1369)',
'申报通知(386)',
'立项公示(134)',
'管理办法(103)',
'政策图解(1)',
'政务信息(13)',
'新闻资讯(69)',
],
tableData1: [
'不限',
'北京',
'天津',
'上海',
'重庆',
'河北',
'河南',
'云南',
'辽宁',
'黑龙江',
'湖南',
'安徽',
'山东',
'江苏',
'浙江',
'江西',
'湖北',
'新疆维吾尔族自治区',
'广西壮族自治区',
'甘肃',
'山西',
'陕西',
'内蒙古自治区',
'吉林',
'福建',
'贵州',
'广东',
'青海',
'西藏自治区',
'夏回族自治区',
'四川'
],
tableData2:[
'部委',
'省级',
'市级',
'区级'
],
tableData3:[
'发改部门',
'教育部门',
'科学技术部门',
'工业和信息化部门',
'人社部门',
'生态环境部门',
'交通运输部门',
'农业农村部门',
'商务部门',
'文化和旅游部门',
'知识产权部门',
'财政部门',
'税务部门',
'国防科技部门',
'开发区/高新区/自贸区',
'市场监督部门',
'其他部门'
],
tableData4:[
'资质荣誉',
'事前补助',
'研发费补助',
'奖励',
'贷款信息',
'担保补助',
'投资补贴',
'税收优惠',
'创业补贴',
'人才补贴'
],
tableData5:[
'事业单位',
'企业单位',
'社会组织'
],
tableData6:[
'工业',
'建筑业',
'金融业',
'农、林、牧、渔业',
'软件、信息传输和信息技术服务业',
'住宿和餐饮业',
'批发和零售业',
'现代服务业',
'租赁和商业服务业',
'交通运输、仓储和邮政业',
'教育和卫生业',
'文化、体育和娱乐业',
'房地产和物业管理业',
'水利、环境和公共设施管理业',
'公共管理、社会保障、社会和国际组织',
'电力、热力、燃气及水生产和供应业',
'其他'
],
tableData7:[
'普惠(创新券/社保补贴/创业补贴等)',
'科技创新',
'人才类',
'资质认定',
'商贸业/电子商务/交通/现代物流',
'税收优惠',
'技术改造',
'智能制造',
'现代服务业',
'工程中心/技术中心/实验室/研发机构',
'金融补贴',
'首台/首套',
'绿色建筑',
'创客空间/孵化器/产业园/科技园',
'生物医药',
'航空航天',
'奖项评选',
'知识产权/知识产权金融',
'专精特新/瞪羚/小巨人/独角兽',
'公共/示范平台',
'龙头/标杆/骨干/示范企业',
'租金/展会/制定标准补贴',
'产品认定',
'其他'
],
tableData8:[
'基础与应用基础研究',
'社会民生',
'现代服务业',
'高新技术领域',
'新一代信息技术产业',
'战略性新兴产业',
'未来产业',
'创业补贴',
'人才补贴'
],
tableData9:[
'2019',
'2018',
'2017',
'2016',
'2015',
'2014',
'2013'
],
colorList:[{
bgColor:"#EDEEFA",
fontColor:"#5B65D3"
},{
bgColor:"#FDF2EC",
fontColor:"#FC835A"
},{
bgColor:"#FFEBF5",
fontColor:"#FF75B3"
},{
bgColor:"#E1EDFB",
fontColor:"#3CACFF"
},{
bgColor:"#E0F4E8",
fontColor:"#54D02F"
},{
bgColor:"#E8F7F9",
fontColor:"#30BBCE"
}]
}
},
methods: {
rgba() {
var color = this.colorList[Math.floor(Math.random()*this.colorList.length)];
return `color:${color.fontColor};background-color:${color.bgColor}`;
},
inputDel(input) {
console.log(input);
this[input] = '';
this.zcPost()
},
tableDataClick1(val) {
console.log(val);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.input1 = val;
this.zcPost()
},
quanClick1(val) {
console.log(val);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.quanbu = val;
},
tableDataClick2(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input2 = val;
this.zcPost()
},
tableDataClick3(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input3 = val;
this.zcPost()
},
tableDataClick4(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input4 = val;
this.zcPost()
},
tableDataClick5(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input5 = val;
this.zcPost()
},
tableDataClick6(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input6 = val;
this.zcPost()
},
tableDataClick7(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input7 = val;
this.zcPost()
},
tableDataClick8(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input8 = val;
this.zcPost()
},
tableDataClick9(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input9 = val;
this.zcPost()
},
search() {
this.zcPost()
},
handleCurrentChange(val) {
this.zcPost(val)
},
consulting () {
this.$confirm('提交后会有政策解读专家与您联系,为您进行一对一免费解答,请 确认是否提交?', '政策咨询', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: ''
}).then(() => {
this.$message({
type: 'success',
message: '提交成功!'
});
}).catch(() => {
this.$message({
type: 'info',
message: '已取消提交'
});
});
},
articleDetails(obj) {
this.detailPageType = false;
scrollTo(0,0);
this.recommendationsObj = obj;
this.portrayalArr = obj.hx_list;
console.log(this.portrayalArr,'11111111111111');
axios.post('http://43.247.184.92:8018/gsb/api/zcdetailcount',{
"ID": obj.ID,
"count":0
}).then( d => {
console.log(d,'=================================');
var data = d.data.data;
this.recommendationsArr = data
})
},
/*before(i) {
this.rKey = i-1;
},
after(i) {
this.rKey = i+1;
},*/
next () {
this.detailPageType = true;
this.zccompanyPost();
this.zcPost()
},
LookHome() {
this.zccompanyPost();
this.zcPost()
/* this.recommendationsArr = this.recommendationsArr1*/
},
LookCompany(i) {
this.companyObj = i;
/*this.recommendationsArr = this.recommendationsArr2*/
this.zcoName = i.name;
this.zccompanyNamePost()
},
color16(){
var r = Math.floor(Math.random()*256);
var g = Math.floor(Math.random()*256);
var b = Math.floor(Math.random()*256);
var color = 'background-color:' + '#'+r.toString(16)+g.toString(16)+b.toString(16);
return color;
},
rgb(){
var r = Math.floor(Math.random()*256);
var g = Math.floor(Math.random()*256);
var b = Math.floor(Math.random()*256);
var rgb = 'color:' + 'rgba('+r+','+g+','+b+', 1)' + ';' + 'background-color:' + 'rgba('+r+','+g+','+b+', 0.3)';
return rgb;
},
leftswiperList () {
console.log(this.$refs.swiperList.offsetWidth);
if (this.transformNumber < 0) {
this.transformNumber = this.transformNumber + 360;
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)';
}
},
rightswiperList () {
if ((this.$refs.swiperList.offsetWidth - Math.abs(this.transformNumber)) > this.$refs.swiperMain.offsetWidth) {
this.transformNumber = this.transformNumber - 360;
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)';
}
},
zccompanyNamePost() {
axios.post('http://43.247.184.92:8018/gsb/api/zccompany_name',{
"company_name": this.zcoName
}).then( d => {
console.log(d,'=================================');
var data = d.data.data;
this.portrayalArr = d.data.company_keys;
this.recommendationsArr = data
})
},
zcPost(size) {
/*http://43.247.184.92:8018/gsb/api/zc*/
axios.post('http://43.247.184.92:8019/gsb/api/zc',{
"zctext": this.zctext,
"currentpage": size || 1,
"pagesize":10,
"address": this.input1,
"zc_level": this.input2,
"zc_department": this.input3,
"zc_mode": this.input4,
"company_type": this.input5,
"industry_type": this.input6,
"policy_type": this.input7,
"support_field": this.input8,
"year": this.input9
}).then( d => {
console.log(d,'---------------------------------');
var data = d.data.data;
this.recommendationsArr = data;
this.total = d.data.total;
console.log(this.recommendationsArr,12312312321);
})
},
zccompanyPost() {
axios.post('http://43.247.184.92:8018/gsb/api/zccompany',{}).then( d => {
console.log(d);
var data = d.data.data;
this.portrayalArr = data
})
},
getCompanyListPost() {
/*function getLocalTime(nS) {
let date = new Date(nS);
let year = date.getFullYear();
let month = date.getMonth()+1;
let day = date.getDate();
month = month < 10 ? "0"+month:month;
day = day < 10 ? "0"+day:day;
date = year+'-'+month+'-'+day;
return date;
};*/
var that = this;
this.$root.postReq("/web/tmquery/toolCtl/getCompanyList", {}).then(function (d) {
console.log(d, "//////////////////////////");
var data = d.data;
that.policyArr = [];
for (let i = 0; i < data.length; i++) {
data[i]['logo'] = data[i].name.substr(0, 4);
that.policyArr.push(data[i]);
};
console.log(that.policyArr)
}).catch(function (e) {
console.log(`操作失败,请刷新页面后重新操作`);
});
template: '${tmpl}',
data: function() {
return {
total: 0,
state2: '',
show2: false,
policyArr: [],
recommendationsArr: [],
policyOptions: [{
value: '北京东方飞扬软件股份有限公司',
label: '北京东方飞扬软件股份有限公司'
}],
policyValue: '',
transformNumber: 0,
portrayalArr: [],
zctext: '',
detailPageType: true,
recommendationsObj: {},
recommendationsObjBefore: {},
recommendationsObjAfter: {},
companyObj: {},
rKey: null,
zcoName: '',
activeNames: ['1'],
headerHeight: true,
headerHeight1: true,
headerHeight2: true,
headerHeight3: true,
headerHeight4: true,
headerHeight5: true,
headerHeight6: true,
headerHeight7: true,
headerHeight8: true,
headerHeight9: true,
areaName:'',
input1:'',
input2:'',
input3:'',
input4:'',
input5:'',
input6:'',
input7:'',
input8:'',
input9:'',
quanbu:'全部(1369)',
quanData1:[
'全部(1369)',
'申报通知(386)',
'立项公示(134)',
'管理办法(103)',
'政策图解(1)',
'政务信息(13)',
'新闻资讯(69)',
],
tableData1: [
'北京',
'天津',
'上海',
'重庆',
'河北',
'河南',
'云南',
'辽宁',
'黑龙江',
'湖南',
'安徽',
'山东',
'江苏',
'浙江',
'江西',
'湖北',
'新疆维吾尔族自治区',
'广西壮族自治区',
'甘肃',
'山西',
'陕西',
'内蒙古自治区',
'吉林',
'福建',
'贵州',
'广东',
'青海',
'西藏自治区',
'夏回族自治区',
'四川'
],
tableData2:[
'部委',
'省级',
'市级',
'区级'
],
tableData3:[
'发改部门',
'教育部门',
'科学技术部门',
'工业和信息化部门',
'人社部门',
'生态环境部门',
'交通运输部门',
'农业农村部门',
'商务部门',
'文化和旅游部门',
'知识产权部门',
'财政部门',
'税务部门',
'国防科技部门',
'开发区/高新区/自贸区',
'市场监督部门',
'其他部门'
],
tableData4:[
'资质荣誉',
'事前补助',
'研发费补助',
'奖励',
'贷款信息',
'担保补助',
'投资补贴',
'税收优惠',
'创业补贴',
'人才补贴'
],
tableData5:[
'事业单位',
'企业单位',
'社会组织'
],
tableData6:[
'工业',
'建筑业',
'金融业',
'农、林、牧、渔业',
'软件、信息传输和信息技术服务业',
'住宿和餐饮业',
'批发和零售业',
'现代服务业',
'租赁和商业服务业',
'交通运输、仓储和邮政业',
'教育和卫生业',
'文化、体育和娱乐业',
'房地产和物业管理业',
'水利、环境和公共设施管理业',
'公共管理、社会保障、社会和国际组织',
'电力、热力、燃气及水生产和供应业',
'其他'
],
tableData7:[
'普惠(创新券/社保补贴/创业补贴等)',
'科技创新',
'人才类',
'资质认定',
'商贸业/电子商务/交通/现代物流',
'税收优惠',
'技术改造',
'智能制造',
'现代服务业',
'工程中心/技术中心/实验室/研发机构',
'金融补贴',
'首台/首套',
'绿色建筑',
'创客空间/孵化器/产业园/科技园',
'生物医药',
'航空航天',
'奖项评选',
'知识产权/知识产权金融',
'专精特新/瞪羚/小巨人/独角兽',
'公共/示范平台',
'龙头/标杆/骨干/示范企业',
'租金/展会/制定标准补贴',
'产品认定',
'其他'
],
tableData8:[
'基础与应用基础研究',
'社会民生',
'现代服务业',
'高新技术领域',
'新一代信息技术产业',
'战略性新兴产业',
'未来产业',
'创业补贴',
'人才补贴'
],
tableData9:[
'2019',
'2018',
'2017',
'2016',
'2015',
'2014',
'2013'
],
colorList:[{
bgColor:"#EDEEFA",
fontColor:"#5B65D3"
},{
bgColor:"#FDF2EC",
fontColor:"#FC835A"
},{
bgColor:"#FFEBF5",
fontColor:"#FF75B3"
},{
bgColor:"#E1EDFB",
fontColor:"#3CACFF"
},{
bgColor:"#E0F4E8",
fontColor:"#54D02F"
},{
bgColor:"#E8F7F9",
fontColor:"#30BBCE"
}]
}
},
mounted: function() {
/*for (let i = 0; i < this.portrayalArr.length; i++) {
this.portrayalArr[i].col = this.rgb();
};*/
this.zcPost();
methods: {
rgba() {
var color = this.colorList[Math.floor(Math.random()*this.colorList.length)];
return `color:${color.fontColor};background-color:${color.bgColor}`;
},
inputDel(input) {
console.log(input);
this[input] = '';
this.zcPost()
},
tableDataClick1(val) {
console.log(val);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.input1 = val;
this.zcPost()
},
quanClick1(val) {
console.log(val);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.quanbu = val;
},
tableDataClick2(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input2 = val;
this.zcPost()
},
tableDataClick3(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input3 = val;
this.zcPost()
},
tableDataClick4(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input4 = val;
this.zcPost()
},
tableDataClick5(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input5 = val;
this.zcPost()
},
tableDataClick6(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input6 = val;
this.zcPost()
},
tableDataClick7(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input7 = val;
this.zcPost()
},
tableDataClick8(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input8 = val;
this.zcPost()
},
tableDataClick9(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input9 = val;
this.zcPost()
},
search() {
this.zcPost()
},
handleCurrentChange(val) {
this.zcPost(val)
},
consulting () {
this.$confirm('提交后会有政策解读专家与您联系,为您进行一对一免费解答,请 确认是否提交?', '政策咨询', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: ''
}).then(() => {
this.$message({
type: 'success',
message: '提交成功!'
});
}).catch(() => {
this.$message({
type: 'info',
message: '已取消提交'
});
});
},
articleDetails(obj) {
this.detailPageType = false;
scrollTo(0,0);
this.recommendationsObj = obj;
this.portrayalArr = obj.hx_list;
console.log(this.portrayalArr,'11111111111111');
axios.post('http://43.247.184.92:8018/gsb/api/zcdetailcount',{
"ID": obj.ID,
"count":0
}).then( d => {
console.log(d,'=================================');
var data = d.data.data;
this.recommendationsArr = data
})
},
/*before(i) {
this.rKey = i-1;
},
after(i) {
this.rKey = i+1;
},*/
next () {
this.detailPageType = true;
this.zccompanyPost();
this.zcPost()
},
LookHome() {
this.zccompanyPost();
this.zcPost()
/* this.recommendationsArr = this.recommendationsArr1*/
},
vname: "gsb-policyquery"
}
\ No newline at end of file
LookCompany(i) {
this.companyObj = i;
/*this.recommendationsArr = this.recommendationsArr2*/
this.zcoName = i.name;
this.zccompanyNamePost()
},
color16(){
var r = Math.floor(Math.random()*256);
var g = Math.floor(Math.random()*256);
var b = Math.floor(Math.random()*256);
var color = 'background-color:' + '#'+r.toString(16)+g.toString(16)+b.toString(16);
return color;
},
rgb(){
var r = Math.floor(Math.random()*256);
var g = Math.floor(Math.random()*256);
var b = Math.floor(Math.random()*256);
var rgb = 'color:' + 'rgba('+r+','+g+','+b+', 1)' + ';' + 'background-color:' + 'rgba('+r+','+g+','+b+', 0.3)';
return rgb;
},
leftswiperList () {
console.log(this.$refs.swiperList.offsetWidth);
if (this.transformNumber < 0) {
this.transformNumber = this.transformNumber + 360;
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)';
}
},
rightswiperList () {
if ((this.$refs.swiperList.offsetWidth - Math.abs(this.transformNumber)) > this.$refs.swiperMain.offsetWidth) {
this.transformNumber = this.transformNumber - 360;
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)';
}
},
zccompanyNamePost() {
axios.post('http://43.247.184.92:8018/gsb/api/zccompany_name',{
"company_name": this.zcoName
}).then( d => {
console.log(d,'=================================');
var data = d.data.data;
this.portrayalArr = d.data.company_keys;
this.recommendationsArr = data
})
},
zcPost(size) {
/*http://43.247.184.92:8018/gsb/api/zc*/
axios.post('http://43.247.184.92:8019/gsb/api/zc',{
"zctext": this.zctext,
"currentpage": size || 1,
"pagesize":10,
"cityname": this.input1,
"policygrade": this.input2,
"policydepartment": this.input3,
"policytype": this.input4,
"qiye": this.input5,
"classification": this.input6,
"policydomain": this.input7,
"fieldtext": this.input8,
"year": this.input9,
"address":this.areaName
}).then( d => {
console.log(d,'---------------------------------');
var data = d.data.data;
this.recommendationsArr = data;
this.total = d.data.total;
console.log(this.recommendationsArr,12312312321);
})
},
zccompanyPost() {
axios.post('http://43.247.184.92:8018/gsb/api/zccompany',{}).then( d => {
console.log(d);
var data = d.data.data;
this.portrayalArr = data
})
},
getCompanyListPost() {
/*function getLocalTime(nS) {
let date = new Date(nS);
let year = date.getFullYear();
let month = date.getMonth()+1;
let day = date.getDate();
month = month < 10 ? "0"+month:month;
day = day < 10 ? "0"+day:day;
date = year+'-'+month+'-'+day;
return date;
};*/
var that = this;
this.$root.postReq("/web/tmquery/toolCtl/getCompanyList", {}).then(function (d) {
console.log(d, "//////////////////////////");
var data = d.data;
that.policyArr = [];
for (let i = 0; i < data.length; i++) {
data[i]['logo'] = data[i].name.substr(0, 4);
that.policyArr.push(data[i]);
};
console.log(that.policyArr)
}).catch(function (e) {
console.log(`操作失败,请刷新页面后重新操作`);
});
}
},
mounted: function() {
/*for (let i = 0; i < this.portrayalArr.length; i++) {
this.portrayalArr[i].col = this.rgb();
};*/
this.areaName = localStorage.getItem("areaName");
this.zcPost();
this.zccompanyPost();
},
vname: "gsb-policyquery"
}
......@@ -4019,12 +4019,14 @@
"balanced-match": {
"version": "1.0.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
......@@ -4039,17 +4041,20 @@
"code-point-at": {
"version": "1.1.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"concat-map": {
"version": "0.0.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"core-util-is": {
"version": "1.0.2",
......@@ -4166,7 +4171,8 @@
"inherits": {
"version": "2.0.3",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"ini": {
"version": "1.3.5",
......@@ -4178,6 +4184,7 @@
"version": "1.0.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
......@@ -4192,6 +4199,7 @@
"version": "3.0.4",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
......@@ -4199,12 +4207,14 @@
"minimist": {
"version": "0.0.8",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"minipass": {
"version": "2.3.5",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
......@@ -4223,6 +4233,7 @@
"version": "0.5.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"minimist": "0.0.8"
}
......@@ -4303,7 +4314,8 @@
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"object-assign": {
"version": "4.1.1",
......@@ -4315,6 +4327,7 @@
"version": "1.4.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"wrappy": "1"
}
......@@ -4436,6 +4449,7 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
......
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