lijinlong^2
杜函宇 1 year ago
parent e2de15ee00
commit 123bf99e7b

@ -68,6 +68,13 @@ export function enforcingDetail(data) {
})
}
//执法列表详情
export function enforcingGet(id) {
return request({
url: `/pharmaceuticals/examine/${id}`,
method: 'get',
})
}
// 根据字段查询字典信息
export function listDist(query) {

@ -1,5 +1,5 @@
<template >
<div style="height: 100%; width: 100%" v-loading="load1">
<div style="height: 100%; width: 100%" >
<div id="main1"></div>
</div>
</template>
@ -21,7 +21,8 @@ export default {
},
mounted() {
this.$nextTick(() => {
this.getData();
// this.getData();
this.initChart()
});
},
methods: {
@ -89,20 +90,20 @@ export default {
yAxis: [
{
type: "category",
// data: [
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// ],
data: this.arr1,
data: [
"高新区",
"工业园区",
"相城区",
"姑苏区",
"吴中区",
"吴江区",
"昆山市",
"太仓市",
"常熟市",
"张家港市",
"苏州",
],
// data: this.arr1,
axisLabel: {
//
formatter: function (value) {
@ -128,8 +129,8 @@ export default {
},
{
type: "category",
// data: [33, 63, 115, 167, 210, 225, 245, 283, 300, 321, 1000],
data: this.arr2,
data: [33, 63, 115, 167, 210, 225, 245, 283, 300, 321, 1000],
// data: this.arr2,
axisLabel: {
formatter: function (value, index) {
return `{a|${value}}{b|家}`;
@ -163,8 +164,8 @@ export default {
label: {
show: false, //
},
// data: [63, 115, 167, 210, 225, 245, 283, 300, 321, 678, 1000],
data: this.arr2,
data: [63, 115, 167, 210, 225, 245, 283, 300, 321, 678, 1000],
// data: this.arr2,
barWidth: 12,
itemStyle: {
color: {

@ -1,5 +1,5 @@
<template>
<div v-loading="load1" style="height: 100%; width: 100%">
<div style="height: 100%; width: 100%">
<div id="mains1"></div>
</div>
</template>
@ -16,7 +16,8 @@ export default {
},
mounted() {
this.$nextTick(() => {
this.getData();
// this.getData();
this.init();
});
},
methods: {
@ -68,20 +69,20 @@ export default {
xAxis: [
{
type: "category",
data: this.arr1,
// data: [
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// ],
// data: this.arr1,
data: [
"苏州",
"张家港市",
"常熟市",
"太仓市",
"昆山市",
"吴江区",
"吴中区",
"姑苏区",
"相城区",
"工业园区",
"高新区",
],
axisTick: {
show: false,
},
@ -136,8 +137,8 @@ export default {
]),
},
z: 100,
// data: [700, 400, 600, 300, 580, 250, 490, 200, 390, 460, 90],
data: this.arr2,
data: [700, 400, 600, 300, 580, 250, 490, 200, 390, 460, 90],
// data: this.arr2,
//
emphasis: {
label: {

@ -1,5 +1,5 @@
<template >
<div style="height: 100%; height: 100%" v-loading="load1">
<div style="height: 100%; height: 100%" >
<div id="cakeBox"></div>
</div>
</template>
@ -22,7 +22,8 @@ export default {
},
mounted() {
this.$nextTick(() => {
this.getData();
// this.getData();
this.initChart();
});
},
methods: {
@ -102,22 +103,23 @@ export default {
arrA += value.value;
});
const item = option.legend.data.find((item) => item.name === name);
return `{a|${name}}{b|${( item.value / arrA * 100)}%}`;
// return `{a|${name}}{b|${( item.value / arrA * 100)}%}`;
return `{a|${name}}{b|15%}`;
},
//waiyuan,
// data: [
// { value: 15, name: "" },
// { value: 10, name: "" },
// { value: 8, name: "" },
// { value: 10, name: "" },
// { value: 18, name: "" },
// { value: 6, name: "" },
// { value: 10, name: "" },
// { value: 4, name: "" },
// { value: 10, name: "" },
// { value: 5, name: "" },
// ],
data: this.arr1,
data: [
{ value: 15, name: "张家港市" },
{ value: 10, name: "吴中区" },
{ value: 8, name: "常熟市" },
{ value: 10, name: "姑苏区" },
{ value: 18, name: "太仓市" },
{ value: 6, name: "相城区" },
{ value: 10, name: "昆山市" },
{ value: 4, name: "工业园区" },
{ value: 10, name: "吴江区" },
{ value: 5, name: "高新区" },
],
// data: this.arr1,
},
series: [
{
@ -183,19 +185,19 @@ export default {
labelLine: {
show: false,
},
// data: [
// { value: 15, name: "" },
// { value: 10, name: "" },
// { value: 8, name: "" },
// { value: 10, name: "" },
// { value: 18, name: "" },
// { value: 6, name: "" },
// { value: 10, name: "" },
// { value: 4, name: "" },
// { value: 10, name: "" },
// { value: 5, name: "" },
// ],
data: this.arr1,
data: [
{ value: 15, name: "张家港市" },
{ value: 10, name: "吴中区" },
{ value: 8, name: "常熟市" },
{ value: 10, name: "姑苏区" },
{ value: 18, name: "太仓市" },
{ value: 6, name: "相城区" },
{ value: 10, name: "昆山市" },
{ value: 4, name: "工业园区" },
{ value: 10, name: "吴江区" },
{ value: 5, name: "高新区" },
],
// data: this.arr1,
},
],
};

@ -162,6 +162,7 @@ import {
businessList,
enforcingDetail,
xzTree,
enforcingGet,
} from "@/api/yingji/keyEnterprise.js";
import { mapState } from "vuex";
export default {
@ -173,9 +174,9 @@ export default {
loads: true,
total: 0,
//
district:[],
district: [],
form: {
district: '',
district: "",
plannedYear: "",
//
checkStatus: "",
@ -374,24 +375,13 @@ export default {
look(e) {
this.addShow = true;
this.detailLoad = true;
businessList({ uscCode: e.enterpriseId, ...this.searchBefore }).then(
(res) => {
this.details = res.data.list[0];
this.detailLoad = false;
for (let key in this.details) {
this.listDes.forEach((value1, index1) => {
if (key == value1.eng) {
this.listDes[index1].value = this.details[key];
return;
}
});
}
}
);
enforcingGet(e.longId).then((res) => {
console.log(res);
});
},
searchList() {
if (this.district) {
this.form.district = this.district[0]
this.form.district = this.district[0];
}
this.searchBefore = { ...this.searchBefore, ...this.form };
this.getList();

@ -206,7 +206,7 @@
</div>
<div class="content">
<div class="filtrate">
<el-descriptions :column="2" border >
<el-descriptions :column="2" border>
<el-descriptions-item
:label="item.label"
v-for="(item, index) in listDes"
@ -417,11 +417,13 @@ export default {
label: "数据年份",
value: "",
},
{
eng: "isPoint",
label: "是否重点",
value: "",
},
{
eng: "latitudeGps",
label: "纬度(度) 84",
@ -579,6 +581,16 @@ export default {
isNoneDivision: false,
newQHList: [],
subdistrict: [],
isPointOption:[
{
dictValue:1,
dictLabel:'是'
},
{
dictValue:0,
dictLabel:'否'
},
]
};
},
created() {
@ -594,11 +606,15 @@ export default {
methods: {
filterTable(a, b) {
let arr = [];
if (!b) return;
if (a == this.options.major_hazard_level) {
arr = a.filter((value) => {
return "0" + value.dictValue == b;
});
}
arr = a.filter((value) => {
return value.dictValue == b;
});
return arr[0].dictLabel;
},
shutDownDetail() {
@ -607,22 +623,28 @@ export default {
look(e) {
this.addShow = true;
console.log(e);
// businessList({ uscCode: e.enterpriseId, ...this.searchBefore }).then(
// (res) => {
this.details = e;
for (let key in this.details) {
this.listDes.forEach((value1, index1) => {
// if(key == value1.eng ){
// this.listDes[index1].value =this.filterTable(this.isPointOption, this.details[key]) ;
// return;
// }
if (key == value1.eng) {
this.listDes[index1].value = this.details[key];
return;
}
});
}
// }
// );
for (let key1 in this.listDes) {
}
console.log(this.filterTable(this.isPointOption, this.listDes[30].value) );
},
getDict() {
xzTree().then((res1) => {
console.log(res1);
if (this.dept.parentId == 0) {
res1.data.forEach((value, index) => {
this.xzList.push({

@ -100,11 +100,11 @@
{{ scope.row.deptName }}
</template>
</el-table-column>
<el-table-column prop="deptName" label="区县" header-align="center">
<!-- <el-table-column prop="deptName" label="区县" header-align="center">
<template slot-scope="scope">
{{ scope.row.deptName.slice(scope.row.deptName.length - 1) }}
</template>
</el-table-column>
</el-table-column> -->
<el-table-column
prop="keyPlan"
label="省重点计划数"
@ -229,7 +229,18 @@ export default {
//======
load1: false,
total: 0,
tableData: [],
tableData: [
{
deptName:'苏州市',
keyPlan:10,
keyCompleted:5,
percentageCompleted:50,
nonKeyPlan:10,
nonKeyCompleted:5,
percentageNonCompleted:50,
totalPlanCount:20,
}
],
//===
beforeParams: {
pageSize: 10,
@ -263,8 +274,8 @@ export default {
}),
},
created() {
this.getTree();
this.getHomeList();
// this.getTree();
// this.getHomeList();
},
mounted() {},
methods: {

@ -49,8 +49,8 @@ module.exports = {
// },
// },
'/api': {
target: `http://39.101.188.84:9033`,
// target: `http://192.168.0.119:9033`,
// target: `http://39.101.188.84:9033`,
target: `http://192.168.0.119:9033`,
changeOrigin: true,
pathRewrite: {
'^/api': ''

Loading…
Cancel
Save