Browse Source

11/22/17:20 民意感知1.5

大屏地图
main
parent
commit
c263973e75
  1. 11
      src/api/data/basicScreen.ts
  2. 40
      src/api/screen/jwpy.ts
  3. 20
      src/views/datav/Gobal.vue
  4. 351
      src/views/datav/Jwpy.vue

11
src/api/data/basicScreen.ts

@ -70,3 +70,14 @@ export function getProblemBusinessRate(times) {
} }
/**
*
*/
export function getGobalMap(times) {
return request.get({
url: `/datav/dataGobalScreen/getMap?beginTime=${times[0]}&endTime=${times[1]}`
});
}

40
src/api/screen/jwpy.ts

@ -97,3 +97,43 @@ export function GetDITU() {
body: formData body: formData
}); });
} }
export function GetMyPeriod() {
let formData = new FormData();
formData.append("PeriodId", 6);
formData.append("PeriodSonID", -1);
formData.append("OrgNo", 4301);
formData.append("TaskID", 2);
return outrequest.post({
url: `/out-police-service/api/DSJ/GetMyPeriod`,
body: formData
});
}
export function GetCustomOffLineSonPeriodSet() {
let formData = new FormData();
formData.append("PeriodId", 6);
formData.append("PeriodSonID", -1);
formData.append("OrgNo", 4301);
formData.append("TaskID", 2);
return outrequest.post({
url: `/out-police-service/api/Survey/GetCustomOffLineSonPeriodSet`,
body: formData
});
}
export function qx_get() {
let formData = new FormData();
formData.append("PeriodId", 6);
formData.append("PeriodSonID", -1);
formData.append("OrgNo", 4301);
formData.append("TaskID", 2);
return outrequest.post({
url: `/out-police-service/api/ShareSystem/qx_get`,
body: formData
});
}

20
src/views/datav/Gobal.vue

