refactor: 优化项目展示

master
zccbbg 1 year ago
parent 9ee4f01157
commit 20e3fff80d

@ -109,7 +109,7 @@
/>
</InBody>
</div>
<SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk"/>
<!-- <SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk"/>-->
<!-- 拒绝对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
@ -160,7 +160,7 @@ export default {
dicts: ["oms_aftersale_type", "oms_aftersale_status"],
data() {
return {
show: false,
show: true,
pickerOptions: {
shortcuts: dateUtil.getTimeShort2()
},
@ -223,9 +223,7 @@ export default {
if (status){
this.queryParams.status = status
}
this.$nextTick(()=>{
this.$refs.seeAdsComponentRef.show()
})
this.getList();
},
methods: {
confirmOk(success) {

@ -1,6 +1,5 @@
<template>
<div class="app-container">
<div v-show="show">
<div class="app-container" v-if="show">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px" size="medium"
class="ry_form">
<el-form-item label="订单状态" prop="status">
@ -32,6 +31,7 @@
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="omsOrderList" border @selection-change="handleSelectionChange"
cell-class-name="my-cell">
<el-table-column type="selection" width="55" align="center"/>
@ -177,6 +177,7 @@
</template>
</el-table-column>
</el-table>
<InBody v-show="total>0">
<pagination
:total="total"
@ -185,8 +186,8 @@
@pagination="getList"
/>
</InBody>
</div>
<SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk"/>
<!-- 发货对话框 -->
<el-dialog :title="deliveryObj.title" :visible.sync="deliveryObj.open" width="500px" append-to-body>
<el-form ref="deliveryForm" :model="deliveryObj.form" :rules="deliveryObj.rules" label-width="100px">
@ -284,7 +285,6 @@ import AddressSelector from "@/views/components/AddressSelector/index.vue";
import dateUtil, {dateFormat} from '@/utils/DateUtil';
import {isStarRepo} from "@/utils/is-star-plugin"
import {mapGetters} from "vuex";
import SeeAdsComponent from "@/components/SeeAdsComponent.vue";
export default {
computed:{
@ -293,7 +293,6 @@ export default {
name: "OmsOrder",
dicts: ["oms_order_status", "oms_pay_type"],
components: {
SeeAdsComponent,
AddressSelector
},
data() {
@ -412,13 +411,6 @@ export default {
};
},
async created() {
this.$nextTick(()=>{
this.$refs.seeAdsComponentRef.show()
})
},
methods: {
async confirmOk(success) {
if (success) {
const res = await isStarRepo('zccbbg', 'RuoYi-Mall', this.userId, 'https://mall.ichengle.top/order/order', 'ruoyi-mall-商城', 'https://gitee.com/zccbbg/RuoYi-Mall')
this.show = res;
if (res) {
@ -434,8 +426,8 @@ export default {
}
this.getList();
}
}
},
methods: {
/** 日期组件设置为今天 */
setToday() {
const temp = new Date();

@ -119,7 +119,7 @@
/>
</InBody>
</div>
<SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk"/>
<!-- <SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk"/>-->
</div>
</template>
@ -136,7 +136,7 @@ export default {
dicts: ['pms_publish_status'],
data() {
return {
show: false,
show: true,
//
loading: true,
//
@ -176,9 +176,7 @@ export default {
};
},
created() {
this.$nextTick(()=>{
this.$refs.seeAdsComponentRef.show()
})
this.getList();
},
computed:{
...mapGetters(['userId']),

Loading…
Cancel
Save