|
@@ -5,39 +5,39 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="mt-10" style="width: 90%">
|
|
<div class="mt-10" style="width: 90%">
|
|
|
<avue-crud
|
|
<avue-crud
|
|
|
- :option="option"
|
|
|
|
|
- :data="data"
|
|
|
|
|
- ref="crud"
|
|
|
|
|
- v-model="form"
|
|
|
|
|
- :before-open="beforeOpen"
|
|
|
|
|
- @row-del="rowDel"
|
|
|
|
|
- @row-save="rowSave"
|
|
|
|
|
- @row-update="rowUpdate"
|
|
|
|
|
|
|
+ :option="option"
|
|
|
|
|
+ :data="data"
|
|
|
|
|
+ ref="crud"
|
|
|
|
|
+ v-model="form"
|
|
|
|
|
+ :before-open="beforeOpen"
|
|
|
|
|
+ @row-del="rowDel"
|
|
|
|
|
+ @row-save="rowSave"
|
|
|
|
|
+ @row-update="rowUpdate"
|
|
|
>
|
|
>
|
|
|
<template #menu-right>
|
|
<template #menu-right>
|
|
|
<div class="full-width">
|
|
<div class="full-width">
|
|
|
<el-button
|
|
<el-button
|
|
|
- icon="el-icon-refresh"
|
|
|
|
|
- circle
|
|
|
|
|
- @click="proInfo"
|
|
|
|
|
|
|
+ icon="el-icon-refresh"
|
|
|
|
|
+ circle
|
|
|
|
|
+ @click="proInfo"
|
|
|
></el-button>
|
|
></el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<template #menu="{ row }">
|
|
<template #menu="{ row }">
|
|
|
<el-button
|
|
<el-button
|
|
|
- text
|
|
|
|
|
- type="primary"
|
|
|
|
|
- icon="el-icon-folder-checked"
|
|
|
|
|
- @click="openFolder(row)"
|
|
|
|
|
- >打开文件夹
|
|
|
|
|
|
|
+ text
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-folder-checked"
|
|
|
|
|
+ @click="openFolder(row)"
|
|
|
|
|
+ >打开文件夹
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
- text
|
|
|
|
|
- type="primary"
|
|
|
|
|
- icon="el-icon-view"
|
|
|
|
|
- @click="edit(row)"
|
|
|
|
|
- v-if="detail.can_update"
|
|
|
|
|
- >文号提取
|
|
|
|
|
|
|
+ text
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-view"
|
|
|
|
|
+ @click="edit(row)"
|
|
|
|
|
+ v-if="detail.can_update"
|
|
|
|
|
+ >文号提取
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<template #file="{ row }">
|
|
<template #file="{ row }">
|
|
@@ -56,22 +56,23 @@
|
|
|
<div>
|
|
<div>
|
|
|
<div class="bold font-16">{{ currentRow.file.originalFileName }}</div>
|
|
<div class="bold font-16">{{ currentRow.file.originalFileName }}</div>
|
|
|
<el-input
|
|
<el-input
|
|
|
- class="mt-20"
|
|
|
|
|
- v-model="currentRow.file.copyNumber"
|
|
|
|
|
- placeholder="附件清晰度或手写原因导致文号提取失败,请进行手动填写"
|
|
|
|
|
|
|
+ class="mt-20"
|
|
|
|
|
+ v-model="currentRow.file.copyNumber"
|
|
|
|
|
+ placeholder="附件清晰度或手写原因导致文号提取失败,请进行手动填写"
|
|
|
></el-input>
|
|
></el-input>
|
|
|
<div class="mt-20 full-width flex flex-justify-end">
|
|
<div class="mt-20 full-width flex flex-justify-end">
|
|
|
<el-button plain type="primary" @click="show = false"
|
|
<el-button plain type="primary" @click="show = false"
|
|
|
- >取 消</el-button
|
|
|
|
|
|
|
+ >取 消
|
|
|
|
|
+ </el-button
|
|
|
>
|
|
>
|
|
|
<el-button type="primary" @click="updateCopyNumber">确定</el-button>
|
|
<el-button type="primary" @click="updateCopyNumber">确定</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<el-image-viewer
|
|
<el-image-viewer
|
|
|
- v-if="showImage"
|
|
|
|
|
- :url-list="preList"
|
|
|
|
|
- @close="showImage = false"
|
|
|
|
|
|
|
+ v-if="showImage"
|
|
|
|
|
+ :url-list="preList"
|
|
|
|
|
+ @close="showImage = false"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -215,7 +216,8 @@ export default {
|
|
|
{
|
|
{
|
|
|
label: '审批事项(要件)类型',
|
|
label: '审批事项(要件)类型',
|
|
|
prop: 'name',
|
|
prop: 'name',
|
|
|
- display: false
|
|
|
|
|
|
|
+ display: false,
|
|
|
|
|
+ width: 170
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '文件名称',
|
|
label: '文件名称',
|
|
@@ -285,7 +287,7 @@ export default {
|
|
|
if (api.offices.includes(item.file.suffix)) {
|
|
if (api.offices.includes(item.file.suffix)) {
|
|
|
const routeData = this.$router.resolve({
|
|
const routeData = this.$router.resolve({
|
|
|
path: '/home/file_detail',
|
|
path: '/home/file_detail',
|
|
|
- query: { id: item.fileId }
|
|
|
|
|
|
|
+ query: {id: item.fileId}
|
|
|
})
|
|
})
|
|
|
window.open(routeData.href, '_blank')
|
|
window.open(routeData.href, '_blank')
|
|
|
} else {
|
|
} else {
|
|
@@ -331,7 +333,7 @@ export default {
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
if (res === 'confirm') {
|
|
if (res === 'confirm') {
|
|
|
- this.$api.project.fileRemove({ ids: row.pid, type: 3 }).then(res => {
|
|
|
|
|
|
|
+ this.$api.project.fileRemove({ids: row.pid, type: 3}).then(res => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
this.$message.success(res.msg)
|
|
this.$message.success(res.msg)
|
|
|
this.proInfo()
|
|
this.proInfo()
|
|
@@ -353,18 +355,18 @@ export default {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
this.$api.common
|
|
this.$api.common
|
|
|
- .fileUpdate({
|
|
|
|
|
- id: this.currentRow.fileId,
|
|
|
|
|
- copyNumber: this.currentRow.file.copyNumber
|
|
|
|
|
- })
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- if (res.code === 200) {
|
|
|
|
|
- this.show = false
|
|
|
|
|
- this.$message.success(res.msg)
|
|
|
|
|
- } else {
|
|
|
|
|
- this.$message.error(res.msg)
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ .fileUpdate({
|
|
|
|
|
+ id: this.currentRow.fileId,
|
|
|
|
|
+ copyNumber: this.currentRow.file.copyNumber
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
|
+ this.show = false
|
|
|
|
|
+ this.$message.success(res.msg)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|