Merge branch 'develop' into 'test'

Develop

See merge request LAWS/laws-system-front-FOTON!172
This commit is contained in:
王夏晖
2021-10-11 09:02:24 +08:00
22 changed files with 163 additions and 79 deletions
-1
View File
@@ -793,7 +793,6 @@ tr.el-table__row{
} }
.iconfont { .iconfont {
font-size: 12px; font-size: 12px;
margin-right: 5px;
} }
.dept-popover { .dept-popover {
padding: 0; padding: 0;
-1
View File
@@ -129,7 +129,6 @@
align-items: center; align-items: center;
.iconfont { .iconfont {
font-size: 22px; font-size: 22px;
margin-right: 5px;
} }
& > img{ & > img{
width: 25px; width: 25px;
+6
View File
@@ -489,6 +489,9 @@
box-sizing: border-box; box-sizing: border-box;
background: rgb(255, 255, 255); background: rgb(255, 255, 255);
background-size: 100% 100%; background-size: 100% 100%;
/deep/.el-tooltip {
padding: 0px 16px !important;
}
.left-tree { .left-tree {
height: calc(~'100% - 95px'); height: calc(~'100% - 95px');
overflow-y: auto; overflow-y: auto;
@@ -541,6 +544,7 @@
display: none; /* Chrome Safari */ display: none; /* Chrome Safari */
} }
.el-menu-item { .el-menu-item {
padding: 0 16px !important;
span { span {
font-weight: normal; font-weight: normal;
margin-left: 5px; margin-left: 5px;
@@ -574,6 +578,7 @@
} }
.el-submenu { .el-submenu {
/deep/.el-submenu__title { /deep/.el-submenu__title {
padding: 0 16px !important;
span { span {
font-weight: normal; font-weight: normal;
margin-left: 5px; margin-left: 5px;
@@ -616,6 +621,7 @@
} }
} }
.el-menu--collapse{ .el-menu--collapse{
width: 100%;
.shangqi-icon{ .shangqi-icon{
width: 24px; width: 24px;
height: 24px; height: 24px;
+1 -1
View File
@@ -264,7 +264,7 @@
this.$emit('popoverHide', this.checkedIds, this.checkedData,false); this.$emit('popoverHide', this.checkedIds, this.checkedData,false);
}, },
cancelUserInfo () { cancelUserInfo () {
this.$emit('popoverHide', this.checkedIds, this.checkedData,false); this.$emit('popoverHideCancel', this.checkedIds, this.checkedData,false);
}, },
}, },
watch: { watch: {
+24 -10
View File
@@ -1,32 +1,37 @@
<template> <template>
<div class="wx-card" @click="toPage"> <div class="wx-card" @click="toPage">
<div style=""> <div>
<div> <div>
<i class="icon" :class="icon" /> <i class="icon" :class="icon" />
</div> </div>
<div style="margin-top: 10px;"> <div v-if="label">
<span class="card-font">{{ label }}</span> <span class="card-font">{{ label }}</span>
</div> </div>
<div v-else>
<div class="labelNull">
<i class="el-icon-circle-plus-outline"></i>
</div>
</div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: 'EnterCard', name: 'EnterCard',
props: ['icon', 'label', 'path'], props: ['icon', 'label', 'path'],
methods: { methods: {
toPage() { toPage() {
this.$router.push(this.path) this.$router.push(this.path)
}
} }
} }
}
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.wx-card { .wx-card {
width: 214px; width: 214px;
line-height: 88px; line-height: 70px;
text-align: center; text-align: center;
background: rgba(182, 213, 255, 0.22); background: rgba(182, 213, 255, 0.22);
margin-left: 10px; margin-left: 10px;
@@ -36,4 +41,13 @@ export default {
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
} }
.labelNull {
height: 100%;
display: flex;
align-items: center;
.el-icon-circle-plus-outline {
font-size: 50px;
color: #F4F4F4;
}
}
</style> </style>
@@ -4,7 +4,7 @@
<div class="title">友情链接</div> <div class="title">友情链接</div>
<ul> <ul>
<li v-for="(link, index) in linkList" v-if="index<5" :key="index" @click="openLinkUrl(link.url)"> <li v-for="(link, index) in linkList" v-if="index<5" :key="index" @click="openLinkUrl(link.url)">
<a v-if="link.name.length>13" v-html="link.name.substring(0,13)+'...'" :title="link.name"></a> <a v-if="link.name.length>10" v-html="link.name.substring(0,10)+'...'" :title="link.name"></a>
<a v-else v-html="link.name" :title="link.name"></a> <a v-else v-html="link.name" :title="link.name"></a>
</li> </li>
<li> <li>
+2 -1
View File
@@ -13,7 +13,7 @@
ref="selection" ref="selection"
:data="standardReleaseList" :data="standardReleaseList"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%;padding:0 0 20px 0;" style="padding:0 0 20px 0;"
border border
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"> :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
style="width: 100%"> style="width: 100%">
@@ -96,6 +96,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.release { .release {
width: 100%;
.time-title { .time-title {
margin: 15px; margin: 15px;
.time { .time {
@@ -13,7 +13,7 @@
ref="selection" ref="selection"
:data="domesticDynamics" :data="domesticDynamics"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%;padding:0 0 20px 0;" style="padding:0 0 20px 0;"
border border
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"> :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
style="width: 100%"> style="width: 100%">
@@ -90,7 +90,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.solicitopinions { .solicitopinions {
height: 100%; height: 100%;
width: 100%;
.time-title { .time-title {
margin: 15px; margin: 15px;
color: #333333; color: #333333;
@@ -37,7 +37,7 @@ export default {
queryProcess () { // 查询待办流程 queryProcess () { // 查询待办流程
this.$http.postData('lawss/activiti/todoTaskList', { this.$http.postData('lawss/activiti/todoTaskList', {
current: this.pageNo, current: this.pageNo,
size: parseInt(this.$store.getters.userInfo.configContent), size: 10,
userId: this.$store.getters.userInfo.usid || this.$store.getters.userInfo.userId, userId: this.$store.getters.userInfo.usid || this.$store.getters.userInfo.userId,
}, },
{ {
+3 -1
View File
@@ -117,7 +117,7 @@ export default {
display: flex; display: flex;
flex: 1; flex: 1;
flex-direction: column; flex-direction: column;
width: 53.5vw; width: 48vw;
height: calc(~'100% - 10px'); height: calc(~'100% - 10px');
margin-right: 10px; margin-right: 10px;
.more { .more {
@@ -157,8 +157,10 @@ export default {
background:#FFFFFF; background:#FFFFFF;
.main-left-wrap { .main-left-wrap {
height: 100%; height: 100%;
width: 100%;
.home-tabs { .home-tabs {
height: 100%; height: 100%;
width: 100%;
} }
} }
} }
@@ -549,7 +549,7 @@
:url="url" :url="url"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1" :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1"
:nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs"></tree-select-new> :nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs" @popoverHideCancel="popoverHideBusVsCancel"></tree-select-new>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--卡车VPPS编码" prop="kccvppsbm" class="add-form-item form-item-disabled"> <el-form-item label="关联模块--卡车VPPS编码" prop="kccvppsbm" class="add-form-item form-item-disabled">
<el-input v-model="form.kccvppsbm" placeholder="选择卡车VPPS编码" @click.native="choiceZRR3('kccvppsbm', '卡车VPPS', form.kccvppsbm)"></el-input> <el-input v-model="form.kccvppsbm" placeholder="选择卡车VPPS编码" @click.native="choiceZRR3('kccvppsbm', '卡车VPPS', form.kccvppsbm)"></el-input>
@@ -565,7 +565,7 @@
:url="url" :url="url"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2" :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2"
:nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs"></tree-select-new> :nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel"></tree-select-new>
</el-form-item> </el-form-item>
<el-form-item label="模块结构单元变型号" prop="dybxh" class="add-form-item form-item-disabled"> <el-form-item label="模块结构单元变型号" prop="dybxh" class="add-form-item form-item-disabled">
<el-input v-model="form.dybxh" placeholder="选择模块结构单元变型号" @click.native="choiceZRR4('dybxh', '模块结构单元', form.dybxh)"></el-input> <el-input v-model="form.dybxh" placeholder="选择模块结构单元变型号" @click.native="choiceZRR4('dybxh', '模块结构单元', form.dybxh)"></el-input>
@@ -581,7 +581,7 @@
:show-checkBox="showCheckBox" :show-checkBox="showCheckBox"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3" :defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3"
:nodeKey="nodeKeyModel" @popoverHide="popoverHideModel"></tree-select-new> :nodeKey="nodeKeyModel" @popoverHide="popoverHideModel" @popoverHideCancel="popoverHideModelCancel"></tree-select-new>
</el-form-item> </el-form-item>
<el-form-item v-show="form.standInData === '0'" label="归口管理部门" prop="gkdw" class="add-form-item form-item-disabled"> <el-form-item v-show="form.standInData === '0'" label="归口管理部门" prop="gkdw" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.gkdw" placeholder="请选择归口管理部门"> <el-select :popper-append-to-body="false" v-model="form.gkdw" placeholder="请选择归口管理部门">
@@ -2313,19 +2313,23 @@
this.modalShowFlag1 = false this.modalShowFlag1 = false
}, },
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) { popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) { if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){ if(checkedData.length > 0 && checkedData.length != 0){
this.form.cycvppsbm = checkedData.map(item => item.code).join(",") this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",") this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
}else { }else {
this.form.cycvppsbm = checkedData.code this.form.cycvppsbm = checkedData.code
this.form.cycvppscn = checkedData.chineseName this.form.cycvppscn = checkedData.chineseName
} }
this.modalShowFlag2 = false
} }
this.modalShowFlag2 = false
},
popoverHideBusVsCancel(){
this.modalShowFlag2 = false
}, },
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) { popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) { if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){ if(checkedData.length > 0){
this.form.kccvppsbm = checkedData.map(item => item.code).join(",") this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",") this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
@@ -2333,11 +2337,15 @@
this.form.kccvppsbm = checkedData.code this.form.kccvppsbm = checkedData.code
this.form.kccvppscn = checkedData.chineseName this.form.kccvppscn = checkedData.chineseName
} }
this.modalShowFlag3 = false
} }
},
popoverHideCarVsCancel(){
this.modalShowFlag3 = false this.modalShowFlag3 = false
}, },
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) { popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) { if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){ if(checkedData.length > 0){
this.form.dybxh = checkedData.map(item => item.model).join(",") this.form.dybxh = checkedData.map(item => item.model).join(",")
this.form.dymc = checkedData.map(item => item.name).join(",") this.form.dymc = checkedData.map(item => item.name).join(",")
@@ -2345,7 +2353,11 @@
this.form.dybxh = checkedData.model this.form.dybxh = checkedData.model
this.form.dymc = checkedData.name this.form.dymc = checkedData.name
} }
this.modalShowFlag4 = false
} }
},
popoverHideModelCancel(){
this.modalShowFlag4 = false this.modalShowFlag4 = false
}, },
closeDrawer() { closeDrawer() {
@@ -66,6 +66,7 @@
border border
style="width: 100%; flex: auto;" style="width: 100%; flex: auto;"
class="drag-table" class="drag-table"
:default-sort = "{prop: 'chapterNumber', order: 'ascending'}"
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column <el-table-column
@@ -66,6 +66,7 @@
border border
style="width: 100%; flex: auto;" style="width: 100%; flex: auto;"
class="drag-table" class="drag-table"
:default-sort = "{prop: 'chapterNumber', order: 'ascending'}"
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column <el-table-column
@@ -78,6 +78,7 @@
border border
style="width: 100%; flex: auto;" style="width: 100%; flex: auto;"
class="drag-table" class="drag-table"
:default-sort = "{prop: 'chapterNumber', order: 'ascending'}"
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column <el-table-column
@@ -78,6 +78,7 @@
border border
style="width: 100%; flex: auto;" style="width: 100%; flex: auto;"
class="drag-table" class="drag-table"
:default-sort = "{prop: 'chapterNumber', order: 'ascending'}"
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column <el-table-column
@@ -78,6 +78,7 @@
border border
style="width: 100%; flex: auto;" style="width: 100%; flex: auto;"
class="drag-table" class="drag-table"
:default-sort = "{prop: 'chapterNumber', order: 'ascending'}"
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column <el-table-column
@@ -78,6 +78,7 @@
border border
style="width: 100%; flex: auto;" style="width: 100%; flex: auto;"
class="drag-table" class="drag-table"
:default-sort = "{prop: 'chapterNumber', order: 'ascending'}"
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column <el-table-column
@@ -53,6 +53,7 @@
height="70%" height="70%"
style="width: 100%; border:1px solid #ccc" style="width: 100%; border:1px solid #ccc"
@selection-change="selectStandChange" @selection-change="selectStandChange"
@select="handleSelectionChange"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column <el-table-column
@@ -303,6 +304,7 @@
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
@selection-change="selectListChange" @selection-change="selectListChange"
@select="handleSelectionChanges"
ref="selection" ref="selection"
> >
<el-table-column <el-table-column
@@ -430,6 +432,20 @@ export default {
}; };
}, },
methods: { methods: {
// 表格勾选
handleSelectionChange(selection, val) {
if (selection.length > 1) {
let del_row = selection.shift();
this.$refs.selection.toggleRowSelection(del_row, false);
// this.$refs.listSelection.toggleRowSelection(del_row, false);
}
},
handleSelectionChanges(selection, val) {
if (selection.length > 1) {
let del_row = selection.shift();
this.$refs.selection.toggleRowSelection(del_row, false);
}
},
getData() { getData() {
queryTaskFirst({ queryTaskFirst({
bpnId: this.$route.query.bpnId bpnId: this.$route.query.bpnId
@@ -650,6 +666,10 @@ export default {
} }
} }
/deep/ .el-table__header-wrapper .el-checkbox {
display: none;
}
.choiceBtn { .choiceBtn {
.el-button--primary { .el-button--primary {
width: 150px; width: 150px;
@@ -55,6 +55,7 @@
height="70%" height="70%"
style="width: 100%; border:1px solid #ccc" style="width: 100%; border:1px solid #ccc"
@selection-change="selectStandChange" @selection-change="selectStandChange"
@select="handleSelectionChange"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column <el-table-column
@@ -305,6 +306,7 @@
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
@selection-change="selectListChange" @selection-change="selectListChange"
@select="handleSelectionChanges"
ref="listSelection" ref="listSelection"
> >
<el-table-column <el-table-column
@@ -433,6 +435,20 @@ export default {
}; };
}, },
methods: { methods: {
// 表格勾选
handleSelectionChange(selection, val) {
if (selection.length > 1) {
let del_row = selection.shift();
this.$refs.selection.toggleRowSelection(del_row, false);
// this.$refs.listSelection.toggleRowSelection(del_row, false);
}
},
handleSelectionChanges(selection, val) {
if (selection.length > 1) {
let del_row = selection.shift();
this.$refs.listSelection.toggleRowSelection(del_row, false);
}
},
//tab发生变化 //tab发生变化
handleTabs(type) { handleTabs(type) {
this.active = type; this.active = type;
@@ -538,14 +554,7 @@ export default {
}, },
//项目的多选框改变 //项目的多选框改变
selectListChange(data) { selectListChange(data) {
// 单选 this.selectedList = data;
if (data.length > 1) {
this.$refs.listSelection.clearSelection()
this.$refs.listSelection.toggleRowSelection(data.pop())
}
this.multipleSelection = data
this.selectedList = data;
}, },
pageChange(page) { pageChange(page) {
this.page = page; this.page = page;
@@ -676,6 +685,10 @@ export default {
} }
} }
/deep/ .el-table__header-wrapper .el-checkbox {
display: none;
}
.choiceBtn { .choiceBtn {
.el-button--primary { .el-button--primary {
width: 150px; width: 150px;
@@ -195,6 +195,7 @@
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
@selection-change="selectProjectChange" @selection-change="selectProjectChange"
@select="handleSelectionChange"
ref="projectSelection" ref="projectSelection"
> >
<el-table-column <el-table-column
@@ -298,6 +299,7 @@
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
@selection-change="selectListChange" @selection-change="selectListChange"
@select="handleSelectionChanges"
ref="listSelection" ref="listSelection"
> >
<el-table-column <el-table-column
@@ -463,6 +465,20 @@ export default {
this.commentText = mes.commentText; this.commentText = mes.commentText;
}); });
}, },
// 表格勾选
handleSelectionChange(selection, val) {
if (selection.length > 1) {
let del_row = selection.shift();
this.$refs.projectSelection.toggleRowSelection(del_row, false);
// this.$refs.listSelection.toggleRowSelection(del_row, false);
}
},
handleSelectionChanges(selection, val) {
if (selection.length > 1) {
let del_row = selection.shift();
this.$refs.listSelection.toggleRowSelection(del_row, false);
}
},
handleTabs(type) { handleTabs(type) {
this.active = type; this.active = type;
}, },
@@ -623,24 +639,10 @@ export default {
}, },
//清单勾选框数据 //清单勾选框数据
selectListChange(data) { selectListChange(data) {
// 单选
if (data.length > 1) {
this.$refs.listSelection.clearSelection()
this.$refs.listSelection.toggleRowSelection(data.pop())
}
this.multipleSelection = data
this.selectedList = data; this.selectedList = data;
}, },
//项目勾选框数据 //项目勾选框数据
selectProjectChange(data) { selectProjectChange(data) {
// 单选
if (data.length > 1) {
this.$refs.projectSelection.clearSelection()
this.$refs.projectSelection.toggleRowSelection(data.pop())
}
this.multipleSelection = data
this.selectProject = data; this.selectProject = data;
}, },
//提交事件 //提交事件
@@ -758,6 +760,10 @@ export default {
} }
} }
/deep/ .el-table__header-wrapper .el-checkbox {
display: none;
}
/deep/ .el-drawer__container { /deep/ .el-drawer__container {
.prc-content-border { .prc-content-border {
border: none; border: none;
@@ -194,6 +194,7 @@
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
@selection-change="selectProjectChange" @selection-change="selectProjectChange"
@select="handleSelectionChange"
ref="projectSelection" ref="projectSelection"
> >
<el-table-column <el-table-column
@@ -297,6 +298,7 @@
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
@selection-change="selectListChange" @selection-change="selectListChange"
@select="handleSelectionChanges"
ref="listSelection" ref="listSelection"
> >
<el-table-column <el-table-column
@@ -457,13 +459,18 @@ export default {
}, },
methods: { methods: {
// 表格勾选 // 表格勾选
handleSelectionChange(val) { handleSelectionChange(selection, val) {
// 单选 if (selection.length > 1) {
if (val.length > 1) { let del_row = selection.shift();
this.$refs.table.clearSelection(); this.$refs.projectSelection.toggleRowSelection(del_row, false);
this.$refs.table.toggleRowSelection(val.pop()); // this.$refs.listSelection.toggleRowSelection(del_row, false);
}
},
handleSelectionChanges(selection, val) {
if (selection.length > 1) {
let del_row = selection.shift();
this.$refs.listSelection.toggleRowSelection(del_row, false);
} }
this.multipleSelection = val;
}, },
handleTabs(type) { handleTabs(type) {
this.active = type; this.active = type;
@@ -624,24 +631,10 @@ export default {
}, },
//清单勾选框数据 //清单勾选框数据
selectListChange(data) { selectListChange(data) {
// 单选
if (data.length > 1) {
this.$refs.listSelection.clearSelection();
this.$refs.listSelection.toggleRowSelection(data.pop());
}
this.multipleSelection = data
this.selectedList = data; this.selectedList = data;
}, },
//项目勾选框数据 //项目勾选框数据
selectProjectChange(data) { selectProjectChange(data) {
// 单选
if (data.length > 1) {
this.$refs.projectSelection.clearSelection();
this.$refs.projectSelection.toggleRowSelection(data.pop());
}
this.multipleSelection = data
this.selectProject = data; this.selectProject = data;
}, },
//提交事件 //提交事件
@@ -757,7 +750,9 @@ export default {
line-height: 10px; line-height: 10px;
} }
} }
/deep/ .el-table__header-wrapper .el-checkbox {
display: none;
}
/deep/ .el-drawer__container { /deep/ .el-drawer__container {
.prc-content-border { .prc-content-border {
border: none; border: none;
@@ -1083,7 +1083,7 @@
:url="url" :url="url"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1" :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1"
:nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs"></tree-select-new> :nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs" @popoverHideCancel="popoverHideBusVsCancel"></tree-select-new>
<tree-select-new <tree-select-new
width="500" width="500"
:lazy=true :lazy=true
@@ -1094,7 +1094,7 @@
:url="url" :url="url"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2" :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2"
:nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs"></tree-select-new> :nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel()" ></tree-select-new>
<tree-select-new <tree-select-new
width="500" width="500"
:lazy=true :lazy=true
@@ -1105,7 +1105,7 @@
:url="url" :url="url"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3" :defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3"
:nodeKey="nodeKeyModel" @popoverHide="popoverHideModel"></tree-select-new> :nodeKey="nodeKeyModel" @popoverHide="popoverHideModel" @popoverHideCancel="popoverHideModelCancel()"></tree-select-new>
<!-- 导入失败--> <!-- 导入失败-->
<el-dialog :visible.sync="importFailed" :close-on-click-modal="false" width="400px"> <el-dialog :visible.sync="importFailed" :close-on-click-modal="false" width="400px">
<p slot="title" style="color:#f60"> <p slot="title" style="color:#f60">
@@ -2407,7 +2407,7 @@ export default {
this.$forceUpdate() this.$forceUpdate()
}, },
popoverHideBusVs(checkedIds, checkedData, isShow, isLoadChild, topId) { popoverHideBusVs(checkedIds, checkedData, isShow, isLoadChild, topId) {
if (checkedData) { if (checkedData && checkedData.length != 0) {
if (checkedData.length > 0) { if (checkedData.length > 0) {
this.sarStandardsInfoEO.CYCVPPSBM = checkedData.map(item => item.code).join(",") this.sarStandardsInfoEO.CYCVPPSBM = checkedData.map(item => item.code).join(",")
this.sarStandardsInfoEO.CYCVPPSCN = checkedData.map(item => item.chineseName).join(",") this.sarStandardsInfoEO.CYCVPPSCN = checkedData.map(item => item.chineseName).join(",")
@@ -2415,12 +2415,16 @@ export default {
this.sarStandardsInfoEO.CYCVPPSBM = checkedData.code this.sarStandardsInfoEO.CYCVPPSBM = checkedData.code
this.sarStandardsInfoEO.CYCVPPSCN = checkedData.chineseName this.sarStandardsInfoEO.CYCVPPSCN = checkedData.chineseName
} }
this.modalShowFlag2 = false
} }
this.modalShowFlag2 = false
this.$forceUpdate() this.$forceUpdate()
}, },
popoverHideBusVsCancel(){
this.modalShowFlag2 = false
},
popoverHideCarVs(checkedIds, checkedData, isShow, isLoadChild, topId) { popoverHideCarVs(checkedIds, checkedData, isShow, isLoadChild, topId) {
if (checkedData) { if (checkedData && checkedData.length != 0) {
if (checkedData.length > 0) { if (checkedData.length > 0) {
this.sarStandardsInfoEO.KCCVPPSBM = checkedData.map(item => item.code).join(",") this.sarStandardsInfoEO.KCCVPPSBM = checkedData.map(item => item.code).join(",")
this.sarStandardsInfoEO.KCCVPPSCN = checkedData.map(item => item.chineseName).join(",") this.sarStandardsInfoEO.KCCVPPSCN = checkedData.map(item => item.chineseName).join(",")
@@ -2428,12 +2432,16 @@ export default {
this.sarStandardsInfoEO.KCCVPPSBM = checkedData.code this.sarStandardsInfoEO.KCCVPPSBM = checkedData.code
this.sarStandardsInfoEO.KCCVPPSCN = checkedData.chineseName this.sarStandardsInfoEO.KCCVPPSCN = checkedData.chineseName
} }
this.modalShowFlag3 = false
} }
this.modalShowFlag3 = false
this.$forceUpdate() this.$forceUpdate()
}, },
popoverHideCarVsCancel(){
this.modalShowFlag3 = false
},
popoverHideModel(checkedIds, checkedData, isShow, isLoadChild, topId) { popoverHideModel(checkedIds, checkedData, isShow, isLoadChild, topId) {
if (checkedData) { if (checkedData && checkedData.length != 0) {
if (checkedData.length > 0) { if (checkedData.length > 0) {
this.sarStandardsInfoEO.DYBXH = checkedData.map(item => item.model).join(",") this.sarStandardsInfoEO.DYBXH = checkedData.map(item => item.model).join(",")
this.sarStandardsInfoEO.DYMC = checkedData.map(item => item.name).join(",") this.sarStandardsInfoEO.DYMC = checkedData.map(item => item.name).join(",")
@@ -2441,10 +2449,13 @@ export default {
this.sarStandardsInfoEO.DYBXH = checkedData.model this.sarStandardsInfoEO.DYBXH = checkedData.model
this.sarStandardsInfoEO.DYMC = checkedData.name this.sarStandardsInfoEO.DYMC = checkedData.name
} }
this.modalShowFlag4 = false
} }
this.modalShowFlag4 = false
this.$forceUpdate() this.$forceUpdate()
}, },
popoverHideModelCancel(){
this.modalShowFlag4 = false
},
busVsFunc() { busVsFunc() {
this.$http.get('sarVppsTree/list', '', { this.$http.get('sarVppsTree/list', '', {
_this: this _this: this