Browse Source

update

master
awsl 1 month ago
parent
commit
c085b2b30a
  1. 6
      jwtech-pc-page/src/views/announcement/index.vue
  2. 132
      jwtech-pc-page/src/views/enterpriseInformation/components/descriptionsEnterpriseTable.vue
  3. 9
      jwtech-pc-page/src/views/home/components/userLogin.vue
  4. 44
      jwtech-pc-page/src/views/home/index.vue

6
jwtech-pc-page/src/views/announcement/index.vue

@ -3,9 +3,9 @@
<div class="certification-tabs">
<div class="tabs-wrap">
<el-tabs ref="tabcs" v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="企业良好行为公告" name="good"></el-tab-pane>
<el-tab-pane label="企业不良行为公告" name="bad"></el-tab-pane>
<el-tab-pane label="企业信用统计" name="xinyong"></el-tab-pane>
<el-tab-pane label="企业动态信用良好行为" name="good"></el-tab-pane>
<el-tab-pane label="企业动态信用不良行为" name="bad"></el-tab-pane>
<el-tab-pane label="动态信用排名" name="xinyong"></el-tab-pane>
</el-tabs>
</div>
</div>

132
jwtech-pc-page/src/views/enterpriseInformation/components/descriptionsEnterpriseTable.vue

@ -24,44 +24,87 @@
<div class="table-wrap">
<div class="table-title">
<span>
<span
:class="currentItem === '1' ? 'act' : ''"
@click="currentItem = '1'"
>
基本信息
</span>
<span
:class="currentItem === '2' ? 'act' : ''"
@click="currentItem = '2'"
>
信用承若
</span>
</div>
<el-descriptions
class="margin-top"
:column="2"
border
:content-style="rowCenter"
:label-style="labelRowCenter"
>
<el-descriptions-item
:label="item.label"
v-for="(item, index) in descrData"
:key="(item, index)"
<template v-if="currentItem === '1'">
<el-descriptions
class="margin-top"
:column="2"
border
:content-style="rowCenter"
:label-style="labelRowCenter"
>
<el-descriptions-item
:label="item.label"
v-for="(item, index) in descrData"
:key="(item, index)"
>
{{ item.val }}
</el-descriptions-item>
<el-descriptions-item label="单位类别" span="2">
{{ typeFormat(enterpriseType) }}
</el-descriptions-item>
<el-descriptions-item label="注册地址" span="2">
{{ registeredAddress }}
</el-descriptions-item>
<el-descriptions-item label="经营范围" span="2">
{{ businessScope }}
</el-descriptions-item>
</el-descriptions>
</template>
<template v-else>
<el-descriptions
class="margin-top"
:column="2"
border
:content-style="rowCenter"
:label-style="labelRowCenter"
>
{{ item.val }}
</el-descriptions-item>
<el-descriptions-item label="单位类别" span="2">
{{ typeFormat(enterpriseType) }}
</el-descriptions-item>
<el-descriptions-item label="注册地址" span="2">
{{ registeredAddress }}
</el-descriptions-item>
<el-descriptions-item label="经营范围" span="2">
{{ businessScope }}
</el-descriptions-item>
</el-descriptions>
<el-descriptions-item label="企业承若书" span="2">
<div style="display: flex;flex-direction: column;">
<span
v-if="enterpriseObj.certificateInformation"
style="cursor: pointer;color: #0072ff;"
@click="
downloadEnterprisePromise(
enterpriseObj.certificateInformation
)
"
>下载承若书</span
><span style="color: #8b8b8b;" v-else>暂无文件</span>
<span
style="font-size: 14px;
color: #777777;"
>:企业承诺书模版已更新已使用原模板上传的仍然有效</span
>
</div>
</el-descriptions-item>
</el-descriptions>
</template>
</div>
</div>
</template>
<script>
import { enterpriseInfo } from "@/api/enterpriseInformation";
import { getGuangDong } from "@/api/creditStatistics";
import { getFileStream } from "@/api/common";
export default {
data() {
return {
currentItem: "1",
rowCenter: {
borderColor: "#DADCE3"
},
@ -126,7 +169,7 @@ export default {
label: "单位性质",
code: "investmentComposition",
val: ""
},
}
// {
// label: "",
// code: "enterpriseType",
@ -149,6 +192,23 @@ export default {
this.getArea();
},
methods: {
downloadEnterprisePromise(file) {
console.log(file);
getFileStream({ fileName: file.fileName }).then(res => {
const blob = new Blob([res], {
// type
// application/xlsx application/zip
type: "application/xlsx"
}); //excel,pdf
const href = URL.createObjectURL(blob); //URLblob
const a = document.createElement("a"); //a
a.style.display = "none";
a.href = href; //
a.download = file.name; //
a.click(); //
URL.revokeObjectURL(a.href); //URL
});
},
typeFormat(row, column) {
return this.selectDictLabel(this.categoryList, row);
},
@ -300,21 +360,27 @@ export default {
line-height: 47px;
background-color: #f6f6f6;
&::before {
content: "";
display: inline-block;
width: 3px;
height: 16px;
background: #005eb7;
margin-right: 10px;
vertical-align: middle;
}
span {
font-family: PingFangSC, PingFang SC;
font-weight: 600;
font-size: 16px;
color: #333333;
font-style: normal;
margin-right: 10px;
cursor: pointer;
&::before {
content: "";
display: inline-block;
width: 3px;
height: 16px;
background: #005eb7;
margin-right: 10px;
vertical-align: middle;
&.act {
color: #005eb7;
}
}
}

9
jwtech-pc-page/src/views/home/components/userLogin.vue

@ -54,11 +54,11 @@
</div>
<div class="c-item">
<div class="c-item-top">{{info.goodCreditNum}}</div>
<div class="c-item-bottom">企业良好行为公告</div>
<div class="c-item-bottom">良好行为公告</div>
</div>
<div class="c-item">
<div class="c-item-top">{{info.badCreditNum}}</div>
<div class="c-item-bottom">企业不良行为公告</div>
<div class="c-item-bottom">不良行为公告</div>
</div>
</div>
</div>
@ -221,6 +221,11 @@ export default {
color: #333;
}
}
.c-item-bottom{
font-size: 14px;
letter-spacing: 0.3px;
}
}
}
}

