From e49e5481e62288c7158ca17ed902695e6c0fbf58 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期六, 26 八月 2023 16:10:58 +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 b913beb..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