😎代码优化

This commit is contained in:
zuohuaijun 2024-08-15 14:49:31 +08:00
parent e614e11b76
commit aa800074b8
5 changed files with 7 additions and 7 deletions

View File

@ -17,13 +17,13 @@ public partial class SysWechatPay : EntityBase
/// <summary>
/// 关联的商户订单号
/// </summary>
[SugarColumn(ColumnDescription = "OrderId")]
[SugarColumn(ColumnDescription = "关联商户订单号")]
public virtual string OrderId { get; set; }
/// <summary>
/// 关联的商户订单状态(或者为第几次支付,有些订单涉及多次支付,比如先付预付款,后补尾款)
/// </summary>
[SugarColumn(ColumnDescription = "OrderStatus")]
[SugarColumn(ColumnDescription = "关联商户订单状态")]
public virtual string OrderStatus { get; set; }
/// <summary>

View File

@ -299,7 +299,7 @@ public class SysFileService : IDynamicApiController, ITransient
if (file == null) throw Oops.Oh(ErrorCodeEnum.D8000);
// 判断是否重复上传的文件
var sizeKb = (long)(file.Length / 1024.0); // 大小KB
var sizeKb = file.Length / 1024; // 大小KB
var fileMd5 = string.Empty;
if (_uploadOptions.EnableMd5)
{

View File

@ -29,7 +29,7 @@
<template #footer>
<span class="dialog-footer">
<el-button @click="cancel"> </el-button>
<el-button type="primary" v-loading="state.loading" @click="submit"> </el-button>
<el-button type="primary" :loading="state.loading" @click="submit"> </el-button>
</span>
</template>
</el-dialog>

View File

@ -20,7 +20,7 @@
<span class="dialog-footer">
<a href="https://www.stats.gov.cn/sj/tjbz/tjyqhdmhcxhfdm/2023/index.html" target="_blank" style="float: left">查看区划代码国家统计局</a>
<el-button @click="cancel"> </el-button>
<el-button type="primary" v-loading="state.loading" @click="submit"> </el-button>
<el-button type="primary" :loading="state.loading" @click="submit"> </el-button>
</span>
</template>
</el-dialog>

View File

@ -29,7 +29,7 @@
<span class="dialog-footer">
<a href="https://www.stats.gov.cn/sj/tjbz/tjyqhdmhcxhfdm/2023/index.html" target="_blank" style="float: left">查看区划名称国家统计局</a>
<el-button @click="cancel"> </el-button>
<el-button type="primary" v-loading="state.loading" @click="submit"> </el-button>
<el-button type="primary" :loading="state.loading" @click="submit"> </el-button>
</span>
</template>
</el-dialog>
@ -76,7 +76,7 @@ const submit = () => {
ruleFormRef.value.validate(async (valid: boolean) => {
if (!valid) return;
if (!state.ruleForm.city || !state.ruleForm.province) {
if (state.ruleForm.city && !state.ruleForm.province) {
ElMessage.error('不能单独指定市级!');
return;
}