|
@@ -100,22 +100,24 @@ export default {
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
if (res.success) {
|
|
if (res.success) {
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if(res.data.multiSelect){
|
|
if(res.data.multiSelect){
|
|
|
res.data.multiSelect = res.data.multiSelect.split(',');
|
|
res.data.multiSelect = res.data.multiSelect.split(',');
|
|
|
}else{
|
|
}else{
|
|
|
res.data.multiSelect = [];
|
|
res.data.multiSelect = [];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if(res.data.testcTime){
|
|
|
|
|
- res.data.testcTime = format(new Date(res.data.testcTime), 'YYYY/MM/DD HH:mm', { locale: zh });
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ res.data.loginUser = this.userInfo.username;
|
|
|
|
|
|
|
|
- if(res.data.testcDate){
|
|
|
|
|
- res.data.testcDate = format(new Date(res.data.testcDate), 'YYYY/MM/DD', { locale: zh });
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ res.data.testcTime = format(new Date(), 'YYYY/MM/DD HH:mm', { locale: zh });
|
|
|
|
|
+
|
|
|
|
|
+ res.data.testcDate = format(new Date(), 'YYYY/MM/DD', { locale: zh });
|
|
|
|
|
+
|
|
|
|
|
+ res.data.workNumber = this.userInfo.workNumber;
|
|
|
|
|
+
|
|
|
|
|
+ res.data.departId = this.userInfo.departId;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.formData = res.data;
|
|
this.formData = res.data;
|
|
|
|
|
|
|
|
if (this.$route.query.column) {
|
|
if (this.$route.query.column) {
|