mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-06 09:26:44 +08:00
Merge remote-tracking branch 'zcwy/zcwy_0827_pingcode817' into dev_master
This commit is contained in:
@@ -163,7 +163,11 @@ export function useNewRowsPageNoInit(_url, params) {
|
|||||||
state.data = r.data.list;
|
state.data = r.data.list;
|
||||||
state.total = r.data.total;
|
state.total = r.data.total;
|
||||||
state.loading = false;
|
state.loading = false;
|
||||||
});
|
}).catch((err)=>{
|
||||||
|
state.data = [];
|
||||||
|
state.total = 0;
|
||||||
|
state.loading = false;
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -511,7 +515,7 @@ export async function request(_url, params) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
//刷新token
|
//刷新token
|
||||||
res.show ? message.error(res.msg):message.error('系统接口数据异常,请联系管理员');
|
res.show ? message.error(res.msg):res.msg=='无数据'?null:message.error('系统接口数据异常,请联系管理员');
|
||||||
return Promise.reject(res);
|
return Promise.reject(res);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -254,6 +254,16 @@ export default {
|
|||||||
console.log("查询导入状态", res);
|
console.log("查询导入状态", res);
|
||||||
if (res.data.code === 200) {
|
if (res.data.code === 200) {
|
||||||
if (res.data.data.status !== "START") {
|
if (res.data.data.status !== "START") {
|
||||||
|
if(res.data.data.status === "SUCCESS"){
|
||||||
|
state.addLoading = false;
|
||||||
|
state.fileList = [];
|
||||||
|
state.uploadpercent = -1;
|
||||||
|
message.destroy();
|
||||||
|
message.error(`当前开课暂无作业,无法导入成绩`);
|
||||||
|
clearInterval(timer);
|
||||||
|
clearTimeout(timeouts);
|
||||||
|
return;
|
||||||
|
}
|
||||||
i++;
|
i++;
|
||||||
if (i === 1) {
|
if (i === 1) {
|
||||||
message.destroy();
|
message.destroy();
|
||||||
|
|||||||
@@ -162,9 +162,9 @@
|
|||||||
:style="{ display: hideshow ? 'none' : 'block' }"
|
:style="{ display: hideshow ? 'none' : 'block' }"
|
||||||
>
|
>
|
||||||
<div class="btnsbox">
|
<div class="btnsbox">
|
||||||
<div class="btn4_tit" @click="showEScoreModal">
|
<!-- <div class="btn4_tit" @click="showEScoreModal">
|
||||||
<span>批量录入成绩</span>
|
<span>批量录入成绩</span>
|
||||||
</div>
|
</div> -->
|
||||||
<div class="btn4_op1" @click="updateStatus(1)">
|
<div class="btn4_op1" @click="updateStatus(1)">
|
||||||
<span>批量结业</span>
|
<span>批量结业</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -147,6 +147,12 @@
|
|||||||
<a-radio :style="radioStyle" :value="0">否</a-radio>
|
<a-radio :style="radioStyle" :value="0">否</a-radio>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="num" v-if="projectInfo.boeFlag === 1">
|
||||||
|
<div class="num_text">项目编号:</div>
|
||||||
|
<div class="num_input">
|
||||||
|
<a-input style="border-radius: 8px;" show-count allowClear maxlength="30" v-model:value="projectInfo.numValue" placeholder="请输入项目编号" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name name2">
|
<div class="name name2">
|
||||||
<div class="namebox">
|
<div class="namebox">
|
||||||
@@ -772,6 +778,20 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.num{
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
.num_text{
|
||||||
|
color: #6f6f6f;
|
||||||
|
font-size: 14px;
|
||||||
|
// margin-right: 7px;
|
||||||
|
}
|
||||||
|
.num_input{
|
||||||
|
width: 184px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.filebox {
|
.filebox {
|
||||||
margin-left: 14px;
|
margin-left: 14px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|||||||
@@ -263,14 +263,25 @@ export default {
|
|||||||
headers: {
|
headers: {
|
||||||
token: Cookies.get("token"),
|
token: Cookies.get("token"),
|
||||||
},
|
},
|
||||||
}).then(
|
}).then((res) => {
|
||||||
(res) => {
|
const reader = new FileReader();
|
||||||
downLoad(res.data, "项目详情.xlsx");
|
reader.onload = function(e) {
|
||||||
},
|
try {
|
||||||
(err) => {
|
const result = JSON.parse(e.target.result);
|
||||||
message.error(err);
|
if (result.status === 200 || result.success) {
|
||||||
}
|
// 下载文件
|
||||||
);
|
downLoad(res.data, "项目详情.xlsx");
|
||||||
|
} else {
|
||||||
|
message.error(result.message);
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
downLoad(res.data, "项目详情.xlsx");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
reader.readAsText(res.data);
|
||||||
|
}).catch((error) => {
|
||||||
|
message.error(error.response ? error.response.data.message : error.toString());
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
const params = {};
|
const params = {};
|
||||||
params.status = state.status;
|
params.status = state.status;
|
||||||
@@ -291,19 +302,25 @@ export default {
|
|||||||
headers: {
|
headers: {
|
||||||
token: Cookies.get("token"),
|
token: Cookies.get("token"),
|
||||||
},
|
},
|
||||||
}).then(
|
}).then((res) => {
|
||||||
(res) => {
|
const reader = new FileReader();
|
||||||
if(res.data.status && res.data.status == 600){
|
reader.onload = function(e) {
|
||||||
message.error(res.data.message);
|
try {
|
||||||
}else{
|
const result = JSON.parse(e.target.result);
|
||||||
|
if (result.status === 200 || result.success) {
|
||||||
|
// 下载文件
|
||||||
|
downLoad(res.data, "项目详情.xlsx");
|
||||||
|
} else {
|
||||||
|
message.error(result.message);
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
downLoad(res.data, "项目详情.xlsx");
|
downLoad(res.data, "项目详情.xlsx");
|
||||||
}
|
}
|
||||||
|
};
|
||||||
},
|
reader.readAsText(res.data);
|
||||||
(err) => {
|
}).catch((error) => {
|
||||||
message.error(err);
|
message.error(error.response ? error.response.data.message : error.toString());
|
||||||
}
|
});
|
||||||
);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// 表格数据
|
// 表格数据
|
||||||
|
|||||||
Reference in New Issue
Block a user