From 62b2eb8ef098e748190ed14d831660b390e6782d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E4=B8=BD=E5=90=9B?= <664953382@qq.com> Date: Mon, 21 Mar 2022 17:22:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AE=A1=E6=A0=B8-=E6=88=90?= =?UTF-8?q?=E6=9E=9C=E5=AE=A1=E6=A0=B8=E9=A1=B5=E9=9D=A2=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FileUpload/index.vue | 10 +- src/main.js | 13 +- src/utils/parameter.js | 28 +++ src/views/components/ReleaseForm/index.vue | 265 ++++++++++++++++++++ src/views/dataAudit/achievement/examine.vue | 93 +++++++ src/views/dataAudit/achievement/index.vue | 132 +++++++++- 6 files changed, 523 insertions(+), 18 deletions(-) create mode 100644 src/views/components/ReleaseForm/index.vue create mode 100644 src/views/dataAudit/achievement/examine.vue diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 434e236..33e99fb 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -39,11 +39,7 @@ class="el-upload-list__item ele-upload-list__item-content" v-for="(file, index) in fileList" > - + {{ getFileName(file.name) }}
@@ -167,7 +163,7 @@ export default { // 上传成功回调 handleUploadSuccess(res, file) { this.$message.success("上传成功"); - this.fileList.push({ name: res.fileName, url: res.fileName }); + this.fileList.push({ name: res.data.filename, url: res.data.url }); this.$emit("input", this.listToString(this.fileList)); }, // 删除文件 @@ -180,7 +176,7 @@ export default { if (name.lastIndexOf("/") > -1) { return name.slice(name.lastIndexOf("/") + 1).toLowerCase(); } else { - return ""; + return name; } }, // 对象转成指定字符串分隔 diff --git a/src/main.js b/src/main.js index 73a58d2..485e44c 100644 --- a/src/main.js +++ b/src/main.js @@ -20,7 +20,15 @@ import './permission' // permission control import { getDicts } from '@/api/system/dict/data' import { getConfigKey } from '@/api/system/config' import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from '@/utils/ruoyi' -import { modeOptions, educationOptions, enterpriseOptions, patentOptions } from '@/utils/parameter' +import { + modeOptions, + educationOptions, + enterpriseOptions, + patentOptions, + maturityOptions, + leadOptions, + cooperationOptions, +} from '@/utils/parameter' // 分页组件 import Pagination from '@/components/Pagination' // 自定义表格工具组件 @@ -57,6 +65,9 @@ Vue.prototype.modeOptions = modeOptions Vue.prototype.educationOptions = educationOptions Vue.prototype.enterpriseOptions = enterpriseOptions Vue.prototype.patentOptions = patentOptions +Vue.prototype.maturityOptions = maturityOptions +Vue.prototype.leadOptions = leadOptions +Vue.prototype.cooperationOptions = cooperationOptions // 全局组件挂载 Vue.component('DictTag', DictTag) diff --git a/src/utils/parameter.js b/src/utils/parameter.js index 232a92b..40ba9ce 100644 --- a/src/utils/parameter.js +++ b/src/utils/parameter.js @@ -33,9 +33,37 @@ export const enterpriseOptions = [ { key: 102, value: '优质企业' }, { key: 103, value: '普通企业' }, ] +// 成果成熟度 技术 +export const maturityOptions = [ + { key: 1, value: '正在研发' }, + { key: 2, value: '小试阶段' }, + { key: 3, value: '通过小试' }, + { key: 4, value: '中试阶段' }, + { key: 5, value: '通过中试' }, + { key: 6, value: '可规模生产' }, +] +// 成果领先型 领先标准 +export const leadOptions = [ + { key: 1, value: '国内先进' }, + { key: 2, value: '国内领先' }, + { key: 3, value: '国际先进' }, + { key: 4, value: '国际领先' }, +] // 专利类型 export const patentOptions = [ { key: 1, value: '发明专利' }, { key: 2, value: '外观设计' }, { key: 3, value: '实用新型' }, ] +// 合作模式 +export const cooperationOptions = [ + { key: 101, value: '技术转让' }, + { key: 102, value: '技术许可' }, + { key: 103, value: '技术入股' }, + { key: 104, value: '合作开发' }, + { key: 105, value: '融资' }, + { key: 106, value: '公司' }, + { key: 107, value: '代理加盟' }, + { key: 108, value: '市场推广' }, + { key: 109, value: '其他' }, +] diff --git a/src/views/components/ReleaseForm/index.vue b/src/views/components/ReleaseForm/index.vue new file mode 100644 index 0000000..899205b --- /dev/null +++ b/src/views/components/ReleaseForm/index.vue @@ -0,0 +1,265 @@ + + + \ No newline at end of file diff --git a/src/views/dataAudit/achievement/examine.vue b/src/views/dataAudit/achievement/examine.vue new file mode 100644 index 0000000..c542086 --- /dev/null +++ b/src/views/dataAudit/achievement/examine.vue @@ -0,0 +1,93 @@ + + \ No newline at end of file diff --git a/src/views/dataAudit/achievement/index.vue b/src/views/dataAudit/achievement/index.vue index 54dd591..d486190 100644 --- a/src/views/dataAudit/achievement/index.vue +++ b/src/views/dataAudit/achievement/index.vue @@ -25,7 +25,7 @@ > - + @@ -37,13 +37,13 @@ 修改 + 审核 + 认领专利 + 查看 + + + + 删除 + +
+ + 上传视频 + + 删除视频 +
@@ -76,6 +100,30 @@ :limit.sync="queryParams.page_size" @pagination="getList" /> + + + + + + + + + + + + + + + +