Browse Source

政策相关

master
aBin 4 years ago
parent
commit
5821517749
  1. 21
      src/api/demand.js
  2. 2
      src/api/policy.js
  3. 136
      src/router/index.js
  4. 110
      src/views/enterprise/demand.vue
  5. 416
      src/views/enterprise/enterprise.vue
  6. 202
      src/views/firstPages/notice.vue
  7. 289
      src/views/firstPages/policy.vue
  8. 266
      src/views/firstPages/rotation.vue
  9. 295
      src/views/firstPages/train.vue
  10. 75
      src/views/firstPages/typemanage.vue
  11. 2
      vue.config.js

21
src/api/demand.js

@ -1,9 +1,16 @@
/*
* @Author: wally
* @email: 18603454788@163.com
* @Date: 2021-01-27 15:54:17
* @LastEditors: wally
* @LastEditTime: 2021-02-02 09:24:21
*/
import request from '@/utils/request'
const demand = 'enterprise/demand'
const demandPublish = 'enterprise/demandPublish'
export function demandQuery(data) {
return request({
url: `/gateway${demand}/demandQuery`,
url: `/gateway/${demand}/demandQuery`,
method: 'post',
data: {
param: {
@ -16,7 +23,7 @@ export function demandQuery(data) {
export function updateDemandStatus(data) {
return request({
url: `/gateway${demand}/updateDemandStatus`,
url: `/gateway/${demand}/updateDemandStatus`,
method: 'post',
data: {
param: {
@ -26,17 +33,17 @@ export function updateDemandStatus(data) {
}
})
}
export function demandPublishAdd(data) {
return request({
url: `/gateway${demandPublish}/demandPublishAdd`,
url: `/gateway/${demandPublish}/demandPublishAdd`,
method: 'post',
data: {
content: data.content,
demandId: data.id,
type: data.type
}
})
}
}

2
src/api/policy.js

@ -7,6 +7,7 @@ export function PolicyDetail(data) {
method: 'post',
data: {
param: {
title: data.title,
auditStatus: data.auditStatus,
pageNum: data.pageNum,
pageSize: data.pageSize,
@ -25,6 +26,7 @@ export function PolicyUpdate(data) {
auditStatus: data.auditStatus,
content: data.content,
id: data.id,
labels: data.projectLabels ? data.projectLabels : null,
imgUrl: data.imgUrl,
intro: data.intro,
title: data.title,

136
src/router/index.js

@ -115,75 +115,75 @@ export const constantRoutes = [
]
},
{
path: '/nested',
component: Layout,
redirect: '/nested/menu1',
name: 'Nested',
meta: {
title: 'Nested',
icon: 'nested'
},
children: [
{
path: 'menu1',
component: () => import('@/views/nested/menu1/index'), // Parent router-view
name: 'Menu1',
meta: { title: 'Menu1' },
children: [
{
path: 'menu1-1',
component: () => import('@/views/nested/menu1/menu1-1'),
name: 'Menu1-1',
meta: { title: 'Menu1-1' }
},
{
path: 'menu1-2',
component: () => import('@/views/nested/menu1/menu1-2'),
name: 'Menu1-2',
meta: { title: 'Menu1-2' },
children: [
{
path: 'menu1-2-1',
component: () => import('@/views/nested/menu1/menu1-2/menu1-2-1'),
name: 'Menu1-2-1',
meta: { title: 'Menu1-2-1' }
},
{
path: 'menu1-2-2',
component: () => import('@/views/nested/menu1/menu1-2/menu1-2-2'),
name: 'Menu1-2-2',
meta: { title: 'Menu1-2-2' }
}
]
},
{
path: 'menu1-3',
component: () => import('@/views/nested/menu1/menu1-3'),
name: 'Menu1-3',
meta: { title: 'Menu1-3' }
}
]
},
{
path: 'menu2',
component: () => import('@/views/nested/menu2/index'),
name: 'Menu2',
meta: { title: 'menu2' }
}
]
},
// {
// path: '/nested',
// component: Layout,
// redirect: '/nested/menu1',
// name: 'Nested',
// meta: {
// title: 'Nested',
// icon: 'nested'
// },
// children: [
// {
// path: 'menu1',
// component: () => import('@/views/nested/menu1/index'), // Parent router-view
// name: 'Menu1',
// meta: { title: 'Menu1' },
// children: [
// {
// path: 'menu1-1',
// component: () => import('@/views/nested/menu1/menu1-1'),
// name: 'Menu1-1',
// meta: { title: 'Menu1-1' }
// },
// {
// path: 'menu1-2',
// component: () => import('@/views/nested/menu1/menu1-2'),
// name: 'Menu1-2',
// meta: { title: 'Menu1-2' },
// children: [
// {
// path: 'menu1-2-1',
// component: () => import('@/views/nested/menu1/menu1-2/menu1-2-1'),
// name: 'Menu1-2-1',
// meta: { title: 'Menu1-2-1' }
// },
// {
// path: 'menu1-2-2',
// component: () => import('@/views/nested/menu1/menu1-2/menu1-2-2'),
// name: 'Menu1-2-2',
// meta: { title: 'Menu1-2-2' }
// }
// ]
// },
// {
// path: 'menu1-3',
// component: () => import('@/views/nested/menu1/menu1-3'),
// name: 'Menu1-3',
// meta: { title: 'Menu1-3' }
// }
// ]
// },
// {
// path: 'menu2',
// component: () => import('@/views/nested/menu2/index'),
// name: 'Menu2',
// meta: { title: 'menu2' }
// }
// ]
// },
{
path: 'external-link',
component: Layout,
children: [
{
path: 'https://panjiachen.github.io/vue-element-admin-site/#/',
meta: { title: 'External Link', icon: 'link' }
}
]
},
// {
// path: 'external-link',
// component: Layout,
// children: [
// {
// path: 'https://panjiachen.github.io/vue-element-admin-site/#/',
// meta: { title: 'External Link', icon: 'link' }
// }
// ]
// },
// 404 page must be placed at the end !!!
{ path: '*', redirect: '/404', hidden: true }

110
src/views/enterprise/demand.vue

@ -1,18 +1,35 @@
<template>
<div class="app-container">
<el-table v-loading="listLoading" :data="demandlist" border fit highlight-current-row style="width: 100%;">
<el-table-column label="联系电话" prop="contactPhone" align="center" width="200">
<template slot-scope="{row}">
<el-table
v-loading="listLoading"
:data="demandlist"
border
fit
highlight-current-row
style="width: 100%"
>
<el-table-column
label="联系电话"
prop="contactPhone"
align="center"
width="200"
>
<template slot-scope="{ row }">
<span>{{ row.contactPhone }}</span>
</template>
</el-table-column>
<el-table-column label="联系人" prop="contacts" align="center" width="200">
<template slot-scope="{row}">
<el-table-column
label="联系人"
prop="contacts"
align="center"
width="200"
>
<template slot-scope="{ row }">
<span>{{ row.contacts }}</span>
</template>
</el-table-column>
<el-table-column label="需求内容" prop="content" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.content }}</span>
</template>
</el-table-column>
@ -21,9 +38,16 @@
<span>{{ row.createdAt }}</span>
</template>
</el-table-column> -->
<el-table-column label="处理状态" prop="dealStatus" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.dealStatus }}</span>
<el-table-column
label="处理状态"
prop="dealStatus"
align="center"
width="200"
>
<template slot-scope="{ row }">
<span v-if="row.dealStatus === 0">待处理</span>
<span v-else-if="row.dealStatus === 1">已完成</span>
<span v-else-if="row.dealStatus === 2">已发榜</span>
</template>
</el-table-column>
<!-- <el-table-column label="需求id" prop="id" align="center" width="200">
@ -32,13 +56,21 @@
</template>
</el-table-column> -->
<el-table-column label="企业名称" prop="name" align="center" width="200">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.name }}</span>
</template>
</el-table-column>
<el-table-column label="类型" prop="type" align="center" width="200">
<template slot-scope="{row}">
<span>{{ row.type }}</span>
<template slot-scope="{ row }">
<span v-if="row.type === 0">技术转移转化</span>
<span v-else-if="row.type === 1">工业设计咨询</span>
<span v-else-if="row.type === 2">科技金融建设</span>
<span v-else-if="row.type === 3">政策项目咨询</span>
<span v-else-if="row.type === 4">知识产权咨询</span>
<span v-else-if="row.type === 5">创新体系建设</span>
<span v-else-if="row.type === 6">创新创业咨询</span>
<span v-else-if="row.type === 7">信息技术服务</span>
<span v-else-if="row.type === 8">协同创新服务</span>
</template>
</el-table-column>
<!-- <el-table-column label="修改时间" prop="updatedAt" align="center" width="200">
@ -46,16 +78,31 @@
<span>{{ row.updatedAt }}</span>
</template>
</el-table-column> -->
<el-table-column label="操作" align="center" width="230" class-name="small-padding fixed-width">
<template slot-scope="{row}">
<el-button type="primary" size="mini" @click="edit(row)">修改处理状态</el-button>
<el-button size="mini" type="danger" @click="declare(row)">发榜</el-button>
<el-table-column
label="操作"
align="center"
width="230"
class-name="small-padding fixed-width"
>
<template slot-scope="{ row }">
<el-button type="primary" size="mini" @click="edit(row)"
>修改处理状态</el-button
>
<el-button size="mini" type="danger" @click="declare(row)"
>发榜</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 修改处理状态弹窗 -->
<el-dialog title="修改处理状态" :visible.sync="dialogFormVisible">
<el-form ref="dataForm" :model="temp" label-position="left" label-width="70px" style="width: 400px; margin-left:50px;">
<el-form
ref="dataForm"
:model="temp"
label-position="left"
label-width="70px"
style="width: 50%; margin-left: 50px"
>
<el-form-item label="ID" prop="id" style="width: 180%">
<el-input v-model="temp.id" />
</el-form-item>
@ -63,7 +110,7 @@
<el-select
v-model="temp.dealStatus"
placeholder="请选类型"
style="width: 400px;"
style="width: 50%"
>
<el-option label="未处理" value="0" />
<el-option label="已处理 " value="1" />
@ -72,15 +119,17 @@
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">
取消
</el-button>
<el-button type="primary" @click="editDeal()">
提交
</el-button>
<el-button @click="dialogFormVisible = false"> 取消 </el-button>
<el-button type="primary" @click="editDeal()"> 提交 </el-button>
</div>
</el-dialog>
<pagination v-show="total>0" :total="total" :page.sync="data.pageNum" :limit.sync="data.pageSize" @pagination="getList" />
<pagination
v-show="total > 0"
:total="total"
:page.sync="data.pageNum"
:limit.sync="data.pageSize"
@pagination="getList"
/>
</div>
</template>
<script>
@ -112,7 +161,7 @@ export default {
methods: {
async getList() {
const that = this
await api.demandQuery(that.data).then((res) => {
await api.demandQuery(that.data).then(res => {
that.demandlist = res.list
that.total = res.total - 0
setTimeout(() => {
@ -127,8 +176,7 @@ export default {
},
async editDeal() {
const that = this
await api.updateDemandStatus(that.temp).then((res) => {
})
await api.updateDemandStatus(that.temp).then(res => {})
that.dialogFormVisible = false
that.getList()
},
@ -136,14 +184,10 @@ export default {
const that = this
console.log(row.id)
that.temp = Object.assign({}, row)
await api.demandPublishAdd(that.temp).then((res) => {
})
await api.demandPublishAdd(that.temp).then(res => {})
}
}
}
</script>
<style scoped>
</style>

416
src/views/enterprise/enterprise.vue

@ -1,46 +1,66 @@
<template>
<div class="app-container">
<div class="filter-container">
<el-select v-model="data.type" placeholder="孵化器类型" clearable class="filter-item" style="width: 190px;margin-left:10px" value="1">
<el-select
v-model="data.type"
placeholder="孵化器类型"
clearable
class="filter-item"
style="width: 190px; margin-left: 10px"
value="1"
>
<el-option label="虚拟孵化器" value="0" />
<el-option label="实体孵化器" value="1" />
</el-select>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-search" @click="search">
<el-button
class="filter-item"
style="margin-left: 10px"
type="primary"
icon="el-icon-search"
@click="search"
>
搜索
</el-button>
<!-- 企业列表 -->
<el-table v-loading="listLoading" :data="enterpriselist" border fit highlight-current-row style="width: 100%;">
<el-table
v-loading="listLoading"
:data="enterpriselist"
border
fit
highlight-current-row
style="width: 100%"
>
<el-table-column label="ID" prop="ID" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.id }}</span>
</template>
</el-table-column>
<el-table-column label="企业名称" prop="name" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.name }}</span>
</template>
</el-table-column>
<el-table-column label="孵化器类型" prop="incubator" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.incubator }}</span>
</template>
</el-table-column>
<el-table-column label="联系人" prop="contacts" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.contacts }}</span>
</template>
</el-table-column>
<el-table-column label="联系电话" prop="contactPhone" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.contactPhone }}</span>
</template>
</el-table-column>
<el-table-column label="税务号" prop="theTaxNo" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.theTaxNo }}</span>
</template>
</el-table-column>
@ -52,28 +72,51 @@
</el-table-column> -->
<el-table-column label="联系人" prop="name" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.name }}</span>
</template>
</el-table-column>
<el-table-column label="类型" prop="incubator" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.incubator }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="330" class-name="small-padding fixed-width">
<template slot-scope="{row}">
<el-button type="primary" size="mini" @click="scoreDetail(row.id)">企业测评详情</el-button>
<el-button size="mini" type="primary" @click="enterpriseDetail(row.id)">企业详细信息</el-button>
<el-button size="mini" type="primary" @click="enterpriseCategoryQueryAll(row.id)">企业标签</el-button>
<el-table-column
label="操作"
align="center"
width="330"
class-name="small-padding fixed-width"
>
<template slot-scope="{ row }">
<el-button type="primary" size="mini" @click="scoreDetail(row.id)"
>企业测评详情</el-button
>
<el-button
size="mini"
type="primary"
@click="enterpriseDetail(row.id)"
>企业详细信息</el-button
>
<el-button
size="mini"
type="primary"
@click="enterpriseCategoryQueryAll(row.id)"
>企业标签</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 企业标签弹框 -->
<el-dialog title="企业标签" :visible.sync="dialogFormVisible3">
<el-table v-loading="listLoading" :data="categoryList" border fit highlight-current-row>
<el-table
v-loading="listLoading"
:data="categoryList"
border
fit
highlight-current-row
>
<!-- <el-table-column label="标签ID" prop="ID" align="center">
<template slot-scope="{row}">
<span>{{ row.id }}</span>
@ -93,159 +136,356 @@
</el-table-column> -->
<el-table-column label="企业类型标签" prop="category" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.category }}</span>
</template>
</el-table-column>
</el-table>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="dialogFormVisible3=false">
<el-button type="primary" @click="dialogFormVisible3 = false">
确定
</el-button>
</div>
</el-dialog>
<!-- 企业详细信息弹框 -->
<el-dialog title="企业详细信息展示" :visible.sync="dialogFormVisible">
<el-form ref="dataForm" :model="detaillist" label-position="left" label-width="70px" style="width: auto; margin-left:50px; height:550px; overflow-y:auto; overflow-x:hidden">
<el-form
ref="dataForm"
:model="detaillist"
label-position="left"
label-width="70px"
style="
width: auto;
margin-left: 50px;
height: 550px;
overflow-y: auto;
overflow-x: hidden;
"
>
<el-form-item label="企业ID" prop="id" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.id }}</span>
<br /><span style="margin-left: 100px">{{ detaillist.id }}</span>
</el-form-item>
<el-form-item label="企业名称" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.name }}</span>
<el-form-item
label="企业名称"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{ detaillist.name }}</span>
</el-form-item>
<el-form-item label="企业是否被列入经营异常名录和严重违法失信企业名单" style="width: 180%;margin-top:-20px" prop="id" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.dishonestEnterprise }}</span>
<el-form-item
label="企业是否被列入经营异常名录和严重违法失信企业名单"
style="width: 180%; margin-top: -20px"
prop="id"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.dishonestEnterprise
}}</span>
</el-form-item>
<el-form-item label="产品和服务是否属于国家规定的禁止、限制和淘汰类" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.forbidProduct }}</span>
<el-form-item
label="产品和服务是否属于国家规定的禁止、限制和淘汰类"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.forbidProduct
}}</span>
</el-form-item>
<el-form-item label="今年销售收入总额,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.grossSalesOne }}</span>
<el-form-item
label="今年销售收入总额,单位:万"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.grossSalesOne
}}</span>
</el-form-item>
<el-form-item label="前年销售收入总额,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.grossSalesThree }}</span>
<el-form-item
label="前年销售收入总额,单位:万"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.grossSalesThree
}}</span>
</el-form-item>
<el-form-item label="去年销售收入总额,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.grossSalesTwo }}</span>
<el-form-item
label="去年销售收入总额,单位:万"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.grossSalesTwo
}}</span>
</el-form-item>
<el-form-item label="是否拥有有效期内高新技术企业资格证书" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.highNewTechnologyEnterprise }}</span>
<el-form-item
label="是否拥有有效期内高新技术企业资格证书"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.highNewTechnologyEnterprise
}}</span>
</el-form-item>
<el-form-item label="高新技术产品(服务)费用,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.highNewTechnologyFee }}</span>
<el-form-item
label="高新技术产品(服务)费用,单位:万"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.highNewTechnologyFee
}}</span>
</el-form-item>
<el-form-item label="前一年及当年内有无发生重大安全、重大质量事故和严重环境违法、科研严重失信行为" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.illegalAct }}</span>
<el-form-item
label="前一年及当年内有无发生重大安全、重大质量事故和严重环境违法、科研严重失信行为"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.illegalAct
}}</span>
</el-form-item>
<el-form-item label="Ⅰ类知识产权数" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.intellectualPropertyRightI }}</span>
<el-form-item
label="Ⅰ类知识产权数"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.intellectualPropertyRightI
}}</span>
</el-form-item>
<el-form-item label="Ⅱ类知识产权" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.intellectualPropertyRightII }}</span>
<el-form-item
label="Ⅱ类知识产权"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.intellectualPropertyRightII
}}</span>
</el-form-item>
<el-form-item label="对企业主要产品(服务)发挥核心支持作用的技术" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.mainProductTechnology }}</span>
<el-form-item
label="对企业主要产品(服务)发挥核心支持作用的技术"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.mainProductTechnology
}}</span>
</el-form-item>
<el-form-item label="企业是否拥有经认定的省部级以上研发机构" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.organization }}</span>
<el-form-item
label="企业是否拥有经认定的省部级以上研发机构"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.organization
}}</span>
</el-form-item>
<el-form-item label="今年研发费用总额" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.rdexpensesOne }}</span>
<el-form-item
label="今年研发费用总额"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.rdexpensesOne
}}</span>
</el-form-item>
<el-form-item label="前年研发费用总额" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.rdexpensesThree }}</span>
<el-form-item
label="前年研发费用总额"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.rdexpensesThree
}}</span>
</el-form-item>
<el-form-item label="去年研发费用总额" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.rdexpensesTwo }}</span>
<el-form-item
label="去年研发费用总额"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.rdexpensesTwo
}}</span>
</el-form-item>
<el-form-item label="企业近五年内是否主导制定过国际标准、国家标准或行业标准" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.standard }}</span>
<el-form-item
label="企业近五年内是否主导制定过国际标准、国家标准或行业标准"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.standard
}}</span>
</el-form-item>
<el-form-item label="科技人员总数" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.technicians }}</span>
<el-form-item
label="科技人员总数"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.technicians
}}</span>
</el-form-item>
<el-form-item label="企业近五年内是否获得过国家级科技奖励,并在获奖单位中排在前三名" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.technologyAwards }}</span>
<el-form-item
label="企业近五年内是否获得过国家级科技奖励,并在获奖单位中排在前三名"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.technologyAwards
}}</span>
</el-form-item>
<el-form-item label="资产总额,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.totalAssets }}</span>
<el-form-item
label="资产总额,单位:万"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.totalAssets
}}</span>
</el-form-item>
<el-form-item label="今年成本费用支出总额,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.totalCostExpensesOne }}</span>
<el-form-item
label="今年成本费用支出总额,单位:万"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.totalCostExpensesOne
}}</span>
</el-form-item>
<el-form-item label="前年成本费用支出总额,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.totalCostExpensesThree }}</span>
<el-form-item
label="前年成本费用支出总额,单位:万"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.totalCostExpensesThree
}}</span>
</el-form-item>
<el-form-item label="去年成本费用支出总额,单位:万" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.totalCostExpensesTwo }}</span>
<el-form-item
label="去年成本费用支出总额,单位:万"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.totalCostExpensesTwo
}}</span>
</el-form-item>
<el-form-item label="职工总数" prop="id" style="width: 180%;margin-top:-20px" label-width="auto">
<br><span style="margin-left:100px;">{{ detaillist.workforce }}</span>
<el-form-item
label="职工总数"
prop="id"
style="width: 180%; margin-top: -20px"
label-width="auto"
>
<br /><span style="margin-left: 100px">{{
detaillist.workforce
}}</span>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="dialogFormVisible=false">
<el-button type="primary" @click="dialogFormVisible = false">
确定
</el-button>
</div>
</el-dialog>
<!-- 测评详细信息弹框 -->
<el-dialog title="测评详细信息" :visible.sync="dialogFormVisible1">
<el-form ref="dataForm" :model="enterpriseScore" label-position="left" label-width="70px" style="width: 400px; margin-left:50px;">
<el-form
ref="dataForm"
:model="enterpriseScore"
label-position="left"
label-width="70px"
style="width: 50%; margin-left: 50px"
>
<el-form-item label="企业ID" prop="id" style="width: 180%">
<span style="margin-left:200px;">{{ enterpriseScore.id }}</span>
<span style="margin-left: 200px">{{ enterpriseScore.id }}</span>
</el-form-item>
<el-form-item label="测评时间" prop="createdAt" style="width: 180%">
<span style="margin-left:200px;">{{ enterpriseScore.createdAt }}</span>
<span style="margin-left: 200px">{{
enterpriseScore.createdAt
}}</span>
</el-form-item>
<el-form-item label="测评结果" prop="result" style="width: 180%">
<span v-if="enterpriseScore.result === 1" style="margin-left:200px;">通过</span>
<span v-if="enterpriseScore.result === 0" style="margin-left:200px;">未通过</span>
<span v-if="enterpriseScore.result === 1" style="margin-left: 200px"
>通过</span
>
<span v-if="enterpriseScore.result === 0" style="margin-left: 200px"
>未通过</span
>
</el-form-item>
<el-form-item label="理由" prop="reason" style="width: 180%">
<span style="margin-left:200px;">{{ enterpriseScore.reason }}</span>
<span style="margin-left: 200px">{{ enterpriseScore.reason }}</span>
</el-form-item>
<el-form-item label="测评类型" prop="type" style="width: 180%">
<span v-if="enterpriseScore.type === 0" style="margin-left:200px;">科小</span>
<span v-if="enterpriseScore.type === 1" style="margin-left:200px;">高企</span>
<span v-if="enterpriseScore.type === 0" style="margin-left: 200px"
>科小</span
>
<span v-if="enterpriseScore.type === 1" style="margin-left: 200px"
>高企</span
>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="dialogFormVisible1=false">
<el-button type="primary" @click="dialogFormVisible1 = false">
确定
</el-button>
</div>
</el-dialog>
<pagination v-show="total>0" :total="total" :page.sync="data.pageNum" :limit.sync="data.pageSize" @pagination="getList" />
<pagination
v-show="total > 0"
:total="total"
:page.sync="data.pageNum"
:limit.sync="data.pageSize"
@pagination="getList"
/>
</div>
</div>
</template>
@ -315,7 +555,7 @@ export default {
async getList() {
const that = this
that.listLoading = true
await api.enterpriseQueryAll(that.data).then((res) => {
await api.enterpriseQueryAll(that.data).then(res => {
that.enterpriselist = res.list
that.total = res.total - 0
setTimeout(() => {
@ -342,7 +582,7 @@ export default {
that.detaillist[key] = ''
}
that.listLoading = true
await api.enterpriseAdditionalQueryById(id).then((res) => {
await api.enterpriseAdditionalQueryById(id).then(res => {
if (res) {
that.detaillist = res
}
@ -357,7 +597,7 @@ export default {
const that = this
that.listLoading = true
await api.enterpriseCategoryQueryAll(id).then((res) => {
await api.enterpriseCategoryQueryAll(id).then(res => {
that.categoryList = res.list
that.dialogFormVisible3 = true
that.listLoading = false
@ -366,7 +606,7 @@ export default {
async scoreDetail(id) {
const that = this
that.listLoading = true
await api.enterpriseScoreQueryById(id).then((res) => {
await api.enterpriseScoreQueryById(id).then(res => {
that.enterpriseScore = res
setTimeout(() => {
that.listLoading = false
@ -379,6 +619,4 @@ export default {
</script>
<style scoped>
</style>

202
src/views/firstPages/notice.vue

@ -2,42 +2,80 @@
<div class="app-container">
<!-- 头部搜索添加 -->
<div class="filter-container">
<el-select v-model="policyType" placeholder="需求类型" clearable style="width: 290px;margin-left: 10px;" class="filter-item">
<el-option v-for="(item,index) in incubator" :key="index" :value="item" />
<el-select
v-model="policyType"
placeholder="需求类型"
clearable
style="width: 290px; margin-left: 10px"
class="filter-item"
>
<el-option
v-for="(item, index) in incubator"
:key="index"
:value="item"
/>
</el-select>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-search" @click="Search">
<el-button
class="filter-item"
style="margin-left: 10px"
type="primary"
icon="el-icon-search"
@click="Search"
>
搜索
</el-button>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="CarouselAdd">
<el-button
class="filter-item"
style="margin-left: 10px"
type="primary"
icon="el-icon-edit"
@click="CarouselAdd"
>
添加
</el-button>
</div>
<!-- 发榜信息列表 -->
<el-table v-loading="listLoading" :data="polictList" border fit highlight-current-row style="width: 100%;">
<el-table
v-loading="listLoading"
:data="polictList"
border
fit
highlight-current-row
style="width: 100%"
>
<el-table-column label="ID" prop="id" align="center" width="80">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.id }}</span>
</template>
</el-table-column>
<el-table-column label="创建时间" prop="createdAt" align="center" width="180">
<template slot-scope="{row}">
<el-table-column
label="创建时间"
prop="createdAt"
align="center"
width="180"
>
<template slot-scope="{ row }">
<span>{{ row.createdAt }}</span>
</template>
</el-table-column>
<el-table-column label="发榜内容" prop="content" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.content }}</span>
</template>
</el-table-column>
<el-table-column label="发榜类型" prop="type" align="center" width="160">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<el-tag type="published">{{ incubator[row.type] }}</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="230" class-name="small-padding fixed-width">
<template slot-scope="{row}">
<el-table-column
label="操作"
align="center"
width="230"
class-name="small-padding fixed-width"
>
<template slot-scope="{ row }">
<el-button type="primary" size="mini" @click="handleUpdate(row)">
修改
</el-button>
@ -51,68 +89,105 @@
</el-table-column>
</el-table>
<!-- 显示当前页数且显示所有页数可以跳转 -->
<pagination v-show="total>0" :total="total" :page.sync="data.pageNum" :limit.sync="data.pageSize" @pagination="getList" />
<pagination
v-show="total > 0"
:total="total"
:page.sync="data.pageNum"
:limit.sync="data.pageSize"
@pagination="getList"
/>
<!-- 修改发榜信息 -->
<el-dialog title="修改" :visible.sync="dialogFormVisible">
<el-form ref="dataForm" :model="temp" label-position="left" label-width="70px" style="width: 400px; margin-left:50px;">
<el-form
ref="dataForm"
:model="temp"
label-position="left"
label-width="70px"
style="width: 50%; margin-left: 50px"
>
<!-- <el-form-item label="发榜内容" prop="content" align="center">
<el-input v-model="temp.content" />
</el-form-item> -->
<el-form-item label="需求类型" prop="statusType" style="width: 180%">
<el-select v-model="policyType1" placeholder="类型" clearable style="width: 190px" class="filter-item">
<el-option v-for="(item,index) in incubator" :key="index" :value="item" />
<el-select
v-model="policyType1"
placeholder="类型"
clearable
style="width: 190px"
class="filter-item"
>
<el-option
v-for="(item, index) in incubator"
:key="index"
:value="item"
/>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">
取消
</el-button>
<el-button type="primary" @click="Commit">
提交
</el-button>
<el-button @click="dialogFormVisible = false"> 取消 </el-button>
<el-button type="primary" @click="Commit"> 提交 </el-button>
</div>
</el-dialog>
<!-- 报名列表界面 -->
<el-dialog title="揭榜列表" :visible.sync="dialogFormVisible2">
<el-table v-loading="listLoading" :data="enrollList" border fit highlight-current-row style="width: 100%;">
<el-table
v-loading="listLoading"
:data="enrollList"
border
fit
highlight-current-row
style="width: 100%"
>
<el-table-column label="企业名称" prop="enterpriseName" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.enterpriseName }}</span>
</template>
</el-table-column>
<el-table-column label="联系人" prop="contacts" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.contacts }}</span>
</template>
</el-table-column>
<el-table-column label="联系电话" prop="contactPhone" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.contactPhone }}</span>
</template>
</el-table-column>
<el-table-column label="揭榜理由" prop="remark" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.remark }}</span>
</template>
</el-table-column>
</el-table>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="dialogFormVisible2=false">
<el-button type="primary" @click="dialogFormVisible2 = false">
确定
</el-button>
</div>
<pagination v-show="total1>0" :total="total1" :page.sync="data1.pageNum" :limit.sync="data1.pageSize" @pagination="getenroll" />
<pagination
v-show="total1 > 0"
:total="total1"
:page.sync="data1.pageNum"
:limit.sync="data1.pageSize"
@pagination="getenroll"
/>
</el-dialog>
<!-- 添加通知界面 -->
<el-dialog title="修改" :visible.sync="dialogFormVisible1">
<el-form ref="dataForm" :model="addCarousel" label-position="left" label-width="70px" style="width: 400px; margin-left:50px;">
<el-form
ref="dataForm"
:model="addCarousel"
label-position="left"
label-width="70px"
style="width: 50%; margin-left: 50px"
>
<el-form-item label="需求内容" prop="content" style="width: 180%">
<textarea v-model="addCarousel.content" style="max-width: 100%;width: 100%;height: 260px" />
<textarea
v-model="addCarousel.content"
style="max-width: 100%; width: 100%; height: 260px"
/>
</el-form-item>
<el-form-item label="需求id" prop="trainPlace" style="width: 180%">
@ -120,19 +195,24 @@
</el-form-item>
<el-form-item label="需求类型" prop="type" style="width: 180%">
<el-select v-model="policyType2" placeholder="培训类型" clearable style="width: 190px" class="filter-item">
<el-option v-for="(item,index) in incubator" :key="index" :value="item" />
<el-select
v-model="policyType2"
placeholder="培训类型"
clearable
style="width: 190px"
class="filter-item"
>
<el-option
v-for="(item, index) in incubator"
:key="index"
:value="item"
/>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible1 = false">
取消
</el-button>
<el-button type="primary" @click="CommitAdd">
提交
</el-button>
<el-button @click="dialogFormVisible1 = false"> 取消 </el-button>
<el-button type="primary" @click="CommitAdd"> 提交 </el-button>
</div>
</el-dialog>
</div>
@ -159,8 +239,18 @@ export default {
type: ''
},
polictList: [],
typeList: { '线上': 0, '线下': 1 },
incubator: ['技术转移转化', '工业设计咨询', '科技金融建设', '政策项目咨询', '知识产权咨询', '创新体系建设', '创新创业咨询', '信息技术服务', '协同创新服务'],
typeList: { 线上: 0, 线下: 1 },
incubator: [
'技术转移转化',
'工业设计咨询',
'科技金融建设',
'政策项目咨询',
'知识产权咨询',
'创新体系建设',
'创新创业咨询',
'信息技术服务',
'协同创新服务'
],
policyType: undefined,
policyType1: undefined,
policyType2: undefined,
@ -186,9 +276,7 @@ export default {
}
},
computed: {
...mapGetters([
'name'
])
...mapGetters(['name'])
},
async created() {
this.getList()
@ -203,7 +291,7 @@ export default {
that.data.type = i
}
}
await api.QueryDemandPublish(that.data).then((res) => {
await api.QueryDemandPublish(that.data).then(res => {
that.polictList = res.list
that.total = res.total - 0
that.listLoading = false
@ -211,7 +299,7 @@ export default {
return
} else {
that.data.type = ''
await api.QueryDemandPublish(that.data).then((res) => {
await api.QueryDemandPublish(that.data).then(res => {
that.polictList = res.list
that.total = res.total - 0
that.listLoading = false
@ -222,7 +310,7 @@ export default {
async getList() {
const that = this
that.listLoading = true
await api.QueryDemandPublish(that.data).then((res) => {
await api.QueryDemandPublish(that.data).then(res => {
that.polictList = res.list
that.total = res.total - 0
@ -249,7 +337,7 @@ export default {
that.temp.type = i
}
}
await api.demandPublishUpdate(that.temp).then((res) => {
await api.demandPublishUpdate(that.temp).then(res => {
this.getList()
that.dialogFormVisible = false
})
@ -259,7 +347,7 @@ export default {
that.listLoading = true
that.dialogFormVisible2 = true
that.showid = id
await api.demandCandidateAll(id).then((res) => {
await api.demandCandidateAll(id).then(res => {
console.log(res)
that.total1 = res.total - 0
that.enrollList = res.list
@ -270,7 +358,7 @@ export default {
const that = this
that.listLoading = true
that.data1.id = that.showid
await api.demandCandidateAll(that.data1.id).then((res) => {
await api.demandCandidateAll(that.data1.id).then(res => {
that.total1 = res.total - 0
that.enrollList = res.list
@ -280,7 +368,7 @@ export default {
})
},
async handleDelete(id) {
await api.demandPublishDelete(id).then((res) => {
await api.demandPublishDelete(id).then(res => {
this.getList()
})
},
@ -304,7 +392,7 @@ export default {
return
}
}
await api.demandPublishAdd(that.addCarousel).then((res) => {
await api.demandPublishAdd(that.addCarousel).then(res => {
that.dialogFormVisible1 = false
that.getList()
})

289
src/views/firstPages/policy.vue

@ -2,74 +2,152 @@
<div class="app-container">
<!-- 头部搜索添加 -->
<div class="filter-container">
<el-select v-model="policyType" placeholder="政策类型" clearable style="width: 190px" class="filter-item">
<el-option v-for="(item,index) in typeList" :key="index" :value="index" />
<el-input
placeholder="政策标题"
style="width: 190px; margin-right: 10px"
class="filter-item"
v-model="policyTitle"
/>
<el-select
v-model="policyType"
placeholder="政策类型"
clearable
style="width: 190px"
class="filter-item"
>
<el-option
v-for="(item, index) in typeList"
:key="index"
:value="index"
/>
</el-select>
<el-select v-model="policyStatus" placeholder="审核状态" clearable class="filter-item" style="width: 190px;margin-left:10px" value="1">
<el-option v-for="(item,index) in status" :key="index" :value="index" />
<el-select
v-model="policyStatus"
placeholder="审核状态"
clearable
class="filter-item"
style="width: 190px; margin-left: 10px"
value="1"
>
<el-option
v-for="(item, index) in status"
:key="index"
:value="index"
/>
</el-select>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-search" @click="Search">
<el-button
class="filter-item"
style="margin-left: 10px"
type="primary"
icon="el-icon-search"
@click="Search"
>
搜索
</el-button>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="policyAdd">
<el-button
class="filter-item"
style="margin-left: 10px"
type="primary"
icon="el-icon-edit"
@click="policyAdd"
>
添加
</el-button>
</div>
<!-- 政策信息列表 -->
<el-table v-loading="listLoading" :data="polictList" border fit highlight-current-row style="width: 100%;">
<el-table
v-loading="listLoading"
:data="polictList"
border
fit
highlight-current-row
style="width: 100%"
>
<el-table-column label="ID" prop="id" align="center" width="80">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.id }}</span>
</template>
</el-table-column>
<el-table-column label="标题" prop="title" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.title }}</span>
</template>
</el-table-column>
<el-table-column label="时间" prop="time" align="center" width="180">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.publishTime }}</span>
</template>
</el-table-column>
<el-table-column label="部门" prop="depart" align="center" width="180">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.publishDepart }}</span>
</template>
</el-table-column>
<el-table-column label="原文链接" prop="url" align="center" width="180">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<!-- <span>{{ row.titleUrl }} -->
<a :href="row.titleUrl" target="_blank">点击此处跳转</a>
<!-- </span> -->
</template>
</el-table-column>
<el-table-column label="审核状态" prop="status" align="center" width="180">
<template slot-scope="{row}">
<el-table-column
label="审核状态"
prop="status"
align="center"
width="180"
>
<template slot-scope="{ row }">
<!-- <span>{{ row.auditStatus }}</span> -->
<el-tag v-if="row.auditStatus === 0" style="background:#FFBB77;" type="published">
<el-tag
v-if="row.auditStatus === 0"
style="background: #ffbb77"
type="published"
>
刚入库
</el-tag>
<el-tag v-if="row.auditStatus === 1" type="published">
审核通过
</el-tag>
<el-tag v-if="row.auditStatus === 2" style="background:#FF5151;color:white" type="draft">
<el-tag
v-if="row.auditStatus === 2"
style="background: #ff5151; color: white"
type="draft"
>
审核不通过
</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="230" class-name="small-padding fixed-width">
<template slot-scope="{row}">
<el-table-column
label="操作"
align="center"
width="230"
class-name="small-padding fixed-width"
>
<template slot-scope="{ row }">
<el-button type="primary" size="mini" @click="handleUpdate(row)">
修改
</el-button>
<el-button v-if="row.auditStatus === 2" size="mini" type="success" @click="handleModifyStatus(row,1)">
<el-button
v-if="row.auditStatus === 2"
size="mini"
type="success"
@click="handleModifyStatus(row, 1)"
>
通过
</el-button>
<el-button v-if="row.auditStatus === 1" size="mini" @click="handleModifyStatus(row,2)">
<el-button
v-if="row.auditStatus === 1"
size="mini"
@click="handleModifyStatus(row, 2)"
>
未通过
</el-button>
<el-button v-if="row.auditStatus === 0" size="mini" type="success" @click="handleModifyStatus(row,1)">
<el-button
v-if="row.auditStatus === 0"
size="mini"
type="success"
@click="handleModifyStatus(row, 1)"
>
通过
</el-button>
<el-button size="mini" type="danger" @click="handleDelete(row.id)">
@ -79,11 +157,22 @@
</el-table-column>
</el-table>
<!-- 显示当前页数且显示所有页数可以跳转 -->
<pagination v-show="total>0" :total="total" :page.sync="data.pageNum" :limit.sync="data.pageSize" @pagination="getList" />
<pagination
v-show="total > 0"
:total="total"
:page.sync="data.pageNum"
:limit.sync="data.pageSize"
@pagination="getList"
/>
<!-- 修改政策界面 -->
<el-dialog title="修改" :visible.sync="dialogFormVisible">
<el-form ref="dataForm" :model="temp" label-position="left" label-width="70px" style="width: 400px; margin-left:50px;">
<el-form
ref="dataForm"
:model="temp"
label-position="left"
label-width="70px"
style="width: 50%; margin-left: 50px"
>
<el-form-item label="政策标题" prop="title" style="width: 180%">
<el-input v-model="temp.title" />
</el-form-item>
@ -99,7 +188,21 @@
<el-form-item label="原文内容" prop="content" style="width: 180%">
<!-- <el-button @click="show111 = !show111">原文/编辑</el-button> -->
<!-- <textarea v-if="show111 === false" style="width: 100%;height: 300px" v-text="temp.content" /> -->
<div v-if="show111 === false" contentEditable="true" style="border:1px solid #000;border-radius:10px 0 0 10px;padding: 20px;background: #F5F5F5;height: 260px;overflow-y: auto;" v-html="temp.content">'</div>
<div
v-if="show111 === false"
contentEditable="true"
style="
border: 1px solid #000;
border-radius: 10px 0 0 10px;
padding: 20px;
background: #f5f5f5;
height: 260px;
overflow-y: auto;
"
v-html="temp.content"
>
'
</div>
<!-- <textarea id="content" name="content" /> -->
</el-form-item>
@ -108,42 +211,74 @@
</el-form-item>
<el-form-item label="政策标签" prop="intro" style="width: 180%">
<el-input />
<el-button @click="addLabel">添加标签</el-button>
<el-input
style="margin-top: 4px"
v-for="(item, index) in temp.projectLabels"
:key="index"
v-model="temp.projectLabels[index]"
/>
</el-form-item>
<el-form-item label="政策类型" prop="type">
<el-select v-model="policyType1" placeholder="政策类型" clearable style="width: 190px" class="filter-item">
<el-option v-for="(item,index) in typeList" :key="index" :value="index" />
<el-select
v-model="policyType1"
placeholder="政策类型"
clearable
style="width: 190px"
class="filter-item"
>
<el-option
v-for="(item, index) in typeList"
:key="index"
:value="index"
/>
</el-select>
</el-form-item>
<el-form-item label="审核状态" prop="status">
<el-select v-model="policyStatus1" placeholder="审核状态" clearable class="filter-item" style="width: 190px;" value="1">
<el-option v-for="(item,index) in status" :key="index" :value="index" />
<el-select
v-model="policyStatus1"
placeholder="审核状态"
clearable
class="filter-item"
style="width: 190px"
value="1"
>
<el-option
v-for="(item, index) in status"
:key="index"
:value="index"
/>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">
取消
</el-button>
<el-button type="primary" @click="Commit">
提交
</el-button>
<el-button @click="dialogFormVisible = false"> 取消 </el-button>
<el-button type="primary" @click="Commit"> 提交 </el-button>
</div>
</el-dialog>
<!-- 添加政策界面 -->
<el-dialog title="修改" :visible.sync="dialogFormVisible1">
<el-form ref="dataForm" :model="temp" label-position="left" label-width="70px" style="width: 400px; margin-left:50px;">
<el-dialog title="添加" :visible.sync="dialogFormVisible1">
<el-form
ref="dataForm"
:model="temp"
label-position="left"
label-width="70px"
style="width: 50%; margin-left: 50px"
>
<el-form-item label="政策标题" prop="title" style="width: 180%">
<el-input v-model="addPolicy.title" />
</el-form-item>
<el-form-item label="发布时间" prop="time" style="width: 180%">
<!-- <el-input v-model="addPolicy.publishTime" placeholder="例如:2020/01/01" /> -->
<el-date-picker id="Time" v-model="addPolicy.publishTime" type="date" placeholder="请选择时间" />
<el-date-picker
id="Time"
v-model="addPolicy.publishTime"
type="date"
placeholder="请选择时间"
/>
</el-form-item>
<el-form-item label="原文链接" prop="titleUrl" style="width: 180%">
@ -157,22 +292,32 @@
<el-form-item label="原文内容" prop="content" style="width: 180%">
<!-- <el-button @click="show111 = !show111">原文/编辑</el-button> -->
<!-- <textarea v-if="show111 === false" style="width: 100%;height: 300px" v-text="temp.content" /> -->
<div v-if="show111 === false" id="Content" contentEditable="true" style="border:1px solid #000;border-radius:10px 0 0 10px;padding: 20px;background: #F5F5F5;height: 260px;overflow-y: auto;" v-html="addPolicy.content">'</div>
<div
v-if="show111 === false"
id="Content"
contentEditable="true"
style="
border: 1px solid #000;
border-radius: 10px 0 0 10px;
padding: 20px;
background: #f5f5f5;
height: 260px;
overflow-y: auto;
"
v-html="addPolicy.content"
>
'
</div>
<!-- <textarea id="content" name="content" /> -->
</el-form-item>
<el-form-item label="政策简介" prop="intro" style="width: 180%">
<el-input v-model="addPolicy.intro" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible1 = false">
取消
</el-button>
<el-button type="primary" @click="CommitAdd">
提交
</el-button>
<el-button @click="dialogFormVisible1 = false"> 取消 </el-button>
<el-button type="primary" @click="CommitAdd"> 提交 </el-button>
</div>
</el-dialog>
</div>
@ -193,18 +338,20 @@ export default {
total: 0,
listLoading: true,
data: {
title: '',
auditStatus: '',
pageNum: 1,
pageSize: 20,
type: ''
},
polictList: [],
typeList: { '申报通知': 0, '公告公示': 1, '政策动态': 2, '申报指南': 3 },
typeList: { 申报通知: 0, 公告公示: 1, 政策动态: 2, 申报指南: 3 },
policyTitle: '',
policyType: undefined,
policyType1: undefined,
policyStatus: undefined,
policyStatus1: undefined,
status: { '刚入库': 0, '审核通过': 1, '审核不通过': 2 },
status: { 刚入库: 0, 审核通过: 1, 审核不通过: 2 },
textMap: {
update: 'Edit',
create: 'Create'
@ -224,9 +371,7 @@ export default {
}
},
computed: {
...mapGetters([
'name'
])
...mapGetters(['name'])
},
created() {
this.getList()
@ -235,10 +380,14 @@ export default {
async Search() {
const that = this
that.listLoading = true
if (that.typeList[`${that.policyType}`] === undefined && that.status[`${that.policyStatus}`] === undefined) {
that.data.title = that.policyTitle
if (
that.typeList[`${that.policyType}`] === undefined &&
that.status[`${that.policyStatus}`] === undefined
) {
that.data.type = ''
that.data.auditStatus = ''
await api.PolicyDetail(this.data).then((res) => {
await api.PolicyDetail(this.data).then(res => {
that.polictList = res.list
that.total = res.total - 0
that.listLoading = false
@ -246,7 +395,7 @@ export default {
} else if (that.typeList[`${that.policyType}`] === undefined) {
that.data.type = ''
that.data.auditStatus = that.status[`${that.policyStatus}`]
await api.PolicyDetail(this.data).then((res) => {
await api.PolicyDetail(this.data).then(res => {
that.polictList = res.list
that.total = res.total - 0
that.listLoading = false
@ -254,7 +403,7 @@ export default {
} else if (that.status[`${that.policyStatus}`] === undefined) {
that.data.type = that.typeList[`${that.policyType}`]
that.data.auditStatus = ''
await api.PolicyDetail(this.data).then((res) => {
await api.PolicyDetail(this.data).then(res => {
that.polictList = res.list
that.total = res.total - 0
that.listLoading = false
@ -263,8 +412,7 @@ export default {
that.data.pageNum = 1
that.data.type = that.typeList[`${that.policyType}`]
that.data.auditStatus = that.status[`${that.policyStatus}`]
await api.PolicyDetail(this.data).then((res) => {
await api.PolicyDetail(that.data).then(res => {
that.polictList = res.list
that.total = res.total - 0
that.listLoading = false
@ -274,7 +422,8 @@ export default {
async getList() {
const that = this
that.listLoading = true
await api.PolicyDetail(that.data).then((res) => {
await api.PolicyDetail(that.data).then(res => {
console.log(that.data)
that.polictList = res.list
that.total = res.total - 0
@ -307,7 +456,13 @@ export default {
const that = this
that.temp.type = that.typeList[`${that.policyType1}`]
that.temp.auditStatus = that.status[`${that.policyStatus1}`]
await api.PolicyUpdate(that.temp).then((res) => {
for (let i = 0; i < that.temp.projectLabels.length; i++) {
if (that.temp.projectLabels[i] === '') {
that.temp.projectLabels.splice(i, 1)
i -= 1
}
}
await api.PolicyUpdate(that.temp).then(res => {
this.getList()
that.dialogFormVisible = false
})
@ -315,12 +470,12 @@ export default {
async handleModifyStatus(detail, num) {
this.listLoading = true
detail.auditStatus = num
await api.PolicyUpdate(detail).then((res) => {
await api.PolicyUpdate(detail).then(res => {
this.listLoading = false
})
},
async handleDelete(id) {
await api.PolicyDelete(id).then((res) => {
await api.PolicyDelete(id).then(res => {
this.getList()
})
},
@ -345,9 +500,13 @@ export default {
return
}
}
api.PolicyAdd(that.addPolicy).then((res) => {
api.PolicyAdd(that.addPolicy).then(res => {
that.dialogFormVisible1 = false
})
},
addLabel() {
this.temp.projectLabels = this.temp.projectLabels.concat([''])
console.log(this.temp.projectLabels)
}
}
}

266
src/views/firstPages/rotation.vue

@ -2,71 +2,125 @@
<div class="app-container">
<!-- 头部搜索添加 -->
<div class="filter-container">
<el-select v-model="policyType" placeholder="跳转类型" clearable style="width: 190px" class="filter-item">
<el-option v-for="(item,index) in typeList" :key="index" :value="index" />
<el-select
v-model="policyType"
placeholder="跳转类型"
clearable
style="width: 190px"
class="filter-item"
>
<el-option
v-for="(item, index) in typeList"
:key="index"
:value="index"
/>
</el-select>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-search" @click="Search">
<el-button
class="filter-item"
style="margin-left: 10px"
type="primary"
icon="el-icon-search"
@click="Search"
>
搜索
</el-button>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="CarouselAdd">
<el-button
class="filter-item"
style="margin-left: 10px"
type="primary"
icon="el-icon-edit"
@click="CarouselAdd"
>
添加
</el-button>
</div>
<!-- 轮播图信息列表 -->
<el-table v-loading="listLoading" :data="polictList" border fit highlight-current-row style="width: 100%;">
<el-table
v-loading="listLoading"
:data="polictList"
border
fit
highlight-current-row
style="width: 100%"
>
<el-table-column label="ID" prop="id" align="center" width="80">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.id }}</span>
</template>
</el-table-column>
<el-table-column label="图片路径" prop="url" align="center" width="350">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<!-- <span>{{ row.url }}</span> -->
<!-- <a :href="row.url" target="_blank">{{ row.url }}</a> -->
<img :src="row.url" style="height:200px;width:300px">
<img :src="row.url" style="height: 200px; width: 300px" />
</template>
</el-table-column>
<el-table-column label="跳转路径" prop="jumpUrl" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.jumpUrl }}</span>
</template>
</el-table-column>
<el-table-column label="图片参数" prop="param" align="center" width="180">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.param }}</span>
</template>
</el-table-column>
<el-table-column label="跳转类型" prop="jumpType" align="center" width="180">
<template slot-scope="{row}">
<el-table-column
label="跳转类型"
prop="jumpType"
align="center"
width="180"
>
<template slot-scope="{ row }">
<span v-if="row.jumpType === 0">不跳转</span>
<span v-if="row.jumpType === 1">H5</span>
<span v-if="row.jumpType === 2">发榜详情</span>
<span v-if="row.jumpType === 3">培训通知</span>
</template>
</el-table-column>
<el-table-column label="创建时间" prop="createdAt" align="center" width="160">
<template slot-scope="{row}">
<el-table-column
label="创建时间"
prop="createdAt"
align="center"
width="160"
>
<template slot-scope="{ row }">
<span>{{ row.createdAt }}</span>
</template>
</el-table-column>
<el-table-column label="状态" prop="recStatus" align="center" width="160">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<el-tag v-if="row.recStatus === 0" type="published">正常</el-tag>
<el-tag v-if="row.recStatus === 1" style="background:#FFBB77;">禁用</el-tag>
<el-tag v-if="row.recStatus === 1" style="background: #ffbb77"
>禁用</el-tag
>
<el-tag v-if="row.recStatus === 2">已删除</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="230" class-name="small-padding fixed-width">
<template slot-scope="{row}">
<el-table-column
label="操作"
align="center"
width="230"
class-name="small-padding fixed-width"
>
<template slot-scope="{ row }">
<el-button type="primary" size="mini" @click="handleUpdate(row)">
修改
</el-button>
<el-button v-if="row.recStatus === 0" size="mini" @click="handleModifyStatus(row,1)">
<el-button
v-if="row.recStatus === 0"
size="mini"
@click="handleModifyStatus(row, 1)"
>
禁用
</el-button>
<el-button v-if="row.recStatus === 1" size="mini" type="success" @click="handleModifyStatus(row,0)">
<el-button
v-if="row.recStatus === 1"
size="mini"
type="success"
@click="handleModifyStatus(row, 0)"
>
启用
</el-button>
<el-button size="mini" type="danger" @click="handleDelete(row.id)">
@ -76,18 +130,50 @@
</el-table-column>
</el-table>
<!-- 显示当前页数且显示所有页数可以跳转 -->
<pagination v-show="total>0" :total="total" :page.sync="data.pageNum" :limit.sync="data.pageSize" @pagination="getList" />
<pagination
v-show="total > 0"
:total="total"
:page.sync="data.pageNum"
:limit.sync="data.pageSize"
@pagination="getList"
/>
<!-- 修改轮播图界面 -->
<el-dialog title="修改" :visible.sync="dialogFormVisible">
<el-form ref="dataForm" :model="temp" label-position="left" label-width="70px" style="width: 400px; margin-left:50px;">
<el-form
ref="dataForm"
:model="temp"
label-position="left"
label-width="70px"
style="width: 50%; margin-left: 50px"
>
<el-form-item label="图片" prop="url" style="width: 180%">
<!-- <el-input v-model="temp.url" /> -->
<img :src="temp.url" style="height:100px;width:150px">
<form id="uploadForm" enctype="multipart/form-data" style="float:right;">
<div style="height:98px;width:148px;border:1px solid gray;line-height:98px;text-align:center;cursor:pointer" @click="replace">
<img :src="temp.url" style="height: 100px; width: 150px" />
<form
id="uploadForm"
enctype="multipart/form-data"
style="float: right"
>
<div
style="
height: 98px;
width: 148px;
border: 1px solid gray;
line-height: 98px;
text-align: center;
cursor: pointer;
"
@click="replace"
>
选择图片
<input id="fileipt" type="file" name="files" style="display:none" accept="image/gif,image/jpeg,image/jpg,image/png,image/svg" @input="change">
<input
id="fileipt"
type="file"
name="files"
style="display: none"
accept="image/gif,image/jpeg,image/jpg,image/png,image/svg"
@input="change"
/>
</div>
</form>
</el-form-item>
@ -101,37 +187,78 @@
</el-form-item>
<el-form-item label="跳转类型" prop="jumpType" style="width: 180%">
<el-select v-model="policyType1" placeholder="跳转类型" clearable style="width: 190px" class="filter-item">
<el-option v-for="(item,index) in typeList" :key="index" :value="index" />
<el-select
v-model="policyType1"
placeholder="跳转类型"
clearable
style="width: 190px"
class="filter-item"
>
<el-option
v-for="(item, index) in typeList"
:key="index"
:value="index"
/>
</el-select>
</el-form-item>
<el-form-item label="状态" prop="recStatus" style="width: 180%">
<el-select v-model="statusType" placeholder="状态" clearable style="width: 190px" class="filter-item">
<el-option v-for="(item,index) in statusList" :key="index" :value="index" />
<el-select
v-model="statusType"
placeholder="状态"
clearable
style="width: 190px"
class="filter-item"
>
<el-option
v-for="(item, index) in statusList"
:key="index"
:value="index"
/>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">
取消
</el-button>
<el-button type="primary" @click="Commit">
提交
</el-button>
<el-button @click="dialogFormVisible = false"> 取消 </el-button>
<el-button type="primary" @click="Commit"> 提交 </el-button>
</div>
</el-dialog>
<!-- 添加轮播图界面 -->
<el-dialog title="添加" :visible.sync="dialogFormVisible1">
<el-form ref="dataForm" :model="addCarousel" label-position="left" label-width="70px" style="width: 400px; margin-left:50px;">
<el-form
ref="dataForm"
:model="addCarousel"
label-position="left"
label-width="70px"
style="width: 50%; margin-left: 50px"
>
<el-form-item label="图片" prop="url" style="width: 180%">
<img :src="addCarousel.url" style="height:100px;width:150px">
<form id="uploadForm1" enctype="multipart/form-data" style="float:right;">
<div style="height:98px;width:148px;border:1px solid gray;line-height:98px;text-align:center;cursor:pointer" @click="replace1">
<img :src="addCarousel.url" style="height: 100px; width: 150px" />
<form
id="uploadForm1"
enctype="multipart/form-data"
style="float: right"
>
<div
style="
height: 98px;
width: 148px;
border: 1px solid gray;
line-height: 98px;
text-align: center;
cursor: pointer;
"
@click="replace1"
>
选择图片
<input id="fileipt1" type="file" name="files" style="display:none" accept="image/gif,image/jpeg,image/jpg,image/png,image/svg" @input="change1">
<input
id="fileipt1"
type="file"
name="files"
style="display: none"
accept="image/gif,image/jpeg,image/jpg,image/png,image/svg"
@input="change1"
/>
</div>
</form>
</el-form-item>
@ -145,19 +272,24 @@
</el-form-item>
<el-form-item label="跳转类型" prop="jumpType" style="width: 180%">
<el-select v-model="policyType2" placeholder="跳转类型" clearable style="width: 190px" class="filter-item">
<el-option v-for="(item,index) in typeList" :key="index" :value="index" />
<el-select
v-model="policyType2"
placeholder="跳转类型"
clearable
style="width: 190px"
class="filter-item"
>
<el-option
v-for="(item, index) in typeList"
:key="index"
:value="index"
/>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible1 = false">
取消
</el-button>
<el-button type="primary" @click="CommitAdd">
提交
</el-button>
<el-button @click="dialogFormVisible1 = false"> 取消 </el-button>
<el-button type="primary" @click="CommitAdd"> 提交 </el-button>
</div>
</el-dialog>
</div>
@ -184,8 +316,8 @@ export default {
pageSize: 10
},
polictList: [],
typeList: { '不跳转': 0, 'H5': 1, '发榜详情': 2, '培训通知': 3 },
statusList: { '正常': 0, '禁用': 1, '已删除': 2 },
typeList: { 不跳转: 0, H5: 1, 发榜详情: 2, 培训通知: 3 },
statusList: { 正常: 0, 禁用: 1, 已删除: 2 },
policyType: undefined,
policyType1: undefined,
policyType2: undefined,
@ -207,9 +339,7 @@ export default {
}
},
computed: {
...mapGetters([
'name'
])
...mapGetters(['name'])
},
created() {
this.getList()
@ -220,14 +350,14 @@ export default {
that.listLoading = true
if (that.typeList[`${that.policyType}`] === undefined) {
that.data.jumpType = ''
await api.queryCarousel(that.data).then((res) => {
await api.queryCarousel(that.data).then(res => {
that.polictList = res.list
that.total = res.total - 0
that.listLoading = false
})
} else {
that.data.jumpType = that.typeList[`${that.policyType}`]
await api.queryCarousel(that.data).then((res) => {
await api.queryCarousel(that.data).then(res => {
that.polictList = res.list
that.total = res.total - 0
that.listLoading = false
@ -237,7 +367,7 @@ export default {
async getList() {
const that = this
that.listLoading = true
await api.queryCarousel(that.data).then((res) => {
await api.queryCarousel(that.data).then(res => {
that.polictList = res.list
that.total = res.total - 0
@ -271,7 +401,7 @@ export default {
const that = this
that.temp.jumpType = that.typeList[`${that.policyType1}`]
that.temp.recStatus = that.statusList[`${that.statusType}`]
await api.updateCarousel(that.temp).then((res) => {
await api.updateCarousel(that.temp).then(res => {
this.getList()
that.dialogFormVisible = false
})
@ -279,12 +409,12 @@ export default {
async handleModifyStatus(detail, num) {
this.listLoading = true
detail.recStatus = num
await api.activeAndStop(detail).then((res) => {
await api.activeAndStop(detail).then(res => {
this.listLoading = false
})
},
async handleDelete(id) {
await api.deleteCarousel(id).then((res) => {
await api.deleteCarousel(id).then(res => {
this.getList()
})
},
@ -303,7 +433,7 @@ export default {
that.addCarousel.jumpType = that.typeList[key]
}
}
await api.addCarousel(that.addCarousel).then((res) => {
await api.addCarousel(that.addCarousel).then(res => {
that.getList()
that.dialogFormVisible1 = false
})
@ -319,7 +449,7 @@ export default {
const that = this
var uploadForm = document.getElementById('uploadForm')
var formData = new FormData(uploadForm)
await Api.uploadImage(formData).then((res) => {
await Api.uploadImage(formData).then(res => {
// console.log(res)
that.temp.url = res[0].visitUrl
})
@ -332,7 +462,7 @@ export default {
const that = this
var uploadForm = document.getElementById('uploadForm1')
var formData = new FormData(uploadForm)
await Api.uploadImage(formData).then((res) => {
await Api.uploadImage(formData).then(res => {
// console.log(res)
that.addCarousel.url = res[0].visitUrl
})

295
src/views/firstPages/train.vue

@ -2,67 +2,137 @@
<div class="app-container">
<!-- 头部搜索添加 -->
<div class="filter-container">
<el-date-picker id="Time1" v-model="data.startTime" class="filter-item" type="date" placeholder="请选择开始时间" />
<el-date-picker
id="Time1"
v-model="data.startTime"
class="filter-item"
type="date"
placeholder="请选择开始时间"
/>
~
<el-date-picker id="Time2" v-model="data.endTime" class="filter-item" type="date" placeholder="请选择结束时间" />
<el-date-picker
id="Time2"
v-model="data.endTime"
class="filter-item"
type="date"
placeholder="请选择结束时间"
/>
<el-select v-model="policyType1" placeholder="孵化器" clearable style="width: 190px;margin-left: 10px;" class="filter-item">
<el-option v-for="(item,index) in incubator" :key="index" :value="item.incubator" />
<el-select
v-model="policyType1"
placeholder="孵化器"
clearable
style="width: 190px; margin-left: 10px"
class="filter-item"
>
<el-option
v-for="(item, index) in incubator"
:key="index"
:value="item.incubator"
/>
</el-select>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-search" @click="Search">
<el-button
class="filter-item"
style="margin-left: 10px"
type="primary"
icon="el-icon-search"
@click="Search"
>
搜索
</el-button>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="CarouselAdd">
<el-button
class="filter-item"
style="margin-left: 10px"
type="primary"
icon="el-icon-edit"
@click="CarouselAdd"
>
添加
</el-button>
</div>
<!-- 培训通知列表 -->
<el-table v-loading="listLoading" :data="polictList" border fit highlight-current-row style="width: 100%;">
<el-table
v-loading="listLoading"
:data="polictList"
border
fit
highlight-current-row
style="width: 100%"
>
<el-table-column label="ID" prop="id" align="center" width="80">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.id }}</span>
</template>
</el-table-column>
<el-table-column label="培训标题" prop="trainTitle" align="center" width="180">
<template slot-scope="{row}">
<el-table-column
label="培训标题"
prop="trainTitle"
align="center"
width="180"
>
<template slot-scope="{ row }">
<span>{{ row.trainTitle }}</span>
</template>
</el-table-column>
<el-table-column label="孵化器" prop="incubator" align="center" width="180">
<template slot-scope="{row}">
<el-table-column
label="孵化器"
prop="incubator"
align="center"
width="180"
>
<template slot-scope="{ row }">
<span>{{ row.incubator }}</span>
</template>
</el-table-column>
<el-table-column label="培训内容" prop="trainContent" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.trainContent }}</span>
</template>
</el-table-column>
<el-table-column label="培训地点" prop="trainPlace" align="center" width="120">
<template slot-scope="{row}">
<el-table-column
label="培训地点"
prop="trainPlace"
align="center"
width="120"
>
<template slot-scope="{ row }">
<span>{{ row.trainPlace }}</span>
</template>
</el-table-column>
<el-table-column label="培训讲师" prop="trainTeacher" align="center" width="120">
<template slot-scope="{row}">
<el-table-column
label="培训讲师"
prop="trainTeacher"
align="center"
width="120"
>
<template slot-scope="{ row }">
<span>{{ row.trainTeacher }}</span>
</template>
</el-table-column>
<el-table-column label="培训时间" prop="trainTime" align="center" width="160">
<template slot-scope="{row}">
<el-table-column
label="培训时间"
prop="trainTime"
align="center"
width="160"
>
<template slot-scope="{ row }">
<span>{{ row.trainTime }}</span>
</template>
</el-table-column>
<el-table-column label="培训类型" prop="type" align="center" width="160">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<el-tag v-if="row.type === 0" type="published">线上</el-tag>
<el-tag v-if="row.type === 1" style="background:#ccc;">线下</el-tag>
<el-tag v-if="row.type === 1" style="background: #ccc">线下</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="230" class-name="small-padding fixed-width">
<template slot-scope="{row}">
<el-table-column
label="操作"
align="center"
width="230"
class-name="small-padding fixed-width"
>
<template slot-scope="{ row }">
<el-button type="primary" size="mini" @click="handleUpdate(row)">
修改
</el-button>
@ -76,18 +146,39 @@
</el-table-column>
</el-table>
<!-- 显示当前页数且显示所有页数可以跳转 -->
<pagination v-show="total>0" :total="total" :page.sync="data.pageNum" :limit.sync="data.pageSize" @pagination="getList" />
<pagination
v-show="total > 0"
:total="total"
:page.sync="data.pageNum"
:limit.sync="data.pageSize"
@pagination="getList"
/>
<!-- 修改培训通知界面 -->
<el-dialog title="修改" :visible.sync="dialogFormVisible">
<el-form ref="dataForm" :model="temp" label-position="left" label-width="70px" style="width: 400px; margin-left:50px;">
<el-form
ref="dataForm"
:model="temp"
label-position="left"
label-width="70px"
style="width: 50%; margin-left: 50px"
>
<el-form-item label="培训标题" prop="trainTitle" style="width: 180%">
<el-input v-model="temp.trainTitle" />
</el-form-item>
<el-form-item label="孵化器" prop="incubator" style="width: 180%">
<el-select v-model="temp.incubator" placeholder="孵化器" clearable style="width: 190px" class="filter-item">
<el-option v-for="(item,index) in incubator" :key="index" :value="item.incubator" />
<el-select
v-model="temp.incubator"
placeholder="孵化器"
clearable
style="width: 190px"
class="filter-item"
>
<el-option
v-for="(item, index) in incubator"
:key="index"
:value="item.incubator"
/>
</el-select>
</el-form-item>
@ -104,63 +195,106 @@
</el-form-item>
<el-form-item label="培训时间" prop="trainTime" style="width: 180%">
<el-date-picker id="Time3" v-model="temp.trainTime" class="filter-item" type="date" placeholder="请选择结束时间" />
<el-date-picker
id="Time3"
v-model="temp.trainTime"
class="filter-item"
type="date"
placeholder="请选择结束时间"
/>
</el-form-item>
<el-form-item label="培训类型" prop="statusType" style="width: 180%">
<el-select v-model="statusType" placeholder="类型" clearable style="width: 190px" class="filter-item">
<el-option v-for="(item,index) in typeList" :key="index" :value="index" />
<el-select
v-model="statusType"
placeholder="类型"
clearable
style="width: 190px"
class="filter-item"
>
<el-option
v-for="(item, index) in typeList"
:key="index"
:value="index"
/>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">
取消
</el-button>
<el-button type="primary" @click="Commit">
提交
</el-button>
<el-button @click="dialogFormVisible = false"> 取消 </el-button>
<el-button type="primary" @click="Commit"> 提交 </el-button>
</div>
</el-dialog>
<!-- 报名列表界面 -->
<el-dialog title="报名列表" :visible.sync="dialogFormVisible2">
<el-table v-loading="listLoading" :data="enrollList" border fit highlight-current-row style="width: 100%;">
<el-table
v-loading="listLoading"
:data="enrollList"
border
fit
highlight-current-row
style="width: 100%"
>
<el-table-column label="企业名称" prop="enterpriseName" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.enterpriseName }}</span>
</template>
</el-table-column>
<el-table-column label="联系人" prop="contacts" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.contacts }}</span>
</template>
</el-table-column>
<el-table-column label="联系电话" prop="contactPhone" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.contactPhone }}</span>
</template>
</el-table-column>
<el-table-column label="报名人数" prop="applyNum" align="center">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.applyNum }}</span>
</template>
</el-table-column>
</el-table>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="dialogFormVisible2=false">
<el-button type="primary" @click="dialogFormVisible2 = false">
确定
</el-button>
</div>
<pagination v-show="total1>0" :total="total1" :page.sync="data1.pageNum" :limit.sync="data1.pageSize" @pagination="getenroll" />
<pagination
v-show="total1 > 0"
:total="total1"
:page.sync="data1.pageNum"
:limit.sync="data1.pageSize"
@pagination="getenroll"
/>
</el-dialog>
<!-- 添加通知界面 -->
<el-dialog title="修改" :visible.sync="dialogFormVisible1">
<el-form ref="dataForm" :model="addCarousel" label-position="left" label-width="70px" style="width: 400px; margin-left:50px;">
<el-form-item label="孵化器" prop="publishIncubatorName" style="width: 180%">
<el-select v-model="addCarousel.publishIncubatorName" placeholder="培训类型" clearable style="width: 190px" class="filter-item">
<el-option v-for="item in incubator" :key="item.id" :value="item.incubator" />
<el-form
ref="dataForm"
:model="addCarousel"
label-position="left"
label-width="70px"
style="width: 50%; margin-left: 50px"
>
<el-form-item
label="孵化器"
prop="publishIncubatorName"
style="width: 180%"
>
<el-select
v-model="addCarousel.publishIncubatorName"
placeholder="培训类型"
clearable
style="width: 190px"
class="filter-item"
>
<el-option
v-for="item in incubator"
:key="item.id"
:value="item.incubator"
/>
</el-select>
</el-form-item>
@ -177,26 +311,37 @@
</el-form-item>
<el-form-item label="培训时间" prop="trainTime" style="width: 180%">
<el-date-picker id="Time4" v-model="addCarousel.trainTime1" class="filter-item" type="date" placeholder="请选择结束时间" />
<el-date-picker
id="Time4"
v-model="addCarousel.trainTime1"
class="filter-item"
type="date"
placeholder="请选择结束时间"
/>
</el-form-item>
<el-form-item label="培训标题" prop="trainTitle" style="width: 180%">
<el-input v-model="addCarousel.trainTitle" />
</el-form-item>
<el-form-item label="培训类型" prop="type" style="width: 180%">
<el-select v-model="policyType2" placeholder="培训类型" clearable style="width: 190px" class="filter-item">
<el-option v-for="(item,index) in typeList" :key="index" :value="index" />
<el-select
v-model="policyType2"
placeholder="培训类型"
clearable
style="width: 190px"
class="filter-item"
>
<el-option
v-for="(item, index) in typeList"
:key="index"
:value="index"
/>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible1 = false">
取消
</el-button>
<el-button type="primary" @click="CommitAdd">
提交
</el-button>
<el-button @click="dialogFormVisible1 = false"> 取消 </el-button>
<el-button type="primary" @click="CommitAdd"> 提交 </el-button>
</div>
</el-dialog>
</div>
@ -225,7 +370,7 @@ export default {
startTime: ''
},
polictList: [],
typeList: { '线上': 0, '线下': 1 },
typeList: { 线上: 0, 线下: 1 },
incubator: [],
policyType: undefined,
policyType1: undefined,
@ -261,14 +406,12 @@ export default {
}
},
computed: {
...mapGetters([
'name'
])
...mapGetters(['name'])
},
async created() {
const that = this
this.getList()
await api.incubatorQuery().then((res) => {
await api.incubatorQuery().then(res => {
that.incubator = res
})
},
@ -285,14 +428,14 @@ export default {
if (that.policyType1 !== undefined) {
that.data.incubatorName = that.policyType1
await api.trainInformQuery(that.data).then((res) => {
await api.trainInformQuery(that.data).then(res => {
that.polictList = res.list
that.total = res.total - 0
that.listLoading = false
})
return
} else {
await api.trainInformQuery(that.data).then((res) => {
await api.trainInformQuery(that.data).then(res => {
that.polictList = res.list
that.total = res.total - 0
that.listLoading = false
@ -303,7 +446,7 @@ export default {
async getList() {
const that = this
that.listLoading = true
await api.trainInformQuery(that.data).then((res) => {
await api.trainInformQuery(that.data).then(res => {
that.polictList = res.list
that.total = res.total - 0
@ -342,7 +485,7 @@ export default {
that.temp.type = that.typeList[key]
}
}
await api.trainInformUpdate(that.temp).then((res) => {
await api.trainInformUpdate(that.temp).then(res => {
this.getList()
that.dialogFormVisible = false
})
@ -353,7 +496,7 @@ export default {
that.dialogFormVisible2 = true
that.data1.id = id
that.showid = id
await api.queryById(that.data1).then((res) => {
await api.queryById(that.data1).then(res => {
console.log(res)
that.total1 = res.total - 0
that.enrollList = res.list
@ -364,7 +507,7 @@ export default {
const that = this
that.listLoading = true
that.data1.id = that.showid
await api.queryById(that.data1).then((res) => {
await api.queryById(that.data1).then(res => {
that.total1 = res.total - 0
that.enrollList = res.list
@ -374,7 +517,7 @@ export default {
})
},
async handleDelete(id) {
await api.trainInformDelete(id).then((res) => {
await api.trainInformDelete(id).then(res => {
this.getList()
})
},
@ -394,7 +537,9 @@ export default {
}
}
for (var i = 0; i < that.incubator.length; i++) {
if (that.addCarousel.publishIncubatorName === that.incubator[i].incubator) {
if (
that.addCarousel.publishIncubatorName === that.incubator[i].incubator
) {
that.addCarousel.publishIncubatorId = that.incubator[i].id
}
}
@ -405,7 +550,7 @@ export default {
return
}
}
await api.trainInformAdd(that.addCarousel).then((res) => {
await api.trainInformAdd(that.addCarousel).then(res => {
that.dialogFormVisible1 = false
that.getList()
})

75
src/views/firstPages/typemanage.vue

@ -8,7 +8,7 @@
v-model="data.name"
placeholder="名字"
class="filter-item"
style="width: 190px;margin-left:10px"
style="width: 190px; margin-left: 10px"
clearable
/>
<el-select
@ -16,7 +16,7 @@
placeholder="类型"
clearable
class="filter-item"
style="width: 190px;margin-left:10px"
style="width: 190px; margin-left: 10px"
value="1"
>
<el-option label="项目类别" value="0" />
@ -24,18 +24,20 @@
</el-select>
<el-button
class="filter-item"
style="margin-left: 10px;"
style="margin-left: 10px"
type="primary"
icon="el-icon-search"
@click="Search"
>搜索</el-button>
>搜索</el-button
>
<el-button
class="filter-item"
style="margin-left: 10px;"
style="margin-left: 10px"
type="primary"
icon="el-icon-edit"
@click="AddCategory"
>添加</el-button>
>添加</el-button
>
</div>
<!-- 类型列表 -->
<el-table
@ -44,29 +46,43 @@
border
fit
highlight-current-row
style="width: 100%;"
style="width: 100%"
>
<el-table-column label="名字" prop="id" align="center" width="500">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.name }}</span>
</template>
</el-table-column>
<el-table-column label="产业类型" prop="title" align="center" width="500">
<template slot-scope="{row}">
<template slot-scope="{ row }">
<span>{{ row.type }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="230" class-name="small-padding fixed-width">
<template slot-scope="{row}">
<el-button type="primary" size="mini" @click="handleUpdate(row)">修改</el-button>
<el-button size="mini" type="danger" @click="handleDelete(row.id)">删除</el-button>
<el-table-column
label="操作"
align="center"
width="230"
class-name="small-padding fixed-width"
>
<template slot-scope="{ row }">
<el-button type="primary" size="mini" @click="handleUpdate(row)"
>修改</el-button
>
<el-button size="mini" type="danger" @click="handleDelete(row.id)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 修改界面 -->
<el-dialog title="修改" :visible.sync="dialogFormVisible1">
<el-form ref="dataForm" :model="temp" label-position="left" label-width="70px" style="width: 400px; margin-left:50px;">
<el-form
ref="dataForm"
:model="temp"
label-position="left"
label-width="70px"
style="width: 50%; margin-left: 50px"
>
<el-form-item label="名字" prop="name" style="width: 180%">
<el-input v-model="temp.name" />
</el-form-item>
@ -75,18 +91,15 @@
<el-select
v-model="temp.type"
placeholder="请选类型"
style="width: 400px;"
style="width: 50%"
>
<el-option label="项目类别" value="0" />
<el-option label="产业类别 " value="1" />
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible1 = false">
取消
</el-button>
<el-button @click="dialogFormVisible1 = false"> 取消 </el-button>
<el-button type="primary" @click="Commitupdate(temp.id)">
提交
</el-button>
@ -99,7 +112,7 @@
:model="addCategory"
label-position="left"
label-width="70px"
style="width: 400px; margin-left:50px;"
style="width: 50%; margin-left: 50px"
>
<el-form-item label="名字" prop="name" style="width: 100%">
<el-input v-model="addCategory.name" clearable />
@ -108,7 +121,7 @@
<el-select
v-model="addCategory.type"
placeholder="请选类型"
style="width: 400px;"
style="width: 50%"
>
<el-option label="项目类别" value="0" />
<el-option label="产业类别 " value="1" />
@ -120,7 +133,13 @@
<el-button type="primary" @click="CommitAdd"> </el-button>
</div>
</el-dialog>
<pagination v-show="total>0" :total="total" :page.sync="data.pageNum" :limit.sync="data.pageSize" @pagination="getList" />
<pagination
v-show="total > 0"
:total="total"
:page.sync="data.pageNum"
:limit.sync="data.pageSize"
@pagination="getList"
/>
</div>
</template>
<script>
@ -171,7 +190,7 @@ export default {
async getList() {
const that = this
that.listLoading = true
await api.TypeManage(that.data).then((res) => {
await api.TypeManage(that.data).then(res => {
that.typemanage = res.list
that.total = res.total - 0
@ -183,7 +202,7 @@ export default {
async Search() {
const that = this
that.listLoading = true
await api.CategoryDetail(that.data).then((res) => {
await api.CategoryDetail(that.data).then(res => {
that.typemanage = res.list
that.total = res.total - 0
that.listLoading = false
@ -197,7 +216,7 @@ export default {
},
async handleDelete(id) {
const that = this
await api.CategoryDelete(id).then((res) => {
await api.CategoryDelete(id).then(res => {
that.getList()
})
},
@ -216,7 +235,7 @@ export default {
return
}
}
await api.addCategory(that.addCategory).then((res) => {
await api.addCategory(that.addCategory).then(res => {
that.dialogFormVisible = false
that.getList()
})
@ -229,7 +248,7 @@ export default {
return
}
}
await api.CategoryUpdate(that.temp).then((res) => {
await api.CategoryUpdate(that.temp).then(res => {
that.dialogFormVisible1 = false
that.getList()
})

2
vue.config.js

@ -24,7 +24,7 @@ module.exports = {
* In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: '/',
publicPath: '/expert',
outputDir: 'dist',
assetsDir: 'static',
lintOnSave: process.env.NODE_ENV === 'development',

Loading…
Cancel
Save