测试问题修改

This commit is contained in:
zzyuan 2025-07-10 09:38:33 +08:00
parent e6d4ca1eb0
commit e8fdea8b78
10 changed files with 38 additions and 17 deletions

View File

@ -129,7 +129,7 @@ service.interceptors.response.use(res => {
return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
} else if (code === 500) {
Message({ message: msg, type: 'error' })
return Promise.reject(new Error(msg))
return Promise.reject(msg)
} else if (code === 601) {
Message({ message: msg, type: 'warning' })
return Promise.reject('error')

View File

@ -436,7 +436,7 @@
...this.form
}
if(param.contactTel&&param.contactTel!=""){
param.contactTel = encryptWithSM4(this.baseForm.contactTel)
param.contactTel = encryptWithSM4(this.form.contactTel)
}
if (param.areaId != undefined) {
updateAreaApi(param).then((response) => {

View File

@ -666,7 +666,6 @@
this.$modal.msgError(res.msg);
}
}).catch((error) => {
this.$modal.msgError(error)
})
},

View File

@ -107,7 +107,7 @@
<script>
import { deptTreeSelect } from '@/api/system/user'
import { accInfoPageApi, accInfoSumPageApi} from "@/api/accountCenter/manager";
import { decryptWithSM4,encryptWithSM4 } from '@/utils/sm';
export default {//
name: "",
dicts: ['sys_user_type'],
@ -188,6 +188,11 @@
accInfoPageApi(param).then(response => {
this.tableListData = response.rows;
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 => {
this.tableListData.push(response.data)
});

View File

@ -151,6 +151,7 @@
<script>
import { deptTreeSelect } from '@/api/system/user'
import { reportUserIncomeListApi } from "@/api/reportCenter/index";
import { decryptWithSM4,encryptWithSM4 } from '@/utils/sm';
export default {//
name: "",
dicts: ['sys_user_type'],
@ -272,6 +273,11 @@ export default {//交易流水
reportUserIncomeListApi(param).then(response => {
this.tableListData = response.rows;
this.total = Number(response.total);
this.tableListData.forEach(item=>{
if(item.phonenumber&&item.phonenumber!=""){
this.$set(item,"phonenumber",decryptWithSM4(item.phonenumber))
}
})
this.loading = false;
});
},

View File

@ -105,6 +105,7 @@
import { deptTreeSelect } from '@/api/system/user'
import { repealSubsidyRechargeApi,batchRepealSubsidyRechargeApi,accSubsidyRepealPageApi,accSubsidyHandReceivePageApi,accSubsidyHandReceiveBatchGrantApi,batchAccSubsidyRepealApi } from "@/api/accountCenter/butie";
import { accInfoWalletHistoryApi } from "@/api/accountCenter/traderecords";
import { decryptWithSM4,encryptWithSM4 } from '@/utils/sm';
export default {
name: "",
dicts: ['sys_user_type'],
@ -226,6 +227,11 @@
accInfoWalletHistoryApi(param).then(response => {
this.tableListData1 = response.rows;
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){
// this.tableListData1.push(response.data.sumVO)
// }

View File

@ -110,6 +110,7 @@
<script>
import { deptTreeSelect } from '@/api/system/user'
import { reportTradFlowListApi,getHealthInfoPageApi } from "@/api/reportCenter/index";
import { decryptWithSM4,encryptWithSM4 } from '@/utils/sm';
export default {//
name: "",
dicts: ['sys_user_type'],
@ -231,7 +232,11 @@
console.log("param",param);
reportTradFlowListApi(param).then(response => {
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.loading = false;
});

View File

@ -121,6 +121,7 @@ export default {
"pageNum": this.queryParams.pageNum,
"pageSize": this.queryParams.pageSize,
"deviceType": null,
"onlyWarn":1
}
if(this.activeName==1){
param.deviceType = null;

View File

@ -116,7 +116,7 @@ export default {
"envSensorResultTypeList": this.queryParams.envSensorResultTypeList,
"deviceCategory": 5,
"pageNum": this.queryParams.pageNum,
"pageSize": this.queryParams.pageSize,
"pageSize": this.queryParams.pageSize,
}
getKitchenDeviceSensorRecordListApi(param).then(response => {
this.tableListData = response.rows;

View File

@ -180,7 +180,7 @@
<el-form-item label="重量(Kg):" prop="weight">
<el-input v-model="form.weight"
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-col>
@ -195,7 +195,7 @@
</el-col>
<el-col :span="12">
<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'))"/>
</el-form-item>
</el-col>
@ -479,21 +479,20 @@ export default {
editKitchenWasteDealApi(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
setTimeout(()=>{
this.loadingBtn = false;
},1000)
this.getList();
});
setTimeout(()=>{
this.loadingBtn = false;
},1000)
} else {
addKitchenWasteDealApi(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
this.loadingBtn = false;
setTimeout(()=>{
this.loadingBtn = false;
},1000)
this.getList();
});
setTimeout(()=>{
this.loadingBtn = false;
},1000)
}
}
});