diff --git a/src/components/e-charts/multiple_circle.vue b/src/components/e-charts/multiple_circle.vue index 59e42d531e14f6492f8a57b667179d3e9e27d645..0ace527666fe65dfdc48fc8f3b753b2a2bcd186a 100644 --- a/src/components/e-charts/multiple_circle.vue +++ b/src/components/e-charts/multiple_circle.vue @@ -11,37 +11,37 @@ export default { type: Array, default: () => { return []; - } + }, }, text: { type: String, - default: "" + default: "", }, show_center_data: { type: Boolean, - default: true + default: true, }, bar_width: { type: Number, - default: 5 + default: 5, }, isFwsp: { type: Boolean, - default: false + default: false, }, isPercent: { type: Boolean, - default: true + default: true, }, color: { type: Array, - default: null - } + default: null, + }, }, components: {}, data() { return { - yylx_asy: uuidv1() + yylx_asy: uuidv1(), }; }, watch: { @@ -50,7 +50,7 @@ export default { this.init_yylx_asy(this.data, this.text); }, deep: true, - } + }, }, computed: {}, created() {}, @@ -71,29 +71,31 @@ export default { white: { color: "#ddd", align: "center", - padding: [3, 0] - } + padding: [3, 0], + }, }; var placeHolderStyle = { normal: { label: { - show: false + show: false, }, labelLine: { - show: false + show: false, }, color: "rgba(0, 0, 0, 0)", borderColor: "rgba(0, 0, 0, 0)", - borderWidth: 0 - } + borderWidth: 0, + }, }; var data = []; var total = 0; - var color = this.color?this.color:["#274fee", "#f5ab4c", "#e15260", "#a9aec0", "#e56600"]; + var color = this.color + ? this.color + : ["#274fee", "#f5ab4c", "#e15260", "#a9aec0", "#e56600"]; var color2 = ["#ef9433", "#515fe7"]; var legendarr = []; var temp2_data = 0; - data_val.forEach(e => { + data_val.forEach((e) => { temp2_data = temp2_data + e.value; }); for (var i = 0; i < data_val.length; i++) { @@ -105,15 +107,15 @@ export default { normal: { borderWidth: this.bar_width, // shadowBlur: 20, - borderColor: this.isFwsp ? color2[i] : color[i] + borderColor: this.isFwsp ? color2[i] : color[i], // shadowColor: color[i], - } - } + }, + }, }, { value: temp2_data / 30, name: "", - itemStyle: placeHolderStyle + itemStyle: placeHolderStyle, } ); legendarr.push(data_val[i].name); @@ -136,7 +138,7 @@ export default { show: true, position: "outside", color: "#58617a", - formatter: params => { + formatter: (params) => { if (this.isPercent) { var percent = 0; percent = @@ -156,12 +158,12 @@ export default { } } }, - rich: rich - } - } + rich: rich, + }, + }, }, - data: data - } + data: data, + }, ]; var options = { title: { @@ -169,19 +171,20 @@ export default { textStyle: { color: "#000", fontSize: 40, - fontWeight: 200 + fontWeight: 200, }, subtext: text, subtextStyle: { - color: "#c9cedd" + color: "#c9cedd", }, itemGap: 0, // 主副标题距离 left: "center", - top: "32%" + top: "32%", }, color: this.isFwsp ? color2 : color, tooltip: { - show: false + trigger: "item", + formatter: "{b}: {c} ({d}%)", }, legend: { bottom: -5, @@ -190,17 +193,17 @@ export default { itemHeight: 10, orient: "horizontal", data: legendarr, - backgroundColor: "#f4f7fc" + backgroundColor: "#f4f7fc", }, toolbox: { - show: false + show: false, }, - series: seriesObj + series: seriesObj, }; return options; - } - } + }, + }, }; diff --git a/src/pages/workbench/fwgl/approval_service_detail.vue b/src/pages/workbench/fwgl/approval_service_detail.vue index 60a66e3b248b29f5eec931ddcd8c40d32a66f228..a0f028599d80c2be4cfafc69de9a74e79f01c325 100644 --- a/src/pages/workbench/fwgl/approval_service_detail.vue +++ b/src/pages/workbench/fwgl/approval_service_detail.vue @@ -111,7 +111,7 @@ export default { rules: { result: [{ required: true, message: "请选择意见", trigger: "change" }], option: [ - { required: true, message: "请输入意见", trigger: "blur" }, + // { required: true, message: "请输入意见", trigger: "blur" }, { min: 0, max: 200, diff --git a/src/pages/workbench/workPlace.vue b/src/pages/workbench/workPlace.vue index 179957181a5b4568accb55a39ea72caddc9afacc..d42fafd43140d38cb40f4acdb25040a215d24f61 100644 --- a/src/pages/workbench/workPlace.vue +++ b/src/pages/workbench/workPlace.vue @@ -1740,7 +1740,8 @@ export default { var options = { color: color, tooltip: { - show: false + trigger: "item", + formatter: "{b}: {c} ({d}%)", }, // legend: { // bottom: -5, diff --git a/src/pages/workbench/yygl/approval_app_detail.vue b/src/pages/workbench/yygl/approval_app_detail.vue index 9176ea555432dfa9bbe93b3a88c5de88792632e6..5b3a4e3a6307260b046cfc1179fda2ad3c76d2e6 100644 --- a/src/pages/workbench/yygl/approval_app_detail.vue +++ b/src/pages/workbench/yygl/approval_app_detail.vue @@ -78,7 +78,7 @@ export default { { required: true, message: '请选择意见', trigger: 'change' }, ], option:[ - { required: true, message: '请输入意见', trigger: 'blur' }, + // { required: true, message: '请输入意见', trigger: 'blur' }, { min: 0,max:200, message: '长度应小于200个字符', trigger: 'blur' }