|
|
@@ -34,7 +34,7 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
- <el-form-item label="任务可见性" prop="resource" style="width:700px;" v-if="currType.type==0">
|
|
|
+ <el-form-item label="任务可见性" prop="resource" style="width:1000px;" v-if="currType.type==0">
|
|
|
<el-tabs :tab-position="tabPosition" v-model="task.resource" style="width: 800px">
|
|
|
<el-tab-pane :label="resourceType[0]" name="0">
|
|
|
<el-radio-group v-model="task.institution">
|
|
|
@@ -43,7 +43,7 @@
|
|
|
name="type"
|
|
|
v-for="item,index in institutionArray"
|
|
|
:key="index"
|
|
|
- >{{item.evaluationAgencyName}}
|
|
|
+ >{{item.name}}
|
|
|
</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-tab-pane>
|
|
|
@@ -122,7 +122,7 @@
|
|
|
import Apis from '@/js/api.js'
|
|
|
import ResourceType from '@/constants/enum/resource-type.js'
|
|
|
import {notify} from '@/constants/index'
|
|
|
- import {getAllAgencies, getAllServiceTypes, getProvinceNameByProvinceCode, storageGet} from '@/js/index'
|
|
|
+ import {getAllAgencies,getAllAgencyAndTestUser, getAllServiceTypes, getProvinceNameByProvinceCode, storageGet} from '@/js/index'
|
|
|
|
|
|
export default {
|
|
|
name: 'Task',
|
|
|
@@ -370,17 +370,17 @@
|
|
|
},
|
|
|
beforeFileUpload(file) {
|
|
|
console.log(file)
|
|
|
- const isPDF = file.type === 'application/pdf'
|
|
|
- const isDOC = file.type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
|
|
|
- const isEXCEL = file.type === 'application/vnd.ms-excel'
|
|
|
- const isXLS = file.type === 'application/x-xls'
|
|
|
- const isTXT = file.type === 'text/plain'
|
|
|
- const isXLSX = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
|
|
- //console.log(file)
|
|
|
- if (!(isDOC || isEXCEL || isPDF || isTXT || isXLS || isXLSX)) {
|
|
|
- this.$message.error('上传文件只能是 PDF 、 DOC 、DOCX 、XLS、TXT、XLSX 格式!')
|
|
|
- }
|
|
|
- return isDOC || isEXCEL || isPDF || isTXT || isXLS || isXLSX
|
|
|
+ // const isPDF = file.type === 'application/pdf'
|
|
|
+ // const isDOC = file.type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
|
|
|
+ // const isEXCEL = file.type === 'application/vnd.ms-excel'
|
|
|
+ // const isXLS = file.type === 'application/x-xls'
|
|
|
+ // const isTXT = file.type === 'text/plain'
|
|
|
+ // const isXLSX = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
|
|
+ // //console.log(file)
|
|
|
+ // if (!(isDOC || isEXCEL || isPDF || isTXT || isXLS || isXLSX)) {
|
|
|
+ // this.$message.error('上传文件只能是 PDF 、 DOC 、DOCX 、XLS、TXT、XLSX 格式!')
|
|
|
+ // }
|
|
|
+ // return isDOC || isEXCEL || isPDF || isTXT || isXLS || isXLSX
|
|
|
},
|
|
|
uploadRequireDoc(param) {
|
|
|
this.showLoading()
|
|
|
@@ -406,7 +406,7 @@
|
|
|
})
|
|
|
},
|
|
|
setInstitutions() {
|
|
|
- getAllAgencies().then((res) => {
|
|
|
+ getAllAgencyAndTestUser().then((res) => {
|
|
|
this.institutionArray = res
|
|
|
console.log(this.institutionArray)
|
|
|
}).catch((error) => {
|