提交 5eded924 编写于 作者: chengxiang.li's avatar chengxiang.li

update

上级 2566c5ee
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
class="upload-demo" class="upload-demo"
:action="action" :action="action"
:headers="headers" :headers="headers"
:multiple="false" multiple
list-type="picture" list-type="picture"
:limit="imgLimit" :limit="imgLimit"
:accept="'image/jpg,image/jpeg,image/png,image/bmp'" :accept="'image/jpg,image/jpeg,image/png,image/bmp'"
......
...@@ -14,7 +14,8 @@ body, div, span, header, footer, nav, section, aside, article, ul, dl, dt, dd, l ...@@ -14,7 +14,8 @@ body, div, span, header, footer, nav, section, aside, article, ul, dl, dt, dd, l
border: none; border: none;
// color: #333; // color: #333;
font-weight: normal; font-weight: normal;
font-family: "PingFangSC", "Microsoft Yahei"; // font-family: "PingFangSC", "Microsoft Yahei";
font-family: "Helvetica Neue", "Helvetica", "PingFang SC", "Hiragino Sans GB","Microsoft YaHei", "SimSun", "sans-serif";
box-sizing: border-box; box-sizing: border-box;
-webkit-tap-highlight-color:transparent; -webkit-tap-highlight-color:transparent;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
...@@ -60,7 +61,8 @@ html,body{ ...@@ -60,7 +61,8 @@ html,body{
height: 100%; height: 100%;
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;
font-family: Arial, Helvetica, sans-serif; // font-family: Arial, Helvetica, sans-serif;
font-family: "Helvetica Neue", "Helvetica", "PingFang SC", "Hiragino Sans GB","Microsoft YaHei", "SimSun", "sans-serif";
font-size: 16px; font-size: 16px;
} }
#app { #app {
......
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
height: 237px; height: 237px;
margin-top: 15px; margin-top: 15px;
.first{ .first{
width: 308px; width: 290px;
// width: 30%; // width: 30%;
height: 200px; height: 200px;
float: left; float: left;
...@@ -192,8 +192,8 @@ ...@@ -192,8 +192,8 @@
} }
.border{ .border{
display: inline-block; display: inline-block;
width: 200px; // width: 200px;
// width: 70%; width: 65%;
height: 0px; height: 0px;
border-bottom: 1px solid #449284; border-bottom: 1px solid #449284;
vertical-align: middle; vertical-align: middle;
...@@ -217,12 +217,12 @@ ...@@ -217,12 +217,12 @@
} }
} }
.second{ .second{
width: 380px; width: 350px;
// width: 40%; // width: 40%;
.procedure{ .procedure{
.border{ .border{
width: 250px; // width: 250px;
// width: 70%; width: 65%;
} }
} }
.under-info{ .under-info{
...@@ -363,7 +363,7 @@ ...@@ -363,7 +363,7 @@
} }
.flow-path{ .flow-path{
// width: 100%; // width: 100%;
height: 441px; height: 430px;
display: block; display: block;
border: 0; border: 0;
margin-left: -20px; margin-left: -20px;
......
...@@ -154,9 +154,6 @@ ...@@ -154,9 +154,6 @@
tableData: [], tableData: [],
totalCount: 0, totalCount: 0,
}, },
uploadHeaders: {
token: localStorage.getItem('token')
},
files: [], files: [],
postData: {}, postData: {},
showUploadSuccess: false, showUploadSuccess: false,
...@@ -204,12 +201,14 @@ ...@@ -204,12 +201,14 @@
fileArray: fileArray, fileArray: fileArray,
import_type: 2, import_type: 2,
}; };
debugger;
if( process.env.BUILD_ENV == "development" ){ if( process.env.BUILD_ENV == "development" ){
req.token = '4E971382E2E14BDC91CC23A450343788' req.token = '77DDB524DE0742B19CEC759CA463F3A5'
}else{ }else{
req.token = self._token; req.token = self._token;
} }
self.postData = JSON.stringify(req); self.postData = JSON.stringify(req);
console.log('>>>>>> batch upload req', req)
uploadExcel(self.postData).then(res => { uploadExcel(self.postData).then(res => {
if(typeof res.importFlag != 'undefined' && res.importFlag == true){ if(typeof res.importFlag != 'undefined' && res.importFlag == true){
self.showUploadSuccess = true; self.showUploadSuccess = true;
......
...@@ -100,11 +100,11 @@ ...@@ -100,11 +100,11 @@
id: '', id: '',
labelIds: '', labelIds: '',
}, },
labelsInfoList: [], labelsInfoList: [], // 二维码分组 列表信息
currentLabelList: [], labelNameList: [], // 分组列表
labelNameList: [], currentLabelList: [], // 接口返回的二维码分组id列表
choosedLabelList: [], choosedLabelList: [], // 勾选的分组id列表
forDownloadInfo: {}, // 下载用的信息 forDownloadInfo: {}, // 下载用的信息
} }
}, },
created() { created() {
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
watch: { watch: {
showChooseLabelModal: function(val) { showChooseLabelModal: function(val) {
if(val == false){ if(val == false){
this.labelNameList = []; // this.labelNameList = [];
this.choosedLabelList = []; this.choosedLabelList = [];
} }
}, },
...@@ -138,15 +138,19 @@ ...@@ -138,15 +138,19 @@
let data = res.data; let data = res.data;
if( !justDownload ){ // 非下载二维码时 if( !justDownload ){ // 非下载二维码时
this.qrCodeInfo = data; this.qrCodeInfo = data;
if(data.labelIds != ''){ if(data.labelIds && (data.labelIds != '')){ // 存在labelIds,则去请求label信息列表
let temp = data.labelIds.split(','); let temp = data.labelIds.split(',');
this.currentLabelList = this.formatList(temp); this.currentLabelList = this.formatList(temp);
this.handleGetLabelsInfo({
labelIds: data.labelIds,
});
}else{
this.labelsInfoList = [];
this.currentLabelList = [];
} }
this.calculateQRCode(data.qrcodeUrl); this.calculateQRCode(data.qrcodeUrl);
this.handleGetLabelsInfo({
labelIds: data.labelIds,
});
}else{ // 下载二维码时,不用更新页面中的二维码信息 }else{ // 下载二维码时,不用更新页面中的二维码信息
// debugger;
this.forDownloadInfo = data; this.forDownloadInfo = data;
let { id, beginTime, endTime, forever } = this.forDownloadInfo; let { id, beginTime, endTime, forever } = this.forDownloadInfo;
let obj = { let obj = {
...@@ -202,6 +206,7 @@ ...@@ -202,6 +206,7 @@
}) })
}, },
handleChooseGroup() { handleChooseGroup() {
// debugger;
this.showDownloadQRModal = false; this.showDownloadQRModal = false;
// 回显已经选择的label // 回显已经选择的label
this.choosedLabelList = this.currentLabelList; this.choosedLabelList = this.currentLabelList;
...@@ -217,7 +222,7 @@ ...@@ -217,7 +222,7 @@
if(res.code == '000000'){ if(res.code == '000000'){
let data = res.data; let data = res.data;
this.qrCodeInfo = data; this.qrCodeInfo = data;
if(data.labelIds != ''){ if(data.labelIds && data.labelIds != ''){
let temp = data.labelIds.split(','); let temp = data.labelIds.split(',');
this.currentLabelList = this.formatList(temp); this.currentLabelList = this.formatList(temp);
} }
...@@ -234,16 +239,10 @@ ...@@ -234,16 +239,10 @@
// 回显已经选择的label // 回显已经选择的label
this.choosedLabelList = this.currentLabelList; this.choosedLabelList = this.currentLabelList;
this.goToGetGroupList(); this.goToGetGroupList();
}, },
handleAfterChooseLabel() { handleAfterChooseLabel() {
if(this.choosedLabelList.length < 1){ console.log('this.choosedLabelList ', this.choosedLabelList)
this.$message({ console.log('this.choosedLabelList ', this.choosedLabelList.join(','))
message: '请选择分组',
type: 'warning'
});
return;
}
if( this.showDownloadQRModal == false ){ // 选择分组时 if( this.showDownloadQRModal == false ){ // 选择分组时
this.showChooseLabelModal = false; this.showChooseLabelModal = false;
this.goToGetQRCode({ this.goToGetQRCode({
...@@ -251,7 +250,6 @@ ...@@ -251,7 +250,6 @@
id: '', id: '',
first: false, first: false,
}); });
this.choosedLabelList = [];
}else{ // 下载二维码时 }else{ // 下载二维码时
// 获取最新二维码参数,但不影响之前的二维码参数 // 获取最新二维码参数,但不影响之前的二维码参数
this.goToGetQRCode({ this.goToGetQRCode({
...@@ -260,10 +258,7 @@ ...@@ -260,10 +258,7 @@
first: false, first: false,
justDownload: true, justDownload: true,
}, this.goToDownloadQRCode); }, this.goToDownloadQRCode);
} }
}, },
goToDownloadQRCode(params) { goToDownloadQRCode(params) {
// 下载二维码 // 下载二维码
...@@ -315,10 +310,7 @@ ...@@ -315,10 +310,7 @@
let newTab=window.open('about:blank'); let newTab=window.open('about:blank');
newTab.location = src; newTab.location = src;
} }
}, },
} }
</script> </script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册