@ -145,17 +145,16 @@ import {
getAllGobalCount, getAllGobalCount,
getBusinessRate, getBusinessRate,
getGobalRecentlyTrendByMonth, getGobalRecentlyTrendByMonth,
getOrganizationRank, getProblemBusinessRate, getStrongProblemRate getOrganizationRank, getProblemBusinessRate, getStrongProblemRate, getGobalMap
} from "@/api/data/basicScreen.ts"; } from "@/api/data/basicScreen.ts";
// region // region
const activeOrgTab = ref("1"); const activeOrgTab = ref("1");
const fxsjlist = ref([]); // const fxsjlist = ref([]); //
const jsdwlist = ref([]); // const jsdwlist = ref([]); //
const ywzblist = ref([]); // const ywzblist = ref([]); //
const wtlxlist = ref([]); // const wtlxlist = ref([]); //
const tcwtlist = ref([]); // const tcwtlist = ref([]); //
const mapData = ref([]); // const gobalTempMapVoList = ref([
let gobalTempMapVoList = ref([
{ {
"name": "天心分局", "name": "天心分局",
"totalPro": 11, "totalPro": 11,
@ -166,10 +165,8 @@ let gobalTempMapVoList = ref([
"reviewPro": 11 "reviewPro": 11
} }
]); // ]); //
// endregion
const router = useRouter(); const router = useRouter();
// endregion
// region线 // region线
@ -315,7 +312,6 @@ function getData() {
}); });
getAllGobalCount(time.value).then((res) => { getAllGobalCount(time.value).then((res) => {
overview.value = res.overview; overview.value = res.overview;
gobalTempMapVoList.value = res.gobalTempMapVoList;
}); });
getGobalRecentlyTrendByMonth(new Date().getFullYear()).then((res) => { getGobalRecentlyTrendByMonth(new Date().getFullYear()).then((res) => {
proTrend.value.xAxis.data = res.monthList; proTrend.value.xAxis.data = res.monthList;
@ -327,6 +323,9 @@ function getData() {
getProblemBusinessRate(time.value).then((res) => { getProblemBusinessRate(time.value).then((res) => {
wtlxlist.value = res.wtlxlist; wtlxlist.value = res.wtlxlist;
}); });
getGobalMap(time.value).then(res => {
gobalTempMapVoList.value = res.gobalTempMapVoList;
})
} }
onMounted(() => { onMounted(() => {
@ -337,6 +336,7 @@ watch(time, () => {
}); });
// endregion // endregion
const colors = [ const colors = [
{ {
color: "linear-gradient( 270deg, #FB002D 0%, #822232 100%)", color: "linear-gradient( 270deg, #FB002D 0%, #822232 100%)",
@ -352,8 +352,6 @@ const colors = [
}, },
]; ];
// region // region
echarts.registerMap("changsha", changshaMap); echarts.registerMap("changsha", changshaMap);
const option = ref({ const option = ref({
@ -411,7 +409,6 @@ const option = ref({
color: "#fff", color: "#fff",
}, },
calculable: true, calculable: true,
}, },
series: [ series: [
{ {
@ -439,7 +436,6 @@ const option = ref({
name: item.name, name: item.name,
value: item.totalPro, value: item.totalPro,
}; };
console.log(item.totalPro); //
return data; return data;
}) })
} }

351
src/views/datav/Jwpy.vue

@ -10,7 +10,7 @@
<el-col :span="5"> <el-col :span="5">
<div class="descriptions_cell text-center margin-top-30"> <div class="descriptions_cell text-center margin-top-30">
<div class="descriptions_content"> <div class="descriptions_content">
{{ reviewOk[0].State2 }} {{ reviewOk[0].dczl }}
</div> </div>
<div class="descriptions_label"> <div class="descriptions_label">
调查总量 调查总量
@ -49,7 +49,7 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<div class="descriptions_cell text-center margin-top-30"> <div class="descriptions_cell text-center margin-top-30">
<div class="descriptions_content"> <div class="descriptions_content yellow">
{{ reviewOk[0].bmys }} {{ reviewOk[0].bmys }}
</div> </div>
<div class="descriptions_label"> <div class="descriptions_label">
@ -73,7 +73,7 @@
</div> </div>
</div> </div>
<div class="descriptions_cell text-center height-118"> <div class="descriptions_cell text-center height-118">
<div class="descriptions_content"> <div class="descriptions_content yellow">
{{ dcmyd.length > 0 && dcmyd[0] && dcmyd[0].FinalRP !== undefined ? dcmyd[0].FinalRP : '0' }} {{ dcmyd.length > 0 && dcmyd[0] && dcmyd[0].FinalRP !== undefined ? dcmyd[0].FinalRP : '0' }}
</div> </div>
<div class="descriptions_label "> <div class="descriptions_label ">
@ -95,15 +95,16 @@
<div style="background-color:#04144E; "> <div style="background-color:#04144E; ">
<h3 style="color: white">业务满意率</h3> <h3 style="color: white">业务满意率</h3>
<el-table <el-table
:highlight-current-row="false"
:highlight-hover-row='false'
:data="tableData" :data="tableData"
height="300" height="350"
:summary-cell-style="summaryCellStyle" :summary-cell-style="summaryCellStyle"
:summary-method="getSummaries" :summary-method="getSummaries"
:style="{ width: '100%', marginTop: '20px', fontSize: fontSize + 'px' }" :style="{ width: '100%', marginTop: '20px', fontSize: fontSize + 'px' }"
:header-cell-style="headerCellStyle" :header-cell-style="headerCellStyle"
:row-style="tableRowStyle" :row-style="tableRowStyle"
:show-summary='true' :show-summary='true'
:highlight-current-row="false"
> >
<el-table-column prop="Name" label="单项业务" width="82px"/> <el-table-column prop="Name" label="单项业务" width="82px"/>
<el-table-column prop="sdcl" label="有效数" width="72px"/> <el-table-column prop="sdcl" label="有效数" width="72px"/>
@ -114,27 +115,65 @@
</el-table-column> </el-table-column>
<el-table-column prop="sbmys" label="不满意数" width="72px"/> <el-table-column prop="sbmys" label="不满意数" width="72px"/>
<el-table-column prop="smyl" label="满意率" width="72px"/> <el-table-column prop="smyl" label="满意率" width="72px"/>
<el-table-column prop="smyltb" label="同比" width="86px"/> <el-table-column prop="smyltb" label="同比" width="86px">
<template v-slot="scope">
<span :style="getCellStyle(scope.row.smyltb)">{{ scope.row.smyltb }}</span>
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<div class="datav-col"> <el-row justify="center" :gutter="20" class="mt-16">
<el-row :gutter="6">
<el-col :span="4"> <el-col :span="4">
<!-- <datav-select></datav-select>--> <el-select v-model="selectYear" placeholder="请选择" class="custom-select" @change="handleYearChange">
<el-option
v-for="item in years"
:key="item.ID"
:label="item.PeriodName"
:value="item.ID">
</el-option>
</el-select>
</el-col>
<el-col :span="4">
<el-select v-model="selectMonth" placeholder="请选择">
<el-option
v-for="item in months"
:key="item.ID"
:label="item.SonPeriodName"
:value="item.ID">
</el-option>
</el-select>
</el-col>
<el-col :span="6">
<el-tree-select
v-model="selectOrg"
:data="org"
check-strictly
:props="treeProps"
:expand-on-click-node="false"
node-key="id"
:style="{ fontSize: '12px', }"
@check-change="handleCheckChange"
/>
</el-col>
<el-col :span="4">
<el-select v-model="text" placeholder="请选择">
<el-option
v-for="item in content"
:key="item"
:label="item"
:value="item">
</el-option>
</el-select>
</el-col> </el-col>
</el-row> </el-row>
</div>
<v-charts <v-charts
style="height: 450px" style="height: 450px"
:option="option" :option="option"
autoresize autoresize
/> />
<datav-card title="综合滿意度排名"> <datav-card title="综合滿意度排名">
<div class="common-layout"> <div class="common-layout">
<el-container> <el-container>
@ -144,12 +183,12 @@
<div style="background-color:#04144E; "> <div style="background-color:#04144E; ">
<el-table <el-table
:data="tableData1" :data="tableData1"
height="106" height="70"
:summary-cell-style="summaryCellStyle" :summary-cell-style="summaryCellStyle"
:summary-method="getSummaries" :summary-method="getSummaries"
:style="{ width: '100%', marginTop: '20px', fontSize: fontSize + 'px' }" :style="{ width: '100%', marginTop: '20px', fontSize: fontSize + 'px' }"
:header-cell-style="headerCellStyle" :header-cell-style="headerCellStyle"
:row-style="tableRowStyle" :row-style="tableRowStyleTableData1"
:show-summary='false' :show-summary='false'
:highlight-current-row='false' :highlight-current-row='false'
> >
@ -157,7 +196,11 @@
<el-table-column prop="OrganizeName" label="市州考评" width="149"/> <el-table-column prop="OrganizeName" label="市州考评" width="149"/>
<el-table-column prop="FinalRP" label="滿意度" width="65"/> <el-table-column prop="FinalRP" label="滿意度" width="65"/>
<el-table-column prop="TBRp" label="上期满意度" width="65"/> <el-table-column prop="TBRp" label="上期满意度" width="65"/>
<el-table-column prop="TBRpts" label="同比上期" width="65"/> <el-table-column prop="TBRpts" label="同比上期" width="86px">
<template v-slot="scope">
<span :style="getCellStyle(scope.row.TBRpts)">{{ scope.row.TBRpts }}</span>
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</el-header> </el-header>
@ -170,15 +213,18 @@
:summary-method="getSummaries" :summary-method="getSummaries"
:style="{ width: '100%', marginTop: '70px', fontSize: fontSize + 'px' }" :style="{ width: '100%', marginTop: '70px', fontSize: fontSize + 'px' }"
:header-cell-style="headerCellStyle" :header-cell-style="headerCellStyle"
:row-style="tableRowStyle" :row-style="tableRowStyleTableData2"
:show-summary='false' :show-summary='false'
:highlight-current-row='false'
> >
<el-table-column prop="MydRanking" label="排名"/> <el-table-column prop="MydRanking" label="排名"/>
<el-table-column prop="OrganizeName" label="县市考评"/> <el-table-column prop="OrganizeName" label="县市考评"/>
<el-table-column prop="FinalRP" label="滿意度"/> <el-table-column prop="FinalRP" label="滿意度"/>
<el-table-column prop="TBRp" label="上期满意度"/> <el-table-column prop="TBRp" label="上期满意度"/>
<el-table-column prop="TBRpts" label="同比上期"/> <el-table-column prop="TBRpts" label="同比上期" width="86px">
<template v-slot="scope">
<span :style="getCellStyle(scope.row.TBRpts)">{{ scope.row.TBRpts }}</span>
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</el-main> </el-main>
@ -200,14 +246,17 @@
<el-table-column prop="OrganizeName" label="区"/> <el-table-column prop="OrganizeName" label="区"/>
<el-table-column prop="FinalRP" label="滿意度"/> <el-table-column prop="FinalRP" label="滿意度"/>
<el-table-column prop="TBRp" label="上期满意度"/> <el-table-column prop="TBRp" label="上期满意度"/>
<el-table-column prop="TBRpts" label="同比上期"/> <el-table-column prop="TBRpts" label="同比上期" width="86px">
<template v-slot="scope">
<span :style="getCellStyle(scope.row.TBRpts)">{{ scope.row.TBRpts }}</span>
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</el-aside> </el-aside>
</el-container> </el-container>
</div> </div>
</datav-card> </datav-card>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -233,7 +282,7 @@
</h3> </h3>
<el-table <el-table
:data="tableData4" :data="tableData4"
height="300" height="350"
:summary-cell-style="summaryCellStyle" :summary-cell-style="summaryCellStyle"
:summary-method="getSummaries" :summary-method="getSummaries"
:style="{ width: '100%', marginTop: '20px', fontSize: fontSize + 'px' }" :style="{ width: '100%', marginTop: '20px', fontSize: fontSize + 'px' }"
@ -245,6 +294,7 @@
<el-table-column prop="sdcl" label="有效数"/> <el-table-column prop="sdcl" label="有效数"/>
<el-table-column prop="bmyzs" label="省不满意数"/> <el-table-column prop="bmyzs" label="省不满意数"/>
<el-table-column prop="LastDayQACount" label="新增调查数"/> <el-table-column prop="LastDayQACount" label="新增调查数"/>
</el-table> </el-table>
</div> </div>
</el-col> </el-col>
@ -261,21 +311,66 @@
import vCharts from "vue-echarts"; import vCharts from "vue-echarts";
import changshaMap from "@/assets/data/changsha.json"; import changshaMap from "@/assets/data/changsha.json";
import * as echarts from "echarts/core"; import * as echarts from "echarts/core";
import {GetBMYYBQS, GetDCQK, GetDITU, GetDXFX, GetGLFW, GetRCSQQK, GetZHMYLPM, GetZRSJXF} from "@/api/screen/jwpy.ts"; import {
GetBMYYBQS, GetCustomOffLineSonPeriodSet,
GetDCQK,
// region GetDITU,
GetDXFX,
GetGLFW,
GetMyPeriod,
GetRCSQQK,
GetZHMYLPM,
GetZRSJXF, qx_get
} from "@/api/screen/jwpy.ts";
// region
// //
const reviewOk = ref([{}]); const reviewOk = ref([{}]);
// 滿 // 滿
const dcmyd = ref([]); const dcmyd = ref([]);
// endregion //
// region
const bmyybqs = ref([]); const bmyybqs = ref([]);
//
const dxfx = ref([]); const dxfx = ref([]);
//
const tempMap = ref([])
//
const years = ref([{}])
const selectYear = ref();
const tempMonths = ref([{}])
const months = ref([{}])
const selectMonth = ref();
//
const org = ref([])
const text = ref("省(全市)")
const content = ["省(全市)"]
const selectOrg=ref()
// endregion // endregion
//
watch(selectYear, (newYearID) => {
if (newYearID) {
months.value = tempMonths.value.filter(item => item.PeriodID === newYearID);
selectMonth.value = null; //
} else {
months.value = []; //
}
});
//
const treeProps = {
label: 'text',
children: 'children'
};
//
const handleCheckChange = (checkedNodes, checkedKeys) => {
console.log('选中的节点:', checkedNodes);
console.log('选中的节点ID:', checkedKeys);
};
echarts.registerMap("changsha", changshaMap); echarts.registerMap("changsha", changshaMap);
let mapDataList = reactive([ let mapDataList = reactive([
@ -301,30 +396,9 @@ const option = {
}, },
}, },
tooltip: { tooltip: {
show: true, show: false,
trigger: "item", trigger: "item",
position: "right", position: "right",
formatter: function (params) {
if (typeof params.data === "undefined") {
console.log(params);
} else {
console.log(params);
return `<div class="tooltip">
<div class="tooltip-title">${params.name}</div>
<div class="tooltip-content">
<ul class="tooltip-ul">
<li>信访总件数 <span>${params.data.todaysum}</span></li>
<li>国家信访 <span>${params.data.allsum}</span>
</li>
<li>公安部信访 <span>${params.data.completed}</span>
</li>
<li>局长信箱 <span>${params.data.completedrate}</span></li>
<li>12337信访 <span>${params.data.resolvedrate}</span></li>
</ul>
</div>
</div>`;
}
},
backgroundColor: "#031577", // backgroundColor: "#031577", //
borderColor: "#0A2F86", borderColor: "#0A2F86",
borderWidth: 0, // 1 borderWidth: 0, // 1
@ -334,6 +408,7 @@ const option = {
shadowOffsetY: 0, // 6 shadowOffsetY: 0, // 6
}, },
visualMap: { visualMap: {
show: false,
type: "piecewise", type: "piecewise",
bottom: 10, bottom: 10,
pieces: [ pieces: [
@ -369,8 +444,14 @@ const option = {
const option1 = ref({ const option1 = ref({
xAxis: { xAxis: {
type: "category", type: "category",
boundaryGap: false, boundaryGap: true,
data: [], data: [],
axisLabel: {
interval: 0, //
},
axisTick: {
show: false // x
}
}, },
yAxis: { yAxis: {
type: "value", type: "value",
@ -379,7 +460,11 @@ const option1 = ref({
lineStyle: { lineStyle: {
color: "#193775", color: "#193775",
}, },
} },
axisLabel: {
margin: 20,
},
}, },
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
@ -398,39 +483,34 @@ const option1 = ref({
show: false show: false
}, },
lineStyle: { lineStyle: {
color: "#28E6FF", color: "#FFDB31",
width: 4, width: 4,
}, },
areaStyle: { areaStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
offset: 0, offset: 0,
color: "rgba(40,230,255,0.47)", // color: "rgba(255,218,51,0.25)", //
}, },
{ {
offset: 1, offset: 1,
color: "rgba(40,230,255,0)", // color: "rgba(255,219,49,0)", //
}, },
]), ]),
}, },
data: [], data: [],
}, },
], ],
grid: {left: '10%', right: '10%', top: '10%', bottom: '20%', containLabel: true}, grid: {left: '5%', right: '5%', top: '10%', bottom: '20%', containLabel: true},
}) })
const option2 = ref({ const option2 = ref({
xAxis: { xAxis: {
type: "category", type: "category",
boundaryGap: false, boundaryGap: true,
data: [ data: [],
"9/10", axisTick: {
"9/11", show: false // x
"9/12", },
"9/13",
"9/13",
"9/13",
],
}, },
yAxis: { yAxis: {
type: "value", type: "value",
@ -439,7 +519,11 @@ const option2 = ref({
lineStyle: { lineStyle: {
color: "#193775", color: "#193775",
}, },
} },
axisLabel: {
margin: 20,
},
}, },
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
@ -459,7 +543,6 @@ const option2 = ref({
}, },
lineStyle: { lineStyle: {
color: "#6FDBA0", color: "#6FDBA0",
width: 4, width: 4,
}, },
areaStyle: { areaStyle: {
@ -469,17 +552,10 @@ const option2 = ref({
}, {offset: 1, color: 'rgba(109, 221, 159, 0)'}]) }, {offset: 1, color: 'rgba(109, 221, 159, 0)'}])
}, },
data: [ data: [],
79,
88,
82,
77,
69,
90,
],
}, },
], ],
grid: {left: '10%', right: '10%', top: '10%', bottom: '20%', containLabel: true}, grid: {left: '5%', right: '5%', top: '10%', bottom: '20%', containLabel: true},
}) })
const option3 = ref({ const option3 = ref({
tooltip: {}, tooltip: {},
@ -489,16 +565,29 @@ const option3 = ref({
color: '#fff', color: '#fff',
}, },
}, },
grid: {
left: '10%',
right: '10%', top: '10%', bottom: '10%'
},
xAxis: { xAxis: {
type: 'category', type: 'category',
data: [] data: [],
axisLabel: {
interval: 0, //
fontSize: 5,
color: '#fff',
},
}, },
yAxis: { yAxis: {
type: 'value' type: 'value',
axisLabel: {
margin: 10,
},
splitLine: {
show: true, lineStyle: {
color: ['#193775'], // x线
width: 1, // 线
type: 'solid' // 线 'solid', 'dashed', 'dotted'
}
}
}, },
series: [ series: [
{ {
@ -535,22 +624,22 @@ const option3 = ref({
}, {offset: 1, color: '#6FDBA0'}]) }, {offset: 1, color: '#6FDBA0'}])
} }
} }
] ],
grid: {left: '8%', right: '0%', top: '10%', bottom: '10%'},
}); });
// region // region
const tableData = ref([]) const tableData = ref([]) //
const tableData1 = ref([]) const tableData1 = ref([]) //
const tableData2 = ref([]) const tableData2 = ref([])
const tableData3 = ref([]) const tableData3 = ref([])
const tableData4 = ref([]) const tableData4 = ref([]) //
// endregion // endregion
// region
onMounted(() => { onMounted(() => {
getData(); // getData();
}); });
function getData() { function getData() {
@ -570,7 +659,7 @@ function getData() {
// //
GetZRSJXF().then((res) => { GetZRSJXF().then((res) => {
let temp = res.lstCity let temp = res.lstCity
temp= temp.filter(item => item.Name === null); temp = temp.filter(item => item.Name !== null);
tableData.value = temp tableData.value = temp
}); });
@ -603,16 +692,41 @@ function getData() {
option3.value.series[2].data = dxfx.value[2].lstson.map(item => item.FinalRP); option3.value.series[2].data = dxfx.value[2].lstson.map(item => item.FinalRP);
}); });
//
GetRCSQQK().then((res) => { GetRCSQQK().then((res) => {
let text = res let text = res
text = text.filter(item => item.Name !== null) text = text.filter(item => item.Name !== null)
tableData4.value = text tableData4.value = text
}); });
// GetZRSJXF().then((res) => { }); //
GetMyPeriod().then((res)=>{
let tempYear = res
years.value = tempYear.map(item => ({
ID: item.ID,
PeriodName: item.PeriodName
}));
})
//
GetCustomOffLineSonPeriodSet().then((res)=>{
let month = res
tempMonths.value = month.map((item) => {
return {
ID: item.ID,
SonPeriodName: item.SonPeriodName,
PeriodID: item.PeriodID,
}
})
})
//
qx_get().then((res)=>{
let tempOrgs = res
org.value = tempOrgs
})
// GetDITU().then((res) => { }); // GetDITU().then((res) => { });
} }
// endregion
// region // region
const fontSize = ref(11) const fontSize = ref(11)
@ -620,16 +734,32 @@ const headerCellStyle = ref({
fontSize: '11px', /* 设置表头字体大小 */ fontSize: '11px', /* 设置表头字体大小 */
color: '#24D2EE', /* 设置表头字体颜色 */ color: '#24D2EE', /* 设置表头字体颜色 */
backgroundColor: '#04144E', /* 设置表头背景颜色 */ backgroundColor: '#04144E', /* 设置表头背景颜色 */
height: '60px', /* 设置表头高度 */ height: '0px', /* 设置表头高度 */
padding: '0 0 0 0', /* 设置表头内边距 */ padding: '0 0 0 0', /* 设置表头内边距 */
lineHeight: '60px', lineHeight: '0px',
}); });
const tableRowStyle = (row) => { const tableRowStyle = (row) => {
return { return {
backgroundColor: '#04144E', backgroundColor: '#04144E',
color: "#FFFFFF" color: "#FFFFFF",
height: '40px',
};
};
const tableRowStyleTableData1 = (row) => {
return {
backgroundColor: '#04144E',
color: "#FFFFFF",
height: '50px',
}; };
}; };
const tableRowStyleTableData2 = () => {
return {
backgroundColor: '#04144E',
color: "#FFFFFF",
height: '50px',
};
}
// //
const summaryCellStyle = () => { const summaryCellStyle = () => {
return { return {
@ -663,13 +793,21 @@ const getSummaries = (param) => {
}); });
return sums; return sums;
}; };
const calculateSatisfaction = (row) => { const calculateSatisfaction = (row) => {
const validCount = row.sdcl || 0 // const validCount = row.sdcl || 0 //
const dissatisfiedCount = row.sbmys || 0 // const dissatisfiedCount = row.sbmys || 0 //
return validCount - dissatisfiedCount // return validCount - dissatisfiedCount //
} }
const getCellStyle = (smyltb) => {
if (smyltb > 0) {
return {color: 'green'};
} else {
return {color: 'red'};
}
}
// endregion // endregion
</script> </script>
@ -689,6 +827,19 @@ const calculateSatisfaction = (row) => {
padding: 0; padding: 0;
text-align: center; text-align: center;
} }
.el-table .el-table__row:hover {
//background-color: transparent !important;
}
.el-table {
--el-table-row-hover-bg-color: transparent;
--el-table-border-color: #193775;
}
} }
.dropdown-container { .dropdown-container {
@ -704,7 +855,7 @@ const calculateSatisfaction = (row) => {
} }
.descriptions_content { .descriptions_content {
font-size: 22px; font-size: 18px;
font-weight: 700; font-weight: 700;
} }
@ -741,5 +892,9 @@ h3 {
margin-bottom: 0px; margin-bottom: 0px;
} }
.yellow {
color: #ffd04b;
}
</style> </style>
Loading…
Cancel
Save