Commit 56ccb7d9 authored by dragondean@qq.com's avatar dragondean@qq.com

拆单标签错误

parent 6a79db31
......@@ -108,7 +108,8 @@ export default {
loadData(){
printTag(this.orderId).then(res => {
this.$set(this, 'tags', res.data)
this.form.end = res.data.length
this.form.start = res.data[0].num
this.form.end = res.data[res.data.length-1].num
})
},
closeDialog(){
......@@ -117,7 +118,7 @@ export default {
this.$emit('close');
},
showPreview(){
if(this.form.end > this.tags.length){
if(this.form.end > this.tags[this.tags.length-1].num){
return this.$message.error(this.$t('结束标签不对'))
}
this.$refs["form"].validate(valid => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment