From 4074ed7aa3b5f45a6cf3148ba0fb140d6b220ea5 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期六, 26 八月 2023 16:27:15 +0800 Subject: [PATCH] 修改 --- src/components/AddControl.vue | 22 ++++------------------ 1 files changed, 4 insertions(+), 18 deletions(-) diff --git a/src/components/AddControl.vue b/src/components/AddControl.vue index d1e4498..c3a3672 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) { -- Gitblit v1.8.0