编辑工单接口新增ticketNo
This commit is contained in:
@ -159,7 +159,7 @@ export default {
|
|||||||
this.$refs.addTempForm.validate(valid => {
|
this.$refs.addTempForm.validate(valid => {
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
this.loading+=1
|
this.loading+=1
|
||||||
const {title='',content='',status='',userId='',workUserId='',id='',expectedCompleteTime=''} = this.formData;
|
const {title='',content='',status='',userId='',workUserId='',id='',expectedCompleteTime='',ticketNo=''} = this.formData;
|
||||||
if(this.mode === 'add'){
|
if(this.mode === 'add'){
|
||||||
addTicket({title,content,status,userId,workUserId,expectedCompleteTime}).then(response => {
|
addTicket({title,content,status,userId,workUserId,expectedCompleteTime}).then(response => {
|
||||||
if(response.code === 200){
|
if(response.code === 200){
|
||||||
@ -172,7 +172,7 @@ export default {
|
|||||||
this.loading-=1
|
this.loading-=1
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
updateTicket({title,content,status,userId,workUserId,id,expectedCompleteTime}).then(response => {
|
updateTicket({title,content,status,userId,workUserId,id,expectedCompleteTime,ticketNo}).then(response => {
|
||||||
if(response.code === 200){
|
if(response.code === 200){
|
||||||
//新增成功
|
//新增成功
|
||||||
// 关闭弹窗 更新表格
|
// 关闭弹窗 更新表格
|
||||||
|
|||||||
Reference in New Issue
Block a user