diff --git a/src/views/flowable/task/todo/detail/index.vue b/src/views/flowable/task/todo/detail/index.vue index b08b56f..6c9d184 100644 --- a/src/views/flowable/task/todo/detail/index.vue +++ b/src/views/flowable/task/todo/detail/index.vue @@ -1178,7 +1178,8 @@ export default { // 退伍复学申请表单数据 getBasicApplication(startUser) { - let newName = this.startUser.replace(/-/g, ""); + // let newName = this.startUser.replace(/-/g, ""); + let newName = this.startUser.split('-')[0].trim(); getStname(newName).then((res) => { // console.log("后端返回原始数据:",res.data); this.form = res.data @@ -1366,7 +1367,7 @@ export default { } else if (this.category == "退伍复学") { // updateBasic({stuId:this.form.stuId,fdStatus:"1",fdIdea:this.taskForm.comment}).then(response => {}) var stNameData = '' - let newName = this.startUser.replace(/-/g, ""); + let newName = this.startUser.split('-')[0].trim(); // 异步请求的回调内处理后续逻辑 getStname(newName).then(response => { stNameData = response.data; @@ -1553,7 +1554,8 @@ export default { else if (this.category == "退伍复学") { // updateBasic({stuId:this.form.stuId,fdStatus:"1",fdIdea:this.taskForm.comment}).then(response => {}) var stNameData = '' - let newName = this.startUser.replace(/-/g, ""); + // let newName = this.startUser.replace(/-/g, ""); + let newName = this.startUser.split('-')[0].trim(); // 异步请求的回调内处理后续逻辑 getStname(newName).then(response => { stNameData = response.data; @@ -1712,7 +1714,8 @@ export default { console.log("数据",this.returnTaskList) // updateBasic({stuId:this.form.stuId,fdStatus:"1",fdIdea:this.taskForm.comment}).then(response => {}) var stNameData = '' - let newName = this.startUser.replace(/-/g, ""); + // let newName = this.startUser.replace(/-/g, ""); + let newName = this.startUser.split('-')[0].trim(); // 异步请求的回调内处理后续逻辑 getStname(newName).then(response => { stNameData = response.data; @@ -1829,7 +1832,8 @@ export default { else if (this.category == "退伍复学") { // updateBasic({stuId:this.form.stuId,fdStatus:"1",fdIdea:this.taskForm.comment}).then(response => {}) var stNameData = '' - let newName = this.startUser.replace(/-/g, ""); + // let newName = this.startUser.replace(/-/g, ""); + let newName = this.startUser.split('-')[0].trim(); // 异步请求的回调内处理后续逻辑 getStname(newName).then(response => { stNameData = response.data;