Commit 853353a3 by liangzhen

和智杰交互

1 parent a65bd740
......@@ -125,3 +125,11 @@ $color-primary: #0d867f;
overflow: hidden;
text-overflow: ellipsis;
}
.myTooltips {
width: 80% !important;
background: gainsboro !important ;
color: #333 !important;
text-align: center;
position: absolute;
right: 0;
}
\ No newline at end of file
......@@ -20,20 +20,32 @@ function decryptStringBySM4_CBC(str) {//使用sm4-cbc算法给字符串解密
const decryptString = sm4.decryptCustom_CBC(str, 'ZkR_SiNoSOFT=568', 'GJwsXX_BzW=gJWJW');
return decryptString;
}
let loadingInstance
//http 请求拦截器
axios.interceptors.request.use(config => {
console.log(config.url.indexOf('oss/upload'),'2222222oss/uploadStr')
if(config.url.indexOf('oss/upload')!='-1'||config.url.indexOf('oss/uploadStr')!='-1'){
loadingInstance = Loading.service({
lock: true,
text: '文件上传中,请耐心等待...',
// background: 'rgba(0, 0, 0, 0.7)'
});
}
// else{
// loadingInstance = Loading.service({
// lock: true,
// text: '加载中...',
// background: 'rgba(0, 0, 0, 0.7)'
// });
// }
config.headers['X-USER'] =sessionStorage.getItem('author');
config.headers['X-USER-NAME']=sessionStorage.getItem('authorName')
console.log(config.url.indexOf('oss/downloadObject')!='-1','config.url')
if(config.url.indexOf('oss/downloadObject')!='-1'){
config.headers["Content-Type"] ='application/x-www-form-urlencoded'
config.headers['responseType']='blob'
}
// else if(config.url.indexOf('oss/upload')!='-1'){
// config.headers["Content-Type"] ='application/form-data'
// }
// config.headers.token = JSON.parse(localStorage.getItem('token')).token;
......@@ -51,6 +63,9 @@ axios.interceptors.request.use(config => {
//响应拦截器即异常处理
axios.interceptors.response.use(response => {
if (loadingInstance) {
loadingInstance.close();
}
let code = response.data.code;
// response.header('Access-Control-Allow-Origin', 'http://localhost:8080')
......
......@@ -381,7 +381,10 @@ export default {
};
},
mounted() {
this.ruleForm.batchName = this.$route.query.batchName;
this.ruleForm.projectId = this.$route.query.projCode;
this.submitForm();
},
methods: {
timeChange(time) {
......
......@@ -302,7 +302,7 @@
v-model="ruleFormdialogAdd.planReviewDate"
type="datetime"
placeholder="选择日期"
value-format="yyyy-MM-dd hh:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
:picker-options="{
disabledDate: (time) =>
time.getTime() < new Date(new Date().setHours(0, 0, 0, 0)),
......@@ -597,7 +597,7 @@
v-model="ruleFormdialogBJ.planReviewDate"
type="datetime"
placeholder="选择日期"
value-format="yyyy-MM-dd hh:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
:picker-options="{
disabledDate: (time) =>
time.getTime() < new Date(new Date().setHours(0, 0, 0, 0)),
......
......@@ -143,6 +143,7 @@
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<el-input
v-model="ruleFormdialogAdd.auditName"
trim
clearable
></el-input>
</el-form-item>
......@@ -165,7 +166,7 @@
<el-date-picker
v-model="ruleFormdialogAdd.auditTime"
type="datetime"
value-format="yyyy-MM-dd hh:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择日期时间"
:picker-options="{
disabledDate: (time) =>
......@@ -678,7 +679,7 @@
<el-date-picker
v-model="ruleFormdialogAdd.auditTime"
type="datetime"
value-format="yyyy-MM-dd hh:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择日期时间"
disabled
>
......@@ -864,7 +865,7 @@
:rules="rulesBJ"
>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<el-input v-model="ruleFormdialogBJ.auditName" clearable></el-input>
<el-input v-model="ruleFormdialogBJ.auditName" trim clearable></el-input>
</el-form-item>
<el-form-item label="稽核方式:" prop="auditType" class="fromItem">
<el-select
......@@ -885,7 +886,7 @@
<el-date-picker
v-model="ruleFormdialogBJ.auditTime"
type="datetime"
value-format="yyyy-MM-dd hh:mm:ss"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择日期时间"
:picker-options="{
disabledDate: (time) =>
......@@ -1162,6 +1163,9 @@ export default {
message: "请输入稽核名称",
trigger: "change",
},
{
validator: this.validateNoWhitespace,trigger: 'blur'
}
],
audiType: [
{
......@@ -1180,11 +1184,14 @@ export default {
},
rulesBJ: {
auditName: [
// {
// required: true,
// message: "请输入稽核名称",
// trigger: "change",
// },
{
required: true,
message: "请输入稽核名称",
trigger: "change",
},
validator: this.validateNoWhitespace,trigger: 'change'
}
],
audiType: [
{
......@@ -1261,6 +1268,13 @@ export default {
this.submitForm();
},
methods: {
validateNoWhitespace(rule, value, callback) {
if (value.trim() === '') {
callback(new Error('名称不能为空仅包含空格'));
} else {
callback();
}
},
timeChange(time) {
if (time) {
//给后端的参数
......
......@@ -226,7 +226,7 @@
<el-table-column prop="ruleType" label="问题解决佐证材料" width="auto">
<template
slot-scope="scope"
v-if="scope.row.confirmStatus == '1' && scope.row.sszzFileId"
v-if="scope.row.sszzFileId"
>
{{ scope.row.sszzFileName}}
<el-button @click="handleClickXZ(scope.row.sszzFileId,scope.row.sszzFileName)">下载</el-button>
......@@ -523,7 +523,7 @@ export default {
this.checkedList = this.$refs.multipleTable.selection;
if (this.checkedList[0]) {
this.ruleFormdialog = this.checkedList[0];
if (this.checkedList[0].rectificationStatusText != "待整改") {
if (this.checkedList[0].rectificationStatusText != "待整改"&&this.checkedList[0].rectificationStatusText != "被退回"&&this.checkedList[0].rectificationStatusText != "待提交") {
this.confirmdisabled = true;
}
}
......
......@@ -281,7 +281,7 @@
</p>
</div>
</el-dialog>
<!-- 下发弹窗 -->
<!-- 复核弹窗 -->
<el-dialog
title="稽核问题整改核验"
......@@ -370,7 +370,7 @@
>
<template
slot-scope="scope"
v-if="scope.row.confirmStatus == '1' && scope.row.sszzFileId"
v-if="scope.row.sszzFileId"
>
{{ scope.row.sszzFileName}}
<el-button @click="handleClickXZ(scope.row.sszzFileId,scope.row.sszzFileName)">下载</el-button>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!