commit
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
:visible.sync="isVisible2"
|
||||
:wrapperClosable="false"
|
||||
@close="handleTreeDrawerCancel"
|
||||
size="400px">
|
||||
size="460px">
|
||||
<el-form
|
||||
ref="attributeEO"
|
||||
class="label-input-form"
|
||||
@@ -30,7 +30,7 @@
|
||||
@check-change="checkChange"
|
||||
:data="treeData"
|
||||
:props="defaultProps"
|
||||
:default-checked-keys="nodeList"
|
||||
:default-checked-keys="nodeList2"
|
||||
highlight-current
|
||||
check-strictly
|
||||
@check="drawerCheck"
|
||||
@@ -53,7 +53,7 @@
|
||||
:data="treeData1"
|
||||
:props="defaultProps"
|
||||
@check-change="checkChange2"
|
||||
:default-checked-keys="nodeList"
|
||||
:default-checked-keys="nodeList2"
|
||||
highlight-current
|
||||
check-strictly
|
||||
@check="drawerCheck"
|
||||
@@ -124,6 +124,7 @@
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
nodeList2: [],
|
||||
delList: [],
|
||||
roleList: [],
|
||||
isVisible2: false,
|
||||
@@ -146,14 +147,19 @@
|
||||
},
|
||||
methods: {
|
||||
handleClose (tag) {
|
||||
let arr = []
|
||||
for (let a = 0; a < this.delList.length; a++) {
|
||||
if (tag.id === this.delList[a].id) {
|
||||
this.delList.splice(a, 1)
|
||||
}
|
||||
}
|
||||
for (let b = 0; b < this.nodeList.length; b++) {
|
||||
if (tag.id === this.nodeList[b]) {
|
||||
this.nodeList.splice(b, 1)
|
||||
this.delList.map(item => {
|
||||
arr.push(item)
|
||||
})
|
||||
this.$refs.tree.setCheckedKeys(arr);
|
||||
for (let b = 0; b < this.nodeList2.length; b++) {
|
||||
if (tag.id === this.nodeList2[b]) {
|
||||
this.nodeList2.splice(b, 1)
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -166,7 +172,8 @@
|
||||
cancelButtonText: '取消',
|
||||
}).then(() => {
|
||||
this.delList = []
|
||||
this.nodeList = []
|
||||
this.nodeList2 = []
|
||||
this.$refs.tree.setCheckedKeys([]);
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'info',
|
||||
@@ -191,13 +198,20 @@
|
||||
}),
|
||||
checkChange2 (row, type, c) {
|
||||
if (this.checkBox) {
|
||||
|
||||
} else {
|
||||
if (type) {
|
||||
this.nodeList.push(row.id)
|
||||
this.nodeList2.push(row.id)
|
||||
this.delList.push(row)
|
||||
} else {
|
||||
for (let a = 0; a < this.nodeList.length; a ++) {
|
||||
if (row.id === this.nodeList[a]) {
|
||||
this.nodeList.splice(a, 1)
|
||||
for (let a = 0; a < this.nodeList2.length; a ++) {
|
||||
if (row.id === this.nodeList2[a]) {
|
||||
this.nodeList2.splice(a, 1)
|
||||
}
|
||||
}
|
||||
for (let b = 0; b < this.delList.length; b++) {
|
||||
if (row.id === this.delList[b].id) {
|
||||
this.delList.splice(b, 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -205,18 +219,24 @@
|
||||
},
|
||||
checkChange (row, type, c) {
|
||||
if (this.checkBox) {
|
||||
|
||||
} else {
|
||||
if (type) {
|
||||
this.nodeList.push(row.id)
|
||||
this.nodeList2.push(row.id)
|
||||
this.delList.push(row)
|
||||
} else {
|
||||
for (let a = 0; a < this.nodeList.length; a ++) {
|
||||
if (row.id === this.nodeList[a]) {
|
||||
this.nodeList.splice(a, 1)
|
||||
for (let a = 0; a < this.nodeList2.length; a++) {
|
||||
if (row.id === this.nodeList2[a]) {
|
||||
this.nodeList2.splice(a, 1)
|
||||
}
|
||||
}
|
||||
for (let b = 0; b < this.delList.length; b++) {
|
||||
if (row.id === this.delList[b].id) {
|
||||
this.delList.splice(b, 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
handleTreeDrawerCancel () {
|
||||
this.filterText = ''
|
||||
@@ -228,9 +248,9 @@
|
||||
this.isVisible2 = false
|
||||
this.$emit('checkedRole', this.roleList)
|
||||
} else {
|
||||
if (this.nodeList.length > 0 && this.nodeList[0].length !== 0) {
|
||||
if (this.nodeList2.length > 0 && this.nodeList2[0].length !== 0) {
|
||||
let ids = ''
|
||||
this.nodeList.forEach(item => {
|
||||
this.nodeList2.forEach(item => {
|
||||
if (ids.length > 0) {
|
||||
ids += ','
|
||||
ids += item
|
||||
@@ -295,10 +315,11 @@
|
||||
watch: {
|
||||
isVisible (val) {
|
||||
this.isVisible2 = val
|
||||
this.nodeList2 = this.nodeList
|
||||
if (val) {
|
||||
if (this.nodeList.length > 0 && this.nodeList[0].length !== 0) {
|
||||
if (this.nodeList2.length > 0 && this.nodeList2[0].length !== 0) {
|
||||
let ids = ''
|
||||
this.nodeList.forEach(item => {
|
||||
this.nodeList2.forEach(item => {
|
||||
if (ids.length > 0) {
|
||||
ids += ','
|
||||
ids += item
|
||||
|
||||
@@ -169,14 +169,14 @@
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="sarType === 'FOREIGN' && form.itemsNum1"
|
||||
prop="changePoint"
|
||||
width="150"
|
||||
label="相对于国行标差异点"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<!-- <el-table-column-->
|
||||
<!-- v-if="sarType === 'FOREIGN' && form.itemsNum1"-->
|
||||
<!-- prop="changePoint"-->
|
||||
<!-- width="150"-->
|
||||
<!-- label="相对于国行标差异点"-->
|
||||
<!-- show-overflow-tooltip-->
|
||||
<!-- align="center">-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column
|
||||
label="操作"
|
||||
width="240"
|
||||
@@ -411,8 +411,8 @@
|
||||
<div style="margin: 10px 5px;">比对条款: {{ plForm.itemsNum }}</div>
|
||||
<div style="margin: 10px 5px 5px;">相似度: {{ similarityDegree }}</div>
|
||||
<div style="overflow: auto;display: flex;" class="BDclass">
|
||||
<div v-html="leftData" style="margin: 5px; border: 1px solid #ccc; border-radius: 5px; padding: 5px; width: 50%; overflow: auto;"></div>
|
||||
<div v-html="rightData" style="margin: 5px; border: 1px solid #ccc; border-radius: 5px; padding: 5px; width: 50%; overflow: auto;"></div>
|
||||
<div v-html="leftData" style="line-height: 20px;margin: 5px; border: 1px solid #ccc; border-radius: 5px; padding: 5px; width: 50%; overflow: auto;"></div>
|
||||
<div v-html="rightData" style="line-height: 20px;margin: 5px; border: 1px solid #ccc; border-radius: 5px; padding: 5px; width: 50%; overflow: auto;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -220,14 +220,14 @@
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-show="sarType === 'FOREIGN' && form.itemsNum1"
|
||||
prop="changePoint"
|
||||
width="150"
|
||||
label="相对于国行标差异点"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<!-- <el-table-column-->
|
||||
<!-- v-show="sarType === 'FOREIGN' && form.itemsNum1"-->
|
||||
<!-- prop="changePoint"-->
|
||||
<!-- width="150"-->
|
||||
<!-- label="相对于国行标差异点"-->
|
||||
<!-- show-overflow-tooltip-->
|
||||
<!-- align="center">-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column
|
||||
label="责任人"
|
||||
width="170"
|
||||
|
||||
@@ -170,14 +170,14 @@
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="sarType === 'FOREIGN' && form.itemsNum1"
|
||||
prop="changePoint"
|
||||
width="150"
|
||||
label="相对于国行标差异点"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<!-- <el-table-column-->
|
||||
<!-- v-if="sarType === 'FOREIGN' && form.itemsNum1"-->
|
||||
<!-- prop="changePoint"-->
|
||||
<!-- width="150"-->
|
||||
<!-- label="相对于国行标差异点"-->
|
||||
<!-- show-overflow-tooltip-->
|
||||
<!-- align="center">-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column
|
||||
label="责任人"
|
||||
width="170"
|
||||
@@ -419,8 +419,8 @@
|
||||
<div style="margin: 10px 5px;">比对条款: {{ plForm.itemsNum }}</div>
|
||||
<div style="margin: 10px 5px 5px;">相似度: {{ similarityDegree }}</div>
|
||||
<div style="overflow: auto;display: flex;" class="BDclass">
|
||||
<div v-html="leftData" style="margin: 5px; border: 1px solid #ccc; border-radius: 5px; padding: 5px; width: 50%; overflow: auto;"></div>
|
||||
<div v-html="rightData" style="margin: 5px; border: 1px solid #ccc; border-radius: 5px; padding: 5px; width: 50%; overflow: auto;"></div>
|
||||
<div v-html="leftData" style="line-height: 20px;margin: 5px; border: 1px solid #ccc; border-radius: 5px; padding: 5px; width: 50%; overflow: auto;"></div>
|
||||
<div v-html="rightData" style="line-height: 20px;margin: 5px; border: 1px solid #ccc; border-radius: 5px; padding: 5px; width: 50%; overflow: auto;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -154,14 +154,14 @@
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="sarType === 'FOREIGN' && form.itemsNum1"
|
||||
prop="changePoint"
|
||||
width="150"
|
||||
label="相对于国行标差异点"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<!-- <el-table-column-->
|
||||
<!-- v-if="sarType === 'FOREIGN' && form.itemsNum1"-->
|
||||
<!-- prop="changePoint"-->
|
||||
<!-- width="150"-->
|
||||
<!-- label="相对于国行标差异点"-->
|
||||
<!-- show-overflow-tooltip-->
|
||||
<!-- align="center">-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column
|
||||
label="责任人"
|
||||
width="170"
|
||||
|
||||
@@ -169,14 +169,14 @@
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="sarType === 'FOREIGN' && form.itemsNum1"
|
||||
prop="changePoint"
|
||||
width="150"
|
||||
label="相对于国行标差异点"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<!-- <el-table-column-->
|
||||
<!-- v-if="sarType === 'FOREIGN' && form.itemsNum1"-->
|
||||
<!-- prop="changePoint"-->
|
||||
<!-- width="150"-->
|
||||
<!-- label="相对于国行标差异点"-->
|
||||
<!-- show-overflow-tooltip-->
|
||||
<!-- align="center">-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column
|
||||
prop="complianceRequir"
|
||||
width="150"
|
||||
@@ -378,8 +378,8 @@
|
||||
<div style="margin: 10px 5px;">比对条款: {{ editForm.itemsNum }}</div>
|
||||
<div style="margin: 10px 5px 5px;">相似度: {{ similarityDegree }}</div>
|
||||
<div style="overflow: auto;display: flex;" class="BDclass">
|
||||
<div v-html="leftData" style="margin: 5px; border: 1px solid #ccc; border-radius: 5px; padding: 5px; width: 50%; overflow: auto;"></div>
|
||||
<div v-html="rightData" style="margin: 5px; border: 1px solid #ccc; border-radius: 5px; padding: 5px; width: 50%; overflow: auto;"></div>
|
||||
<div v-html="leftData" style="line-height: 20px;margin: 5px; border: 1px solid #ccc; border-radius: 5px; padding: 5px; width: 50%; overflow: auto;"></div>
|
||||
<div v-html="rightData" style="line-height: 20px;margin: 5px; border: 1px solid #ccc; border-radius: 5px; padding: 5px; width: 50%; overflow: auto;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -163,14 +163,14 @@
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-show="sarType === 'FOREIGN' && form.itemsNum1"
|
||||
prop="changePoint"
|
||||
width="150"
|
||||
label="相对于国行标差异点"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<!-- <el-table-column-->
|
||||
<!-- v-show="sarType === 'FOREIGN' && form.itemsNum1"-->
|
||||
<!-- prop="changePoint"-->
|
||||
<!-- width="150"-->
|
||||
<!-- label="相对于国行标差异点"-->
|
||||
<!-- show-overflow-tooltip-->
|
||||
<!-- align="center">-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column
|
||||
prop="complianceRequir"
|
||||
width="150"
|
||||
|
||||
@@ -163,14 +163,14 @@
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-show="sarType === 'FOREIGN' && form.itemsNum1"
|
||||
prop="changePoint"
|
||||
width="150"
|
||||
label="相对于国行标差异点"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<!-- <el-table-column-->
|
||||
<!-- v-show="sarType === 'FOREIGN' && form.itemsNum1"-->
|
||||
<!-- prop="changePoint"-->
|
||||
<!-- width="150"-->
|
||||
<!-- label="相对于国行标差异点"-->
|
||||
<!-- show-overflow-tooltip-->
|
||||
<!-- align="center">-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column
|
||||
prop="complianceRequir"
|
||||
width="150"
|
||||
|
||||
@@ -163,14 +163,14 @@
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-show="sarType === 'FOREIGN' && form.itemsNum1"
|
||||
prop="changePoint"
|
||||
width="150"
|
||||
label="相对于国行标差异点"
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<!-- <el-table-column-->
|
||||
<!-- v-show="sarType === 'FOREIGN' && form.itemsNum1"-->
|
||||
<!-- prop="changePoint"-->
|
||||
<!-- width="150"-->
|
||||
<!-- label="相对于国行标差异点"-->
|
||||
<!-- show-overflow-tooltip-->
|
||||
<!-- align="center">-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column
|
||||
prop="complianceRequir"
|
||||
width="150"
|
||||
|
||||
Reference in New Issue
Block a user