|
@@ -51,7 +51,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
- <el-form-item label="至">
|
|
|
|
|
|
+ <el-form-item style="text-align: center;" label="至">
|
|
<el-date-picker style="width: 94%;" v-model="formData.endTime" type="date" placeholder="出院结束日期"
|
|
<el-date-picker style="width: 94%;" v-model="formData.endTime" type="date" placeholder="出院结束日期"
|
|
:picker-options="pickerOptions2" value-format="yyyyMMdd" format="yyyy年MM月dd日" @onClick="onClickEndTime">
|
|
:picker-options="pickerOptions2" value-format="yyyyMMdd" format="yyyy年MM月dd日" @onClick="onClickEndTime">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
@@ -890,6 +890,11 @@ export default {
|
|
|
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.summaryData = res.data;
|
|
this.summaryData = res.data;
|
|
|
|
+ let dataList = [{ score_lv: "丙", num: 0 }, { score_lv: "乙", num: 0 }, { score_lv: "甲", num: 0 }]
|
|
|
|
+ dataList.forEach(item => {
|
|
|
|
+ let num = res.data.case_calibre.find(item2 => item2.score_lv == item.score_lv)
|
|
|
|
+ item.num = num ? num.num : 0
|
|
|
|
+ })
|
|
const colors = ['#2e8241ff', '#ed8b1aff', '#f02b3fff']
|
|
const colors = ['#2e8241ff', '#ed8b1aff', '#f02b3fff']
|
|
const option = {
|
|
const option = {
|
|
xAxis: {},
|
|
xAxis: {},
|
|
@@ -897,11 +902,11 @@ export default {
|
|
top: "0px",
|
|
top: "0px",
|
|
bottom: "0px"
|
|
bottom: "0px"
|
|
},
|
|
},
|
|
- yAxis: { data: this.summaryData.case_calibre.map(item => item.score_lv) },
|
|
|
|
|
|
+ yAxis: { data: ["丙", "乙", "甲"] },
|
|
series: [
|
|
series: [
|
|
{
|
|
{
|
|
type: 'bar',
|
|
type: 'bar',
|
|
- data: this.summaryData.case_calibre.map(item => item.num),
|
|
|
|
|
|
+ data: dataList.map(item => item.num),
|
|
itemStyle: {
|
|
itemStyle: {
|
|
color: function (params) {
|
|
color: function (params) {
|
|
//通过返回值的下标一一对应将颜色赋给柱子上
|
|
//通过返回值的下标一一对应将颜色赋给柱子上
|
|
@@ -1427,27 +1432,10 @@ export default {
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
overflow-x: hidden;
|
|
overflow-x: hidden;
|
|
|
|
|
|
- .el-form-item__label {
|
|
|
|
- position: relative;
|
|
|
|
- /* 设置相对定位作为星号的定位基准 */
|
|
|
|
- text-align: justify;
|
|
|
|
- text-align-last: justify;
|
|
|
|
- /* 确保最后一行也两端对齐 */
|
|
|
|
- padding-left: 10px;
|
|
|
|
- /* 为星号预留空间 */
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .el-form-item__label:before {
|
|
|
|
- content: '*';
|
|
|
|
- color: red;
|
|
|
|
- position: absolute;
|
|
|
|
- left: 0;
|
|
|
|
- /* 星号定位到标签最左侧 */
|
|
|
|
- top: 0;
|
|
|
|
- /* 调整垂直位置以适应行高 */
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ .el-form-item__label {
|
|
|
|
+ text-align: center;
|
|
}
|
|
}
|
|
|
|
|
|
.mb20 {
|
|
.mb20 {
|