diff --git a/client/dist/index.html b/client/dist/index.html
index a32f1c8..84ad2be 100644
--- a/client/dist/index.html
+++ b/client/dist/index.html
@@ -1 +1 @@
-
vue Admin Template We're sorry but vue Admin Template doesn't work properly without JavaScript enabled. Please enable it to continue.
\ No newline at end of file
+vue Admin Template We're sorry but vue Admin Template doesn't work properly without JavaScript enabled. Please enable it to continue.
\ No newline at end of file
diff --git a/client/src/views/supervisionNew/mytask.vue b/client/src/views/supervisionNew/mytask.vue
index 00268c6..70df6c4 100644
--- a/client/src/views/supervisionNew/mytask.vue
+++ b/client/src/views/supervisionNew/mytask.vue
@@ -381,7 +381,7 @@
+
上传文件
@@ -716,7 +727,7 @@
取消
- 确认
+ 确认
@@ -751,6 +762,7 @@
saveriskDialog,savecomDialog,saveoinDialog},
data(){
return{
+ pageSizes:[10,20,50,100,1000,2000,5000],
downloadUrl: process.env.VUE_APP_BASE_API,
leftHeight:null,
tableHeight:null,
@@ -784,6 +796,10 @@
belong_dept:null,
page_size: 20,
},
+ rc2ListQuery:{
+ page: 1,
+ page_size: 20,
+ },
typeOptions:{
10:"目标制定",
20:"日常监督"
@@ -801,7 +817,7 @@
task2do:''
},
rcList:[],//报告证书{应发/超期}
- rc2List:[],
+ rc2List:{},
dialogRc:false,
ptList:[],//能力验证
dialogPt:false,
@@ -836,6 +852,7 @@
20:'行业主管部门检查',
30:'其他检查'
},
+ uploading:false,
};
},
mounted(){
@@ -993,7 +1010,25 @@
that.rcList =res.data;
}
});
- getRcList({task2do:that.task2do,etype:20,page:0}).then((res) => {
+ let obj = {};
+ obj.task2do = that.task2do;
+ obj.etype = 20;
+ obj.page = that.rc2ListQuery.page;
+ obj.page_size = that.rc2ListQuery.page_size;
+ getRcList(obj).then((res) => {
+ if (res.code >= 200) {
+ that.rc2List =res.data;
+ }
+ });
+ },
+ getRc2List(){
+ let that = this;
+ let obj = {};
+ obj.task2do = that.task2do;
+ obj.etype = 20;
+ obj.page = that.rc2ListQuery.page;
+ obj.page_size = that.rc2ListQuery.page_size;
+ getRcList(obj).then((res) => {
if (res.code >= 200) {
that.rc2List =res.data;
}
@@ -1083,6 +1118,9 @@
this.$message.warning('请上传实施细则文件')
}
},
+ beforeUpload(){
+ this.uploading = true;
+ },
handlePreview(file) {
if ("response" in file) {
window.open(file.response.data.path);
@@ -1097,6 +1135,7 @@
this.subData[index].goal_file = null;
},
handleSuccessImp(res, file, fileList){
+ this.uploading = false;
this.impForm.path = res.data.path;
},
handleRemoveImp(file, fileList){
@@ -1227,10 +1266,12 @@
this.downloadUrl = base_url+file_url;
},
imporCconfirm(){
+ this.saveLoading = true;
this.impForm.task2do =this.task2do;
if(this.impType=='rc'){
impRc(this.impForm).then(res=>{
if(res.code>=200){
+ this.saveLoading = false;
this.impDialogVisible = false;
this.$message.success("提交成功");
this.getRcList();
@@ -1241,9 +1282,10 @@
}else if(this.impType=='rc2'){
impOverdue(this.impForm).then(res=>{
if(res.code>=200){
+ this.saveLoading = false;
this.impDialogVisible = false;
this.$message.success("提交成功");
- this.getRcList();
+ this.getRc2List();
}else{
this.$message.warning(res.msg);
}
@@ -1251,6 +1293,7 @@
}else if(this.impType=='pt'){
impPt(this.impForm).then(res=>{
if(res.code>=200){
+ this.saveLoading = false;
this.impDialogVisible = false;
this.$message.success("提交成功");
this.getPtList();
@@ -1261,6 +1304,7 @@
}else if(this.impType=='risk'){
impRisk(this.impForm).then(res=>{
if(res.code>=200){
+ this.saveLoading = false;
this.impDialogVisible = false;
this.$message.success("提交成功");
this.getRiskList();
@@ -1271,6 +1315,7 @@
}else if(this.impType=='complaint'){
impComplaint(this.impForm).then(res=>{
if(res.code>=200){
+ this.saveLoading = false;
this.impDialogVisible = false;
this.$message.success("提交成功");
this.getComplaintList();
@@ -1281,6 +1326,7 @@
}else if(this.impType=='oinspect'){
impOinspect(this.impForm).then(res=>{
if(res.code>=200){
+ this.saveLoading = false;
this.impDialogVisible = false;
this.$message.success("提交成功");
this.getOinspectList();
diff --git a/client/src/views/supervisionNew/taskdo.vue b/client/src/views/supervisionNew/taskdo.vue
index 4f53866..d04e670 100644
--- a/client/src/views/supervisionNew/taskdo.vue
+++ b/client/src/views/supervisionNew/taskdo.vue
@@ -274,11 +274,11 @@
超期报告
@@ -287,6 +287,13 @@
+
@@ -543,11 +550,15 @@ export default {
deptOptions: [],
task2doItem:{},
rcList:[],//报告证书{应发/超期}
- rc2List:[],
+ rc2List:{},
ptList:[],//能力验证
riskList:[],//风险
complaintList:[],//投诉
oinspectList:[],//外部监查
+ rc2ListQuery:{
+ page: 1,
+ page_size: 20,
+ },
};
},
created() {
@@ -657,6 +668,7 @@ export default {
this.task2do = row.id;
this.getPtList();
this.getRcList();
+ this.getRc2List();
this.getRiskList();
this.getComplaintList();
this.getOinspectList();
@@ -680,6 +692,7 @@ export default {
this.task2do = row.id;
this.getPtList();
this.getRcList();
+ this.getRc2List();
this.getRiskList();
this.getComplaintList();
this.getOinspectList();
@@ -765,10 +778,20 @@ export default {
getRcList({task2do:that.task2do,etype:10,page:0}).then((res) => {
that.rcList =res.data;
});
- getRcList({task2do:that.task2do,etype:20,page:0}).then((res) => {
- that.rc2List =res.data;
- });
},
+ getRc2List(){
+ let that = this;
+ let obj = {};
+ obj.task2do = that.task2do;
+ obj.etype = 20;
+ obj.page = that.rc2ListQuery.page;
+ obj.page_size = that.rc2ListQuery.page_size;
+ getRcList(obj).then((res) => {
+ if (res.code >= 200) {
+ that.rc2List =res.data;
+ }
+ });
+ },
getPtList(){
let that = this;
getPtList({task2do:that.task2do,page:0}).then((res) => {
diff --git a/client/src/views/testvideo/certificate.vue b/client/src/views/testvideo/certificate.vue
index a659a89..0ffb9aa 100644
--- a/client/src/views/testvideo/certificate.vue
+++ b/client/src/views/testvideo/certificate.vue
@@ -358,12 +358,13 @@ export default {
});
},
handleShow(row){
+ let timer = new Date().getTime();
if(row.证书地址!==null){
- this.imgurl = 'https://testsearch.ctc.ac.cn'+row.证书地址;
+ this.imgurl = 'https://testsearch.ctc.ac.cn'+row.证书地址+'?'+timer;
this.srcList.push(this.imgurl);
}else{
getCertificate(row.id).then(res=>{
- this.imgurl='https://testsearch.ctc.ac.cn'+res.data.证书地址;
+ this.imgurl='https://testsearch.ctc.ac.cn'+res.data.证书地址+'?'+timer;
this.srcList.push(this.imgurl);
})
}