【修改】政策文号不必填 名称可跳转 模版上次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 <el-form-item
label="政策名称" label="政策名称"
:prop="!disabledXX ? 'lawsName':''" :prop="!disabledXX ? 'lawsName':''"
class="add-form-item form-item-disabled" class="add-form-item form-item-disabled cursor-poin"
> >
<el-input <el-input
v-model="dataForm.lawsName" v-model="dataForm.lawsName"
:disabled="true" readonly
placeholder="请输入政策名称" placeholder="请输入政策名称"
clearable clearable
@click.native="goDeatil"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@@ -166,7 +167,7 @@
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
size="mini" 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> </el-button>
@@ -361,6 +362,7 @@ export default {
}, },
data () { data () {
return { return {
linkUrl:'',//调准页面
active: '1', active: '1',
accept: '', accept: '',
fileMax_M: 0, fileMax_M: 0,
@@ -369,7 +371,7 @@ export default {
nodeList: [], nodeList: [],
formRules: { formRules: {
lawsNo: [ lawsNo: [
{ required: true, message: '请输入政策文号', trigger: 'change' }, // { required: true, message: '请输入政策文号', trigger: 'change' },
], ],
lawsName: [ lawsName: [
{ required: true, message: '请输入政策名称', trigger: 'change' }, { required: true, message: '请输入政策名称', trigger: 'change' },
@@ -548,6 +550,11 @@ export default {
} }
}, },
methods: { methods: {
//跳转到政策详情
goDeatil(){
if(this.linkUrl)
window.open(this.linkUrl,'_blank')
},
handlePreview (file) { handlePreview (file) {
let attId = '' let attId = ''
if (file && file.id) { if (file && file.id) {
@@ -566,6 +573,7 @@ export default {
this.dataForm.lawsNo = row.lawsNo this.dataForm.lawsNo = row.lawsNo
this.dataForm.lawsName = row.lawsName this.dataForm.lawsName = row.lawsName
this.dataForm.lawsId = row.id this.dataForm.lawsId = row.id
this.linkUrl=row.lawsDetailLink
this.dataForm = { ...this.dataForm } this.dataForm = { ...this.dataForm }
}, },
handleSearchStandard () { handleSearchStandard () {
@@ -1067,4 +1075,10 @@ export default {
.addButton { .addButton {
display: inline-block; display: inline-block;
} }
.cursor-poin {
/deep/ .el-input .el-input__inner{
cursor: pointer !important;
color: #0c91e5 !important;
}
}
</style> </style>