提交 c03ebb42 编写于 作者: yi.li's avatar yi.li

Merge branch 'dev-patients-20190513' of...

Merge branch 'dev-patients-20190513' of 192.168.110.53:com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-patients-20190513
...@@ -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: 250px;
// 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: 60%;
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: 63%;
} }
} }
.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;
......
...@@ -333,6 +333,9 @@ ...@@ -333,6 +333,9 @@
labelName: params.newLabelName, labelName: params.newLabelName,
} }
}) })
}else if(data.code == '202520'){
this.isChangeNameError = true;
this.changeNameTips = '该分组名称已被您使用,请重新输入';
}else{ }else{
this.$message({ this.$message({
message: '请求接口失败,请重新再试', message: '请求接口失败,请重新再试',
......
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
<div class="component-content screenSet upload-history-wrap"> <div class="component-content screenSet upload-history-wrap">
<p class="septal-line"></p> <p class="septal-line"></p>
<p class="upload-record">上传历史记录:{{searchData.totalCount}}</p> <p class="upload-record">上传历史记录:{{searchData.totalCount}}</p>
<!-- :cell-style="aaa" -->
<el-table <el-table
:data="searchData.tableData" :data="searchData.tableData"
class="upload-table" class="upload-table"
...@@ -80,7 +81,7 @@ ...@@ -80,7 +81,7 @@
align="left" align="left"
prop="fileName" prop="fileName"
label="文件名" label="文件名"
width="180"> width="250">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="left" align="left"
...@@ -154,9 +155,6 @@ ...@@ -154,9 +155,6 @@
tableData: [], tableData: [],
totalCount: 0, totalCount: 0,
}, },
uploadHeaders: {
token: localStorage.getItem('token')
},
files: [], files: [],
postData: {}, postData: {},
showUploadSuccess: false, showUploadSuccess: false,
...@@ -171,6 +169,14 @@ ...@@ -171,6 +169,14 @@
]), ]),
}, },
methods: { methods: {
// aaa(obj){
// console.log('%c cell-style obj>>>>>>', 'color: red;', obj);
// if(obj.column.property == 'reason'){
// return 'red>>>'
// }else{
// return 'pink'
// }
// },
notUseDefaultUpload(){ notUseDefaultUpload(){
// console.log('just console>>>>>>>>') // console.log('just console>>>>>>>>')
}, },
...@@ -205,11 +211,13 @@ ...@@ -205,11 +211,13 @@
import_type: 2, import_type: 2,
}; };
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;
req.token = localStorage.getItem('storageToken');
} }
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;
...@@ -242,9 +250,17 @@ ...@@ -242,9 +250,17 @@
getUploadHistory(params).then(res => { getUploadHistory(params).then(res => {
// console.log('获取上传历史记录:', res); // console.log('获取上传历史记录:', res);
if(res.code == "000000"){ if(res.code == "000000"){
if(res.data.importRecordsModelList && res.data.importRecordsModelList.length > 0){ let data = res.data.importRecordsModelList;
this.searchData.tableData = res.data.importRecordsModelList; if(data && data.length > 0){
data = data.map(item => {
if(!item.reason) {
item.reason = '-'
}
return item;
});
this.searchData.tableData = data;
this.searchData.totalCount = res.data.count; this.searchData.totalCount = res.data.count;
} }
}else{ }else{
// 获取失败 // 获取失败
......
...@@ -100,10 +100,10 @@ ...@@ -100,10 +100,10 @@
id: '', id: '',
labelIds: '', labelIds: '',
}, },
labelsInfoList: [], labelsInfoList: [], // 二维码分组 列表信息
currentLabelList: [], labelNameList: [], // 分组列表
labelNameList: [], currentLabelList: [], // 接口返回的二维码分组id列表
choosedLabelList: [], choosedLabelList: [], // 勾选的分组id列表
forDownloadInfo: {}, // 下载用的信息 forDownloadInfo: {}, // 下载用的信息
} }
}, },
...@@ -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.calculateQRCode(data.qrcodeUrl);
this.handleGetLabelsInfo({ this.handleGetLabelsInfo({
labelIds: data.labelIds, labelIds: data.labelIds,
}); });
}else{
this.labelsInfoList = [];
this.currentLabelList = [];
}
this.calculateQRCode(data.qrcodeUrl);
}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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册