Browse Source

修复部分bug

master
lucky 4 years ago
parent
commit
3e73935dd4
  1. 2
      .env
  2. 6
      .env.development
  3. 6
      .env.production
  4. 4
      rest/project.http
  5. 8
      src/App.vue
  6. 2
      src/components/Activity/ActivityDate.vue
  7. 24
      src/components/Banner/BannerSearch.vue
  8. 2
      src/components/BtnCom/BtnCon.vue
  9. 1
      src/components/Community/CommentSearch.vue
  10. 2
      src/components/Community/CommunitySearch.vue
  11. 4
      src/components/Enroll/EnrollSearch.vue
  12. 10
      src/components/IndustryInfo/ActivitySearch.vue
  13. 174
      src/components/Mentor/MentorAdd.vue
  14. 189
      src/components/Mentor/MentorDate.vue
  15. 174
      src/components/Mentor/MentorEdit.vue
  16. 59
      src/components/Mentor/MentorSearch.vue
  17. 6
      src/components/Partner/PartnerDate.vue
  18. 8
      src/components/Partner/PartnerSearch.vue
  19. 8
      src/components/Policy/PolicySearch.vue
  20. 26
      src/components/RD/RDSearch.vue
  21. 6
      src/components/User/UserSearch.vue
  22. 14
      src/views/HatchingDemandFilling/HatchingDemandFilling.vue
  23. 15
      src/views/IndustryDemandReport/IndustryDemandReport.vue

2
.env

@ -1,3 +1,3 @@
VUE_APP_MODE=production VUE_APP_MODE=production
VUE_APP_PREVIEW=false VUE_APP_PREVIEW=false
VUE_APP_URL=http://www.sxwikionline.com/ VUE_APP_URL=https://www.sxgreenvalley.com/

6
.env.development

@ -1,10 +1,10 @@
VUE_APP_MODE=development VUE_APP_MODE=development
VUE_APP_NODE_ENV=development VUE_APP_NODE_ENV=development
VUE_APP_SCENE=greenback VUE_APP_SCENE=greenback
VUE_APP_BASE_URL=http://www.sxwikionline.com/ VUE_APP_BASE_URL=https://www.sxgreenvalley.com/
VUE_APP_API_URL=http://www.sxwikionline.com/gateway VUE_APP_API_URL=https://www.sxgreenvalley.com/gateway
VUE_APP_PROXY_URL=/gateway VUE_APP_PROXY_URL=/gateway
VUE_APP_PUBLIC_PATH=/greenback VUE_APP_PUBLIC_PATH=/greenback
VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws VUE_APP_MSG_URL=wss://www.sxgreenvalley.com/websocket/message/v4.0/ws
VUE_APP_TITLE=绿谷在线 VUE_APP_TITLE=绿谷在线
VUE_APP_DESCRIPTION=绿谷在线管理后台 VUE_APP_DESCRIPTION=绿谷在线管理后台

6
.env.production

@ -1,10 +1,10 @@
VUE_APP_MODE=production VUE_APP_MODE=production
VUE_APP_NODE_ENV=production VUE_APP_NODE_ENV=production
VUE_APP_SCENE=greenback VUE_APP_SCENE=greenback
VUE_APP_BASE_URL=http://www.sxwikionline.com/ VUE_APP_BASE_URL=https://www.sxgreenvalley.com/
VUE_APP_API_URL=http://www.sxwikionline.com/gateway VUE_APP_API_URL=https://www.sxgreenvalley.com/gateway
VUE_APP_PROXY_URL=/gateway VUE_APP_PROXY_URL=/gateway
VUE_APP_PUBLIC_PATH=/greenback VUE_APP_PUBLIC_PATH=/greenback
VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws VUE_APP_MSG_URL=wss://www.sxgreenvalley.com/websocket/message/v4.0/ws
VUE_APP_TITLE=绿谷在线 VUE_APP_TITLE=绿谷在线
VUE_APP_DESCRIPTION=绿谷在线管理后台 VUE_APP_DESCRIPTION=绿谷在线管理后台

4
rest/project.http

@ -1,6 +1,6 @@
# @tall = {{url}}/tall/v1.0 # @tall = {{url}}/tall/v1.0
@tall = http://www.sxwikionline.com/gateway/tall/v1.0 @tall = https://www.sxgreenvalley.com/gateway/tall/v1.0
@greenvalley = http://www.sxwikionline.com/gateway/greenvalley @greenvalley = https://www.sxgreenvalley.com/gateway/greenvalley
@type = content-type: application/json;charset=utf-8 @type = content-type: application/json;charset=utf-8
### login ### login

8
src/App.vue

@ -1,7 +1,7 @@
<template> <template>
<a-config-provider :locale="zh_CN"> <a-config-provider :locale="zh_CN">
<div class="d-flex flex-row flex-nowrap" id="app"> <div class="d-flex flex-row flex-nowrap" id="app">
<btn-con /> <!-- <btn-con /> -->
<router-view class="flex-1 bg pa-3"></router-view> <router-view class="flex-1 bg pa-3"></router-view>
</div> </div>
</a-config-provider> </a-config-provider>
@ -35,9 +35,9 @@ export default {
created() { created() {
// //
const userId = '1218763410024566784'; // const userId = '1218763410024566784';
const params = { userId }; // const params = { userId };
this.getUserId(params); // this.getUserId(params);
const that = this; const that = this;
window.plugin = window.TallPlugin.init(); window.plugin = window.TallPlugin.init();

2
src/components/Activity/ActivityDate.vue

@ -268,7 +268,7 @@ export default {
// //
async handleApply(record, auditStatus) { async handleApply(record, auditStatus) {
try { try {
const params = { param: { applyId: record.activityId, auditStatus, remark: record.remark } }; const params = { param: { activityId: record.activityId, auditStatus, remark: record.remark } };
const res = await auditApply(params); const res = await auditApply(params);
const { data, msg, code } = res.data; const { data, msg, code } = res.data;
if (code === 200) { if (code === 200) {

24
src/components/Banner/BannerSearch.vue

@ -4,15 +4,33 @@
<div class="d-flex flex-wrap pb-3"> <div class="d-flex flex-wrap pb-3">
<div> <div>
<!-- 启用 --> <!-- 启用 -->
<a-select @change="getUse($event, 'recStatus')" class="ml-3" default-value="启用" style="width: 150px"> <a-select
@change="getUse($event, 'recStatus')"
allow-clear
class="ml-3"
default-value="启用"
style="width: 150px"
>
<a-select-option :key="item" :value="index" v-for="(item, index) in enable">{{ item }}</a-select-option> <a-select-option :key="item" :value="index" v-for="(item, index) in enable">{{ item }}</a-select-option>
</a-select> </a-select>
<!-- 跳转类型 --> <!-- 跳转类型 -->
<a-select @change="getUse($event, 'jumpType')" class="ml-3" default-value="不跳转" style="width: 150px"> <a-select
@change="getUse($event, 'jumpType')"
allow-clear
class="ml-3"
default-value="不跳转"
style="width: 150px"
>
<a-select-option :key="item" :value="index" v-for="(item, index) in enable1">{{ item }}</a-select-option> <a-select-option :key="item" :value="index" v-for="(item, index) in enable1">{{ item }}</a-select-option>
</a-select> </a-select>
<!-- 页面显示位置 --> <!-- 页面显示位置 -->
<a-select allow-clear @change="getUse($event, 'showPage')" class="ml-3" placeholder="查询全部" style="width: 250px"> <a-select
@change="getUse($event, 'showPage')"
allow-clear
class="ml-3"
placeholder="查询全部"
style="width: 250px"
>
<a-select-option :key="item.name" :value="item.page" v-for="item in enable2">{{ item.name }}</a-select-option> <a-select-option :key="item.name" :value="item.page" v-for="item in enable2">{{ item.name }}</a-select-option>
</a-select> </a-select>
<a-button @click="handleTableChange" class="mx-2" type="primary">搜索</a-button> <a-button @click="handleTableChange" class="mx-2" type="primary">搜索</a-button>

2
src/components/BtnCom/BtnCon.vue

@ -25,7 +25,7 @@
<div @click="jump('/entity-application')" class="btn">入驻实体申请</div> <div @click="jump('/entity-application')" class="btn">入驻实体申请</div>
<div @click="jump('/virtual-application')" class="btn">入驻虚拟申请</div> <div @click="jump('/virtual-application')" class="btn">入驻虚拟申请</div>
<div @click="jump('/incubation-services')" class="btn">服务</div> <div @click="jump('/incubation-services')" class="btn">服务</div>
<div @click="jump('/entrepreneurial-mentor')" class="btn">需求填报</div> <div @click="jump('/hatching-demand-filling')" class="btn">需求填报</div>
<div @click="jump('/hatch-cooperative-partner')" class="btn">合作伙伴</div> <div @click="jump('/hatch-cooperative-partner')" class="btn">合作伙伴</div>
<div class="font-bold-24">产业部</div> <div class="font-bold-24">产业部</div>

1
src/components/Community/CommentSearch.vue

@ -4,6 +4,7 @@
<!-- 帖子状态 --> <!-- 帖子状态 -->
<a-select <a-select
@change="handleChangeSelect('comStatus',$event)" @change="handleChangeSelect('comStatus',$event)"
allow-clear
placeholder="跟帖状态" placeholder="跟帖状态"
style="width: 150px" style="width: 150px"
> >

2
src/components/Community/CommunitySearch.vue

@ -6,6 +6,7 @@
<!-- 发帖类别 --> <!-- 发帖类别 -->
<a-select <a-select
@change="handleChangeSelect('category',$event)" @change="handleChangeSelect('category',$event)"
allow-clear
class="ml-3" class="ml-3"
placeholder="发帖类别" placeholder="发帖类别"
style="width: 150px" style="width: 150px"
@ -15,6 +16,7 @@
<!-- 帖子状态 --> <!-- 帖子状态 -->
<a-select <a-select
@change="handleChangeSelect('comStatus',$event)" @change="handleChangeSelect('comStatus',$event)"
allow-clear
class="ml-3" class="ml-3"
placeholder="帖子状态" placeholder="帖子状态"
style="width: 150px" style="width: 150px"

4
src/components/Enroll/EnrollSearch.vue

@ -2,7 +2,7 @@
<div class="d-flex flex-wrap pb-3 align-center"> <div class="d-flex flex-wrap pb-3 align-center">
<!-- 审核状态 --> <!-- 审核状态 -->
<div class="ml-3 mb-3"> <div class="ml-3 mb-3">
<a-select @change="getAuditStatus" placeholder="审核状态" style="width: 150px"> <a-select @change="getAuditStatus" allow-clear placeholder="审核状态" style="width: 150px">
<a-select-option <a-select-option
:key="index" :key="index"
:value="state.id" :value="state.id"
@ -12,7 +12,7 @@
</div> </div>
<!-- 发布平台 --> <!-- 发布平台 -->
<div class="ml-3 mb-3"> <div class="ml-3 mb-3">
<a-select @change="getPlatform" placeholder="发布平台" style="width: 150px"> <a-select @change="getPlatform" allow-clear placeholder="发布平台" style="width: 150px">
<a-select-option <a-select-option
:key="platform.id" :key="platform.id"
:value="platform.id" :value="platform.id"

10
src/components/IndustryInfo/ActivitySearch.vue

@ -2,13 +2,13 @@
<div class="d-flex flex-wrap pb-3"> <div class="d-flex flex-wrap pb-3">
<div> <div>
<!-- 活动标题 --> <!-- 活动标题 -->
<a-input class="ml-3" placeholder="标题" style="width: 150px" v-model="titleKey" /> <a-input class="ml-3" placeholder="标题" style="width: 150px" v-model="title" />
<!-- 地点 --> <!-- 地点 -->
<a-input class="ml-3" placeholder="地点" style="width: 150px" v-model="site" /> <a-input class="ml-3" placeholder="地点" style="width: 150px" v-model="site" />
<!-- 发布部门 --> <!-- 发布部门 -->
<a-input class="ml-3" placeholder="标题" style="width: 150px" v-model="spreadDepartment" /> <a-input class="ml-3" placeholder="发布部门" style="width: 150px" v-model="spreadDepartment" />
<!-- 发布时间 --> <!-- 发布时间 -->
<a-range-picker @change="onChange" class="ml-3" format="YYYY-MM-DD HH:mm:ss" show-time /> <a-range-picker @change="onChange" class="ml-3" format="YYYY-MM-DD HH:mm:ss" show-time />
@ -36,7 +36,7 @@ export default {
data() { data() {
return { return {
visible: false, visible: false,
titleKey: '', title: '',
site: '', site: '',
spreadDepartment: '', spreadDepartment: '',
startTime: '', startTime: '',
@ -64,10 +64,10 @@ export default {
}, },
async handleTableChange() { async handleTableChange() {
const { titleKey, site, spreadDepartment, startTime, endTime } = this; const { title, site, spreadDepartment, startTime, endTime } = this;
// //
const condition = { const condition = {
titleKey, title,
site, site,
spreadDepartment, spreadDepartment,
startTime, startTime,

174
src/components/Mentor/MentorAdd.vue

@ -1,174 +0,0 @@
<template>
<div class="d-flex flex-wrap pb-3">
<!-- 添加 -->
<a-modal
:maskClosable="false"
@cancel="$emit('closeModal')"
destroyOnClose
footer
title="添加创业导师"
v-model="visible"
width="700px"
>
<a-form :form="form" @submit="handleSubmit">
<!-- 导师名称 -->
<a-form-item
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="导师名称"
>
<a-input
placeholder="导师名称"
v-decorator="[
'tutorName',
{
rules: [
{ required: true, message: '导师名称不能为空' },
{ whitespace: true, message: '导师名称不能为空' },
{ max: 140, massage: '导师名称最多140个字符' },
],
},
]"
/>
</a-form-item>
<!-- 导师简介 -->
<a-form-item
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="导师简介"
>
<a-textarea
placeholder="导师简介"
v-decorator="[
'tutorProfile',
]"
/>
</a-form-item>
<!-- 头像 -->
<a-form-item
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="头像"
>
<a-upload
:before-upload="beforeUpload"
:show-upload-list="false"
@change="handleChange"
action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
class="avatar-uploader"
list-type="picture-card"
name="avatar"
>
<img :src="imageUrl" alt="avatar" v-if="imageUrl" />
<div v-else>
<a-icon :type="loading ? 'loading' : 'plus'" />
<div class="ant-upload-text">Upload</div>
</div>
</a-upload>
</a-form-item>
<a-form-item class="d-flex flex-row-reverse">
<a-button @click="$emit('closeModal')" class="mr-3">取消</a-button>
<a-button class="white--text" html-type="submit" type="primary">保存</a-button>
</a-form-item>
</a-form>
</a-modal>
</div>
</template>
<script>
const formItemLayout = {
labelCol: { span: 6 },
wrapperCol: { span: 16 },
};
const tailItemLayout = { wrapperCol: { span: 16, offset: 6 } };
function getBase64(img, callback) {
const reader = new FileReader();
reader.addEventListener('load', () => callback(reader.result));
reader.readAsDataURL(img);
}
export default {
name: 'MentorAdd',
props: { visible: { type: Boolean, default: false } },
data() {
return {
formItemLayout,
tailItemLayout,
form: this.$form.createForm(this, { name: 'mentor-add' }),
loading: false,
imageUrl: '',
};
},
methods: {
//
handleChange(info) {
if (info.file.status === 'uploading') {
this.loading = true;
return;
}
if (info.file.status === 'done') {
// Get this url from response in real world.
getBase64(info.file.originFileObj, imageUrl => {
this.imageUrl = imageUrl;
this.loading = false;
});
}
},
beforeUpload(file) {
const isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png';
if (!isJpgOrPng) {
this.$message.error('You can only upload JPG file!');
}
const isLt2M = file.size / 1024 / 1024 < 2;
if (!isLt2M) {
this.$message.error('Image must smaller than 2MB!');
}
return isJpgOrPng && isLt2M;
},
//
handleSubmit(e) {
e.preventDefault();
this.form.validateFieldsAndScroll(async (err, values) => {
if (!err) {
try {
console.log('values: ', values);
// const params = this.generateParams(values);
// const res = await createTask(params);
// const { data, msg, code } = res.data;
// //
// this.clearCreateTask();
// this.$emit('closeDialog');
// if (code === 200) {
// this.handleCreateSuccess(params.executorId);
// } else {
// throw msg;
// }
} catch (error) {
this.$message.error(error || '添加研发团队失败');
}
}
});
},
},
};
</script>
<style scoped lang="stylus">
.avatar-uploader > .ant-upload {
width: 128px;
height: 128px;
}
.ant-upload-select-picture-card i {
font-size: 32px;
color: #999;
}
.ant-upload-select-picture-card .ant-upload-text {
margin-top: 8px;
color: #666;
}
</style>

189
src/components/Mentor/MentorDate.vue

@ -1,189 +0,0 @@
<template>
<div class="main flex-1">
<div style="width:100%" v-if="lists && lists.length > 0">
<a-table
:columns="columns"
:data-source="lists"
:loading="loading"
:row-key="record => record.id"
bordered
class="white"
>
<template slot="id" slot-scope="text, record, index">
<span>{{ index + 1 }}</span>
</template>
<!-- 头像 -->
<template slot="headPortrait" slot-scope="text, record">
<img :src="record.headPortrait" class="img" />
<a-modal
:imgVisible="imgVisible"
:maskClosable="false"
@cancel="imgVisible = false"
destroyOnClose
footer
title="身份证明"
>
<img :src="record.idCardPromise" @click="imgVisible = true" style="width: 100%;" />
</a-modal>
</template>
<template slot="auditStatus" slot-scope="text, record">
<a-tag :color="record.auditStatus === '通过' ? 'green' : 'red'">{{ record.auditStatus }}</a-tag>
</template>
<template slot="edit" slot-scope="text, record">
<a-icon @click="showEditModal" class="pointer" theme="twoTone" type="edit" />
<a-popconfirm @confirm="() => onDelete(record.id)" title="确定要删除这一条?" v-if="lists.length">
<a-icon class="ml-4 pointer" theme="twoTone" two-tone-color="#ff0000" type="delete" />
</a-popconfirm>
</template>
<template slot="examine" slot-scope="text, record">
<a-button size="small" type="primary" v-if="record.auditStatus != '通过'">通过</a-button>
<a-button size="small" type="danger" v-else>不通过</a-button>
</template>
<div
class="d-flex flex-nowrap justify-space-between"
slot="expandedRowRender"
slot-scope="record"
style="margin: 0"
>
<div>导师简介{{ record.tutorProfile }}</div>
</div>
</a-table>
</div>
<a-empty v-else />
<!-- 编辑 -->
<mentor-edit :editVisible="editVisible" @closeModal="closeModal" />
</div>
</template>
<script>
import MentorEdit from 'components/Mentor/MentorEdit.vue';
const columns = [
{
title: '序号',
align: 'center',
dataIndex: 'id',
key: 'id',
width: '7%',
scopedSlots: { customRender: 'id' },
},
{
title: '导师名称',
align: 'center',
dataIndex: 'tutorName',
key: 'tutorName',
},
{
title: '头像',
align: 'center',
dataIndex: 'headPortrait',
key: 'headPortrait',
scopedSlots: { customRender: 'headPortrait' },
},
{
title: '审核状态',
align: 'center',
dataIndex: 'auditStatus',
key: 'auditStatus',
scopedSlots: { customRender: 'auditStatus' },
},
{
title: '编辑',
align: 'center',
dataIndex: 'edit',
key: 'edit',
scopedSlots: { customRender: 'edit' },
},
{
title: '审核',
align: 'center',
dataIndex: 'examine',
key: 'examine',
scopedSlots: { customRender: 'examine' },
},
];
const lists = [
{
id: '001',
tutorName: '传控科技',
tutorProfile: '传控科技简介',
headPortrait: 'assets/logo.png',
auditStatus: '通过',
},
{
id: '002',
tutorName: '中绿环保',
tutorProfile: '中绿环保简介',
headPortrait: 'assets/logo.png',
auditStatus: '未通过',
},
];
export default {
name: 'MentorDate',
components: {
MentorEdit,
},
data() {
this.cacheData = lists.map(item => ({ ...item }));
return {
columns,
lists,
loading: false,
height: '',
editVisible: false,
imgVisible: false,
};
},
mounted() {
this.height = document.getElementsByClassName('main')[0].offsetHeight - 150;
},
methods: {
showEditModal() {
this.editVisible = true;
},
closeModal() {
this.editVisible = false;
},
//
async onDelete(teamId) {
try {
const params = { param: { teamId } };
// const res = await delTeam(params);
// const { data, msg, code } = res.data;
// if (code === 200) {
// this.$message.success('');
// const arr = [...this.lists];
// this.lists = arr.filter(item => item.id !== teamId);
// // TODO:
// } else {
// throw msg;
// }
} catch (error) {
this.$message.error(error || '删除失败');
}
},
},
};
</script>
<style lang="stylus" scoped>
.main .img {
height: 65px;
}
.main .big_img {
width: 200px;
}
</style>

174
src/components/Mentor/MentorEdit.vue

@ -1,174 +0,0 @@
<template>
<div class="d-flex flex-wrap pb-3">
<!-- 编辑 -->
<a-modal
:maskClosable="false"
@cancel="$emit('closeModal')"
destroyOnClose
footer
title="修改创业导师"
v-model="editVisible"
width="700px"
>
<a-form :form="form" @submit="handleSubmit">
<!-- 导师名称 -->
<a-form-item
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="导师名称"
>
<a-input
placeholder="导师名称"
v-decorator="[
'tutorName',
{
rules: [
{ required: true, message: '导师名称不能为空' },
{ whitespace: true, message: '导师名称不能为空' },
{ max: 140, massage: '导师名称最多140个字符' },
],
},
]"
/>
</a-form-item>
<!-- 导师简介 -->
<a-form-item
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="导师简介"
>
<a-textarea
placeholder="导师简介"
v-decorator="[
'tutorProfile',
]"
/>
</a-form-item>
<!-- 头像 -->
<a-form-item
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="头像"
>
<a-upload
:before-upload="beforeUpload"
:show-upload-list="false"
@change="handleChange"
action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
class="avatar-uploader"
list-type="picture-card"
name="avatar"
>
<img :src="imageUrl" alt="avatar" v-if="imageUrl" />
<div v-else>
<a-icon :type="loading ? 'loading' : 'plus'" />
<div class="ant-upload-text">Upload</div>
</div>
</a-upload>
</a-form-item>
<a-form-item class="d-flex flex-row-reverse">
<a-button @click="$emit('closeModal')" class="mr-3">取消</a-button>
<a-button class="white--text" html-type="submit" type="primary">保存</a-button>
</a-form-item>
</a-form>
</a-modal>
</div>
</template>
<script>
const formItemLayout = {
labelCol: { span: 6 },
wrapperCol: { span: 16 },
};
const tailItemLayout = { wrapperCol: { span: 16, offset: 6 } };
function getBase64(img, callback) {
const reader = new FileReader();
reader.addEventListener('load', () => callback(reader.result));
reader.readAsDataURL(img);
}
export default {
name: 'MentorEdit',
props: { editVisible: { type: Boolean, default: false } },
data() {
return {
formItemLayout,
tailItemLayout,
form: this.$form.createForm(this, { name: 'mentor-edit' }),
loading: false,
imageUrl: '',
};
},
methods: {
//
handleChange(info) {
if (info.file.status === 'uploading') {
this.loading = true;
return;
}
if (info.file.status === 'done') {
// Get this url from response in real world.
getBase64(info.file.originFileObj, imageUrl => {
this.imageUrl = imageUrl;
this.loading = false;
});
}
},
beforeUpload(file) {
const isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png';
if (!isJpgOrPng) {
this.$message.error('You can only upload JPG file!');
}
const isLt2M = file.size / 1024 / 1024 < 2;
if (!isLt2M) {
this.$message.error('Image must smaller than 2MB!');
}
return isJpgOrPng && isLt2M;
},
//
handleSubmit(e) {
e.preventDefault();
this.form.validateFieldsAndScroll(async (err, values) => {
if (!err) {
try {
console.log('values: ', values);
// const params = this.generateParams(values);
// const res = await createTask(params);
// const { data, msg, code } = res.data;
// //
// this.clearCreateTask();
// this.$emit('closeDialog');
// if (code === 200) {
// this.handleCreateSuccess(params.executorId);
// } else {
// throw msg;
// }
} catch (error) {
this.$message.error(error || '添加研发团队失败');
}
}
});
},
},
};
</script>
<style scoped lang="stylus">
.avatar-uploader > .ant-upload {
width: 128px;
height: 128px;
}
.ant-upload-select-picture-card i {
font-size: 32px;
color: #999;
}
.ant-upload-select-picture-card .ant-upload-text {
margin-top: 8px;
color: #666;
}
</style>

59
src/components/Mentor/MentorSearch.vue

@ -1,59 +0,0 @@
<template>
<div class="d-flex flex-wrap pb-3">
<!-- 导师名称 -->
<div>
<a-input
@change="handleChangeName"
placeholder="导师名称"
style="width: 150px"
v-model="tutorName"
/>
<a-button @click="handleTableChange" class="ml-3" type="primary">搜索</a-button>
</div>
<div class="flex-1"></div>
<a-button @click="showModal" class="editable-add-btn" type="primary">增加</a-button>
<!-- 添加 -->
<mentor-add :visible="visible" @closeModal="closeModal" />
</div>
</template>
<script>
import MentorAdd from 'components/Mentor/MentorAdd.vue';
export default {
name: 'MentorSearch',
components: {
MentorAdd,
},
data() {
return {
visible: false,
tutorName: '',
};
},
methods: {
showModal() {
this.visible = true;
},
closeModal() {
this.visible = false;
},
handleChangeName(value) {
console.log('value: ', value);
this.tutorName = value;
},
handleTableChange() {
console.log('搜索');
},
},
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="stylus"></style>

6
src/components/Partner/PartnerDate.vue

@ -78,12 +78,6 @@ const columns = [
{ {
title: 'logo', title: 'logo',
align: 'center', align: 'center',
dataIndex: 'logo',
key: 'logo',
},
{
title: 'logo地址',
align: 'center',
dataIndex: 'logoUrl', dataIndex: 'logoUrl',
key: 'logoUrl', key: 'logoUrl',
scopedSlots: { customRender: 'logoUrl' }, scopedSlots: { customRender: 'logoUrl' },

8
src/components/Partner/PartnerSearch.vue

@ -5,7 +5,13 @@
<a-input class="ml-3" placeholder="标题" style="width: 150px" v-model="name" /> <a-input class="ml-3" placeholder="标题" style="width: 150px" v-model="name" />
<!-- 公司类型 --> <!-- 公司类型 -->
<a-select @change="changeState" class="ml-3 mb-3" placeholder="公司类型" style="width: 150px"> <a-select
@change="changeState"
allow-clear
class="ml-3 mb-3"
placeholder="公司类型"
style="width: 150px"
>
<a-select-option <a-select-option
:key="index" :key="index"
:value="state.id" :value="state.id"

8
src/components/Policy/PolicySearch.vue

@ -31,7 +31,13 @@
<a-checkbox @change="onChangeTy" class="mb-3">太原市</a-checkbox> <a-checkbox @change="onChangeTy" class="mb-3">太原市</a-checkbox>
</div> </div>
<!-- 状态 --> <!-- 状态 -->
<a-select @change="changeState" class="ml-3 mb-3" placeholder="状态" style="width: 150px"> <a-select
@change="changeState"
allow-clear
class="ml-3 mb-3"
placeholder="状态"
style="width: 150px"
>
<a-select-option <a-select-option
:key="index" :key="index"
:value="state.id" :value="state.id"

26
src/components/RD/RDSearch.vue

@ -2,11 +2,29 @@
<div class="d-flex flex-wrap pb-3"> <div class="d-flex flex-wrap pb-3">
<!-- 团队名称 --> <!-- 团队名称 -->
<div> <div>
<a-input placeholder="公司名称" style="width: 150px" v-model="paramData.companyName" allow-clear /> <a-input allow-clear placeholder="公司名称" style="width: 150px" v-model="paramData.companyName" />
<a-input placeholder="联系人" class="ml-3" style="width: 150px" v-model="paramData.contactName" allow-clear /> <a-input
<a-input placeholder="联系电话" class="ml-3" style="width: 150px" v-model="paramData.contactPhone" allow-clear /> allow-clear
class="ml-3"
placeholder="联系人"
style="width: 150px"
v-model="paramData.contactName"
/>
<a-input
allow-clear
class="ml-3"
placeholder="联系电话"
style="width: 150px"
v-model="paramData.contactPhone"
/>
<!-- 跳转类型 --> <!-- 跳转类型 -->
<a-select @change="cahngeType" class="ml-3" style="width: 150px" placeholder="全部类型" allow-clear> <a-select
@change="cahngeType"
allow-clear
class="ml-3"
placeholder="全部类型"
style="width: 150px"
>
<a-select-option :key="item" :value="index" v-for="(item, index) in typeList">{{ item }}</a-select-option> <a-select-option :key="item" :value="index" v-for="(item, index) in typeList">{{ item }}</a-select-option>
</a-select> </a-select>
<a-button @click="handleTableChange" class="mx-2" type="primary">搜索</a-button> <a-button @click="handleTableChange" class="mx-2" type="primary">搜索</a-button>

6
src/components/User/UserSearch.vue

@ -14,11 +14,11 @@
<script> <script>
export default { export default {
name: "HelloWorld", name: 'HelloWorld',
data() { data() {
return { return {
companyName: '' companyName: '',
} };
}, },
methods: { methods: {
handleChangeName(value) { handleChangeName(value) {

14
src/views/HatchingDemandFilling/HatchingDemandFilling.vue

@ -1,19 +1,9 @@
<template> <template>
<div class="pa-3 white fill-height d-flex flex-column"> <div class="pa-3 white fill-height d-flex flex-column">开发中... ...</div>
<mentor-search />
<mentor-date />
</div>
</template> </template>
<script> <script>
import MentorSearch from "components/Mentor/MentorSearch.vue";
import MentorDate from "components/Mentor/MentorDate.vue";
export default { export default {
name: "EntrepreneurialMentor", name: 'EntrepreneurialMentor',
components: {
MentorSearch,
MentorDate,
}
}; };
</script> </script>

15
src/views/IndustryDemandReport/IndustryDemandReport.vue

@ -1,20 +1,9 @@
<template> <template>
<div class="pa-3 white fill-height d-flex flex-column"> <div class="pa-3 white fill-height d-flex flex-column">开发中... ...</div>
<sign-up-search />
<sign-up-date />
</div>
</template> </template>
<script> <script>
// @ is an alias to /src
import SignUpSearch from "components/SignUp/SignUpSearch.vue";
import SignUpDate from "components/SignUp/SignUpDate.vue";
export default { export default {
name: "SignUp", name: 'IndustryDemandReport',
components: {
SignUpSearch,
SignUpDate,
}
}; };
</script> </script>

Loading…
Cancel
Save