flat: 暂存
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
<avue-crud
|
||||
:data="infoData"
|
||||
:option="options"
|
||||
:table-loading="visible"
|
||||
:search.sync="search"
|
||||
:page.sync="infoPages"
|
||||
@search-change="searchChange"
|
||||
@@ -11,7 +12,6 @@
|
||||
@current-change="currentChange"
|
||||
>
|
||||
</avue-crud>
|
||||
<CustomLoading :visible="visible" loadingText="加载中..."></CustomLoading>
|
||||
</basic-container>
|
||||
</template>
|
||||
|
||||
@@ -116,7 +116,8 @@ export default {
|
||||
const { records, current, total, size } = resData.data.data
|
||||
this.infoData = records
|
||||
this.infoPages = { ...this.infoPages, currentPage: current, total, size}
|
||||
this.$api.sleep(1000).then(() => {this.visible = false; resolve(true)})
|
||||
this.visible = false;
|
||||
resolve(true)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
|
||||
141
src/views/report/main/innovation.vue
Normal file
141
src/views/report/main/innovation.vue
Normal file
@@ -0,0 +1,141 @@
|
||||
<template>
|
||||
<basic-container style="position: relative">
|
||||
<avue-crud
|
||||
:data="infoData"
|
||||
:option="options"
|
||||
:search.sync="search"
|
||||
:table-loading="visible"
|
||||
:page.sync="infoPages"
|
||||
@search-change="searchChange"
|
||||
@search-reset="resetChange"
|
||||
@size-change="sizeChange"
|
||||
@current-change="currentChange"
|
||||
>
|
||||
</avue-crud>
|
||||
</basic-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {innovationServeCount , getListAllServe} from '@/api/report/report'
|
||||
import CustomLoading from "@/components/Custom-Loading/index.vue";
|
||||
import { dateFormat } from "@/util/date";
|
||||
const pages = { total: 0, size: 10, currentPage: 1 }
|
||||
const baseOptions = {
|
||||
dateBtn: false,
|
||||
addBtn: false,
|
||||
editBtn: false,
|
||||
delBtn: false,
|
||||
height: "auto",
|
||||
reserveSelection: false,
|
||||
border: true,
|
||||
columnBtn: false,
|
||||
refreshBtn: false,
|
||||
menu: false,
|
||||
tip: false,
|
||||
searchMenuSpan: 6,
|
||||
selection: false,
|
||||
}
|
||||
export default {
|
||||
components: {CustomLoading},
|
||||
data() {
|
||||
return {
|
||||
infoPages: Object.assign({}, pages),
|
||||
infoData: [],
|
||||
visible: false,
|
||||
search: {},
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
computed: {
|
||||
options() {
|
||||
return {
|
||||
...baseOptions,
|
||||
column: [{
|
||||
label: '机构名称',
|
||||
prop: 'name',
|
||||
search: true,
|
||||
searchSpan: 6,
|
||||
},{
|
||||
label: '政策名称',
|
||||
prop: 'policyName',
|
||||
search: true,
|
||||
searchSpan: 6,
|
||||
},{
|
||||
label: '推送数',
|
||||
prop: 'serveCount',
|
||||
},{
|
||||
label: '跟踪服务次数 ',
|
||||
prop: 'traceCount'
|
||||
},{
|
||||
label: '服务成功次数 ',
|
||||
prop: 'successCount'
|
||||
},{
|
||||
label: '日期',
|
||||
prop: 'date',
|
||||
hide: true,
|
||||
display: false,
|
||||
type:'date',
|
||||
searchSpan: 6,
|
||||
searchRange:true,
|
||||
search:true,
|
||||
}]
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
sizeChange(size) {
|
||||
this.infoPages.size = size
|
||||
this.getList()
|
||||
},
|
||||
currentChange(page) {
|
||||
this.infoPages.page = page
|
||||
this.getList()
|
||||
},
|
||||
searchChange(values, done) {
|
||||
this.getList().then(() => {done()})
|
||||
},
|
||||
resetChange() {
|
||||
this.search = {}
|
||||
let params = { size: 10, current: 1 }
|
||||
this.getList()
|
||||
},
|
||||
async getSearchList() {
|
||||
// let resData = await getListAllServe({})
|
||||
},
|
||||
getList(values) {
|
||||
return new Promise(async(resolve, reject) => {
|
||||
this.visible = true
|
||||
let params = {
|
||||
size: this.infoPages.size,
|
||||
current: this.infoPages.currentPage,
|
||||
...this.search,
|
||||
// serveName: '创业服务'
|
||||
}
|
||||
if( Array.isArray(this.search.date) && this.search.date.length ) {
|
||||
const [stime, etime] = this.search.date
|
||||
params.stime = dateFormat(stime, "yyyy-MM-dd")
|
||||
params.etime = dateFormat(etime, "yyyy-MM-dd")
|
||||
delete params.date
|
||||
}
|
||||
console.log(123123, params)
|
||||
let resData = await innovationServeCount(params)
|
||||
if(resData.data.code === 200) {
|
||||
const { records, current, total, size } = resData.data.data
|
||||
this.infoData = records
|
||||
this.infoPages = { ...this.infoPages, currentPage: current, total, size}
|
||||
this.visible = false;
|
||||
resolve(true)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
</style>
|
||||
161
src/views/report/main/unemployment.vue
Normal file
161
src/views/report/main/unemployment.vue
Normal file
@@ -0,0 +1,161 @@
|
||||
<template>
|
||||
<basic-container style="position: relative">
|
||||
<avue-crud
|
||||
:data="infoData"
|
||||
:option="options"
|
||||
:search.sync="search"
|
||||
:table-loading="visible"
|
||||
:page.sync="infoPages"
|
||||
@search-change="searchChange"
|
||||
@search-reset="resetChange"
|
||||
@size-change="sizeChange"
|
||||
@current-change="currentChange"
|
||||
>
|
||||
</avue-crud>
|
||||
</basic-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {unemploymentInsuranceServiceCount} from '@/api/report/report'
|
||||
import CustomLoading from "@/components/Custom-Loading/index.vue";
|
||||
import { dateFormat } from "@/util/date";
|
||||
const columnEnum = {
|
||||
'totalCount': '总数',
|
||||
'otherCount': '机构登记数',
|
||||
'registerCount': '总库(其他)',
|
||||
}
|
||||
const pages = { total: 0, size: 10, currentPage: 1 }
|
||||
const baseOptions = {
|
||||
dateBtn: false,
|
||||
addBtn: false,
|
||||
editBtn: false,
|
||||
delBtn: false,
|
||||
height: "auto",
|
||||
reserveSelection: false,
|
||||
border: true,
|
||||
columnBtn: false,
|
||||
refreshBtn: false,
|
||||
menu: false,
|
||||
tip: false,
|
||||
searchMenuSpan: 6,
|
||||
selection: false,
|
||||
headerAlign: 'center',
|
||||
}
|
||||
export default {
|
||||
components: {CustomLoading},
|
||||
data() {
|
||||
return {
|
||||
infoPages: Object.assign({}, pages),
|
||||
infoData: [],
|
||||
visible: false,
|
||||
search: {},
|
||||
headColum: [],
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
computed: {
|
||||
options() {
|
||||
const tableHead = this.headColum.map((item, index) => ({
|
||||
label: item.columnName,
|
||||
display:false,
|
||||
children: Object.keys(columnEnum).map((key) => ({
|
||||
label: columnEnum[key],
|
||||
prop: `${index}_${key}`,
|
||||
display:false,
|
||||
width: 120,
|
||||
}))
|
||||
}))
|
||||
|
||||
return {
|
||||
...baseOptions,
|
||||
height: 200,
|
||||
width:200,
|
||||
column: [{
|
||||
label: '机构名称',
|
||||
prop: 'name',
|
||||
search: true,
|
||||
fixed: true,
|
||||
width: 200,
|
||||
},
|
||||
...tableHead,
|
||||
{
|
||||
label: '日期',
|
||||
prop: 'date',
|
||||
hide: true,
|
||||
display: false,
|
||||
type:'date',
|
||||
searchSpan: 8,
|
||||
searchRange:true,
|
||||
search:true,
|
||||
}]
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
sizeChange(size) {
|
||||
this.infoPages.size = size
|
||||
this.getList()
|
||||
},
|
||||
currentChange(page) {
|
||||
this.infoPages.page = page
|
||||
this.getList()
|
||||
},
|
||||
searchChange(values, done) {
|
||||
this.getList().then(() => {done()})
|
||||
},
|
||||
resetChange() {
|
||||
this.search = {}
|
||||
let params = { size: 10, current: 1 }
|
||||
this.getList()
|
||||
},
|
||||
getList(values) {
|
||||
return new Promise(async(resolve, reject) => {
|
||||
this.visible = true
|
||||
let params = {
|
||||
size: this.infoPages.size,
|
||||
current: this.infoPages.currentPage,
|
||||
...this.search,
|
||||
}
|
||||
if( Array.isArray(this.search.date) && this.search.date.length ) {
|
||||
const [stime, etime] = this.search.date
|
||||
params.stime = dateFormat(stime, "yyyy-MM-dd")
|
||||
params.etime = dateFormat(etime, "yyyy-MM-dd")
|
||||
delete params.date
|
||||
}
|
||||
let resData = await unemploymentInsuranceServiceCount(params)
|
||||
if(resData.data.code === 200) {
|
||||
const { list, columnInfo } = resData.data.data
|
||||
const { current, size ,total, records } = list
|
||||
this.infoData = records.map((item) => ({
|
||||
...item,
|
||||
...this.decompose(item.list)
|
||||
}))
|
||||
console.log('infoData',this.infoData)
|
||||
this.headColum = columnInfo
|
||||
this.infoPages = { ...this.infoPages, currentPage: current, total, size}
|
||||
this.visible = false;
|
||||
resolve(true)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
})
|
||||
},
|
||||
decompose(list) {
|
||||
let obj = {}
|
||||
for (let i = 0; i < list.length; i++) {
|
||||
const item = list[i]
|
||||
Object.keys(item).forEach((vitem) => {
|
||||
obj[`${i}_${vitem}`] = item[vitem]
|
||||
})
|
||||
}
|
||||
return obj
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
</style>
|
||||
@@ -4,6 +4,7 @@
|
||||
:data="infoData"
|
||||
:option="options"
|
||||
:search.sync="search"
|
||||
:table-loading="visible"
|
||||
:page.sync="infoPages"
|
||||
@search-change="searchChange"
|
||||
@search-reset="resetChange"
|
||||
@@ -11,7 +12,6 @@
|
||||
@current-change="currentChange"
|
||||
>
|
||||
</avue-crud>
|
||||
<CustomLoading :visible="visible" loadingText="加载中..."></CustomLoading>
|
||||
</basic-container>
|
||||
</template>
|
||||
|
||||
@@ -121,7 +121,8 @@ export default {
|
||||
const { records, current, total, size } = resData.data.data
|
||||
this.infoData = records
|
||||
this.infoPages = { ...this.infoPages, currentPage: current, total, size}
|
||||
this.$api.sleep(1000).then(() => {this.visible = false; resolve(true)})
|
||||
this.visible = false;
|
||||
resolve(true)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
@@ -4,6 +4,7 @@
|
||||
:data="infoData"
|
||||
:option="options"
|
||||
:search.sync="search"
|
||||
:table-loading="visible"
|
||||
:page.sync="infoPages"
|
||||
@search-change="searchChange"
|
||||
@search-reset="resetChange"
|
||||
@@ -11,7 +12,6 @@
|
||||
@current-change="currentChange"
|
||||
>
|
||||
</avue-crud>
|
||||
<CustomLoading :visible="visible" loadingText="加载中..."></CustomLoading>
|
||||
</basic-container>
|
||||
</template>
|
||||
|
||||
@@ -119,7 +119,8 @@ export default {
|
||||
const { records, current, total, size } = resData.data.data
|
||||
this.infoData = records
|
||||
this.infoPages = { ...this.infoPages, currentPage: current, total, size}
|
||||
this.$api.sleep(1000).then(() => {this.visible = false; resolve(true)})
|
||||
this.visible = false;
|
||||
resolve(true)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
|
||||
161
src/views/report/talentPool/confirmed.vue
Normal file
161
src/views/report/talentPool/confirmed.vue
Normal file
@@ -0,0 +1,161 @@
|
||||
<template>
|
||||
<basic-container style="position: relative">
|
||||
<avue-crud
|
||||
:data="infoData"
|
||||
:option="options"
|
||||
:search.sync="search"
|
||||
:table-loading="visible"
|
||||
:page.sync="infoPages"
|
||||
@search-change="searchChange"
|
||||
@search-reset="resetChange"
|
||||
@size-change="sizeChange"
|
||||
@current-change="currentChange"
|
||||
>
|
||||
</avue-crud>
|
||||
</basic-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {confirmCount} from '@/api/report/report'
|
||||
import CustomLoading from "@/components/Custom-Loading/index.vue";
|
||||
import { dateFormat } from "@/util/date";
|
||||
const columnEnum = {
|
||||
'totalCount': '总数',
|
||||
'otherCount': '机构登记数',
|
||||
'registerCount': '总库(其他)',
|
||||
}
|
||||
const pages = { total: 0, size: 10, currentPage: 1 }
|
||||
const baseOptions = {
|
||||
dateBtn: false,
|
||||
addBtn: false,
|
||||
editBtn: false,
|
||||
delBtn: false,
|
||||
height: "auto",
|
||||
reserveSelection: false,
|
||||
border: true,
|
||||
columnBtn: false,
|
||||
refreshBtn: false,
|
||||
menu: false,
|
||||
tip: false,
|
||||
searchMenuSpan: 6,
|
||||
selection: false,
|
||||
headerAlign: 'center',
|
||||
}
|
||||
export default {
|
||||
components: {CustomLoading},
|
||||
data() {
|
||||
return {
|
||||
infoPages: Object.assign({}, pages),
|
||||
infoData: [],
|
||||
visible: false,
|
||||
search: {},
|
||||
headColum: [],
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
computed: {
|
||||
options() {
|
||||
const tableHead = this.headColum.map((item, index) => ({
|
||||
label: item.columnName,
|
||||
display:false,
|
||||
children: Object.keys(columnEnum).map((key) => ({
|
||||
label: columnEnum[key],
|
||||
prop: `${index}_${item.id}_${key}`,
|
||||
display:false,
|
||||
width: 120,
|
||||
}))
|
||||
}))
|
||||
console.log('tableHead',tableHead)
|
||||
return {
|
||||
...baseOptions,
|
||||
height: 200,
|
||||
width:200,
|
||||
column: [{
|
||||
label: '机构名称',
|
||||
prop: 'name',
|
||||
search: true,
|
||||
fixed: true,
|
||||
width: 200,
|
||||
},
|
||||
...tableHead,
|
||||
{
|
||||
label: '日期',
|
||||
prop: 'date',
|
||||
hide: true,
|
||||
display: false,
|
||||
type:'date',
|
||||
searchSpan: 8,
|
||||
searchRange:true,
|
||||
search:true,
|
||||
}]
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
sizeChange(size) {
|
||||
this.infoPages.size = size
|
||||
this.getList()
|
||||
},
|
||||
currentChange(page) {
|
||||
this.infoPages.page = page
|
||||
this.getList()
|
||||
},
|
||||
searchChange(values, done) {
|
||||
this.getList().then(() => {done()})
|
||||
},
|
||||
resetChange() {
|
||||
this.search = {}
|
||||
let params = { size: 10, current: 1 }
|
||||
this.getList()
|
||||
},
|
||||
getList(values) {
|
||||
return new Promise(async(resolve, reject) => {
|
||||
this.visible = true
|
||||
let params = {
|
||||
size: this.infoPages.size,
|
||||
current: this.infoPages.currentPage,
|
||||
...this.search,
|
||||
}
|
||||
if( Array.isArray(this.search.date) && this.search.date.length ) {
|
||||
const [stime, etime] = this.search.date
|
||||
params.stime = dateFormat(stime, "yyyy-MM-dd")
|
||||
params.etime = dateFormat(etime, "yyyy-MM-dd")
|
||||
delete params.date
|
||||
}
|
||||
let resData = await confirmCount(params)
|
||||
if(resData.data.code === 200) {
|
||||
const { list, columnInfo } = resData.data.data
|
||||
const { current, size ,total, records } = list
|
||||
this.infoData = records.map((item) => ({
|
||||
...item,
|
||||
...this.decompose(item.list)
|
||||
}))
|
||||
console.log('infoData',this.infoData)
|
||||
this.headColum = columnInfo
|
||||
this.infoPages = { ...this.infoPages, currentPage: current, total, size}
|
||||
this.visible = false;
|
||||
resolve(true)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
})
|
||||
},
|
||||
decompose(list) {
|
||||
let obj = {}
|
||||
for (let i = 0; i < list.length; i++) {
|
||||
const item = list[i]
|
||||
Object.keys(item).forEach((vitem) => {
|
||||
obj[`${i}_${item.id}_${vitem}`] = item[vitem]
|
||||
})
|
||||
}
|
||||
return obj
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
</style>
|
||||
@@ -4,6 +4,7 @@
|
||||
:data="infoData"
|
||||
:option="options"
|
||||
:search.sync="search"
|
||||
:table-loading="visible"
|
||||
:page.sync="infoPages"
|
||||
@search-change="searchChange"
|
||||
@search-reset="resetChange"
|
||||
@@ -11,7 +12,6 @@
|
||||
@current-change="currentChange"
|
||||
>
|
||||
</avue-crud>
|
||||
<CustomLoading :visible="visible" loadingText="加载中..."></CustomLoading>
|
||||
</basic-container>
|
||||
</template>
|
||||
|
||||
@@ -62,12 +62,12 @@ export default {
|
||||
display:false,
|
||||
children: Object.keys(columnEnum).map((key) => ({
|
||||
label: columnEnum[key],
|
||||
prop: `${index}_${key}`,
|
||||
prop: `${index}_${item.id}_${key}`,
|
||||
display:false,
|
||||
width: 120,
|
||||
}))
|
||||
}))
|
||||
|
||||
console.log('tableHead',tableHead)
|
||||
return {
|
||||
...baseOptions,
|
||||
height: 200,
|
||||
@@ -135,7 +135,8 @@ export default {
|
||||
console.log('infoData',this.infoData)
|
||||
this.headColum = columnInfo
|
||||
this.infoPages = { ...this.infoPages, currentPage: current, total, size}
|
||||
this.$api.sleep(1000).then(() => {this.visible = false; resolve(true)})
|
||||
this.visible = false;
|
||||
resolve(true)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
@@ -146,7 +147,7 @@ export default {
|
||||
for (let i = 0; i < list.length; i++) {
|
||||
const item = list[i]
|
||||
Object.keys(item).forEach((vitem) => {
|
||||
obj[`${i}_${vitem}`] = item[vitem]
|
||||
obj[`${i}_${item.id}_${vitem}`] = item[vitem]
|
||||
})
|
||||
}
|
||||
return obj
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<avue-crud
|
||||
:data="infoData"
|
||||
:option="options"
|
||||
:table-loading="visible"
|
||||
:search.sync="search"
|
||||
:page.sync="infoPages"
|
||||
@search-change="searchChange"
|
||||
@@ -11,7 +12,6 @@
|
||||
@current-change="currentChange"
|
||||
>
|
||||
</avue-crud>
|
||||
<CustomLoading :visible="visible" loadingText="加载中..."></CustomLoading>
|
||||
</basic-container>
|
||||
</template>
|
||||
|
||||
@@ -119,7 +119,8 @@ export default {
|
||||
const { records, current, total, size } = resData.data.data
|
||||
this.infoData = records
|
||||
this.infoPages = { ...this.infoPages, currentPage: current, total, size}
|
||||
this.$api.sleep(1000).then(() => {this.visible = false; resolve(true)})
|
||||
this.visible = false;
|
||||
resolve(true)
|
||||
} else {
|
||||
reject()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user