Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -143,26 +143,33 @@
|
||||
}
|
||||
}),
|
||||
checkChange2 (row, type, c) {
|
||||
if (type) {
|
||||
this.nodeList.push(row.id)
|
||||
if (this.checkBox) {
|
||||
} else {
|
||||
for (let a = 0; a < this.nodeList.length; a ++) {
|
||||
if (row.id === this.nodeList[a]) {
|
||||
this.nodeList.splice(a, 1)
|
||||
if (type) {
|
||||
this.nodeList.push(row.id)
|
||||
} else {
|
||||
for (let a = 0; a < this.nodeList.length; a ++) {
|
||||
if (row.id === this.nodeList[a]) {
|
||||
this.nodeList.splice(a, 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
checkChange (row, type, c) {
|
||||
if (type) {
|
||||
this.nodeList.push(row.id)
|
||||
if (this.checkBox) {
|
||||
} else {
|
||||
for (let a = 0; a < this.nodeList.length; a ++) {
|
||||
if (row.id === this.nodeList[a]) {
|
||||
this.nodeList.splice(a, 1)
|
||||
if (type) {
|
||||
this.nodeList.push(row.id)
|
||||
} else {
|
||||
for (let a = 0; a < this.nodeList.length; a ++) {
|
||||
if (row.id === this.nodeList[a]) {
|
||||
this.nodeList.splice(a, 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
handleTreeDrawerCancel () {
|
||||
this.filterText = ''
|
||||
@@ -200,17 +207,27 @@
|
||||
this.open1 = true
|
||||
},
|
||||
drawerCheck (data) {
|
||||
if (this.checkBox) {
|
||||
if (this.checkBox) { // 单选
|
||||
// 单选判断
|
||||
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
|
||||
if(getlist.length == 1) {
|
||||
this.roleRow = getlist[0]
|
||||
} else {
|
||||
this.$refs.tree.setCheckedKeys([data.id]);
|
||||
this.roleRow = this.$refs.tree.getCheckedNodes()[0]
|
||||
let getlist = this.$refs.tree.getCheckedNodes()
|
||||
if (getlist.length > 1) {
|
||||
this.$refs.tree.setCheckedKeys([])
|
||||
this.$refs.tree.setCheckedKeys([data.id])
|
||||
this.roleList = [data]
|
||||
} else if (getlist.length === 0) {
|
||||
this.roleList = [{}]
|
||||
} else if (getlist.length === 1) {
|
||||
this.roleList = [data]
|
||||
}
|
||||
this.roleList = [this.roleRow]
|
||||
} else {
|
||||
// var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
|
||||
// if(getlist.length == 1) {
|
||||
// this.roleRow = getlist[0]
|
||||
// } else {
|
||||
// this.$refs.tree.setCheckedKeys([data.id])
|
||||
// this.roleRow = this.$refs.tree.getCheckedNodes()[0]
|
||||
// }
|
||||
// this.roleList = [this.roleRow]
|
||||
} else { // 多选
|
||||
this.roleList = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes())
|
||||
}
|
||||
},
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
<div style="display: inline-block;width: 80%;text-align: center">
|
||||
<el-row>
|
||||
<span v-for="(item, index) in linkListFirst" :key="index">
|
||||
<span v-for="(item, index) in linkListFirst" :key="index" v-if="index < 5">
|
||||
<el-col :span="4">
|
||||
<!-- <img
|
||||
style="height: 10px;width: 10px;margin-bottom: 3px"
|
||||
@@ -27,7 +27,7 @@
|
||||
</span>
|
||||
</el-row>
|
||||
<el-row style="margin-bottom: 10px;">
|
||||
<span v-for="(item, index) in linkListSecond" :key="index">
|
||||
<span v-for="(item, index) in linkListSecond" :key="index" v-if="index< 5">
|
||||
<el-col :span="4">
|
||||
<!-- <img
|
||||
style="height: 10px;width: 10px;margin-bottom: 3px"
|
||||
|
||||
+6
-8
@@ -14,12 +14,12 @@
|
||||
placeholder="标准/政策名称查找"
|
||||
clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="类型" class="search-item search-item-last">
|
||||
<el-select v-model="sarProject.position" placeholder="请选择标准性质">
|
||||
<el-option value="1" label="国内"></el-option>
|
||||
<el-option value="2" label="海外"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="类型" class="search-item search-item-last">-->
|
||||
<!-- <el-select v-model="sarProject.position" placeholder="请选择标准性质">-->
|
||||
<!-- <el-option value="1" label="国内"></el-option>-->
|
||||
<!-- <el-option value="2" label="海外"></el-option>-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="" class="search-item btn-box">
|
||||
<el-button class="common-button-primary" type="primary" size="mini" @click="searchStandAndLaws" v-btn-permission="'f3ea8cde1a7116aa7ba56ff33a19189f'">查询</el-button>
|
||||
</el-form-item>
|
||||
@@ -173,7 +173,6 @@
|
||||
style="width: 100%"
|
||||
border
|
||||
:height="sarProStateTableHeight"
|
||||
:default-sort = "{prop: 'specificItem', order: 'ascending'}"
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}">
|
||||
<el-table-column
|
||||
@@ -201,7 +200,6 @@
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="specificItem"
|
||||
sortable
|
||||
label="具体章条">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
||||
Reference in New Issue
Block a user