462a12ab by lihua

产品上架页面优化

1 parent 5fa003b8
...@@ -235,29 +235,29 @@ const toSearch = (val: any, clear: boolean = false) => { ...@@ -235,29 +235,29 @@ const toSearch = (val: any, clear: boolean = false) => {
235 page.value.curr = 1; 235 page.value.curr = 1;
236 tableInfo.value.page.curr = 1; 236 tableInfo.value.page.curr = 1;
237 getTableData(); 237 getTableData();
238 getListingCountData(); 238 // getListingCountData();
239 }; 239 };
240 240
241 // 获取产品上架数量 241 // 获取产品上架数量
242 const getListingCountData = () => { 242 // const getListingCountData = () => {
243 flowDetailLoading.value = true; 243 // flowDetailLoading.value = true;
244 getListingCount({ 244 // getListingCount({
245 currentStaffGuid: userData.staffGuid 245 // currentStaffGuid: userData.staffGuid
246 }).then((res: any) => { 246 // }).then((res: any) => {
247 flowDetailLoading.value = false; 247 // flowDetailLoading.value = false;
248 if (res.code == proxy.$passCode) { 248 // if (res.code == proxy.$passCode) {
249 demandListData.value = res.data || []; 249 // demandListData.value = res.data || [];
250 if (demandListData.value?.length) { 250 // if (demandListData.value?.length) {
251 demandListData.value = [demandListData.value[0]]; 251 // demandListData.value = [demandListData.value[0]];
252 } 252 // }
253 let valueData = chunk(demandListData.value, 4); 253 // let valueData = chunk(demandListData.value, 4);
254 carouselInfo.value.list = valueData; 254 // carouselInfo.value.list = valueData;
255 carouselInfo.value.arrow = valueData.length > 1 ? 'hover' : 'never'; 255 // carouselInfo.value.arrow = valueData.length > 1 ? 'hover' : 'never';
256 } else { 256 // } else {
257 proxy.$ElMessage.error(res.msg); 257 // proxy.$ElMessage.error(res.msg);
258 } 258 // }
259 }) 259 // })
260 } 260 // }
261 261
262 const tableSwitchBeforeChange = (scope, field, callback) => { 262 const tableSwitchBeforeChange = (scope, field, callback) => {
263 ElMessageBox.confirm( 263 ElMessageBox.confirm(
...@@ -297,12 +297,12 @@ const tableSwitchChange = (val, scope, field) => { ...@@ -297,12 +297,12 @@ const tableSwitchChange = (val, scope, field) => {
297 message: res.msg, 297 message: res.msg,
298 }); 298 });
299 getTableData(); 299 getTableData();
300 getListingCountData(); 300 // getListingCountData();
301 reject(false) 301 reject(false)
302 } 302 }
303 }).catch(() => { 303 }).catch(() => {
304 getTableData(); 304 getTableData();
305 getListingCountData(); 305 // getListingCountData();
306 reject(false) 306 reject(false)
307 }) 307 })
308 }) 308 })
...@@ -375,7 +375,7 @@ const tableBtnClick = (scope, btn) => { ...@@ -375,7 +375,7 @@ const tableBtnClick = (scope, btn) => {
375 if (res.code == '00000') { 375 if (res.code == '00000') {
376 ElMessage.success('删除成功') 376 ElMessage.success('删除成功')
377 getTableData(); 377 getTableData();
378 getListingCountData(); 378 // getListingCountData();
379 } else { 379 } else {
380 ElMessage.error(res.msg) 380 ElMessage.error(res.msg)
381 } 381 }
...@@ -397,7 +397,7 @@ const tableBtnClick = (scope, btn) => { ...@@ -397,7 +397,7 @@ const tableBtnClick = (scope, btn) => {
397 if (res.code == '00000') { 397 if (res.code == '00000') {
398 ElMessage.success('撤销成功!') 398 ElMessage.success('撤销成功!')
399 getTableData(); 399 getTableData();
400 getListingCountData(); 400 // getListingCountData();
401 } else { 401 } else {
402 ElMessage.error(res.msg) 402 ElMessage.error(res.msg)
403 } 403 }
...@@ -547,7 +547,7 @@ const passSubmit = () => { ...@@ -547,7 +547,7 @@ const passSubmit = () => {
547 ElMessage.success('审批通过!') 547 ElMessage.success('审批通过!')
548 dialogVisible.value = false; 548 dialogVisible.value = false;
549 getTableData(); 549 getTableData();
550 getListingCountData(); 550 // getListingCountData();
551 } else { 551 } else {
552 ElMessage.error(res.msg) 552 ElMessage.error(res.msg)
553 } 553 }
...@@ -586,7 +586,7 @@ const rejectSubmit = async () => { ...@@ -586,7 +586,7 @@ const rejectSubmit = async () => {
586 ElMessage.success('驳回成功!') 586 ElMessage.success('驳回成功!')
587 dialogVisible.value = false; 587 dialogVisible.value = false;
588 getTableData(); 588 getTableData();
589 getListingCountData(); 589 // getListingCountData();
590 } else { 590 } else {
591 ElMessage.error(res.msg) 591 ElMessage.error(res.msg)
592 } 592 }
...@@ -612,7 +612,7 @@ const getFirstPageData = () => { ...@@ -612,7 +612,7 @@ const getFirstPageData = () => {
612 612
613 onActivated(() => { 613 onActivated(() => {
614 if (assetStore.isRefresh) {//如果是首次加载,则不需要调用 614 if (assetStore.isRefresh) {//如果是首次加载,则不需要调用
615 getListingCountData(); 615 // getListingCountData();
616 page.value.curr = 1 616 page.value.curr = 1
617 tableInfo.value.page.curr = 1; 617 tableInfo.value.page.curr = 1;
618 getTableData(currExchangeGuid.value); 618 getTableData(currExchangeGuid.value);
...@@ -648,27 +648,14 @@ const assetsSafeInfo = ref<any>() ...@@ -648,27 +648,14 @@ const assetsSafeInfo = ref<any>()
648 const defaultItemLogo = new URL('@/assets/images/home-finance-product.png', import.meta.url).href 648 const defaultItemLogo = new URL('@/assets/images/home-finance-product.png', import.meta.url).href
649 const demandListData: any = ref([ 649 const demandListData: any = ref([
650 ]); 650 ]);
651 const flowDetailLoading = ref(false); 651 const btnClick = () => {
652 const btnClick = (item) => { 652 router.push({
653 console.log(item) 653 name: "productListingDetail",
654 if (item.exchangeGuid) { 654 query: {
655 router.push({ 655 type: 'add',
656 name: "productListingDetail", 656 case: '2',
657 query: { 657 },
658 exchangeGuid: item.exchangeGuid, 658 });
659 exchangeName: item.exchangeName,
660 type: 'add',
661 },
662 });
663 } else {
664 router.push({
665 name: "productListingDetail",
666 query: {
667 type: 'add',
668 case: '2',
669 },
670 });
671 }
672 } 659 }
673 660
674 const currExchangeGuid = ref(''); 661 const currExchangeGuid = ref('');
...@@ -932,57 +919,11 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -932,57 +919,11 @@ const rejectDialogBtnClick = (btn, info) => {
932 <div class="container_wrap"> 919 <div class="container_wrap">
933 <div class="table_tool_wrap"> 920 <div class="table_tool_wrap">
934 <TableTools :searchItems="searchItemList" :searchId="'data-source-search'" @search="toSearch" /> 921 <TableTools :searchItems="searchItemList" :searchId="'data-source-search'" @search="toSearch" />
935 <!-- <div class="tools_btns"> 922 <div class="tools_btns">
936 <el-button type="primary" @click="toPatn('add')" v-preReClick>新建</el-button> 923 <el-button type="primary" @click="btnClick()" v-preReClick>新建产品上架</el-button>
937 <el-button type="primary" @click="toPatn1('add', 'add1')" v-preReClick>新建</el-button> 924 </div>
938 </div> -->
939 </div>
940 <div v-loading="flowDetailLoading">
941 <CarouselPanel :carousel-info="carouselInfo">
942 <template v-slot:default="{ carousel }">
943 <div class="card-content" v-for="(item, i) in carousel" :key="item.guid" @click="cardBtnClick(item)"
944 :class="{ active: currExchangeGuid == item.exchangeGuid, mr16: i < carousel.length - 1 && (i + 1) % 4 !== 0 }">
945 <div class="header">
946 <div class="header-top">
947 <img class="left-img"
948 :src="(item.picUrl && typeof item.picUrl == 'string') ? item.picUrl : (item.exchangeName?.indexOf('门户') > -1 ? sjsLogo : defaultItemLogo)"
949 alt="" />
950 <div class="title"> <ellipsis-tooltip :content="item.exchangeName ?? '--'" class-name="w100f"
951 :refName="'tooltipOver'"></ellipsis-tooltip></div>
952 </div>
953 <div class="right-main">
954 <div class="count-group">
955 <div class="count-item">
956 <div class="item-label">已上架产品数</div>
957 <div class="item-num">{{ changeNum(item.listingNum || 0) }}</div>
958 </div>
959 <div class="count-item">
960 <div class="item-label">审批中产品数</div>
961 <div class="item-num">{{ changeNum(item.underReviewNum || 0) }}</div>
962 </div>
963 </div>
964 </div>
965 </div>
966 <div class="operator-btn" v-show="item.exchangeName?.indexOf('门户') > -1 " @click.stop="btnClick(item)">
967 <!-- <div class="left-btn">更新模板</div> -->
968 <div class="right-btn">产品上架</div>
969 </div>
970 </div>
971 </template>
972 </CarouselPanel>
973 <!-- <div class="list-content" v-if="demandListData.length > 0">
974
975 </div> -->
976 <!-- <div class="v-tip">
977 <div class="tip-icon"></div>
978 <div class="tip-des">
979 在各数交所上架时,会同时在门户、专区和主平台门户进行展示;在门户上架则只会在门户上架,不会在数交所、专区及主平台门户上架。
980 </div>
981 </div> -->
982 </div> 925 </div>
983 <div class="table_panel_wrap" :style="{ 926 <div class="table_panel_wrap" :style="{ height: 'calc(100% - 84px)' }">
984 height: 'calc(100% - 240px)'
985 }">
986 <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tablePageChange="tablePageChange" 927 <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tablePageChange="tablePageChange"
987 @tableSwitchBeforeChange="tableSwitchBeforeChange" /> 928 @tableSwitchBeforeChange="tableSwitchBeforeChange" />
988 </div> 929 </div>
...@@ -1014,11 +955,11 @@ const rejectDialogBtnClick = (btn, info) => { ...@@ -1014,11 +955,11 @@ const rejectDialogBtnClick = (btn, info) => {
1014 955
1015 .table_tool_wrap { 956 .table_tool_wrap {
1016 width: 100%; 957 width: 100%;
1017 height: 50px !important; 958 // height: 40px !important;
1018 padding: 0 8px; 959 padding: 0 8px;
1019 960
1020 .tools_btns { 961 .tools_btns {
1021 padding: 0px 0 0; 962 padding: 0px 0 8px;
1022 } 963 }
1023 } 964 }
1024 965
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!