|
@@ -164,9 +164,9 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-
|
|
|
+import { patentDetails } from './mixins';
|
|
|
export default {
|
|
|
- mixins: [],
|
|
|
+ mixins: [patentDetails],
|
|
|
data() {
|
|
|
return {
|
|
|
inputLabelVisible: false,
|
|
@@ -175,49 +175,49 @@ export default {
|
|
|
},
|
|
|
watch:{
|
|
|
patent(val,oldVal){
|
|
|
- if(val!=oldVal){
|
|
|
- this.$nextTick(()=>{
|
|
|
- if(!this.projectId && !this.patent.abstractPath2 && this.patent.publicNo){
|
|
|
- var params = {
|
|
|
- patentCell:4,
|
|
|
- patentNo:this.patent.publicNo,
|
|
|
- appNo:this.patent.applicationNo,
|
|
|
- }
|
|
|
- this.$api.getPatentPart(params).then(response=>{
|
|
|
- if(response.code == 200){
|
|
|
- if(Object.keys(response.data).length>0 && response.data.image.length>0){
|
|
|
- this.$set(this.patent,'abstractPath2',response.data.image[0].url)
|
|
|
- }else{
|
|
|
- this.$set(this.patent,'abstractPath2','q')
|
|
|
- }
|
|
|
+ // if(val!=oldVal){
|
|
|
+ // this.$nextTick(()=>{
|
|
|
+ // if(!this.projectId && !this.patent.abstractPath2 && this.patent.publicNo){
|
|
|
+ // var params = {
|
|
|
+ // patentCell:4,
|
|
|
+ // patentNo:this.patent.publicNo,
|
|
|
+ // appNo:this.patent.applicationNo,
|
|
|
+ // }
|
|
|
+ // this.$api.getPatentPart(params).then(response=>{
|
|
|
+ // if(response.code == 200){
|
|
|
+ // if(Object.keys(response.data).length>0 && response.data.image.length>0){
|
|
|
+ // this.$set(this.patent,'abstractPath2',response.data.image[0].url)
|
|
|
+ // }else{
|
|
|
+ // this.$set(this.patent,'abstractPath2','q')
|
|
|
+ // }
|
|
|
|
|
|
- this.getHeight(this.patent.abstractPath2, this.patent)
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ // this.getHeight(this.patent.abstractPath2, this.patent)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- if(!this.projectId && !this.patent.abstractPath2 && this.patent.publicNo){
|
|
|
- var params = {
|
|
|
- patentCell:4,
|
|
|
- patentNo:this.patent.publicNo,
|
|
|
- appNo:this.patent.applicationNo,
|
|
|
- }
|
|
|
- this.$api.getPatentPart(params).then(response=>{
|
|
|
- if(response.code == 200){
|
|
|
- if(Object.keys(response.data).length>0 && response.data.image.length>0){
|
|
|
- this.$set(this.patent,'abstractPath2',response.data.image[0].url)
|
|
|
- }else{
|
|
|
- this.$set(this.patent,'abstractPath2','q')
|
|
|
- }
|
|
|
+ // if(!this.projectId && !this.patent.abstractPath2 && this.patent.publicNo){
|
|
|
+ // var params = {
|
|
|
+ // patentCell:4,
|
|
|
+ // patentNo:this.patent.publicNo,
|
|
|
+ // appNo:this.patent.applicationNo,
|
|
|
+ // }
|
|
|
+ // this.$api.getPatentPart(params).then(response=>{
|
|
|
+ // if(response.code == 200){
|
|
|
+ // if(Object.keys(response.data).length>0 && response.data.image.length>0){
|
|
|
+ // this.$set(this.patent,'abstractPath2',response.data.image[0].url)
|
|
|
+ // }else{
|
|
|
+ // this.$set(this.patent,'abstractPath2','q')
|
|
|
+ // }
|
|
|
|
|
|
- this.getHeight(this.patent.abstractPath2, this.patent)
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ // this.getHeight(this.patent.abstractPath2, this.patent)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
},
|
|
|
|
|
|
methods: {
|