测试问题修改
This commit is contained in:
parent
e6d4ca1eb0
commit
e8fdea8b78
|
|
@ -129,7 +129,7 @@ service.interceptors.response.use(res => {
|
||||||
return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
|
return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
|
||||||
} else if (code === 500) {
|
} else if (code === 500) {
|
||||||
Message({ message: msg, type: 'error' })
|
Message({ message: msg, type: 'error' })
|
||||||
return Promise.reject(new Error(msg))
|
return Promise.reject(msg)
|
||||||
} else if (code === 601) {
|
} else if (code === 601) {
|
||||||
Message({ message: msg, type: 'warning' })
|
Message({ message: msg, type: 'warning' })
|
||||||
return Promise.reject('error')
|
return Promise.reject('error')
|
||||||
|
|
|
||||||
|
|
@ -436,7 +436,7 @@
|
||||||
...this.form
|
...this.form
|
||||||
}
|
}
|
||||||
if(param.contactTel&¶m.contactTel!=""){
|
if(param.contactTel&¶m.contactTel!=""){
|
||||||
param.contactTel = encryptWithSM4(this.baseForm.contactTel)
|
param.contactTel = encryptWithSM4(this.form.contactTel)
|
||||||
}
|
}
|
||||||
if (param.areaId != undefined) {
|
if (param.areaId != undefined) {
|
||||||
updateAreaApi(param).then((response) => {
|
updateAreaApi(param).then((response) => {
|
||||||
|
|
|
||||||
|
|
@ -666,7 +666,6 @@
|
||||||
this.$modal.msgError(res.msg);
|
this.$modal.msgError(res.msg);
|
||||||
}
|
}
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
|
|
||||||
this.$modal.msgError(error)
|
this.$modal.msgError(error)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { deptTreeSelect } from '@/api/system/user'
|
import { deptTreeSelect } from '@/api/system/user'
|
||||||
import { accInfoPageApi, accInfoSumPageApi} from "@/api/accountCenter/manager";
|
import { accInfoPageApi, accInfoSumPageApi} from "@/api/accountCenter/manager";
|
||||||
|
import { decryptWithSM4,encryptWithSM4 } from '@/utils/sm';
|
||||||
export default {//账户汇总
|
export default {//账户汇总
|
||||||
name: "",
|
name: "",
|
||||||
dicts: ['sys_user_type'],
|
dicts: ['sys_user_type'],
|
||||||
|
|
@ -188,6 +188,11 @@
|
||||||
accInfoPageApi(param).then(response => {
|
accInfoPageApi(param).then(response => {
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
|
this.tableListData.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
|
})
|
||||||
accInfoSumPageApi(param).then(response => {
|
accInfoSumPageApi(param).then(response => {
|
||||||
this.tableListData.push(response.data)
|
this.tableListData.push(response.data)
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -151,6 +151,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { deptTreeSelect } from '@/api/system/user'
|
import { deptTreeSelect } from '@/api/system/user'
|
||||||
import { reportUserIncomeListApi } from "@/api/reportCenter/index";
|
import { reportUserIncomeListApi } from "@/api/reportCenter/index";
|
||||||
|
import { decryptWithSM4,encryptWithSM4 } from '@/utils/sm';
|
||||||
export default {//交易流水
|
export default {//交易流水
|
||||||
name: "",
|
name: "",
|
||||||
dicts: ['sys_user_type'],
|
dicts: ['sys_user_type'],
|
||||||
|
|
@ -272,6 +273,11 @@ export default {//交易流水
|
||||||
reportUserIncomeListApi(param).then(response => {
|
reportUserIncomeListApi(param).then(response => {
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
|
this.tableListData.forEach(item=>{
|
||||||
|
if(item.phonenumber&&item.phonenumber!=""){
|
||||||
|
this.$set(item,"phonenumber",decryptWithSM4(item.phonenumber))
|
||||||
|
}
|
||||||
|
})
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,7 @@
|
||||||
import { deptTreeSelect } from '@/api/system/user'
|
import { deptTreeSelect } from '@/api/system/user'
|
||||||
import { repealSubsidyRechargeApi,batchRepealSubsidyRechargeApi,accSubsidyRepealPageApi,accSubsidyHandReceivePageApi,accSubsidyHandReceiveBatchGrantApi,batchAccSubsidyRepealApi } from "@/api/accountCenter/butie";
|
import { repealSubsidyRechargeApi,batchRepealSubsidyRechargeApi,accSubsidyRepealPageApi,accSubsidyHandReceivePageApi,accSubsidyHandReceiveBatchGrantApi,batchAccSubsidyRepealApi } from "@/api/accountCenter/butie";
|
||||||
import { accInfoWalletHistoryApi } from "@/api/accountCenter/traderecords";
|
import { accInfoWalletHistoryApi } from "@/api/accountCenter/traderecords";
|
||||||
|
import { decryptWithSM4,encryptWithSM4 } from '@/utils/sm';
|
||||||
export default {
|
export default {
|
||||||
name: "",
|
name: "",
|
||||||
dicts: ['sys_user_type'],
|
dicts: ['sys_user_type'],
|
||||||
|
|
@ -226,6 +227,11 @@
|
||||||
accInfoWalletHistoryApi(param).then(response => {
|
accInfoWalletHistoryApi(param).then(response => {
|
||||||
this.tableListData1 = response.rows;
|
this.tableListData1 = response.rows;
|
||||||
this.total1 = Number(response.total);
|
this.total1 = Number(response.total);
|
||||||
|
this.tableListData1.forEach(item=>{
|
||||||
|
if(item.phoneNumber&&item.phoneNumber!=""){
|
||||||
|
this.$set(item,"phoneNumber",decryptWithSM4(item.phoneNumber))
|
||||||
|
}
|
||||||
|
})
|
||||||
// if(this.tableListData1.length>0){
|
// if(this.tableListData1.length>0){
|
||||||
// this.tableListData1.push(response.data.sumVO)
|
// this.tableListData1.push(response.data.sumVO)
|
||||||
// }
|
// }
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { deptTreeSelect } from '@/api/system/user'
|
import { deptTreeSelect } from '@/api/system/user'
|
||||||
import { reportTradFlowListApi,getHealthInfoPageApi } from "@/api/reportCenter/index";
|
import { reportTradFlowListApi,getHealthInfoPageApi } from "@/api/reportCenter/index";
|
||||||
|
import { decryptWithSM4,encryptWithSM4 } from '@/utils/sm';
|
||||||
export default {//交易流水
|
export default {//交易流水
|
||||||
name: "",
|
name: "",
|
||||||
dicts: ['sys_user_type'],
|
dicts: ['sys_user_type'],
|
||||||
|
|
@ -231,7 +232,11 @@
|
||||||
console.log("param",param);
|
console.log("param",param);
|
||||||
reportTradFlowListApi(param).then(response => {
|
reportTradFlowListApi(param).then(response => {
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
console.log("this.tableListData",this.tableListData);
|
this.tableListData.forEach(item=>{
|
||||||
|
if(item.phonenumber&&item.phonenumber!=""){
|
||||||
|
this.$set(item,"phonenumber",decryptWithSM4(item.phonenumber))
|
||||||
|
}
|
||||||
|
})
|
||||||
this.total = Number(response.total);
|
this.total = Number(response.total);
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -121,6 +121,7 @@ export default {
|
||||||
"pageNum": this.queryParams.pageNum,
|
"pageNum": this.queryParams.pageNum,
|
||||||
"pageSize": this.queryParams.pageSize,
|
"pageSize": this.queryParams.pageSize,
|
||||||
"deviceType": null,
|
"deviceType": null,
|
||||||
|
"onlyWarn":1
|
||||||
}
|
}
|
||||||
if(this.activeName==1){
|
if(this.activeName==1){
|
||||||
param.deviceType = null;
|
param.deviceType = null;
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ export default {
|
||||||
"envSensorResultTypeList": this.queryParams.envSensorResultTypeList,
|
"envSensorResultTypeList": this.queryParams.envSensorResultTypeList,
|
||||||
"deviceCategory": 5,
|
"deviceCategory": 5,
|
||||||
"pageNum": this.queryParams.pageNum,
|
"pageNum": this.queryParams.pageNum,
|
||||||
"pageSize": this.queryParams.pageSize,
|
"pageSize": this.queryParams.pageSize,
|
||||||
}
|
}
|
||||||
getKitchenDeviceSensorRecordListApi(param).then(response => {
|
getKitchenDeviceSensorRecordListApi(param).then(response => {
|
||||||
this.tableListData = response.rows;
|
this.tableListData = response.rows;
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@
|
||||||
<el-form-item label="重量(Kg):" prop="weight">
|
<el-form-item label="重量(Kg):" prop="weight">
|
||||||
<el-input v-model="form.weight"
|
<el-input v-model="form.weight"
|
||||||
placeholder="请输入重量"
|
placeholder="请输入重量"
|
||||||
maxlength="10" @input="(v)=>(form.weight=v.replace(/[^\d]/g,''))"
|
maxlength="4" @input="(v)=>(form.weight=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -195,7 +195,7 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="售卖金额(元):" prop="saleAmount" v-if="form.dealType==3">
|
<el-form-item label="售卖金额(元):" prop="saleAmount" v-if="form.dealType==3">
|
||||||
<el-input v-model="form.saleAmount" placeholder="请输入售卖金额" maxlength="10"
|
<el-input v-model="form.saleAmount" placeholder="请输入售卖金额" maxlength="6"
|
||||||
@input="(v)=>(form.saleAmount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
|
@input="(v)=>(form.saleAmount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -479,21 +479,20 @@ export default {
|
||||||
editKitchenWasteDealApi(this.form).then(response => {
|
editKitchenWasteDealApi(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
setTimeout(()=>{
|
|
||||||
this.loadingBtn = false;
|
|
||||||
},1000)
|
|
||||||
});
|
});
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.loadingBtn = false;
|
||||||
|
},1000)
|
||||||
} else {
|
} else {
|
||||||
addKitchenWasteDealApi(this.form).then(response => {
|
addKitchenWasteDealApi(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
this.loadingBtn = false;
|
|
||||||
setTimeout(()=>{
|
|
||||||
this.loadingBtn = false;
|
|
||||||
},1000)
|
|
||||||
});
|
});
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.loadingBtn = false;
|
||||||
|
},1000)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue