Browse Source

细节修改

master
aBin 4 years ago
parent
commit
13d15e7eb8
  1. 12
      src/App.vue
  2. 2
      src/components/EntityApply/EntityApplyDate.vue
  3. 64
      src/components/Policy/PolicyAdd.vue
  4. 76
      src/components/Policy/PolicyEdit.vue
  5. 3
      src/config/api.js
  6. 59
      src/views/HatchingDemandFilling/HatchingDemandFilling.vue
  7. 59
      src/views/IndustryDemandReport/IndustryDemandReport.vue

12
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>
@ -10,11 +10,11 @@
<script> <script>
import { mapState, mapActions, mapMutations } from 'vuex'; import { mapState, mapActions, mapMutations } from 'vuex';
import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN'; import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN';
import BtnCon from 'components/BtnCom/BtnCon.vue'; // import BtnCon from 'components/BtnCom/BtnCon.vue';
export default { export default {
name: 'app', name: 'app',
components: { BtnCon }, // components: { BtnCon },
data() { data() {
return { return {
zh_CN, zh_CN,
@ -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/EntityApply/EntityApplyDate.vue

@ -38,7 +38,7 @@
}}</a-tag> }}</a-tag>
</template> </template>
<!-- 审批 --> <!-- 操作 -->
<template slot="edit" slot-scope="text, record"> <template slot="edit" slot-scope="text, record">
<a-icon @click="showEditModal(record)" class="pointer" theme="twoTone" type="edit" /> <a-icon @click="showEditModal(record)" class="pointer" theme="twoTone" type="edit" />
<a-button @click="handleApply(record.id, 2)" class="ml-3" size="small" type="primary" v-if="record.dealStatus === 1" <a-button @click="handleApply(record.id, 2)" class="ml-3" size="small" type="primary" v-if="record.dealStatus === 1"

64
src/components/Policy/PolicyAdd.vue

@ -1,22 +1,10 @@
<template> <template>
<div class="d-flex flex-wrap pb-3"> <div class="d-flex flex-wrap pb-3">
<!-- 添加 --> <!-- 添加 -->
<a-modal <a-modal :maskClosable="false" @cancel="$emit('closeModal')" destroyOnClose footer title="添加创新政策" v-model="visible" width="700px">
:maskClosable="false"
@cancel="$emit('closeModal')"
destroyOnClose
footer
title="添加创新政策"
v-model="visible"
width="700px"
>
<a-form :form="form" @submit="handleSubmit"> <a-form :form="form" @submit="handleSubmit">
<!-- 标题 --> <!-- 标题 -->
<a-form-item <a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="标题">
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="标题"
>
<a-input <a-input
placeholder="标题" placeholder="标题"
v-decorator="[ v-decorator="[
@ -32,11 +20,7 @@
/> />
</a-form-item> </a-form-item>
<!-- 发布部门 --> <!-- 发布部门 -->
<a-form-item <a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="发布部门">
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="发布部门"
>
<a-input <a-input
placeholder="发布部门" placeholder="发布部门"
v-decorator="[ v-decorator="[
@ -52,49 +36,21 @@
/> />
</a-form-item> </a-form-item>
<!-- 发布时间 --> <!-- 发布时间 -->
<a-form-item <a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="发布时间" required>
:label-col="formItemLayout.labelCol" <a-date-picker @change="onChange" format="YYYY-MM-DD" show-time style="width: 100%" />
:wrapper-col="formItemLayout.wrapperCol"
label="发布时间"
required
>
<a-date-picker @change="onChange" format="YYYY-MM-DD" show-time style="width:100%" />
</a-form-item> </a-form-item>
<!-- 审核状态 --> <!-- 审核状态 -->
<a-form-item <a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="审核状态" required>
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="审核状态"
required
>
<a-select @change="getStatus" placeholder="审核状态" style="width: 200px"> <a-select @change="getStatus" placeholder="审核状态" style="width: 200px">
<a-select-option <a-select-option :key="index" :value="item.id" v-for="(item, index) in applyStatus">{{ item.name }}</a-select-option>
:key="index"
:value="item.id"
v-for="(item, index) in applyStatus"
>{{ item.name }}</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<!-- 原文链接 --> <!-- 原文链接 -->
<a-form-item <a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="原文链接">
:label-col="formItemLayout.labelCol" <a-input placeholder="原文链接" v-decorator="['url']" />
:wrapper-col="formItemLayout.wrapperCol"
label="原文链接"
>
<a-input
placeholder="原文链接"
v-decorator="[
'url',
]"
/>
</a-form-item> </a-form-item>
<!-- 政策内容 --> <!-- 政策内容 -->
<a-form-item <a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="政策内容" required>
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="政策内容"
required
>
<quill-editor :max-size="maxSize" :placeholder="placeholder" @changeInput="changeInput" /> <quill-editor :max-size="maxSize" :placeholder="placeholder" @changeInput="changeInput" />
</a-form-item> </a-form-item>

76
src/components/Policy/PolicyEdit.vue

@ -12,11 +12,7 @@
> >
<a-form :form="form" @submit="handleSubmit" v-if="editVisible && editItem"> <a-form :form="form" @submit="handleSubmit" v-if="editVisible && editItem">
<!-- 标题 --> <!-- 标题 -->
<a-form-item <a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="标题">
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="标题"
>
<a-input <a-input
placeholder="标题" placeholder="标题"
v-decorator="[ v-decorator="[
@ -33,11 +29,7 @@
/> />
</a-form-item> </a-form-item>
<!-- 发布部门 --> <!-- 发布部门 -->
<a-form-item <a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="发布部门">
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="发布部门"
>
<a-input <a-input
placeholder="发布部门" placeholder="发布部门"
v-decorator="[ v-decorator="[
@ -54,34 +46,23 @@
/> />
</a-form-item> </a-form-item>
<!-- 发布时间 --> <!-- 发布时间 -->
<a-form-item <a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="发布时间" required>
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="发布时间"
required
>
<a-date-picker <a-date-picker
@change="onChange" @change="onChange"
format="YYYY-MM-DD" format="YYYY-MM-DD"
show-time show-time
style="width:100%" style="width: 100%"
v-decorator="[ v-decorator="[
'pushTime', 'pushTime',
{ {
initialValue: editItem.publishTime, initialValue: editItem.publishTime,
rules: [ rules: [{ required: true, message: '发布时间不能为空' }],
{ required: true, message: '发布时间不能为空' },
],
}, },
]" ]"
/> />
</a-form-item> </a-form-item>
<!-- 审核状态 --> <!-- 审核状态 -->
<a-form-item <a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="审核状态">
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="审核状态"
>
<a-select <a-select
@change="getStatus" @change="getStatus"
placeholder="审核状态" placeholder="审核状态"
@ -90,25 +71,15 @@
'status', 'status',
{ {
initialValue: editItem.status, initialValue: editItem.status,
rules: [ rules: [{ required: true, message: '审核状态不能为空' }],
{ required: true, message: '审核状态不能为空' },
],
}, },
]" ]"
> >
<a-select-option <a-select-option :key="index" :value="item.id" v-for="(item, index) in applyStatus">{{ item.name }}</a-select-option>
:key="index"
:value="item.id"
v-for="(item, index) in applyStatus"
>{{ item.name }}</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<!-- 原文链接 --> <!-- 原文链接 -->
<a-form-item <a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="原文链接">
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="原文链接"
>
<a-input <a-input
placeholder="原文链接" placeholder="原文链接"
v-decorator="[ v-decorator="[
@ -120,16 +91,11 @@
/> />
</a-form-item> </a-form-item>
<!-- 政策内容 --> <!-- 政策内容 -->
<a-form-item <a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="政策内容" required>
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="政策内容"
required
>
<quill-editor <quill-editor
:max-size="maxSize" :max-size="maxSize"
:placeholder="placeholder" :placeholder="placeholder"
:value="(editItem && editItem.content) ? editItem.content : content" :value="editItem && editItem.content ? editItem.content : content"
@changeInput="changeInput" @changeInput="changeInput"
/> />
</a-form-item> </a-form-item>
@ -144,7 +110,7 @@
</template> </template>
<script> <script>
import { addPolicy } from 'config/api'; import { addPolicy, getAreaBranch } from 'config/api';
import QuillEditor from 'components/QuillEditor/QuillEditor.vue'; import QuillEditor from 'components/QuillEditor/QuillEditor.vue';
const formItemLayout = { const formItemLayout = {
@ -175,7 +141,9 @@ export default {
pushTime: '', // pushTime: '', //
}; };
}, },
created() {
this.getArea();
},
methods: { methods: {
// //
getStatus(value) { getStatus(value) {
@ -192,7 +160,19 @@ export default {
console.log(date, dateString); console.log(date, dateString);
this.pushTime = dateString; this.pushTime = dateString;
}, },
async getArea() {
try {
const res = await getAreaBranch();
const { code, msg, data } = res.data;
if (code === 200) {
console.log(data);
} else {
this.$message.error(msg);
}
} catch (error) {
this.$message.error(error);
}
},
// //
handleSubmit(e) { handleSubmit(e) {
e.preventDefault(); e.preventDefault();

3
src/config/api.js

@ -241,3 +241,6 @@ export const serviceApplyStatus = params => axios.post(`${service}/ServiceApplyS
// 入驻企业申请 // 入驻企业申请
export const applyBackend = params => axios.post(`${greenvalley}/place/applyBackend`, params); export const applyBackend = params => axios.post(`${greenvalley}/place/applyBackend`, params);
// 添加/修改发布部门时的发布部门
export const getAreaBranch = params => axios.post(`${policy}/policy/area`, params);

59
src/views/HatchingDemandFilling/HatchingDemandFilling.vue

@ -1,9 +1,66 @@
<template> <template>
<div class="pa-3 white fill-height d-flex flex-column">开发中... ...</div> <div class="pa-3 white fill-height d-flex flex-column">
<r-d-search @searchServiceApply="searchServiceApply" />
<r-d-date :lists="lists" :pagination="pagination" @searchServiceApply="searchServiceApply" />
</div>
</template> </template>
<script> <script>
// @ is an alias to /src
import RDSearch from 'components/RD/RDSearch.vue';
import RDDate from 'components/RD/RDDate.vue';
import { searchServiceApply } from 'config/api';
export default { export default {
name: 'EntrepreneurialMentor', name: 'EntrepreneurialMentor',
components: {
RDSearch,
RDDate,
},
data() {
return {
str: '需求填报界面',
pagination: { current: 1, pageSize: 10 },
lists: {},
};
},
created() {
this.searchServiceApply();
},
methods: {
/**
* 根据团队id查看研发团队相关信息
* @param { String } competeTimeId 第几届信息的id
*/
async searchServiceApply(paramData) {
try {
const params = {
param: {
companyName: paramData && paramData.companyName !== '' ? paramData.companyName : '',
contactName: paramData && paramData.contactName !== '' ? paramData.contactName : '',
contactPhone: paramData && paramData.contactPhone !== '' ? paramData.contactPhone : '',
type: paramData && paramData.type !== '' ? paramData.type : '',
pageNum: paramData && paramData.current ? paramData.current : 1,
pageSize: paramData && paramData.pageSize ? paramData.pageSize : 10,
},
};
const res = await searchServiceApply(params);
const { code, msg, data } = res.data;
if (code === 200) {
this.lists = data;
const paper = { ...this.pagination };
paper.current = data.pageNum;
paper.total = +data.total;
paper.pageSize = data.pageSize;
this.pagination = paper;
} else {
throw msg || '获取失败';
}
} catch (error) {
this.$message.error(error);
}
},
},
}; };
</script> </script>

59
src/views/IndustryDemandReport/IndustryDemandReport.vue

@ -1,9 +1,66 @@
<template> <template>
<div class="pa-3 white fill-height d-flex flex-column">开发中... ...</div> <div class="pa-3 white fill-height d-flex flex-column">
<r-d-search @searchServiceApply="searchServiceApply" />
<r-d-date :lists="lists" :pagination="pagination" @searchServiceApply="searchServiceApply" />
</div>
</template> </template>
<script> <script>
// @ is an alias to /src
import RDSearch from 'components/RD/RDSearch.vue';
import RDDate from 'components/RD/RDDate.vue';
import { searchServiceApply } from 'config/api';
export default { export default {
name: 'IndustryDemandReport', name: 'IndustryDemandReport',
components: {
RDSearch,
RDDate,
},
data() {
return {
str: '需求填报界面',
pagination: { current: 1, pageSize: 10 },
lists: {},
};
},
created() {
this.searchServiceApply();
},
methods: {
/**
* 根据团队id查看研发团队相关信息
* @param { String } competeTimeId 第几届信息的id
*/
async searchServiceApply(paramData) {
try {
const params = {
param: {
companyName: paramData && paramData.companyName !== '' ? paramData.companyName : '',
contactName: paramData && paramData.contactName !== '' ? paramData.contactName : '',
contactPhone: paramData && paramData.contactPhone !== '' ? paramData.contactPhone : '',
type: paramData && paramData.type !== '' ? paramData.type : '',
pageNum: paramData && paramData.current ? paramData.current : 1,
pageSize: paramData && paramData.pageSize ? paramData.pageSize : 10,
},
};
const res = await searchServiceApply(params);
const { code, msg, data } = res.data;
if (code === 200) {
this.lists = data;
const paper = { ...this.pagination };
paper.current = data.pageNum;
paper.total = +data.total;
paper.pageSize = data.pageSize;
this.pagination = paper;
} else {
throw msg || '获取失败';
}
} catch (error) {
this.$message.error(error);
}
},
},
}; };
</script> </script>

Loading…
Cancel
Save