Commit 2de6629e authored by 黄奎's avatar 黄奎

代码优化

parent db4b667b
......@@ -120,7 +120,6 @@
methods: {
Edit(item){
console.log(item)
this.pwdMsg=Object.assign({},item);
},
ResetPwdForm(){
......@@ -136,7 +135,6 @@
this.$refs[formName].validate((valid) => {
if (valid) {
this.apiJavaPost("/api/user/employee/setTripCustom",this.pwdMsg, res => {
console.log(res);
if (res.data.resultCode === 1) {
this.Success(res.data.message)
this.Visible=false;
......@@ -174,7 +172,6 @@
this.loading=true,
this.apiJavaPost("/api/user/employee/getTripCustomList",this.msg, res => {
this.loading = false;
console.log(res);
if (res.data.resultCode === 1) {
this.DataList = res.data.data.pageData;
this.total= res.data.data.count;
......@@ -186,7 +183,6 @@
},
getEmployee(){
this.apiJavaPost("/api/user/employee/getAllSalesList",{}, res => {
console.log(res);
if (res.data.resultCode === 1) {
this.employee=res.data.data;
} else {
......
......@@ -86,7 +86,6 @@ export default {
this.getList(TCID, OrderID);
},methods: {
openPage: function (obj){
console.log(obj)
let dom = document.querySelector("#blankLink");
dom.href = "http://activity.oytour.com/html/invesDetails2.html" + '?ID=' + obj.ID + '&name=' + encodeURI(obj.GuestName) + '&MobilePhone=' + obj.CustomerPhone
dom.click();
......
......@@ -390,7 +390,6 @@
this.templateType=templateType;
this.apipost('WorkFlow_get_GetDepartMentEmployee', {}, res => {
if(res.data.resultCode == 1) {
//console.log(res.data.data)
this.memberList = res.data.data
}
}, err => {})
......@@ -419,7 +418,6 @@
this.transferMsg.CareOfEmId=this.arr[this.arr.length-1]
}
}
console.log(this.transferMsg.CareOfEmId)
},
transferApproval(){
......@@ -508,16 +506,6 @@
this.IsAudit=res.data.data.IsAudit
this.IsCancel=res.data.data.IsCancel
this.IsUpdate=res.data.data.IsUpdate
// console.log(this.detailList.arList)
// let newArr=this.detailList.arList;
// this.detailList.arList.forEach((item,index)=>{
// if(item.AuditRecordList.length!=0){
// console.log(item.AuditRecordList)
// newArr.splice(index,0,{'BeFrom':item.AuditRecordList[0].CareOfList[0].BeFrom,'Target':item.AuditRecordList[0].CareOfList[0].Target,
// 'Remarks':item.AuditRecordList[0].CareOfList[0].Remarks})
// }
// })
console.log(res.data.data.Details)
}
},err=>{})
},
......@@ -525,7 +513,6 @@
this.loading=true;
this.apipost('app_user_workflow_my_initiateaudit',this.msg,res=>{
if(res.data.resultCode == 1) {
//console.log(res.data.data)
this.list=res.data.data.pageData;
this.total=res.data.data.count;
this.loading=false
......@@ -535,7 +522,6 @@
getApplyType(){ //模板类型
this.apipost('app_user_workflow_get_templatetype',{},res=>{
if(res.data.resultCode == 1) {
//console.log(res.data.data)
res.data.data.forEach(item=>{
for(let key in item){
if (item.hasOwnProperty(key)){
......@@ -549,7 +535,6 @@
getAppAuditStatus(){
this.apipost('app_user_workflow_get_myinitiate_auditstatus',{},res=>{
if(res.data.resultCode == 1) {
//console.log(res.data.data)
res.data.data.forEach(item=>{
for(let key in item){
if (item.hasOwnProperty(key)){
......
......@@ -184,7 +184,6 @@
this.$nextTick(() => {
this.dataList = res.data.data.pageData;
});
console.log("res",res);
this.datesArr = res.data.data.columnData;
this.newArr.length = 0;
for(let i = 0; i < this.datesArr.length; i++) {
......@@ -193,7 +192,6 @@
"title": this.datesArr[i].substring(this.datesArr[i].length - 2, this.datesArr[i].length) + '(' + this.getWeekByDay(this.datesArr[i]) + ')'
})
}
console.log("this.newArr",this.newArr)
this.total = res.data.data.count;
}
......@@ -203,7 +201,6 @@
this.apipost('admin_get_BranchGetList', this.companyMsg, res => {
if(res.data.resultCode == 1) {
this.companyList = res.data.data;
//console.log(this.companyList)
}
}, err => {})
},
......@@ -219,7 +216,6 @@
this.apipost('admin_get_DepartmentGetList', this.departmentMsg, res => {
if(res.data.resultCode == 1) {
this.departmentList = res.data.data;
// console.log(this.departmentList)
}
}, err => {})
},
......@@ -232,7 +228,6 @@
this.apipost('app_get_company_employee', this.employeeMsg, res => {
if(res.data.resultCode == 1) {
this.employeeList = res.data.data;
//console.log(this.employeeList)
}
}, err => {})
},
......
......@@ -58,7 +58,6 @@
OrderSource: 8
}, res => {
if(res.data.resultCode == 1) {
console.log(res.data.data)
if(Object.keys(res.data.data).length == 0) {
if(Type == 2) {
this.getCodeUrl(obj)
......
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