Commit b358ed6c authored by wangxl's avatar wangxl

1111

parent fec9829e
...@@ -453,7 +453,6 @@ export default { ...@@ -453,7 +453,6 @@ export default {
const rowMarks = [ 'A' ] const rowMarks = [ 'A' ]
this.$api.statistical.getProjectGroupScoreOrder({ reportYear: this.reportYear, startRow: 3, rowMarks: rowMarks }).then(({ data = {} }) => { this.$api.statistical.getProjectGroupScoreOrder({ reportYear: this.reportYear, startRow: 3, rowMarks: rowMarks }).then(({ data = {} }) => {
if (data) { if (data) {
console.log(data)
this.eTableData = data.groupScoreList this.eTableData = data.groupScoreList
this.eMergeList = data.mergeList this.eMergeList = data.mergeList
......
<template> <template>
<div class="file_view"> <div class="file_doc_v">
<a-tag :color="enums.fileColor[getFileExtension(fileName).toLowerCase()]" class="file_name" :title=" fileName">{{ fileName }}</a-tag> <div>
<a-button v-show="isOpen" shape="circle" size="small" icon="search" @click="FileView()" class="btn" /> <a class="ant-dropdown-link dlw" style="width: calc(100% - 4px);margin-left:6px;display: block;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;" :href="fileUrl" :download="fileName">
<a-tag :color="enums.fileColor[getFileExtension(fileName).toLowerCase()]" class="file_name" :title=" fileName" style="cursor: pointer;">{{ fileName }}</a-tag>
</a>
</div>
<a-button v-show="isOpen" shape="circle" size="small" icon="search" @click="FileView()" class="btn" style="margin: 0 2px;" />
<a-modal v-model="visibleFileView" :title="'[' + fileName + '] 文件查看'" width="1000px" :dialog-style="{ top: '10%' }" :footer="null" destroyOnClose> <a-modal v-model="visibleFileView" :title="'[' + fileName + '] 文件查看'" width="1000px" :dialog-style="{ top: '10%' }" :footer="null" destroyOnClose>
<preview-file v-model="fileUrl" :fileName="fileName"></preview-file> <preview-file v-model="fileUrl" :fileName="fileName"></preview-file>
</a-modal> </a-modal>
<a class="ant-dropdown-link dlw" style="margin-left:6px" :href="fileUrl" :download="fileName">
<a-icon type="download" />
</a>
</div> </div>
</template> </template>
...@@ -65,23 +66,23 @@ export default { ...@@ -65,23 +66,23 @@ export default {
}; };
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.file_view { .file_doc_v {
position: relative; width: 100%;
.file_name { display: flex;
max-width: calc(100% - 55px); justify-content: center;
overflow: hidden; align-items: center;
text-overflow: ellipsis; > div:nth-child(1) {
white-space: nowrap; max-width: calc(100% - 20px);
display: inline-block; // overflow: hidden;
vertical-align: bottom; // white-space: nowrap;
// text-overflow: ellipsis;
} }
.btn { .ant-tag-blue {
position: absolute; background: none !important;
right: 26px;
} }
.dlw { .ant-tag {
position: absolute; display: inline !important;
right: 10px; border:0 !important;
} }
} }
</style> </style>
<template> <template>
<div v-if="file.downloadUrl" class="file-box"> <div class="upload-layout">
<div> <div v-if="file.downloadUrl" class="file-lay">
<document-view :fileUrl="file.downloadUrl" :fileName="file.fileName" :imageArray="[file.downloadUrl]"></document-view> <div>
<document-view :fileUrl="file.downloadUrl" :fileName="file.fileName" :imageArray="[file.downloadUrl]"></document-view>
</div>
<a-icon type="delete" class="hover-pointer d-icon" @click="deletefile(file)" style="margin: 0px 4px;" />
</div>
<div v-else>
<a-form-model-item :prop="name +'.'+ index + '.downloadUrl'" :rules="{required: true, message: '请上传附件',trigger: 'blur',}">
<input type="file" :ref="name +'fileElem' + index" class="visually-hidden" @change="handleFiles(file, index)" />
<a-button @click="fileSelect(index)"><a-icon type="upload" />选择文件</a-button>
</a-form-model-item>
</div> </div>
<a-icon type="delete" class="hover-pointer d-icon" @click="deletefile(file)" />
</div>
<div v-else>
<a-form-model-item :prop="name +'.'+ index + '.downloadUrl'" :rules="{required: true, message: '请上传附件',trigger: 'blur',}">
<input type="file" :ref="name +'fileElem' + index" class="visually-hidden" @change="handleFiles(file, index)" />
<a-button @click="fileSelect(index)"><a-icon type="upload" />选择文件</a-button>
</a-form-model-item>
</div> </div>
</template> </template>
<script> <script>
...@@ -124,13 +126,15 @@ export default { ...@@ -124,13 +126,15 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.upload-layout { .upload-layout {
display: inline-block; width: 100%;
margin: 0 10px; .file-lay {
height: 30px; display: flex;
line-height: 30px; justify-content: center;
align-items: center;
.file-box {
margin: 0 8px; margin: 0 8px;
> div:nth-child(1) {
max-width: calc(100% - 0px);
}
} }
.visually-hidden { .visually-hidden {
display: none !important; display: none !important;
......
<template> <template>
<div class="upload-layout"> <div class="upload-layout">
<div v-if="file.downloadUrl" class="file-box"> <div v-if="file.downloadUrl" class="file-lay">
<div> <div>
<a-icon type="file" style="margin-right: 6px" /> <document-view :fileUrl="file.downloadUrl" :fileName="file.fileName" :imageArray="[file.downloadUrl]"></document-view>
<span class="hover-pointer" style="color:blue;text-decoration:underline;font-size: 16px;" @click="downloadfile">{{file.fileName}}</span>
</div> </div>
<a-icon type="delete" class="hover-pointer" @click="deletefile" style="margin-left: 8px" /> <a-icon type="delete" class="hover-pointer d-icon" @click="deletefile(file)" style="margin: 0px 1px;" />
</div> </div>
<div v-else> <div v-else>
<input type="file" ref="fileElem" class="visually-hidden" @change="handleFiles"> <input type="file" ref="fileElem" class="visually-hidden" @change="handleFiles">
...@@ -17,8 +16,12 @@ ...@@ -17,8 +16,12 @@
</template> </template>
<script> <script>
const File = { fileName: null, downloadUrl: null, fileExplain: null, downloadId: null } const File = { fileName: null, downloadUrl: null, fileExplain: null, downloadId: null }
import documentView from '@/views/components/common/documentView'
export default { export default {
name: "FileUpload", name: "FileUpload",
components: {
documentView
},
data () { data () {
return { return {
...@@ -45,7 +48,7 @@ export default { ...@@ -45,7 +48,7 @@ export default {
}, },
}, },
created () { created () {
console.log(this.format)
}, },
methods: { methods: {
fileSelect () { fileSelect () {
...@@ -137,22 +140,14 @@ export default { ...@@ -137,22 +140,14 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.upload-layout { .upload-layout {
display: inline-block; width: 100%;
margin: 0 10px; .file-lay {
height: 30px;
line-height: 30px;
.file-box {
display: flex; display: flex;
justify-content: space-between; justify-content: center;
align-items: center; align-items: center;
margin: 0 8px; margin: 0 8px;
> div:nth-child(1) { > div:nth-child(1) {
max-width: 90%; max-width: calc(100% - 0px);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
.visually-hidden { .visually-hidden {
......
...@@ -143,7 +143,6 @@ export default { ...@@ -143,7 +143,6 @@ export default {
if (data) { if (data) {
const { dataList = [], total = 0 } = data const { dataList = [], total = 0 } = data
this.tableData = dataList this.tableData = dataList
console.log(dataList)
this.pagination.total = total this.pagination.total = total
this.tableData.forEach(e => { this.tableData.forEach(e => {
if (e.startDate) { if (e.startDate) {
......
...@@ -77,7 +77,6 @@ export default { ...@@ -77,7 +77,6 @@ export default {
this.$api.project.getProjectInfoById({ id: this.value }).then(({ data = {} }) => { this.$api.project.getProjectInfoById({ id: this.value }).then(({ data = {} }) => {
if (data) { if (data) {
this.projectInfo = data this.projectInfo = data
console.log(this.projType)
for (let i = 0; i < this.projectInfo.fileList.length; i++) { for (let i = 0; i < this.projectInfo.fileList.length; i++) {
if (this.projectInfo.fileList[i].fileExplain.indexOf("项目申报简要信息首页") == -1 && this.projectInfo.fileList[i].fileExplain.indexOf("项目组成员签字") == -1) if (this.projectInfo.fileList[i].fileExplain.indexOf("项目申报简要信息首页") == -1 && this.projectInfo.fileList[i].fileExplain.indexOf("项目组成员签字") == -1)
fileArr.push(this.projectInfo.fileList[i]) fileArr.push(this.projectInfo.fileList[i])
......
...@@ -299,8 +299,6 @@ export default { ...@@ -299,8 +299,6 @@ export default {
}) })
}) })
this.a = list this.a = list
console.log(list)
// console.log(this.totalRow, this.row3, this.row2, this.row1)
} }
}, },
}; };
......
...@@ -96,7 +96,6 @@ export default { ...@@ -96,7 +96,6 @@ export default {
this.defaultExpandedKeys = value this.defaultExpandedKeys = value
}, },
filterOption (inputValue, option) { filterOption (inputValue, option) {
// console.log('filterOption', inputValue, option)
return option.description.indexOf(inputValue) > -1; return option.description.indexOf(inputValue) > -1;
}, },
handleChange (targetKeys, direction, moveKeys) { handleChange (targetKeys, direction, moveKeys) {
......
...@@ -189,7 +189,6 @@ export default { ...@@ -189,7 +189,6 @@ export default {
this.id = selectedRows[0].id this.id = selectedRows[0].id
}, },
conclusionSubmit () { conclusionSubmit () {
console.log(this.id)
this.loading = true this.loading = true
let par = { id: this.id } let par = { id: this.id }
this.$api.conclusion.createConclusionRecord(par).then(({ code, data }) => { this.$api.conclusion.createConclusionRecord(par).then(({ code, data }) => {
......
...@@ -100,13 +100,10 @@ export default { ...@@ -100,13 +100,10 @@ export default {
} }
}, },
submit () { submit () {
// console.log(tinymce.activeEditor.getContent())
// console.log(this.textContent)
this.formData.content = tinymce.activeEditor.getContent() this.formData.content = tinymce.activeEditor.getContent()
this.$refs.from.validate(valid => { this.$refs.from.validate(valid => {
if (valid) { if (valid) {
this.loading = true this.loading = true
console.log(this.formData)
this.$api.notice.save(this.formData).then(({ data = {} }) => { this.$api.notice.save(this.formData).then(({ data = {} }) => {
if (data) { if (data) {
this.formData.id = data this.formData.id = data
......
...@@ -428,7 +428,6 @@ export default { ...@@ -428,7 +428,6 @@ export default {
const rowMarks = [ 'A' ] const rowMarks = [ 'A' ]
this.$api.statistical.getProjectGroupScoreOrder({ reportYear: this.reportYear, startRow: 3, rowMarks: rowMarks }).then(({ data = {} }) => { this.$api.statistical.getProjectGroupScoreOrder({ reportYear: this.reportYear, startRow: 3, rowMarks: rowMarks }).then(({ data = {} }) => {
if (data) { if (data) {
console.log(data)
this.eTableData = data.groupScoreList this.eTableData = data.groupScoreList
//this.eMergeList = data.mergeList //this.eMergeList = data.mergeList
......
...@@ -480,7 +480,6 @@ export default { ...@@ -480,7 +480,6 @@ export default {
const rowMarks = [ 'A' ] const rowMarks = [ 'A' ]
this.$api.statistical.getProjectGroupScoreOrder({ reportYear: this.reportYear, startRow: 3, rowMarks: rowMarks }).then(({ data = {} }) => { this.$api.statistical.getProjectGroupScoreOrder({ reportYear: this.reportYear, startRow: 3, rowMarks: rowMarks }).then(({ data = {} }) => {
if (data) { if (data) {
console.log(data)
this.eTableData = data.groupScoreList this.eTableData = data.groupScoreList
//this.eMergeList = data.mergeList //this.eMergeList = data.mergeList
......
...@@ -1198,7 +1198,6 @@ export default { ...@@ -1198,7 +1198,6 @@ export default {
}, },
endDateChange (value, dateString) { endDateChange (value, dateString) {
this.formData.projectKPI.endDate = this.formData.endDate this.formData.projectKPI.endDate = this.formData.endDate
console.log(this.formData.projectKPI)
} }
}, },
watch: { watch: {
......
...@@ -450,22 +450,24 @@ ...@@ -450,22 +450,24 @@
<a-row type="flex"> <a-row type="flex">
<a-col :span="24" class="bg-gray"> <a-col :span="24" class="bg-gray">
<div class="special-middle" style="font-weight: bold;text-align: center;"> <div class="special-middle" style="font-weight: bold;text-align: center;">
<a :href="'/downloadFile/textTemplate.docx'" download="申请书正文.docx">
<a-icon type="download"></a-icon>&nbsp;<span style="color:green;text-decoration:underline;font-size: 16px;">正文模板下载</span>
</a>
<span style="color: red;margin-left: 42px;">注:正文部分需要下载模版,填写完成后上传到系统中,格式 .doc,.docx。</span> <span style="color: red;margin-left: 42px;">注:正文部分需要下载模版,填写完成后上传到系统中,格式 .doc,.docx。</span>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
<a-row type="flex"> <a-row type="flex">
<a-col :span="24"> <a-col :span="24">
<div style="height:42px;line-height: 42px;text-align: center;"> <div style="min-height:34px;line-height: 40px;text-align: center;">
<a :href="'/downloadFile/textTemplate.docx'" download="申请书正文.docx"> <up-load :isUpload="true" :file.sync="formData" :format="['doc', 'docx']" />
<a-icon type="download"></a-icon>&nbsp;<span style="color:green;text-decoration:underline;font-size: 16px;">正文模板下载</span>
</a>
<up-load :isUpload="true" :file.sync="formData" :format="['doc', 'docx']"/>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
<a-row type="flex"> <a-row type="flex">
<a-col :span="24"> <a-col :span="24">
<!-- <document-view :fileUrl="formData.downloadUrl" :fileName="formData.fileName" :imageArray="[formData.downloadUrl]"></document-view>
<preview-file v-model="formData.downloadUrl" :fileName="formData.fileName"></preview-file> -->
</a-col> </a-col>
</a-row> </a-row>
...@@ -476,6 +478,8 @@ ...@@ -476,6 +478,8 @@
</template> </template>
<script> <script>
import documentView from '@/views/components/common/documentView'
import previewFile from '@/views/components/common/previewFile'
import { getType } from '@/views/utils/auth' import { getType } from '@/views/utils/auth'
import projectMemberEdit from '@/views/report/project/components/projectMemberEdit' import projectMemberEdit from '@/views/report/project/components/projectMemberEdit'
import cooperativeUnitsEdit from '@/views/report/project/components/cooperativeUnitsEdit' import cooperativeUnitsEdit from '@/views/report/project/components/cooperativeUnitsEdit'
...@@ -534,7 +538,7 @@ const projectKPI = { ...@@ -534,7 +538,7 @@ const projectKPI = {
export default { export default {
name: 'projectEdit', name: 'projectEdit',
components: { components: {
projectMemberEdit, cooperativeUnitsEdit, budgetEdit, fundPlanEdit, projectKpiEdit, fileEdit projectMemberEdit, cooperativeUnitsEdit, budgetEdit, fundPlanEdit, projectKpiEdit, fileEdit, previewFile, documentView
}, },
props: { props: {
value: { value: {
......
...@@ -502,14 +502,16 @@ ...@@ -502,14 +502,16 @@
<div v-if="tabsData[5].isShow"> <div v-if="tabsData[5].isShow">
<a-row> <a-row>
<a-col :span="24" style="border-top: 0px"> <a-col :span="24" style="border-top: 0px">
<div class="tb-title"> <div class="main-title">
<span>申请书正文</span> <span>申请书正文</span>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
<a-row type="flex"> <a-row type="flex">
<a-col :span="24"> <a-col :span="24" class="bg-gray">
<div v-html="toTextarea(value.projContent)"></div> <div class="special-middle" style="font-weight: bold;text-align: center;">
<document-view :fileUrl="value.downloadUrl" :fileName="value.fileName" :imageArray="[value.downloadUrl]" v-if="!!value.downloadUrl"></document-view>
</div>
</a-col> </a-col>
</a-row> </a-row>
</div> </div>
...@@ -569,7 +571,6 @@ export default { ...@@ -569,7 +571,6 @@ export default {
{ title: '附件信息', key: '6', isShow: true }, { title: '附件信息', key: '6', isShow: true },
{ title: '项目审核记录', key: '7', isShow: true }, { title: '项目审核记录', key: '7', isShow: true },
] ]
console.log(this.value)
}, },
mounted () { mounted () {
}, },
......
...@@ -214,8 +214,6 @@ export default { ...@@ -214,8 +214,6 @@ export default {
item.downloadUrl = data.downloadUrl item.downloadUrl = data.downloadUrl
item.downloadId = data.id item.downloadId = data.id
item.fileExplain = data.fileExplain item.fileExplain = data.fileExplain
console.log(data)
console.log(this.projectInfo.fileList)
} else } else
this.$message.error('上传失败') this.$message.error('上传失败')
}).catch(() => { }).catch(() => {
......
...@@ -255,7 +255,6 @@ export default { ...@@ -255,7 +255,6 @@ export default {
}) })
}, },
submit () { submit () {
console.log(this.formPwd)
this.$refs.formPwd.validate(valid => { this.$refs.formPwd.validate(valid => {
if (valid) { if (valid) {
let pars = isEmptyParams(this.formPwd) let pars = isEmptyParams(this.formPwd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment