[update] 新法规导入流程

This commit is contained in:
lideqin
2024-07-08 14:30:00 +08:00
parent c3e83bad67
commit 401f15d761
3 changed files with 129 additions and 13 deletions
@@ -0,0 +1,88 @@
<template>
<div class="selection-wrapper">
<div class="box-title-text">
<a-input class="box-input"
:value="nameStr || value"
:title="value"
disabled
:max-length="500"
:placeholder="placeholder">
</a-input>
<a-button type="primary" class="button-box" @click="standardClick">
{{ $t('lookDetail') }}
</a-button>
</div>
</div>
</template>
<script>
import { StandardSource } from '../../enums/commonEnums'
export default {
name: 'StandardDetail',
props: {
value: {
type: String,
default: ''
},
// 回显内容的字符串
nameStr: {
type: String,
required: false,
default: null
},
// 标准来源
source: {
type: String,
required: false,
default: null
},
// 标准id
standardId: {
type: String,
required: false,
default: null
}
},
methods: {
// 点击选择标准按钮
standardClick () {
let path = ''
if (this.source === StandardSource.FOREIGN.value) {
path = '/standardRegulationLibrary/foreignStandardDetailPage'
} else if (this.source === StandardSource.ENTERPRISE.value) {
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
}
this.$openPageNewSheet({
path: path,
query: {
id: this.standardId
}
})
}
}
}
</script>
<style scoped lang="less">
@import '~@assets/less/common.less';
.selection-wrapper {
height: 40px;
line-height: 40px;
}
.box-title-text {
height: 100%;
display: flex;
align-items: center;
.box-input {
width: 100%;
}
.button-box {
margin-left: 10px;
}
}
</style>