Browse Source

Merge branch 'dev-220411' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into dev-220411

shibei_master
13176889840 3 years ago
parent
commit
25abbe227c
  1. 8
      src/assets/scss/common.scss
  2. 10
      src/assets/scss/modules/visual/people.scss
  3. 12
      src/assets/scss/people-info.scss
  4. 19
      src/views/modules/communityService/sqzzz/cpts/edit.vue
  5. 15
      src/views/modules/communityService/sqzzz/index.vue
  6. 3
      src/views/modules/shequ/cpts/bar-chart.vue
  7. 6
      src/views/modules/shequ/index.vue
  8. 28
      src/views/modules/visual/cpts/tb.vue
  9. 4
      src/views/modules/visual/heart/index.vue
  10. 31
      src/views/modules/visual/warning/components/screen-table/index.vue
  11. 44
      src/views/modules/warning/components/screen-table/index.vue

8
src/assets/scss/common.scss

@ -813,3 +813,11 @@ img {
background-color: #fe6252; background-color: #fe6252;
border-color: #fe6252; border-color: #fe6252;
} }
// 修改表格不换行的问题
div.el-table div.cell {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
word-wrap: normal;
}

10
src/assets/scss/modules/visual/people.scss

@ -184,7 +184,7 @@
.wrap { .wrap {
position: relative; position: relative;
margin: 120px auto; margin: 120px auto;
width: 1000px; width: 1180px;
.title { .title {
padding: 10px; padding: 10px;
@ -265,18 +265,18 @@
.tab { .tab {
margin: 0 5px; margin: 0 5px;
min-width: 76px; min-width: 76px;
padding: 0 5px; padding: 0 10px;
height: 30px; height: 36px;
background: rgba(255, 255, 255, 0); background: rgba(255, 255, 255, 0);
border: 1px solid #1257c9; border: 1px solid #1257c9;
box-shadow: 0 0 10px 0 inset #1257c9; box-shadow: 0 0 10px 0 inset #1257c9;
border-radius: 2px; border-radius: 2px;
text-align: center; text-align: center;
font-size: 14px; font-size: 18px;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
line-height: 30px; line-height: 36px;
cursor: pointer; cursor: pointer;
transition: all ease 0.5s; transition: all ease 0.5s;
&.z-on { &.z-on {

12
src/assets/scss/people-info.scss

@ -10,14 +10,14 @@
position: relative; position: relative;
margin: 5vh auto; margin: 5vh auto;
height: 90vh; height: 90vh;
width: 1040px; width: 1180px;
background-color: #fff; background-color: #fff;
.wrap2 { .wrap2 {
box-sizing: border-box; box-sizing: border-box;
padding: 20px; padding: 20px;
height: 90vh; height: 90vh;
width: 1040px; width: 1180px;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
} }
@ -102,18 +102,18 @@
.tab { .tab {
margin: 0 5px; margin: 0 5px;
min-width: 76px; min-width: 76px;
padding: 0 5px; padding: 0 10px;
height: 30px; height: 36px;
background: #fff; background: #fff;
border: 1px solid #eee; border: 1px solid #eee;
box-shadow: 0 0 10px 0 inset #ddd; box-shadow: 0 0 10px 0 inset #ddd;
border-radius: 2px; border-radius: 2px;
text-align: center; text-align: center;
font-size: 14px; font-size: 18px;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 400; font-weight: 400;
color: #333; color: #333;
line-height: 30px; line-height: 36px;
cursor: pointer; cursor: pointer;
transition: all ease 0.1s; transition: all ease 0.1s;
&.z-on { &.z-on {

19
src/views/modules/communityService/sqzzz/cpts/edit.vue

@ -134,6 +134,23 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item
label="备注"
prop="remark"
label-width="150px"
style="display: block"
>
<el-input
class="item_width_1"
type="textarea"
maxlength="1000"
show-word-limit
:rows="3"
placeholder="请输入备注,不超过1000字"
v-model="dataForm.remark"
></el-input>
</el-form-item>
<el-form-item <el-form-item
label="创建时间" label="创建时间"
prop="organizationCreatedTime" prop="organizationCreatedTime"
@ -234,6 +251,7 @@ export default {
principalPhone: "", principalPhone: "",
organizationCreatedTime: "", organizationCreatedTime: "",
address: "", address: "",
remark: "",
longitude: "", longitude: "",
latitude: "", latitude: "",
organizationPersonnel: [], organizationPersonnel: [],
@ -444,6 +462,7 @@ export default {
principalPhone: "", principalPhone: "",
organizationCreatedTime: "", organizationCreatedTime: "",
address: "", address: "",
remark: "",
longitude: "", longitude: "",
latitude: "", latitude: "",
organizationPersonnel: [], organizationPersonnel: [],

15
src/views/modules/communityService/sqzzz/index.vue

@ -28,6 +28,16 @@
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="fmData.remark"
class="resi-cell-input"
size="small"
clearable
placeholder="请输入"
>
</el-input>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
class="diy-button--search" class="diy-button--search"
@ -119,6 +129,8 @@
</el-table-column> </el-table-column>
<el-table-column prop="principalPhone" align="center" label="联系电话"> <el-table-column prop="principalPhone" align="center" label="联系电话">
</el-table-column> </el-table-column>
<el-table-column prop="remark" align="center" label="备注">
</el-table-column>
<el-table-column <el-table-column
prop="organizationCreatedTime" prop="organizationCreatedTime"
align="center" align="center"
@ -241,6 +253,7 @@ export default {
fmData: { fmData: {
organizationName: "", organizationName: "",
remark: "",
startTime: "", startTime: "",
endTime: "", endTime: "",
createTime: ["", ""], createTime: ["", ""],
@ -260,7 +273,7 @@ export default {
? this.clientHeight - 360 + this.iframeHeigh ? this.clientHeight - 360 + this.iframeHeigh
: this.clientHeight - 360; : this.clientHeight - 360;
}, },
...mapGetters(['clientHeight', 'iframeHeight']), ...mapGetters(["clientHeight", "iframeHeight"]),
}, },
watch: { watch: {
"fmData.createTime": function (val) { "fmData.createTime": function (val) {

3
src/views/modules/shequ/cpts/bar-chart.vue

@ -18,6 +18,7 @@ let srcData = [];
const iniChart = function (config, srcData, total, that) { const iniChart = function (config, srcData, total, that) {
chart = new F2.Chart({ chart = new F2.Chart({
id: "myChart", id: "myChart",
pixelRatio: window.devicePixelRatio,
...config, ...config,
}); });
@ -91,7 +92,7 @@ const iniChart = function (config, srcData, total, that) {
attrs: { attrs: {
x: point.x, x: point.x,
y: point.y + offset, y: point.y + offset,
text: obj.count + '人', text: obj.count + "人",
textAlign: "center", textAlign: "center",
textBaseline: "bottom", textBaseline: "bottom",
fill: "#808080", fill: "#808080",

6
src/views/modules/shequ/index.vue

@ -319,7 +319,8 @@
label="所属网格"> label="所属网格">
</el-table-column> </el-table-column>
<el-table-column prop="name" <el-table-column prop="name"
label="姓名"> </el-table-column> label="姓名"
width="80"> </el-table-column>
<el-table-column prop="family" <el-table-column prop="family"
label="所属家庭"> label="所属家庭">
</el-table-column> </el-table-column>
@ -328,7 +329,8 @@
</el-table-column> </el-table-column>
<el-table-column fixed="right" <el-table-column fixed="right"
label="操作" label="操作"
align="center"> align="center"
width="60">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="handleWatchWarning(scope.$index)" <el-button @click="handleWatchWarning(scope.$index)"
type="text" type="text"

28
src/views/modules/visual/cpts/tb.vue

@ -18,9 +18,9 @@
<tbody class="table-body"> <tbody class="table-body">
<tr class="table-body-tr" v-for="(value, index) in list" :key="index"> <tr class="table-body-tr" v-for="(value, index) in list" :key="index">
<td class="td" v-for="(item, indexs) in value" :key="indexs"> <td class="td" v-for="(item, indexs) in value" :key="indexs">
<span v-if="typeof item === 'string' || typeof item === 'number'">{{ <div v-if="typeof item === 'string' || typeof item === 'number'">
item {{ item }}
}}</span> </div>
<div v-if="typeof item === 'object' && item.type == 'index'"> <div v-if="typeof item === 'object' && item.type == 'index'">
<img <img
v-if="highlightTop3 && index == 0" v-if="highlightTop3 && index == 0"
@ -46,6 +46,11 @@
@click="handleClickBtn(index, btn)" @click="handleClickBtn(index, btn)"
>{{ btn }}</a >{{ btn }}</a
> >
<a
v-else-if="typeof item === 'object' && item.type == 'people'"
@click="handleClickPeople(item)"
>{{ item.name }}</a
>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -139,6 +144,11 @@ export default {
handleClickBtn(index, type) { handleClickBtn(index, type) {
this.$emit("operate", index, type); this.$emit("operate", index, type);
}, },
handleClickPeople(item) {
this.$router.push({
path: `/main-shuju/visual-basicinfo-people/${item.uid}`,
});
},
}, },
}; };
</script> </script>
@ -150,6 +160,7 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
border: none; border: none;
table-layout: fixed;
&-header { &-header {
width: 100%; width: 100%;
@ -179,9 +190,18 @@ export default {
min-height: 50px; min-height: 50px;
.td { .td {
box-sizing: border-box;
text-align: center; text-align: center;
border: none; border: none;
padding: 10px 0; padding: 10px 5px;
> div {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
word-wrap: normal;
}
a { a {
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;

4
src/views/modules/visual/heart/index.vue

@ -266,7 +266,7 @@ export default {
this.tb2.list = data.map((item) => { this.tb2.list = data.map((item) => {
return [ return [
{ type: "index" }, { type: "index" },
item.userName, { type: "people", name: item.userName, uid: item.userId },
item.gridName, item.gridName,
item.pointTotal, item.pointTotal,
]; ];
@ -296,7 +296,7 @@ export default {
this.tb3.list = data.map((item) => { this.tb3.list = data.map((item) => {
return [ return [
{ type: "index" }, { type: "index" },
item.userName, { type: "people", name: item.userName, uid: item.userId },
item.gridName, item.gridName,
item.pointTotal, item.pointTotal,
]; ];

31
src/views/modules/visual/warning/components/screen-table/index.vue

@ -236,13 +236,16 @@ export default {
width: 5%; width: 5%;
} }
&:nth-child(2) { &:nth-child(2) {
width: 25%; width: 20%;
} }
&:nth-child(3) { &:nth-child(3) {
width: 25%; width: 20%;
}
&:nth-child(4) {
width: 15%;
} }
&:nth-child(5) { &:nth-child(5) {
width: 25%; width: 40%;
} }
} }
} }
@ -266,22 +269,28 @@ export default {
.td { .td {
text-align: center; text-align: center;
width: 20%; width: 20%;
display: flex;
justify-content: center;
&:nth-child(1) { &:nth-child(1) {
width: 5%; width: 5%;
} }
&:nth-child(2) { &:nth-child(2) {
width: 25%; width: 20%;
} }
&:nth-child(3) { &:nth-child(3) {
width: 25%; width: 20%;
}
&:nth-child(4) {
width: 15%;
} }
&:nth-child(5) { &:nth-child(5) {
width: 25%; width: 40%;
} }
a { a {
cursor: pointer; cursor: pointer;
} }
.more { .more {
margin: 0 10px;
font-size: 18px; font-size: 18px;
font-weight: 400; font-weight: 400;
color: #e4dc00; color: #e4dc00;
@ -292,17 +301,19 @@ export default {
box-sizing: border-box; box-sizing: border-box;
display: block; display: block;
box-sizing: border-box; box-sizing: border-box;
width: 215px; width: 600px;
max-height: 300px;
height: auto; height: auto;
overflow-y: auto;
line-height: 20px; line-height: 20px;
border: 1px solid red; border: 1px solid red;
position: absolute; position: absolute;
right: -100%; right: 0;
top: 150%; bottom: 150%;
background: #06186d; background: #06186d;
border: 1px solid #1a64cc; border: 1px solid #1a64cc;
border-radius: 5px; border-radius: 5px;
font-size: 9px; font-size: 18px;
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
padding: 16px 8px 10px 9px; padding: 16px 8px 10px 9px;

44
src/views/modules/warning/components/screen-table/index.vue

@ -263,13 +263,16 @@ export default {
width: 5%; width: 5%;
} }
&:nth-child(2) { &:nth-child(2) {
width: 25%; width: 20%;
} }
&:nth-child(3) { &:nth-child(3) {
width: 25%; width: 20%;
}
&:nth-child(4) {
width: 15%;
} }
&:nth-child(5) { &:nth-child(5) {
width: 25%; width: 40%;
} }
} }
} }
@ -296,25 +299,28 @@ export default {
height: 50px; height: 50px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-around; justify-content: center;
&:nth-child(1) { &:nth-child(1) {
width: 5%; width: 5%;
border-left: 0;
} }
&:nth-child(2) { &:nth-child(2) {
width: 25%; width: 20%;
} }
&:nth-child(3) { &:nth-child(3) {
width: 25%; width: 20%;
}
&:nth-child(4) {
width: 15%;
} }
&:nth-child(5) { &:nth-child(5) {
width: 25%; width: 40%;
} }
a { a {
cursor: pointer; cursor: pointer;
} }
.more { .more {
margin: 0 10px;
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
color: #e4dc00; color: #e4dc00;
@ -325,37 +331,25 @@ export default {
box-sizing: border-box; box-sizing: border-box;
display: block; display: block;
box-sizing: border-box; box-sizing: border-box;
width: 500px; width: 600px;
max-height: 300px;
height: auto; height: auto;
overflow-y: auto;
line-height: 20px; line-height: 20px;
border: 1px solid red; border: 1px solid red;
position: absolute; position: absolute;
right: -100%; right: 0;
bottom: 150%; bottom: 150%;
background: #fff; background: #fff;
box-shadow: 0 0 10px 0 #2194fe; box-shadow: 0 0 10px 0 #2194fe;
border: 1px solid #42a4fe; border: 1px solid #42a4fe;
border-radius: 5px; border-radius: 5px;
font-size: 9px; font-size: 16px;
font-weight: 400; font-weight: 400;
color: #333; color: #333;
padding: 16px 8px 10px 9px; padding: 16px 8px 10px 9px;
z-index: 1; z-index: 1;
cursor: default; cursor: default;
// &::after{
// position: absolute;
// left: 30%;
// top: -30%;
// display: flex;
// content:'';
// width: 0;
// height: 0;
// border-width: 13px;
// border-style: solid;
// border-color: transparent transparent rgba(26, 100, 204,0.5) transparent;
// // border-color: transparent transparent red transparent;
// transform: translate(-50%,0);
// }
} }
} }
} }

Loading…
Cancel
Save