【修改】政策文号不必填 名称可跳转 模版上次pdf

This commit is contained in:
zhoulingpo
2024-07-01 14:41:26 +08:00
parent dba65e32a8
commit 588074fb80
@@ -66,13 +66,14 @@
<el-form-item
label="政策名称"
:prop="!disabledXX ? 'lawsName':''"
class="add-form-item form-item-disabled"
class="add-form-item form-item-disabled cursor-poin"
>
<el-input
v-model="dataForm.lawsName"
:disabled="true"
readonly
placeholder="请输入政策名称"
clearable
@click.native="goDeatil"
/>
</el-form-item>
</el-col>
@@ -166,7 +167,7 @@
type="primary"
class="common-button-primary"
size="mini"
@click="fileUpload('templateFileList','templateFileId','.zip,.docx,.doc,.xls,.xlsx',200)"
@click="fileUpload('templateFileList','templateFileId','.zip,.docx,.doc,.xls,.xlsx,.pdf',200)"
>
点击上传
</el-button>
@@ -361,6 +362,7 @@ export default {
},
data () {
return {
linkUrl:'',//调准页面
active: '1',
accept: '',
fileMax_M: 0,
@@ -369,7 +371,7 @@ export default {
nodeList: [],
formRules: {
lawsNo: [
{ required: true, message: '请输入政策文号', trigger: 'change' },
// { required: true, message: '请输入政策文号', trigger: 'change' },
],
lawsName: [
{ required: true, message: '请输入政策名称', trigger: 'change' },
@@ -548,6 +550,11 @@ export default {
}
},
methods: {
//跳转到政策详情
goDeatil(){
if(this.linkUrl)
window.open(this.linkUrl,'_blank')
},
handlePreview (file) {
let attId = ''
if (file && file.id) {
@@ -566,6 +573,7 @@ export default {
this.dataForm.lawsNo = row.lawsNo
this.dataForm.lawsName = row.lawsName
this.dataForm.lawsId = row.id
this.linkUrl=row.lawsDetailLink
this.dataForm = { ...this.dataForm }
},
handleSearchStandard () {
@@ -1067,4 +1075,10 @@ export default {
.addButton {
display: inline-block;
}
.cursor-poin {
/deep/ .el-input .el-input__inner{
cursor: pointer !important;
color: #0c91e5 !important;
}
}
</style>