|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div style="">
|
|
|
<el-container>
|
|
|
- <el-main style="border:0;padding:20px">
|
|
|
+ <el-main style="border:0;padding:35px 20px 20px;">
|
|
|
<div class="header1">
|
|
|
<el-button type="primary" @click="saveProduct">保存</el-button>
|
|
|
</div>
|
|
@@ -13,15 +13,14 @@
|
|
|
<span @dblclick="changEdit('productName')" placeholder="请输入" v-else>{{ product.productName }}</span>
|
|
|
<!-- <span>{{ product.productName }}</span> -->
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="调查标的说明:" prop="productDescription">
|
|
|
+ <el-form-item label="标的产品说明:" prop="productDescription">
|
|
|
<el-input type="textarea" v-model="product.productDescription" @change="editChange" @blur="editChange" v-if="isEdit == 'productDescription'" placeholder="请输入"></el-input>
|
|
|
<span @dblclick="changEdit('productDescription')" placeholder="请输入" v-else>{{ product.productDescription }}</span>
|
|
|
<!-- <span>{{ product.productDescription }}</span> -->
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="调查区域:" prop="surveyArea">
|
|
|
+ <el-form-item label="调查区域:" prop="surveyArea" v-if="reportMessage.type == 3">
|
|
|
<el-input type="textarea" v-model="product.surveyArea" @change="editChange" @blur="editChange" v-if="isEdit == 'surveyArea'" placeholder="请输入"></el-input>
|
|
|
<span @dblclick="changEdit('surveyArea')" placeholder="请输入" v-else>{{ product.surveyArea}}</span>
|
|
|
- <!-- <span>{{ product.surveyArea }}</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item label="产品图:">
|
|
|
<el-upload ref="upload" action="#" :auto-upload="false" multiple :on-change="handleChangeUpload" list-type="picture" :show-file-list="false">
|
|
@@ -33,7 +32,7 @@
|
|
|
<i class="el-icon-delete" @click.stop="handleRemove1(index)"></i>
|
|
|
</span>
|
|
|
</span>
|
|
|
- <img :src="$p + item.address" >
|
|
|
+ <el-image ref="image" :src="$p + item.address" :preview-src-list="imgList"></el-image>
|
|
|
</span>
|
|
|
<span class="avatar" v-for="(item,index) in dialogImageUrl" style="margin-left:10px">
|
|
|
<span class="deleteImg">
|
|
@@ -42,13 +41,13 @@
|
|
|
<i class="el-icon-delete" @click.stop="handleRemove(index)"></i>
|
|
|
</span>
|
|
|
</span>
|
|
|
- <img :src="item" >
|
|
|
+ <el-image ref="image" :src="item" :preview-src-list="imgList"></el-image>
|
|
|
</span>
|
|
|
<i class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</span>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="检索策略:" prop="searchPolicy">
|
|
|
+ <el-form-item label="检索策略:" prop="searchPolicy" v-if="reportMessage.type == 3">
|
|
|
<el-input v-model="product.searchPolicy" @change="editChange" @blur="editChange" v-if="isEdit == 'searchPolicy'" placeholder="请输入"></el-input>
|
|
|
<span @dblclick="changEdit('searchPolicy')" placeholder="请输入" v-else>{{ product.searchPolicy}}</span>
|
|
|
</el-form-item>
|
|
@@ -61,7 +60,7 @@
|
|
|
@change="isDates">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="关注企业/发明人/技术方向:">
|
|
|
+ <el-form-item :label="reportMessage.type==3?'关注企业/发明人/技术方向:':'备注:'">
|
|
|
<el-input type="textarea" v-model="product.focusInformation" @change="editChange" @blur="editChange" v-if="isEdit == 'focusInformation'" placeholder="请输入"></el-input>
|
|
|
<span @dblclick="changEdit('focusInformation')" placeholder="请输入" v-else>{{ product.focusInformation}}</span>
|
|
|
<!-- <span>{{ product.focusInformation }}</span> -->
|
|
@@ -81,7 +80,7 @@
|
|
|
|
|
|
|
|
|
export default{
|
|
|
- props:['reportId'],
|
|
|
+ props:['reportId','row'],
|
|
|
data() {
|
|
|
const isTime = (rule, value, callback) => {
|
|
|
console.log(this.isDate);
|
|
@@ -103,6 +102,8 @@ export default{
|
|
|
|
|
|
}
|
|
|
return {
|
|
|
+ reportMessage:this.row,
|
|
|
+ imgList:[],
|
|
|
isDate:true,
|
|
|
isEdit:'',//是否编辑
|
|
|
file:[],
|
|
@@ -112,8 +113,8 @@ export default{
|
|
|
product:{},
|
|
|
productRules:{
|
|
|
name: [{ required: true, message: '请输入标的专利/产品', trigger: 'blur' },],
|
|
|
- explain: [{ required: true, message: '请输入调查标的说明', trigger: 'blur' },],
|
|
|
- area: [{ required: true, message: '请输入调查区域', trigger: 'blur' },],
|
|
|
+ explain: [{ required: true, message: '请输入标的产品说明', trigger: 'blur' },],
|
|
|
+ // area: [{ required: true, message: '请输入调查区域', trigger: 'blur' },],
|
|
|
deadLine: [
|
|
|
{ required: false, validator:isTime, trigger: 'change' }
|
|
|
],
|
|
@@ -122,7 +123,7 @@ export default{
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.$set(this.product,'productName',this.$s.getSession('row').signPatentNo)
|
|
|
+ // this.$set(this.product,'productName',this.$s.getSession('row').signPatentNo)
|
|
|
this.getProduct()
|
|
|
},
|
|
|
methods: {
|
|
@@ -194,15 +195,19 @@ export default{
|
|
|
// this.ruleForm.filePath = ''
|
|
|
},
|
|
|
handlePictureCardPreview(file) {
|
|
|
- this.ImageUrl = file
|
|
|
- this.dialogVisible = true;
|
|
|
+ this.imgList=[file]
|
|
|
+ this.$refs.image[0].showViewer = true
|
|
|
+ // this.ImageUrl = file
|
|
|
+ // this.dialogVisible = true;
|
|
|
},
|
|
|
handleRemove1(index) {
|
|
|
this.product.reportFiles.splice(index,1)
|
|
|
},
|
|
|
handlePictureCardPreview1(file) {
|
|
|
- this.ImageUrl = this.$p + file.address
|
|
|
- this.dialogVisible = true;
|
|
|
+ this.imgList=[this.$p + file.address]
|
|
|
+ this.$refs.image[0].showViewer = true
|
|
|
+ // this.ImageUrl = this.$p + file.address
|
|
|
+ // this.dialogVisible = true;
|
|
|
},
|
|
|
getProduct(){
|
|
|
let a = {
|