| | |
| | | export default { |
| | | components: {}, |
| | | props: { |
| | | id:{ |
| | | type: [Number,String], |
| | | Arr:{ |
| | | type: [Array], |
| | | default: () => { |
| | | return ''; |
| | | return []; |
| | | }, |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | islook: false, |
| | | Arr:[] |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | 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) { |