feat: asset侧滑切回重构后的
This commit is contained in:
@@ -121,12 +121,12 @@
|
||||
<panel-box :panel="editPanel" @reload="panelListReload" @reloadForDel="" ref="panelBox"></panel-box>
|
||||
<project-box :project="editProject" ref="projectBox"></project-box>
|
||||
<module-box :currentProject="currentProject" :module="editModule" @reload="" ref="moduleBox"></module-box>
|
||||
<!--<asset-box :currentProject="currentProject" :currentModule="currentModule" @reload=""
|
||||
ref="addEndpointBox"></asset-box>-->
|
||||
<add-endpoint-box :currentProject="currentProject" :currentModule="currentModule" @reload=""
|
||||
ref="addEndpointBox"></add-endpoint-box>
|
||||
<asset-add-unit :add-unit-show='addUnitShow' @refreshData="refreshAsset" ref="assetAddUnit"
|
||||
@sendStateData="closeAsset"></asset-add-unit>
|
||||
<!--<asset-add-unit :add-unit-show='addUnitShow' @refreshData="refreshAsset" ref="assetAddUnit"
|
||||
@sendStateData="closeAsset"></asset-add-unit>-->
|
||||
<asset-box :edit-unit-show='addUnitShow' @refreshData="refreshAsset" @sendStateData="closeAsset"
|
||||
ref="assetAddUnit"></asset-box>
|
||||
<alert-config-box :parentAlertRule="alertRule" @reload="" ref="alertConfigBox"></alert-config-box>
|
||||
<change-password :cur-user="username" :show-dialog="showChangePwd" @click="showPwdDialog" @dialogClosed="dialogClosed"></change-password>
|
||||
</div>
|
||||
|
||||
@@ -176,12 +176,12 @@
|
||||
<Pagination :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
||||
</div>
|
||||
|
||||
<asset-add-unit :add-unit-show='addUnitShow' @refreshData="flushData" ref="assetAddUnit"
|
||||
<!--<asset-add-unit :add-unit-show='addUnitShow' @refreshData="flushData" ref="assetAddUnit"
|
||||
@sendStateData="tabControl"></asset-add-unit>
|
||||
<asset-edit-unit :edit-unit-show='editUnitShow' @refreshData="flushData" @sendStateData="tabControl"
|
||||
ref="assetEditUnit"></asset-edit-unit>
|
||||
<!--<asset-box :edit-unit-show='editUnitShow' @refreshData="flushData" @sendStateData="tabControl"
|
||||
ref="assetEditUnit"></asset-box>-->
|
||||
ref="assetEditUnit"></asset-edit-unit>-->
|
||||
<asset-box :edit-unit-show='editUnitShow' @refreshData="flushData" @sendStateData="tabControl"
|
||||
ref="assetEditUnit"></asset-box>
|
||||
<element-set
|
||||
v-clickoutside="elementsetHide"
|
||||
:drop-col="dropCol"
|
||||
@@ -632,9 +632,9 @@
|
||||
},
|
||||
tagShow(data, id, type) {
|
||||
if (data === 'showAdd') {
|
||||
this.addUnitShow = true;
|
||||
/*this.editUnitShow = true;
|
||||
this.$refs['assetEditUnit'].getAssetData('');*/
|
||||
//this.addUnitShow = true;
|
||||
this.editUnitShow = true;
|
||||
this.$refs['assetEditUnit'].getAssetData('');
|
||||
}
|
||||
if (data === 'showEdit') {
|
||||
this.editUnitShow = true;
|
||||
|
||||
@@ -65,7 +65,7 @@ Vue.use(ElementUI);
|
||||
Vue.use(Vuex);
|
||||
Vue.use(VueResource);
|
||||
|
||||
const exceptClassName = [];
|
||||
const exceptClassName = []; //clickoutside排除的class
|
||||
const clickoutside = {
|
||||
// 初始化指令
|
||||
bind(el, binding, vnode) {
|
||||
@@ -77,7 +77,7 @@ const clickoutside = {
|
||||
let attrs = e.target.attributes;
|
||||
for (let i = 0; i < attrs.length; i++) {
|
||||
if (attrs[i].name == 'class') {
|
||||
console.info(attrs[i].value)
|
||||
|
||||
if ((attrs[i].value + '').indexOf("el-select-dropdown") != -1) {
|
||||
flag = false;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user