|
@@ -15,17 +15,17 @@
|
|
|
<el-button @click="merge" :disabled="row.length>0?false:true">合并</el-button>
|
|
|
<el-button @click="split" :disabled="row.length>0?false:true">拆分</el-button>
|
|
|
</el-button-group>
|
|
|
- <div v-if="!this.coordinationA && this.typeFto!=1">
|
|
|
- <el-select v-if="taskWorkRemakA!=0" placeholder="请选择拆分类型" v-model="splitType1" @change="splitTypeSelect($event)" >
|
|
|
+ <div>
|
|
|
+ <el-select v-if="typeFto!=1" placeholder="请选择拆分类型" v-model="splitType1" @change="splitTypeSelect($event)" >
|
|
|
<el-option label="仅拆主权要" value="0"></el-option>
|
|
|
<el-option label="全部拆分" value="1"></el-option>
|
|
|
</el-select>
|
|
|
- <el-select v-if="taskWorkRemakA!=0" placeholder="请选择拆分符号" v-model="splitBy1" style="margin-left: 10px;" @change="splitBySelect($event)">
|
|
|
+ <el-select v-if="typeFto!=1" placeholder="请选择拆分符号" v-model="splitBy1" style="margin-left: 10px;" @change="splitBySelect($event)">
|
|
|
<el-option label="逗号拆分" value="0"></el-option>
|
|
|
<el-option label="分号拆分" value="1"></el-option>
|
|
|
<el-option label="逗号和分号拆分" value="2"></el-option>
|
|
|
</el-select>
|
|
|
- <el-select v-if="taskWorkRemakA!=0" placeholder="请选择显示类型" v-model="Type" style="margin-left: 10px;" @change="TypeSelect($event)" >
|
|
|
+ <el-select placeholder="请选择显示类型" v-model="Type" style="margin-left: 10px;" @change="TypeSelect($event)" >
|
|
|
<el-option label="仅显示主权要" value="1"></el-option>
|
|
|
<el-option label="全部显示" value="0"></el-option>
|
|
|
</el-select>
|
|
@@ -121,36 +121,34 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column v-if="this.taskWorkRemakA==0" prop="targetDescription" align="center" label="协同标的说明(可粘贴图片)" min-width="300px">
|
|
|
+ <el-table-column v-if="this.taskWorkRemakA==0" prop="targetDescription2" align="center" label="协同标的说明(可粘贴图片)" min-width="300px">
|
|
|
<template slot-scope="scope">
|
|
|
<!-- <div>
|
|
|
<el-input type="textarea" style="width:100%" autosize v-model="scope.row.explainText"> {{scope.row.explainText}}</el-input>
|
|
|
</div> -->
|
|
|
- <div style="width:100%;outline: #dcdfe6;border:1px solid #DCDFE6;border-radius:5px" id="preview" contenteditable="true"
|
|
|
- v-html="scope.row.targetDescription2" @input="saveValue($event.target.innerHTML)" @click="saveValue($event.target.innerHTML)"
|
|
|
- @blur="getValue(scope.row,'targetDescription')" v-on:paste="handlePaste($event,scope.row,'targetDescription')">
|
|
|
+ <div v-html="scope.row.targetDescription2" >
|
|
|
<!-- {{scope.row.explainText}} -->
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column v-if="this.taskWorkRemakA==0" prop="compareResult2" align="center" label="协同比对结果" width="300px">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-select v-model="scope.row.compareResult2" placeholder="请选择">
|
|
|
+ <div v-if="scope.row">
|
|
|
+ <span v-if="scope.row.compareResult.toString()!=''">{{ options.filter(item=>item.value==scope.row.compareResult)[0].label }}</span>
|
|
|
+ </div>
|
|
|
+ <!-- <el-select v-model="scope.row.compareResult2" placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="item in options"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
:value="item.value">
|
|
|
</el-option>
|
|
|
- </el-select>
|
|
|
+ </el-select> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column v-if="this.taskWorkRemakA==0" prop="compareDescription" align="center" label="协同比对说明(可粘贴图片)" min-width="300px">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div style="width:100%;outline: #dcdfe6;border:1px solid #DCDFE6;border-radius:5px" id="preview" contenteditable="true"
|
|
|
- v-html="scope.row.compareDescription2" @input="saveValue($event.target.innerHTML)" @click="saveValue($event.target.innerHTML)"
|
|
|
- @blur="getValue(scope.row,'compareDescription')" v-on:paste="handlePaste($event,scope.row,'compareDescription')">
|
|
|
- </div>
|
|
|
+ <el-table-column v-if="this.taskWorkRemakA==0" prop="compareDescription2" align="center" label="协同比对说明(可粘贴图片)" min-width="300px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div v-html="scope.row.compareDescription2"> </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column v-if="this.taskWorkRemakA==0" label="操作" min-width="120" align="center" >
|
|
@@ -594,63 +592,12 @@
|
|
|
// console.log("tableData",this.tableData);
|
|
|
this.getSpanArr(this.tableData)
|
|
|
},
|
|
|
- //addSynery
|
|
|
- // handlePaste(a, b, c) {
|
|
|
- // console.log(a,b,c);
|
|
|
- // },
|
|
|
-
|
|
|
- // getValue(row) {
|
|
|
- // // console.log(row);
|
|
|
- // var keepAddSynery=[]
|
|
|
- // for (let i = 0; i < this.tableData1.length; i++){
|
|
|
-
|
|
|
- // keepAddSynery.push(
|
|
|
- // {
|
|
|
- // taskId:this.taskId,
|
|
|
- // compareMessageList: {
|
|
|
- // featureId:row.id,
|
|
|
- // targetDescription: this.tableData1[i].targetDescription ? this.tableData1[i].targetDescription:row.targetDescription,
|
|
|
- // compareDescription: this.tableData1[i].compareDescription ? this.tableData1[i].compareDescription : row.compareDescription,
|
|
|
- // compareResult: this.tableData1[i].compareResult ? this.tableData1[i].compareResult : row.compareResult,
|
|
|
- // }
|
|
|
- // }
|
|
|
- // )
|
|
|
- // }
|
|
|
- // console.log(row,keepAddSynery);
|
|
|
- // },
|
|
|
-
|
|
|
- // saveValue(a, b) {
|
|
|
- // console.log(a,b);
|
|
|
- // },
|
|
|
+
|
|
|
//保存
|
|
|
keep() {
|
|
|
console.log(this.tableData1);
|
|
|
this.loadings = true
|
|
|
this.$emit("isRead",0)
|
|
|
- // for (let i = 0; i < this.tableData1.length; i++){
|
|
|
- // let keepArr = [];
|
|
|
- // this.keepArr.push(
|
|
|
- // {
|
|
|
- // taskId:this.taskId,
|
|
|
- // signPatentNo: this.tableData1[i].signPatentNo,
|
|
|
- // contentOut: this.tableData1[i].contentOut,
|
|
|
- // content: this.tableData1[i].content,
|
|
|
- // rightId: this.tableData1[i].rightId,
|
|
|
- // isFinal: this.tableData1[i].isFinal,
|
|
|
- // reportId: this.tableData1[i].reportId,
|
|
|
- // rightName: this.tableData1[i].rightName,
|
|
|
- // rightType: this.tableData1[i].rightType,
|
|
|
- // splitBy: this.tableData1[i].splitBy,
|
|
|
- // explainText: this.tableData1[i].explainText ? this.tableData1[i].explainText : "",
|
|
|
- // targetDescription: this.tableData1[i].targetDescription ? this.tableData1[i].targetDescription : "",
|
|
|
- // compareDescription: this.tableData1[i].compareDescription ? this.tableData1[i].compareDescription : "",
|
|
|
- // compareResult: this.tableData1[i].compareResult.toString() !="" ? this.tableData1[i].compareResult : "",
|
|
|
- // }
|
|
|
- // )
|
|
|
- // }
|
|
|
-
|
|
|
-
|
|
|
- // console.log(this.tableData1);
|
|
|
if (this.coordination || (this.typeFto==1&&this.taskWorkRemakA!=0) ) {
|
|
|
console.log(1111, this.coordination,this.typeFto);
|
|
|
var keepAddSynerys = {
|
|
@@ -676,12 +623,12 @@
|
|
|
})
|
|
|
|
|
|
}else if (this.taskWorkRemakA==0) {
|
|
|
- console.log(2222, this.taskWorkRemakA);
|
|
|
+ console.log(2222, this.taskWorkRemakA,this.tableData1);
|
|
|
let keepUpdate=[]
|
|
|
for (let i = 0; i < this.tableData1.length; i++) {
|
|
|
keepUpdate.push(
|
|
|
{
|
|
|
- id: this.tableData1[i].CMid,
|
|
|
+ featureId: this.tableData1[i].id,
|
|
|
targetDescription: this.tableData1[i].targetDescription ? this.tableData1[i].targetDescription : "",
|
|
|
compareDescription: this.tableData1[i].compareDescription ? this.tableData1[i].compareDescription : "",
|
|
|
compareResult: this.tableData1[i].compareResult,
|
|
@@ -753,12 +700,12 @@
|
|
|
// 一键修改
|
|
|
handleClick(row) {
|
|
|
// console.log(this.tableData1,row);
|
|
|
- let a=this.tableData1.findIndex(item => {
|
|
|
- return item.id==row.id
|
|
|
- })
|
|
|
- this.tableData1[a].targetDescription=row.targetDescription2
|
|
|
- this.tableData1[a].compareDescription=row.compareDescription2
|
|
|
- this.tableData1[a].compareResult = row.compareResult2
|
|
|
+ // let a=this.tableData1.findIndex(item => {
|
|
|
+ // return item.id==row.id
|
|
|
+ // })
|
|
|
+ row.targetDescription=row.targetDescription2
|
|
|
+ row.compareDescription=row.compareDescription2
|
|
|
+ row.compareResult = row.compareResult2
|
|
|
this.$message.success("修改成功,请进行保存")
|
|
|
},
|
|
|
},
|