|
|
@@ -23,15 +23,15 @@
|
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span style="font-weight: bold"> 企业资质</span>
|
|
|
- <el-button style="float: right; padding: 3px 0" type="text" @click="showDialog" v-if="canadd">添加</el-button>
|
|
|
+ <el-button style="float: right; padding: 3px 0" type="text" @click="showDialog" v-if="canadd || newcanadd">添加</el-button>
|
|
|
</div>
|
|
|
<el-table :data="subfileList" border>
|
|
|
<el-table-column label="操作" width="150" align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="primary" plain size="mini" title="上传" @click="openDialog(scope.row)" :disabled="!canadd">上传
|
|
|
+ <el-button type="primary" plain size="mini" title="上传" @click="openDialog(scope.row)" :disabled="!canadd && !newcanadd">上传
|
|
|
</el-button>
|
|
|
<el-button type="primary" plain size="mini" title="删除" style="margin-left:3px"
|
|
|
- :disabled="scope.row.FileType == '1' || !canadd" @click="deletedata(scope.row)">删除</el-button>
|
|
|
+ :disabled="(scope.row.FileType == '1' || !canadd) && !newcanadd" @click="deletedata(scope.row)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="NeedFileType" label="资质名称" show-overflow-tooltip></el-table-column>
|
|
|
@@ -142,6 +142,10 @@
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
},
|
|
|
+ newcanadd: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
+ },
|
|
|
flag: {
|
|
|
type: String
|
|
|
}
|
|
|
@@ -363,7 +367,7 @@
|
|
|
},
|
|
|
deletedata (val) {
|
|
|
let _this = this
|
|
|
- _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
+ _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
@@ -376,20 +380,20 @@
|
|
|
type: 'success',
|
|
|
message: response.data.message
|
|
|
})
|
|
|
- _this.initData()
|
|
|
- } else {
|
|
|
+ _this.initData()
|
|
|
+ } else {
|
|
|
_this.$message({
|
|
|
type: 'warning',
|
|
|
message: response.data.message
|
|
|
})
|
|
|
- }
|
|
|
+ }
|
|
|
})
|
|
|
.catch(function (error) {
|
|
|
console.log(error)
|
|
|
- })
|
|
|
- })
|
|
|
+ })
|
|
|
+ })
|
|
|
.catch(() => {})
|
|
|
- },
|
|
|
+ },
|
|
|
nextStep () {
|
|
|
if (this.businessList && this.businessList.length > 0) {
|
|
|
if (this.subfileList && this.subfileList.length > 0) {
|
|
|
@@ -481,7 +485,7 @@
|
|
|
if (isLt512K) {
|
|
|
this.$message.error('上传文件大小不能小于 512KB!')
|
|
|
return false
|
|
|
- }*/
|
|
|
+ } */
|
|
|
if (this.SubfileForm.NeedFileType != this.yasuoname) {
|
|
|
let isLt50m = file.size / 1024 / 1024 / 5 < 1
|
|
|
if (!isLt50m) {
|