44
jwtech-pc-page/src/views/home/index.vue

@ -22,10 +22,16 @@
@click="chooseTab('3')"
>项目业绩</span
> -->
<span
:class="activeTab == '5' ? 'activeSpan' : ''"
@click="chooseTab('5')"
>
企业信用良好信息</span
>
<span
:class="activeTab == '4' ? 'activeSpan' : ''"
@click="chooseTab('4')"
>企业不良信息</span
>企业信用不良信息</span
>
</div>
<div class="search_input" v-if="activeTab == '0'">
@ -88,6 +94,21 @@
</template>
</el-input>
</div>
<div class="search_input" v-else-if="activeTab == '5'">
<el-input
v-model="enterpriseName3"
placeholder="请输入要搜索的企业名称"
class="searchContent"
@keyup.enter.native="goSearch(5)"
>
<template slot="append">
<div class="searchBtn" @click="goSearch(5)">
<img src="@/assets/image/search.png" />
<span>搜索</span>
</div>
</template>
</el-input>
</div>
<div class="search_input" v-else>
<el-input
v-model="enterpriseName3"
@ -282,6 +303,14 @@ export default {
} else {
this.$message.warning("请输入企业名称");
}
} else if (key == "5") {
if (this.enterpriseName3) {
this.$router.push(
"/announcement?enterpriseName1=" + this.enterpriseName3
);
} else {
this.$message.warning("请输入企业名称");
}
}
},
chooseTab(key) {
@ -315,7 +344,13 @@ export default {
// padding: 0 360px;
padding-bottom: 20px;
// background: linear-gradient( 180deg, #005EB7 0%, #EDF7FF 100%);
background: linear-gradient(to bottom, #005EB7 0%, #EDF7FF 100% 670px, #EDF7FF 670px, #EDF7FF 100%);
background: linear-gradient(
to bottom,
#005eb7 0%,
#edf7ff 100% 670px,
#edf7ff 670px,
#edf7ff 100%
);
.tabAndSearch-wrap {
padding: 20px 0 20px 0;
@ -325,6 +360,7 @@ export default {
display: flex;
margin: 0 auto;
& > span {
flex: 1;
display: inline-block;
width: 232px;
height: 70px;
@ -333,7 +369,7 @@ export default {
font-weight: bold;
cursor: pointer;
// color: #1672e5;
color: #005EB7;
color: #005eb7;
text-align: center;
background: url("~@/assets/image/home/search-item.png");
background-size: 100% 100%;
@ -367,7 +403,7 @@ export default {
/deep/ .el-input-group__append {
width: 100px;
padding: 0 17px;
background: #0059A5;
background: #0059a5;
border: 1px solid #aad8fb;
border-left: none;
border-radius: 0px 8px 8px 0px;

Loading…
Cancel
Save