Browse Source

细节修正

pull/101/head
pengda 1 month ago
parent
commit
190492de60
  1. 8
      src/router/index.js
  2. 4
      src/store/index.js
  3. 16
      src/views/agent/checkOrderList.vue
  4. 2
      src/views/agent/home.vue

8
src/router/index.js

@ -112,6 +112,9 @@ const routes = [{
name: '查重订单',
isFirst: true,
component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/checkOrderList.vue'),
props: {
list_type: 'check',
},
meta: {
title: '查重订单',
breadcrumbParent: '首页',
@ -119,10 +122,13 @@ const routes = [{
}
},
{
path: '/agent/checkOrderList',
path: '/agent/aiOrderList',
name: 'AI写作订单',
isFirst: true,
component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/checkOrderList.vue'),
props: {
list_type: 'ai',
},
meta: {
title: 'AI写作订单',
breadcrumbParent: '首页',

4
src/store/index.js

@ -113,12 +113,12 @@ export default new Vuex.Store({
{
index: '2-1',
title: '查重订单',
path: '/agent/checkOrderList?list=check'
path: '/agent/checkOrderList'
},
{
index: '2-2',
title: 'AI写作订单',
path: '/agent/checkOrderList?list=ai'
path: '/agent/aiOrderList'
},
{
index: '2-3',

16
src/views/agent/checkOrderList.vue

@ -265,6 +265,12 @@ import PromptText from '@/components/PromptText.vue';
export default {
name: 'siteList',
props: {
list_type: {
type: String,
default: 'check'
},
},
components: {
GuipTable,
GuipSelect,
@ -323,7 +329,7 @@ export default {
}
},
mounted() {
this.pageTab = this.$route.query.list
this.pageTab = this.list_type
this.getOrderList()
this.getConfig()
this.startTimer();
@ -454,7 +460,6 @@ export default {
pagetab: this.pageTab,
...params
}
console.log(requestParams, 'requestParams===');
this.$http('POST', '/agentnew/ajax_get_check_order_list', requestParams).then(response => {
this.tableLoading = false
this.$nextTick(() => {
@ -708,12 +713,9 @@ export default {
computed: {
},
watch: {
'$route.query'(newVal) {
console.log('参数变化:', newVal);
'$route'() {
//
this.pageTab = newVal.list
this.pageTab = this.list_type
if (this.pageTab === 'check') {
this.pageTitle = '查重订单'
} else if (this.pageTab === 'ai') {

2
src/views/agent/home.vue

@ -2,7 +2,7 @@
<div class="home-wrap column">
<div class="home-main flex">
<div class="home-main-left column">
<div class="systemNotice common-area">
<div class="systemNotice common-area" v-if="noticeList.length">
<h2 class="flex-between">
<b>系统通知</b>
<span class="hoverCommon" @click="lookMoreSystem">查看更多</span>

Loading…
Cancel
Save