Commit 10e08f65 by 前端

Merge branch 'develop' into 'master'

Develop

See merge request !40
2 parents 567d07b0 0626e9f7
......@@ -2,9 +2,25 @@
width: 100%;
height: 100px;
}
.c_canvass {
width: 100px;
height: 134px;
}
.static_list_box {
display: flex;
align-items: center;
position: relative;
.mask {
position: absolute;
width: 100%;
height: 234px;
background-color: #fbfbfb;
top: 0;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
}
.cell_box {
flex: 1;
margin: 0 10px 0 0;
......@@ -42,6 +58,17 @@
padding: 10px 0;
border-top: 2px solid #eee;
font-size: 13px;
display: flex;
.footer-box {
flex: 1;
}
}
.equipment_box {
display: flex;
.equipment_boxs {
display: flex;
flex: 1;
}
}
}
}
......
......@@ -5,7 +5,7 @@
<select-info ref="selectInfoCom" :id="id" :key="id"></select-info>
</el-tab-pane>
<el-tab-pane label="导入数据" name="2">
<import-vehicle ref="importVehicleCom" :id="id" :key="id"></import-vehicle>
<import-vehicle ref="importVehicleCom" :id="id" :key="id" @monitorFlag="monitorFlag" @monitorChangeFlag="monitorChangeFlag"></import-vehicle>
</el-tab-pane>
<el-tab-pane label="按组织授权" name="3">
<authorization-info ref="authorizationInfoCom" :id="id" :key="id"></authorization-info>
......@@ -35,6 +35,8 @@ export default {
activeTabs: "1",
userId: "",
randomKey: "",
monitorFlags: false,
showBtnFlag: true
};
},
watch: {
......@@ -63,6 +65,19 @@ export default {
}
this.$refs.importVehicleCom.saveInfo();
},
monitorFlag(val) {
this.monitorFlags = val
},
monitorChangeFlag(val) {
if (val && !this.monitorFlags) {
this.showBtnFlag = true
}
if (this.monitorFlags) {
this.showBtnFlag = false
this.monitorFlags = !this.monitorFlags
}
this.$emit('showBtnFlags', this.showBtnFlag)
}
},
};
</script>
......
......@@ -66,7 +66,7 @@ export default {
uploadParams: {},
uploadResult: {},
acceptFile: ".xlsx,.xls",
fileList: [],
fileList: []
};
},
mounted() {
......@@ -86,6 +86,7 @@ export default {
this.uploadFile = file;
this.fileList = [file];
}
this.$emit('monitorChangeFlag', true)
},
// 下载失败文件
......@@ -107,6 +108,7 @@ export default {
// 监听文件上传成功
onSuccess(response, file, fileList) {
console.log(response);
this.$emit('monitorFlag', true)
let _this = this;
broadcast("cancel-loading");
_this.$refs.uploadBox.clearFiles();
......@@ -131,7 +133,6 @@ export default {
showToast({
message: "请选择文件",
});
console.log("7777777777777");
broadcast("cancel-loading");
return false;
}
......
......@@ -59,11 +59,11 @@
<!-- 指定数据弹框 开始 -->
<glsx-dialog :show="showDialog" title="指定数据" @close="closeDialog()" width="900px">
<div>
<assign-info ref="assignInfo" v-if="showDialog" :id="currentUserId"></assign-info>
<assign-info ref="assignInfo" v-if="showDialog" :id="currentUserId" @showBtnFlags="showBtnFlags"></assign-info>
</div>
<template slot="footer">
<el-button type="default" size="small" @click="closeDialog">取消</el-button>
<el-button type="primary" size="small" :loading="loading" @click="saveInfo">确定</el-button>
<el-button type="primary" size="small" :loading="loading" @click="saveInfo" v-show="showFlags">确定</el-button>
</template>
</glsx-dialog>
<!-- 指定数据弹框 end -->
......@@ -314,6 +314,7 @@ export default {
showDialog: false,
loading: false,
currentUserId: "",
showFlags: true
};
},
watch: {
......@@ -336,6 +337,9 @@ export default {
this.init();
},
methods: {
showBtnFlags(val) {
this.showFlags = val
},
init() {
this.getTreeOrg();
// this.getRoleList();
......@@ -731,6 +735,7 @@ export default {
// 关闭弹框
closeDialog() {
this.showDialog = false;
this.showFlags = true;
},
// 保存数据
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!