Commit b358ed6c authored by wangxl's avatar wangxl

1111

parent fec9829e
......@@ -453,7 +453,6 @@ export default {
const rowMarks = [ 'A' ]
this.$api.statistical.getProjectGroupScoreOrder({ reportYear: this.reportYear, startRow: 3, rowMarks: rowMarks }).then(({ data = {} }) => {
if (data) {
console.log(data)
this.eTableData = data.groupScoreList
this.eMergeList = data.mergeList
......
<template>
<div class="file_view">
<a-tag :color="enums.fileColor[getFileExtension(fileName).toLowerCase()]" class="file_name" :title=" fileName">{{ fileName }}</a-tag>
<a-button v-show="isOpen" shape="circle" size="small" icon="search" @click="FileView()" class="btn" />
<div class="file_doc_v">
<div>
<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>
<preview-file v-model="fileUrl" :fileName="fileName"></preview-file>
</a-modal>
<a class="ant-dropdown-link dlw" style="margin-left:6px" :href="fileUrl" :download="fileName">
<a-icon type="download" />
</a>
</div>
</template>
......@@ -65,23 +66,23 @@ export default {
};
</script>
<style scoped lang="less">
.file_view {
position: relative;
.file_name {
max-width: calc(100% - 55px);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: inline-block;
vertical-align: bottom;
.file_doc_v {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
> div:nth-child(1) {
max-width: calc(100% - 20px);
// overflow: hidden;
// white-space: nowrap;
// text-overflow: ellipsis;
}
.btn {
position: absolute;
right: 26px;
.ant-tag-blue {
background: none !important;
}
.dlw {
position: absolute;
right: 10px;
.ant-tag {
display: inline !important;
border:0 !important;
}
}
</style>
<template>
<div v-if="file.downloadUrl" class="file-box">
<div>
<document-view :fileUrl="file.downloadUrl" :fileName="file.fileName" :imageArray="[file.downloadUrl]"></document-view>
<div class="upload-layout">
<div v-if="file.downloadUrl" class="file-lay">
<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>
<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>
</template>
<script>
......@@ -124,13 +126,15 @@ export default {
</script>
<style scoped lang="less">
.upload-layout {
display: inline-block;
margin: 0 10px;
height: 30px;
line-height: 30px;
.file-box {
width: 100%;
.file-lay {
display: flex;
justify-content: center;
align-items: center;
margin: 0 8px;
> div:nth-child(1) {
max-width: calc(100% - 0px);
}
}
.visually-hidden {
display: none !important;
......
<template>
<div class="upload-layout">
<div v-if="file.downloadUrl" class="file-box">
<div v-if="file.downloadUrl" class="file-lay">
<div>
<a-icon type="file" style="margin-right: 6px" />
<span class="hover-pointer" style="color:blue;text-decoration:underline;font-size: 16px;" @click="downloadfile">{{file.fileName}}</span>
<document-view :fileUrl="file.downloadUrl" :fileName="file.fileName" :imageArray="[file.downloadUrl]"></document-view>
</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 v-else>
<input type="file" ref="fileElem" class="visually-hidden" @change="handleFiles">
......@@ -17,8 +16,12 @@
</template>
<script>
const File = { fileName: null, downloadUrl: null, fileExplain: null, downloadId: null }
import documentView from '@/views/components/common/documentView'
export default {
name: "FileUpload",
components: {
documentView
},
data () {
return {
......@@ -45,7 +48,7 @@ export default {
},
},
created () {
console.log(this.format)
},
methods: {
fileSelect () {
......@@ -137,22 +140,14 @@ export default {
</script>
<style scoped lang="less">
.upload-layout {
display: inline-block;
margin: 0 10px;
height: 30px;
line-height: 30px;
.file-box {
width: 100%;
.file-lay {
display: flex;
justify-content: space-between;
justify-content: center;
align-items: center;
margin: 0 8px;
> div:nth-child(1) {
max-width: 90%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: calc(100% - 0px);
}
}
.visually-hidden {
......
......@@ -143,7 +143,6 @@ export default {
if (data) {
const { dataList = [], total = 0 } = data
this.tableData = dataList
console.log(dataList)
this.pagination.total = total
this.tableData.forEach(e => {
if (e.startDate) {
......
......@@ -77,7 +77,6 @@ export default {
this.$api.project.getProjectInfoById({ id: this.value }).then(({ data = {} }) => {
if (data) {
this.projectInfo = data
console.log(this.projType)
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)
fileArr.push(this.projectInfo.fileList[i])
......
......@@ -299,8 +299,6 @@ export default {
})
})
this.a = list
console.log(list)
// console.log(this.totalRow, this.row3, this.row2, this.row1)
}
},
};
......
......@@ -96,7 +96,6 @@ export default {
this.defaultExpandedKeys = value
},
filterOption (inputValue, option) {
// console.log('filterOption', inputValue, option)
return option.description.indexOf(inputValue) > -1;
},
handleChange (targetKeys, direction, moveKeys) {
......
......@@ -189,7 +189,6 @@ export default {
this.id = selectedRows[0].id
},
conclusionSubmit () {
console.log(this.id)
this.loading = true
let par = { id: this.id }
this.$api.conclusion.createConclusionRecord(par).then(({ code, data }) => {
......
......@@ -100,13 +100,10 @@ export default {
}
},
submit () {
// console.log(tinymce.activeEditor.getContent())
// console.log(this.textContent)
this.formData.content = tinymce.activeEditor.getContent()
this.$refs.from.validate(valid => {
if (valid) {
this.loading = true
console.log(this.formData)
this.$api.notice.save(this.formData).then(({ data = {} }) => {
if (data) {
this.formData.id = data
......
......@@ -428,7 +428,6 @@ export default {
const rowMarks = [ 'A' ]
this.$api.statistical.getProjectGroupScoreOrder({ reportYear: this.reportYear, startRow: 3, rowMarks: rowMarks }).then(({ data = {} }) => {
if (data) {
console.log(data)
this.eTableData = data.groupScoreList
//this.eMergeList = data.mergeList
......
......@@ -480,7 +480,6 @@ export default {
const rowMarks = [ 'A' ]
this.$api.statistical.getProjectGroupScoreOrder({ reportYear: this.reportYear, startRow: 3, rowMarks: rowMarks }).then(({ data = {} }) => {
if (data) {
console.log(data)
this.eTableData = data.groupScoreList
//this.eMergeList = data.mergeList
......
......@@ -1198,7 +1198,6 @@ export default {
},
endDateChange (value, dateString) {
this.formData.projectKPI.endDate = this.formData.endDate
console.log(this.formData.projectKPI)
}
},
watch: {
......
......@@ -450,22 +450,24 @@
<a-row type="flex">
<a-col :span="24" class="bg-gray">
<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>
</div>
</a-col>
</a-row>
<a-row type="flex">
<a-col :span="24">
<div style="height:42px;line-height: 42px;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>
<up-load :isUpload="true" :file.sync="formData" :format="['doc', 'docx']"/>
<div style="min-height:34px;line-height: 40px;text-align: center;">
<up-load :isUpload="true" :file.sync="formData" :format="['doc', 'docx']" />
</div>
</a-col>
</a-row>
<a-row type="flex">
<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-row>
......@@ -476,6 +478,8 @@
</template>
<script>
import documentView from '@/views/components/common/documentView'
import previewFile from '@/views/components/common/previewFile'
import { getType } from '@/views/utils/auth'
import projectMemberEdit from '@/views/report/project/components/projectMemberEdit'
import cooperativeUnitsEdit from '@/views/report/project/components/cooperativeUnitsEdit'
......@@ -534,7 +538,7 @@ const projectKPI = {
export default {
name: 'projectEdit',
components: {
projectMemberEdit, cooperativeUnitsEdit, budgetEdit, fundPlanEdit, projectKpiEdit, fileEdit
projectMemberEdit, cooperativeUnitsEdit, budgetEdit, fundPlanEdit, projectKpiEdit, fileEdit, previewFile, documentView
},
props: {
value: {
......
......@@ -502,14 +502,16 @@
<div v-if="tabsData[5].isShow">
<a-row>
<a-col :span="24" style="border-top: 0px">
<div class="tb-title">
<div class="main-title">
<span>申请书正文</span>
</div>
</a-col>
</a-row>
<a-row type="flex">
<a-col :span="24">
<div v-html="toTextarea(value.projContent)"></div>
<a-col :span="24" class="bg-gray">
<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-row>
</div>
......@@ -569,7 +571,6 @@ export default {
{ title: '附件信息', key: '6', isShow: true },
{ title: '项目审核记录', key: '7', isShow: true },
]
console.log(this.value)
},
mounted () {
},
......
......@@ -214,8 +214,6 @@ export default {
item.downloadUrl = data.downloadUrl
item.downloadId = data.id
item.fileExplain = data.fileExplain
console.log(data)
console.log(this.projectInfo.fileList)
} else
this.$message.error('上传失败')
}).catch(() => {
......
......@@ -255,7 +255,6 @@ export default {
})
},
submit () {
console.log(this.formPwd)
this.$refs.formPwd.validate(valid => {
if (valid) {
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