优化上线问题,安全设置等

This commit is contained in:
duan
2024-08-30 16:28:05 +08:00
parent ae6dcc295a
commit aee738ca00
4 changed files with 67 additions and 56 deletions

View File

@@ -39,21 +39,13 @@
v-if="timeValue == 'custom'">
</el-date-picker>
</el-form-item>
<el-form-item label="订单号">
<el-input
v-model="query.orderNo"
placeholder="请输入订单号"
style="width: 300px;"
></el-input>
<el-input v-model="query.orderNo" placeholder="请输入订单号" style="width: 300px;"></el-input>
</el-form-item>
<el-form-item label="商品名称">
<el-input
v-model="query.productName"
placeholder="请输入商品名称"
style="width: 300px;"
></el-input>
<el-input v-model="query.productName" placeholder="请输入商品名称" style="width: 300px;"></el-input>
<el-button type="primary" @click="getTableData">查询</el-button>
<el-button @click="resetHandle">重置</el-button>
<el-button icon="el-icon-download" v-loading="downloadLoading" @click="downloadHandle">
@@ -61,7 +53,7 @@
<span v-else>下载中...</span>
</el-button>
</el-form-item>
</el-form>
</div>
@@ -108,8 +100,8 @@
<el-image :src="item.productImg" class="cover" lazy></el-image>
<div class="info">
<div class="name">
<span :class="[item.isVip==1?'colorStyle':'']">
{{ item.productName }}
<span :class="[item.isVip == 1 ? 'colorStyle' : '']">
{{ item.productName }}
</span>
<span class="refund" v-if="item.refundNumber">(退 - {{ item.refundNumber }})</span>
</div>
@@ -194,7 +186,7 @@ export default {
payType: "",
orderNo: "",
createdAt: [],
productName:''
productName: ''
},
tableData: {
data: [],
@@ -239,7 +231,7 @@ export default {
if (this.$route.query.tableName) {
this.query.tableName = this.$route.query.tableName
}
if(this.$route.query.orderNo){
if (this.$route.query.orderNo) {
this.query.orderNo = this.$route.query.orderNo
}
this.resetQuery = { ...this.query };
@@ -290,7 +282,7 @@ export default {
this.timeValue = "";
this.query = { ...this.resetQuery };
this.page = 0;
this.getTableData();
this.getTableData(true);
},
// 分页大小改变
sizeChange(e) {
@@ -303,18 +295,18 @@ export default {
this.getTableData();
},
// 获取商品列表
async getTableData() {
async getTableData(switchs = false) {
this.tableData.loading = true;
try {
this.payCount();
const productName=this.query.productName.replace(/\s+/g,'')
const productName = this.query.productName.replace(/\s+/g, '')
const res = await tbOrderInfoData({
page: this.tableData.page,
pageSize: this.tableData.size,
orderType: this.orderType,
...this.query,
productName,
userId:this.$route.query.userId
userId: switchs == true ? '' : this.$route.query.userId
});
this.tableData.loading = false;
this.tableData.data = res.content;
@@ -521,7 +513,8 @@ export default {
}
}
}
.colorStyle{
color: #ffc315;
.colorStyle {
color: #ffc315;
}
</style>