Compare commits

..

No commits in common. '8be0a42d63b6c2b1521e8403e76d8b2e33ca4506' and '5f8b822b8f4d0555778e8b819b2b28faa7b5f195' have entirely different histories.

  1. 11
      jeecgboot-vue3/src/router/helper/mainOut.ts
  2. 5
      jeecgboot-vue3/src/views/demo/main-home/components/innovationVouchers/index.vue
  3. 105
      jeecgboot-vue3/src/views/demo/main-home/components/useInnovationVouchers/index.vue

@ -131,16 +131,7 @@ export const mainOutRoutes: AppRouteModule[] = [
name: 'InnovationVouchers',
component: () => import('/@/views/demo/main-home/components/innovationVouchers/index.vue'),
meta: {
title: '创新券申请',
ignoreAuth: true,
},
},
{
path: '/main-home/useInnovationVouchers',
name: 'UseInnovationVouchers',
component: () => import('/@/views/demo/main-home/components/useInnovationVouchers/index.vue'),
meta: {
title: '创新券使用',
title: '创新券',
ignoreAuth: true,
},
},

@ -22,15 +22,14 @@
},
{
title: '申报类别',
dataIndex: 'proType_dictText',
key: 'proType_dictText',
dataIndex: 'state_dictText',
key: 'state_dictText',
},
{
title: '申请金额',
dataIndex: 'proMoney',
key: 'proMoney',
},
{
title: '创新券编码',
dataIndex: 'cxqCode',

@ -1,105 +0,0 @@
<template>
<div class="container">
<a-table :dataSource="indexaward" :columns="columns" :pagination="pagination">
<!-- <template #bodyCell="{ column }">
<div v-if="column.key === 'setting'">
<a-button type="text" primary>查看详情</a-button>
</div>
</template> -->
</a-table>
</div>
</template>
<script setup>
import axios from 'axios';
import { ref } from 'vue';
const columns = [
{
title: '申报项目名称',
dataIndex: 'proName',
key: 'proName',
},
{
title: '申报类别',
dataIndex: 'proType_dictText',
key: 'proType_dictText',
},
{
title: '申请金额',
dataIndex: 'proMoney',
key: 'proMoney',
},
{
title: '使用状态',
dataIndex: 'useState_dictText',
key: 'useState_dictText',
},
{
title: '是否同意',
dataIndex: 'sfState_dictText',
key: 'sfState_dictText',
},
{
title: '是否申请兑现',
dataIndex: 'sfSqdxSta_dictText',
key: 'sfSqdxSta_dictText',
},
{
title: '兑现审核',
dataIndex: 'dxshSta_dictText',
key: 'dxshSta_dictText',
},
{
title: '创新券编码',
dataIndex: 'cxqCode',
key: 'cxqCode',
},
{
title: '申请单位',
dataIndex: 'proDept_dictText',
key: 'proDept_dictText',
},
];
const handlePageChange = (page, pageSize) => {
//
console.log(page, pageSize);
pagination.value.current = page;
getindexawardEvent()
};
const pagination = ref({
//
pageSize: 10, //
showTotal: (total) => `${total}`, //
current: 1, //
total: 0, //
onChange: handlePageChange, //
});
const indexaward = ref([]);
const getindexawardEvent = async () => {
console.log(111);
const data = {
pageNo: pagination.value.current,
pageSize: pagination.value.pageSize,
};
// fetch(import.meta.env.VITE_GLOB_API_URL_CXQ + '/innovationvoucher/innovationVoucher/listcms',data)
// .then((res) => res.json())
// .then((res) => (indexaward.value = res.result.records));
// };
const res = await axios.get(import.meta.env.VITE_GLOB_API_URL_CXQ + '/innovationvoucher/innovationVoucher/listcmssy', { params: data });
console.log(res);
indexaward.value = res.data.result.records;
pagination.value.total = res.data.result.total;
};
getindexawardEvent();
</script>
<style scoped lang="less">
.container {
width: 1200px;
margin: 0 auto;
}
</style>
Loading…
Cancel
Save