From 14101bd42ce17dfb9d951d0738abe9d303fb3fe5 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期一, 11 十二月 2023 10:41:39 +0800 Subject: [PATCH] 机器开机率、人员技能比饼图优化 --- src/components/AddControl.vue | 23 +++++------------------ 1 files changed, 5 insertions(+), 18 deletions(-) diff --git a/src/components/AddControl.vue b/src/components/AddControl.vue index b913beb..27a2799 100644 --- a/src/components/AddControl.vue +++ b/src/components/AddControl.vue @@ -54,17 +54,16 @@ export default { components: {}, props: { - id:{ - type: [Number,String], + Arr:{ + type: [Array], default: () => { - return ''; + return []; }, } }, data() { return { islook: false, - Arr:[] }; }, mounted() { @@ -73,24 +72,11 @@ watch: { islook(val) { if (val) { - this.getStartInfo() - } }, }, methods: { - getStartInfo(){ - if(this.id){ - startTask({id:this.id}).then(res=>{ - if(res.code==200){ - this.Arr=res.data.Params; - } - }) - }else{ - this.$message.error("褰撳墠璁惧娌℃湁宸ュ簭锛�"); - } - - }, + validatorNum(rule, value, callback) { if (value) { if (value == undefined || value == null) { @@ -119,6 +105,7 @@ }) }else{ this.$message.error("褰撳墠璁惧娌℃湁宸ュ簭锛�"); + } }, shutdown() { -- Gitblit v1.8.0