|
@@ -43,7 +43,7 @@
|
|
|
ref="table"
|
|
|
:span-method="objectSpanMethod"
|
|
|
v-loading="loading"
|
|
|
- :height="tableHeight - 25"
|
|
|
+ :height="tableHeight"
|
|
|
style="min-width: 100%; margin-top: 20px;overflow:auto">
|
|
|
|
|
|
<el-table-column prop="pRightName" label="权要" align="center" width="200px">
|
|
@@ -66,7 +66,7 @@
|
|
|
v-html="scope.row.content" >
|
|
|
</p>
|
|
|
<el-checkbox-group v-else v-model="checkList" >
|
|
|
- <el-checkbox :label="scope.row.id" @change="getFunInfo(scope.row)" style="display: flex; align-items: center;">
|
|
|
+ <el-checkbox :label="scope.row.id" @change="getFunInfo(scope.row,scope)" style="display: flex; align-items: center;">
|
|
|
<el-input type="textarea" style="width:250px" autosize v-model="scope.row.content"> {{scope.row.content}}</el-input>
|
|
|
</el-checkbox>
|
|
|
</el-checkbox-group>
|
|
@@ -213,6 +213,7 @@
|
|
|
},
|
|
|
watch:{
|
|
|
tableData(){
|
|
|
+ console.log(1)
|
|
|
this.$nextTick(() => {
|
|
|
this.setHeight()
|
|
|
})
|
|
@@ -286,11 +287,12 @@
|
|
|
})
|
|
|
},
|
|
|
//选中特征
|
|
|
- getFunInfo(row) {
|
|
|
+ getFunInfo(row,scope) {
|
|
|
console.log("row",row)
|
|
|
// this.$emit('getfeatures', row)
|
|
|
let Index=this.row.findIndex(item => {return item.id==row.id })
|
|
|
if (Index<0) {
|
|
|
+ row.$index = scope.$index
|
|
|
this.row.push(row)
|
|
|
} else {
|
|
|
this.row.splice(Index,1)
|
|
@@ -323,8 +325,22 @@
|
|
|
if (this.row != []) {
|
|
|
console.log(this.row);//explainText
|
|
|
let row = this.row.sort((aId, bId) => {
|
|
|
- return aId.id-bId.id;
|
|
|
+ return aId.$index-bId.$index;
|
|
|
})
|
|
|
+ row.sort((aId, bId) => {
|
|
|
+ if(aId.$index - bId.$index!=1){
|
|
|
+ allow = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if(!allow){
|
|
|
+ this.$alert('只能合并相邻的特征','提示',{
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ type:'warning',
|
|
|
+ callback: action => {
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return false;
|
|
|
+ }
|
|
|
for (var i = 0; i < this.row.length; i++) {
|
|
|
if (i < row.length - 1) {
|
|
|
str = str + row[i].content + (row[i].content==''?'':' ,')
|
|
@@ -371,8 +387,10 @@
|
|
|
pSort: ele.pSort,
|
|
|
pReportId: ele.pReportId,
|
|
|
pContentOut: ele.pContentOut,
|
|
|
-
|
|
|
- id:ele.id+"a"+a,
|
|
|
+ targetDescription:'',
|
|
|
+ compareDescription:'',
|
|
|
+ compareResult :'',
|
|
|
+ id:ele.id+"a"+ele.$index+a,
|
|
|
signPatentNo: ele.signPatentNo,
|
|
|
contentOut:"" ,
|
|
|
content: "",
|