Browse Source

修改

dev_kxc
xzt 1 year ago
parent
commit
46f55835ae
  1. 14
      jwtech-pc-page/src/views/announcement/index.vue
  2. 58
      jwtech-pc-page/src/views/enterpriseInformation/components/actionList.vue
  3. 4
      jwtech-pc-page/src/views/enterpriseInformation/components/enterpriseBasicList.vue
  4. 9
      jwtech-pc-page/src/views/enterpriseInformation/components/enterpriseQualificationList.vue
  5. 183
      jwtech-pc-page/src/views/enterpriseInformation/components/lineCredit.vue
  6. 7
      jwtech-pc-page/src/views/enterpriseInformation/components/proAchievementTable.vue
  7. 285
      jwtech-pc-page/src/views/enterpriseInformation/components/realTimeCredit.vue
  8. 82
      jwtech-pc-page/src/views/enterpriseInformation/enterpriseInDetail.vue
  9. 2
      jwtech-pc-page/src/views/enterpriseInformation/index.vue
  10. 6
      jwtech-pc-page/src/views/summarizedInformation/index.vue
  11. 56
      jwtech-pc-page/src/views/summarizedInformation/summarizedDetail.vue

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

@ -42,7 +42,7 @@
>
</el-form-item>
</el-form>
<el-table :data="tableData" style="width: 100%">
<el-table :data="tableData" style="width: 100%" v-loading="loading">
<el-table-column
prop="enterpriseName"
label="企业名称"
@ -96,8 +96,8 @@
</el-table>
<pagination
:total="total"
:page.sync="apidata.pageNum"
:limit.sync="apidata.pageSize"
:page.sync="queryForm.pageNum"
:limit.sync="queryForm.pageSize"
:pageSizes="pageSizes"
@pagination="getResult"
/>
@ -125,7 +125,8 @@ export default {
},
tableData: [],
categoryList: [],
activeName: "good"
activeName: "good",
loading: true
};
},
created() {
@ -141,15 +142,18 @@ export default {
},
methods: {
getResult() {
this.loading = true;
if (this.activeName === "good") {
creditGetGood(this.queryForm).then(res => {
this.tableData = res.data.records;
this.total = res.data.total;
this.loading = false;
});
} else {
creditGetBad(this.queryForm).then(res => {
this.tableData = res.data.records;
this.total = res.data.total;
this.loading = false;
});
}
},
@ -227,7 +231,7 @@ export default {
.list-wrap {
width: 1200px;
height: 1098px;
min-height: 1098px;
background: #ffffff;
border-radius: 8px;
margin: 0 auto;

58
jwtech-pc-page/src/views/enterpriseInformation/components/actionList.vue

@ -1,7 +1,7 @@
<template>
<div class="action-wrap">
<headerImg :title="title" />
<el-table :data="tableData" style="width: 100%">
<el-table :data="tableList" style="width: 100%">
<el-table-column prop="projectName" label="项目名称" width="300">
<template slot-scope="scope">
<span
@ -56,30 +56,31 @@
</el-table>
<pagination
:total="total"
:page.sync="apidata.pageNum"
:limit.sync="apidata.pageSize"
:page.sync="enterpriseForm.pageNum"
:limit.sync="enterpriseForm.pageSize"
:pageSizes="pageSizes"
@pagination="getResult"
/>
</div>
</template>
<script>
import { creditList } from "@/api/enterpriseInformation";
export default {
props: {
title: {
type: String,
default: ""
},
tableData: {
type: Array,
default: () => {
return [];
}
},
total: {
type: Number,
default: 0
}
// tableData: {
// type: Array,
// default: () => {
// return [];
// }
// },
// total: {
// type: Number,
// default: 0
// }
},
data() {
return {
@ -88,11 +89,21 @@ export default {
pageSize: 10
},
pageSizes: [10, 20, 30, 50],
categoryList: []
categoryList: [],
enterpriseForm: {
pageNum: 1,
pageSize: 10,
data: {
enterpriseId: "",
type: ""
}
},
tableList: [],
total: 0
};
},
mounted() {
console.log(this.tableData);
// console.log(this.tableData);
this.getResult();
this.getDicts("qualification_type").then(res => {
this.categoryList = res.data.data;
@ -100,10 +111,23 @@ export default {
},
methods: {
getResult() {
this.enterpriseForm.data.enterpriseId = this.$route.query.enterpriseId;
if (this.title == "良好行为列表") {
this.$emit("getGoodResult");
// this.$emit("getGoodResult");
this.enterpriseForm.data.type = "1";
creditList(this.enterpriseForm).then(res => {
this.tableList = res.data.records;
console.log("this.goodList", res);
this.total = res.data.total;
});
} else {
this.$emit("getBadResult");
// this.$emit("getBadResult");
this.enterpriseForm.data.type = "0";
creditList(this.enterpriseForm).then(res => {
this.tableList = res.data.records;
console.log("this.badList", res);
this.total = res.data.total;
});
}
},
goDetails(item) {

4
jwtech-pc-page/src/views/enterpriseInformation/components/enterpriseBasicList.vue

@ -106,8 +106,8 @@
</el-table>
<pagination
:total="total"
:page.sync="apidata.pageNum"
:limit.sync="apidata.pageSize"
:page.sync="queryForm.pageNum"
:limit.sync="queryForm.pageSize"
:pageSizes="pageSizes"
@pagination="getResult"
/>

9
jwtech-pc-page/src/views/enterpriseInformation/components/enterpriseQualificationList.vue

@ -42,7 +42,7 @@
<el-input
class="name-inp-search"
placeholder="请输入资质等级"
v-model="queryForm.aaa"
v-model="queryForm.level"
></el-input>
</el-form-item>
<el-form-item>
@ -82,7 +82,7 @@
</template>
</el-table-column>
<el-table-column
prop="aaa"
prop="level"
label="资质等级名称"
width="180"
align="center"
@ -97,8 +97,8 @@
</el-table>
<pagination
:total="total"
:page.sync="apidata.pageNum"
:limit.sync="apidata.pageSize"
:page.sync="queryForm.pageNum"
:limit.sync="queryForm.pageSize"
:pageSizes="pageSizes"
@pagination="getResult"
/>
@ -123,6 +123,7 @@ export default {
personName: "",
enterpriseName: "",
adcd: "",
level: "",
pageNum: 1,
pageSize: 10
},

183
jwtech-pc-page/src/views/enterpriseInformation/components/lineCredit.vue

@ -1,96 +1,107 @@
<template>
<div class="chart-wrap">
<div id="mychart" :style="myChartStyle"></div>
</div>
<div class="chart-wrap">
<div id="mychart" :style="myChartStyle"></div>
</div>
</template>
<script>
export default {
data() {
return {
myChartStyle: { float: "left", width: "90%", height: "500px" } //
}
},
mounted() {
this.$nextTick(() => {
this.initEcharts();
})
},
methods: {
initEcharts() {
const option = {
title: {
text: "ECharts 入门示例"
},
grid: {
top: '10%',
left: '10%',
right: '0%',
bottom: '8%'
},
xAxis: {
type: 'category',
data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
boundaryGap: false,
nameTextStyle: {
color: '#fff',
},
axisLabel: {
interval: 0,
textStyle: {
color: '#ccc',
fontSize: '12',
},
},
},
// toolbox: { //
// show: true,
// feature: {
// mark: { show: true },
// dataView: { show: true, readOnly: false },
// magicType: { show: true, type: ["line", "bar"] },
// restore: { show: true },
// saveAsImage: { show: true }
// }
// },
tooltip: {
trigger: "axis" //
},
yAxis: {
type: 'value',
// axisLabel: {
// interval: 0,
// textStyle: {
// color: 'rgba(255, 255, 255, 1)',
// fontSize: '12',
// },
// },
},
lineStyle: {
color: 'red',
},
series: [
{
symbol: 'none',
data: [
202, 250, 100, 300, 280, 600, 300, 250, 180, 500, 400, 260,
],
type: 'line',
// smooth: true,
},
]
data() {
return {
myChartStyle: { float: "left", width: "90%", height: "500px" } //
};
},
mounted() {
this.$nextTick(() => {
this.initEcharts();
});
},
methods: {
initEcharts() {
const option = {
title: {
text: "XXXXX公司"
},
grid: {
top: "10%",
left: "10%",
right: "0%",
bottom: "8%"
},
xAxis: {
type: "category",
data: [
"1月",
"2月",
"3月",
"4月",
"5月",
"6月",
"7月",
"8月",
"9月",
"10月",
"11月",
"12月"
],
boundaryGap: false,
nameTextStyle: {
color: "#fff"
},
axisLabel: {
interval: 0,
textStyle: {
color: "#ccc",
fontSize: "12"
}
const myChart = this.$echarts.init(document.getElementById("mychart"));
myChart.setOption(option);
//
window.addEventListener("resize", () => {
myChart.resize();
});
}
}
},
// toolbox: { //
// show: true,
// feature: {
// mark: { show: true },
// dataView: { show: true, readOnly: false },
// magicType: { show: true, type: ["line", "bar"] },
// restore: { show: true },
// saveAsImage: { show: true }
// }
// },
tooltip: {
trigger: "axis" //
},
yAxis: {
type: "value"
// axisLabel: {
// interval: 0,
// textStyle: {
// color: 'rgba(255, 255, 255, 1)',
// fontSize: '12',
// },
// },
},
lineStyle: {
color: "red"
},
series: [
{
symbol: "none",
data: [202, 250, 100, 300, 280, 600, 300, 250, 180, 500, 400, 260],
type: "line"
// smooth: true,
}
]
};
const myChart = this.$echarts.init(document.getElementById("mychart"));
myChart.setOption(option);
//
window.addEventListener("resize", () => {
myChart.resize();
});
}
}
}
};
</script>
<style lang="less" scoped>
.chart-wrap {
padding: 20px;
padding: 20px;
}
</style>
</style>

7
jwtech-pc-page/src/views/enterpriseInformation/components/proAchievementTable.vue

@ -23,7 +23,7 @@
>
</el-form-item>
</el-form>
<el-table :data="tableData" style="width: 100%">
<el-table :data="tableData" style="width: 100%" v-loading="loading">
<el-table-column
prop="projectName"
label="项目名称"
@ -85,7 +85,8 @@ export default {
pageSize: 10
},
pageSizes: [10, 20, 30, 50],
total: 0
total: 0,
loading: true
};
},
mounted() {
@ -94,9 +95,11 @@ export default {
},
methods: {
getResult() {
this.loading = true;
performanceRecord(this.dataApi).then(res => {
this.tableData = res.data.records;
this.total = res.data.total;
this.loading = false;
});
},
resetForm() {

285
jwtech-pc-page/src/views/enterpriseInformation/components/realTimeCredit.vue

@ -1,168 +1,179 @@
<template>
<div class="credit-wrap">
<el-form :inline="true" :model="queryForm">
<el-form-item>
<el-select v-model="queryForm.qualificationCategory" clearable placeholder="" @change="selectVal">
<el-option v-for="item in selectData" :key="item.qualificationCategory"
:label="item.qualificationCategoryLabel" :value="item.qualificationCategory">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="实时信用分数:" label-width="110px">
<span style="font-size: 35px;display: block;font-style:italic; font-style:oblique;color: red;">{{ qualificationCategoryLabel }} {{ dynamicCreditScore }}</span>
</el-form-item>
</el-form>
<div class="time-wrap">
<span id="y"></span><span id="mo"></span><span id="s"></span> 星期<span id="d"></span>
<span id="h"></span>:<span id="m"></span>:<span id="sec"></span>
</div>
<div class="tabs-line">
<div class="tabs-wrap">
<el-tabs type="border-card">
<el-tab-pane label="近一个月"></el-tab-pane>
<el-tab-pane label="近三个月"></el-tab-pane>
<el-tab-pane label="近六个月"></el-tab-pane>
</el-tabs>
</div>
<div class="line-wrap">
<lineCredit />
</div>
</div>
<div class="credit-wrap">
<el-form :inline="true" :model="queryForm">
<el-form-item>
<el-select
v-model="queryForm.qualificationCategory"
clearable
placeholder=""
@change="selectVal"
>
<el-option
v-for="item in selectData"
:key="item.qualificationCategory"
:label="item.qualificationCategoryLabel"
:value="item.qualificationCategory"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="实时信用分数:" label-width="110px">
<span
style="font-size: 35px;display: block;font-style:italic; font-style:oblique;color: red;"
>{{ qualificationCategoryLabel }} {{ dynamicCreditScore }}</span
>
</el-form-item>
</el-form>
<div class="time-wrap">
<span id="y"></span><span id="mo"></span><span id="s"></span>
星期<span id="d"></span> <span id="h"></span>:<span id="m"></span>:<span
id="sec"
></span>
</div>
<div class="tabs-line">
<div class="tabs-wrap">
<el-tabs type="border-card">
<el-tab-pane label="近一个月"></el-tab-pane>
<el-tab-pane label="近三个月"></el-tab-pane>
<el-tab-pane label="近六个月"></el-tab-pane>
</el-tabs>
</div>
<div class="line-wrap">
<lineCredit />
</div>
</div>
</div>
</template>
<script>
import { getParent } from "@/api/enterpriseInformation"
import lineCredit from "./lineCredit"
import { getParent } from "@/api/enterpriseInformation";
import lineCredit from "./lineCredit";
export default {
components: {
lineCredit,
components: {
lineCredit
},
data() {
return {
queryForm: {
enterpriseId: "",
qualificationCategory: ""
},
categoryList: [],
selectData: [],
dynamicCreditScore: "",
qualificationCategoryLabel: ""
};
},
mounted() {
this.queryForm.enterpriseId = this.$route.query.enterpriseId;
this.getTime();
this.getDicts("qualification_type").then(res => {
this.categoryList = res.data.data;
this.getParentData();
});
},
methods: {
getParentData() {
getParent(this.queryForm.enterpriseId).then(res => {
let dataArr = [];
console.log(9999, res);
this.categoryList.forEach(item => {
res.data.data.forEach(item2 => {
if (item.dictValue == item2.qualificationCategory) {
dataArr.push({
...item2,
qualificationCategoryLabel: item.dictLabel
});
}
});
});
this.selectData = dataArr;
this.queryForm.qualificationCategory = this.selectData[0].qualificationCategory;
this.dynamicCreditScore = this.selectData[0].dynamicCreditScore;
this.qualificationCategoryLabel = this.selectData[0].qualificationCategoryLabel;
});
},
data() {
return {
queryForm: {
enterpriseId: "",
qualificationCategory: ""
},
categoryList: [],
selectData: [],
dynamicCreditScore: "",
qualificationCategoryLabel: ""
selectVal(val) {
this.selectData.forEach(item => {
if (item.qualificationCategory == val) {
this.dynamicCreditScore = item.dynamicCreditScore;
this.qualificationCategoryLabel = item.qualificationCategoryLabel;
}
});
},
mounted() {
this.queryForm.enterpriseId = this.$route.query.enterpriseId
this.getTime()
this.getDicts("qualification_type").then(res => {
this.categoryList = res.data.data
this.getParentData()
})
},
methods: {
getParentData() {
getParent(this.queryForm.enterpriseId).then(res => {
let dataArr = []
this.categoryList.forEach(item => {
res.data.data.forEach(item2 => {
if (item.dictValue == item2.qualificationCategory) {
dataArr.push({
...item2,
qualificationCategoryLabel: item.dictLabel
})
}
})
})
this.selectData = dataArr
this.queryForm.qualificationCategory = this.selectData[0].qualificationCategory
this.dynamicCreditScore = this.selectData[0].dynamicCreditScore
this.qualificationCategoryLabel = this.selectData[0].qualificationCategoryLabel
})
},
selectVal(val){
this.selectData.forEach(item=>{
if(item.qualificationCategory==val){
this.dynamicCreditScore = item.dynamicCreditScore
this.qualificationCategoryLabel = item.qualificationCategoryLabel
}
})
},
getTime() {
var vWeek = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
var now = new Date();
var year = now.getFullYear(); //
var month = now.getMonth() + 1;//
var date = now.getDate();//
var day_s = now.getDay();//
var hour = now.getHours();//
var minute = now.getMinutes();//
var second = now.getSeconds();//
getTime() {
var vWeek = [
"星期天",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六"
];
var now = new Date();
var year = now.getFullYear(); //
document.getElementById("y").innerHTML = year;
var month = now.getMonth() + 1; //
var date = now.getDate(); //
var day_s = now.getDay(); //
document.getElementById("mo").innerHTML = month;
var hour = now.getHours(); //
var minute = now.getMinutes(); //
var second = now.getSeconds(); //
document.getElementById("s").innerHTML = date;
document.getElementById("y").innerHTML = year;
document.getElementById("d").innerHTML = vWeek[day_s];
document.getElementById("mo").innerHTML = month;
document.getElementById("h").innerHTML = hour;
document.getElementById("s").innerHTML = date;
document.getElementById("d").innerHTML = vWeek[day_s];
document.getElementById("h").innerHTML = hour;
document.getElementById("m").innerHTML = minute;
document.getElementById("m").innerHTML = minute;
document.getElementById("sec").innerHTML = second;
setTimeout(this.getTime, 1000); //show()
document.getElementById("sec").innerHTML = second;
setTimeout(this.getTime, 1000);//show()
return "";
}
return "";
}
}
}
};
</script>
<style lang="less" scoped>
.credit-wrap {
margin: 20px;
height: 700px;
border: 1px solid #cfe7fe;
/deep/.el-form {
margin-top: 20px;
display: flex;
justify-content: center;
}
.time-wrap {
display: flex;
justify-content: center;
}
.tabs-line {
margin-top: 20px;
}
.list-wrap {
margin-top: 20px;
}
margin: 20px;
height: 700px;
border: 1px solid #cfe7fe;
/deep/.el-form {
margin-top: 20px;
display: flex;
justify-content: center;
}
.time-wrap {
display: flex;
justify-content: center;
}
.tabs-line {
margin-top: 20px;
}
.list-wrap {
margin-top: 20px;
}
}
/deep/.el-tabs--border-card>.el-tabs__header {
background: #fff;
/deep/.el-tabs--border-card > .el-tabs__header {
background: #fff;
}
</style>
</style>

82
jwtech-pc-page/src/views/enterpriseInformation/enterpriseInDetail.vue

@ -35,7 +35,7 @@
<realTimeCredit />
</div>
<div v-if="activeName == 'basic'">
<actionList
<!-- <actionList
:title="'良好行为列表'"
:tableData="goodList"
:total="goodTotal"
@ -46,7 +46,9 @@
:tableData="badList"
:total="badTotal"
@getBadResult="getCreditBadList"
/>
/> -->
<actionList :title="'良好行为列表'" />
<actionList :title="'不良行为列表'" />
</div>
</div>
</div>
@ -73,27 +75,27 @@ export default {
},
data() {
return {
activeName: "basic",
enterpriseGoodForm: {
pageNum: 1,
pageSize: 10,
data: {
enterpriseId: "",
type: "1"
}
},
goodList: [],
goodTotal: 0,
enterpriseBadForm: {
pageNum: 1,
pageSize: 10,
data: {
enterpriseId: "",
type: "0"
}
},
badList: [],
badTotal: 0
activeName: "basic"
// enterpriseGoodForm: {
// pageNum: 1,
// pageSize: 10,
// data: {
// enterpriseId: "",
// type: "1"
// }
// },
// goodList: [],
// goodTotal: 0,
// enterpriseBadForm: {
// pageNum: 1,
// pageSize: 10,
// data: {
// enterpriseId: "",
// type: "0"
// }
// },
// badList: [],
// badTotal: 0
};
},
created() {
@ -102,24 +104,26 @@ export default {
}
},
mounted() {
this.enterpriseGoodForm.data.enterpriseId = this.$route.query.enterpriseId;
this.enterpriseBadForm.data.enterpriseId = this.$route.query.enterpriseId;
this.getCreditList();
this.getCreditBadList();
// this.enterpriseGoodForm.data.enterpriseId = this.$route.query.enterpriseId;
// this.enterpriseBadForm.data.enterpriseId = this.$route.query.enterpriseId;
// this.getCreditList();
// this.getCreditBadList();
},
methods: {
getCreditList() {
creditList(this.enterpriseGoodForm).then(res => {
this.goodList = res.data.records;
this.goodTotal = res.data.total;
});
},
getCreditBadList() {
creditList(this.enterpriseBadForm).then(res => {
this.badList = res.data.records;
this.badTotal = res.data.total;
});
},
// getCreditList() {
// creditList(this.enterpriseGoodForm).then(res => {
// this.goodList = res.data.records;
// console.log("this.goodList", res);
// this.goodTotal = res.data.total;
// });
// },
// getCreditBadList() {
// creditList(this.enterpriseBadForm).then(res => {
// this.badList = res.data.records;
// console.log("this.badList", res);
// this.badTotal = res.data.total;
// });
// },
handleClick(tab, event) {
// console.log(tab, event);
}

2
jwtech-pc-page/src/views/enterpriseInformation/index.vue

@ -135,7 +135,7 @@ export default {
.list-wrap {
width: 1200px;
height: 1098px;
min-height: 1098px;
background: #ffffff;
border-radius: 8px;
margin: 0 auto;

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

@ -45,8 +45,8 @@
</el-table>
<pagination
:total="total"
:page.sync="apidata.pageNum"
:limit.sync="apidata.pageSize"
:page.sync="queryForm.pageNum"
:limit.sync="queryForm.pageSize"
:pageSizes="pageSizes"
@pagination="getResult"
/>
@ -207,7 +207,7 @@ export default {
.list-wrap {
width: 1200px;
height: 1098px;
min-height: 1098px;
background: #ffffff;
border-radius: 8px;
margin: 0 auto;

56
jwtech-pc-page/src/views/summarizedInformation/summarizedDetail.vue

@ -19,12 +19,30 @@
<span>发布时间{{ info.publishTime }}</span>
</div>
<div v-html="info.text"></div>
<div class="fujian">
<span>相关附件</span>
<template v-if="info.attachment">
<div
class="fileDiv"
v-for="(item, index) in JSON.parse(info.attachment)"
:key="item + index"
>
{{ item.name }}
<i
class="el-icon-download"
@click="downloadFile(item, index)"
></i>
</div>
</template>
</div>
</div>
</div>
</div>
</template>
<script>
import { zhxxList } from "@/api/enterpriseInformation";
import { getFileStream } from "@/api/common";
export default {
data() {
return {
@ -51,6 +69,24 @@ export default {
this.info = res.data.records[0];
}
});
},
// ,
downloadFile(info, index) {
console.log(info);
getFileStream({ fileName: info.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 = info.name; //
a.click(); //
URL.revokeObjectURL(a.href); //URL
});
}
}
};
@ -99,13 +135,31 @@ export default {
color: #0055a6;
}
.sorce {
margin-top: 20px 0;
margin: 20px 0;
display: flex;
justify-content: center;
span {
margin-right: 30px;
}
}
.fujian {
display: flex;
margin-top: 20px;
& > span {
font-weight: bold;
}
.fileDiv {
margin-right: 10px;
}
/deep/ .el-icon-download {
cursor: pointer;
color: #2274e5;
&:hover {
// color: blue;
font-weight: bold;
}
}
}
}
}
}

Loading…
Cancel
Save