Commit 10e08f65 by 前端

Merge branch 'develop' into 'master'

Develop

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