diff --git a/resources/assets/js/pages/manage.vue b/resources/assets/js/pages/manage.vue
index f630c7f47..3c5e4fe4e 100644
--- a/resources/assets/js/pages/manage.vue
+++ b/resources/assets/js/pages/manage.vue
@@ -849,6 +849,10 @@ export default {
this.addTaskShow = true;
},
+ openTask(task) {
+ this.$store.dispatch("openTask", task)
+ },
+
addDialogMsg(data) {
if (!this.natificationReady) {
return;
@@ -893,7 +897,7 @@ export default {
taskVisibleChange(visible) {
if (!visible) {
- this.$store.dispatch('openTask', 0)
+ this.openTask(0)
}
},
@@ -1026,10 +1030,6 @@ export default {
}
document.addEventListener(visibilityChangeEvent, visibilityChangeListener);
},
-
- openTask(task) {
- this.$store.dispatch("openTask", task)
- },
}
}
diff --git a/resources/assets/js/pages/manage/components/Report.vue b/resources/assets/js/pages/manage/components/Report.vue
index 3d4236f3c..5b3599bc5 100644
--- a/resources/assets/js/pages/manage/components/Report.vue
+++ b/resources/assets/js/pages/manage/components/Report.vue
@@ -2,10 +2,10 @@
-
+
-
+
-
-
diff --git a/resources/assets/js/pages/manage/components/ReportDetail.vue b/resources/assets/js/pages/manage/components/ReportDetail.vue
index 1a3e2e979..7f958ef36 100644
--- a/resources/assets/js/pages/manage/components/ReportDetail.vue
+++ b/resources/assets/js/pages/manage/components/ReportDetail.vue
@@ -2,50 +2,22 @@
{{ data.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ data.created_at }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
@@ -58,12 +30,12 @@ export default {
default: {},
}
},
- mounted() {
- if (this.data.id > 0) this.sendRead();
- },
watch: {
- data() {
- if (this.data.id > 0) this.sendRead();
+ 'data.id': {
+ handler(id) {
+ if (id > 0) this.sendRead();
+ },
+ immediate: true
},
},
methods: {
@@ -73,11 +45,10 @@ export default {
data: {
ids: [this.data.id]
},
- }).then(({data, msg}) => {
- // data 结果数据
- // msg 结果描述
- }).catch(({msg}) => {
- // msg 错误原因
+ }).then(() => {
+ //
+ }).catch(() => {
+ //
});
},
}
diff --git a/resources/assets/js/pages/manage/components/ReportEdit.vue b/resources/assets/js/pages/manage/components/ReportEdit.vue
index 0a3b80484..030c22d1e 100644
--- a/resources/assets/js/pages/manage/components/ReportEdit.vue
+++ b/resources/assets/js/pages/manage/components/ReportEdit.vue
@@ -1,70 +1,51 @@
-
diff --git a/resources/assets/js/pages/single/reportEdit.vue b/resources/assets/js/pages/single/reportEdit.vue
index da5f1e0aa..8b9d0ce9e 100644
--- a/resources/assets/js/pages/single/reportEdit.vue
+++ b/resources/assets/js/pages/single/reportEdit.vue
@@ -33,6 +33,12 @@ export default {
methods: {
saveSuccess(data) {
this.detail = data;
+ if (this.$isSubElectron) {
+ $A.Electron.sendMessage('sendForwardMain', {
+ channel: 'reportSaveSuccess',
+ data,
+ });
+ }
}
}
}
diff --git a/resources/assets/sass/components/report.scss b/resources/assets/sass/components/report.scss
index e3dcbce82..80cd92f50 100644
--- a/resources/assets/sass/components/report.scss
+++ b/resources/assets/sass/components/report.scss
@@ -39,10 +39,6 @@
margin-top: -53px;
padding-top: 53px;
}
-
- .ivu-tabs-tabpane {
-
- }
}
}
@@ -62,55 +58,30 @@
.report-detail-context {
flex: 1;
+ height: 0;
padding: 12px 0 12px 24px;
display: flex;
flex-direction: column;
- height: 0;
+ overflow: auto;
+ }
- .report-main {
+ .report-form {
+ display: flex;
+ margin-bottom: 12px;
+
+ .ivu-form-item {
flex: 1;
- overflow: auto;
- margin-top: 12px;
- }
+ flex-shrink: 0;
- .report-submitter {
- p {
+ .ivu-form-item-label {
+ padding-top: 8px;
opacity: 0.8;
}
- }
- }
- .report-profile {
- font-size: 14px;
- padding-right: 24px;
- }
-
- .report-submitter {
- display: flex;
- flex-wrap: wrap;
- height: 28px;
- line-height: 28px;
-
- p {
- display: block;
- width: 100%;
- text-align: justify;
- padding-right: 12px;
-
- &:after {
- content: '';
- display: inline-block;
- width: 100%;
+ .ivu-form-item-content {
+ line-height: 30px;
}
}
-
- & > div {
- margin-right: 8px;
- }
- }
-
- .ivu-col {
- margin-bottom: 12px;
}
.report-content {
@@ -136,21 +107,21 @@
}
}
-.report-box {
+.report-edit {
display: flex;
flex-direction: column;
height: 100%;
padding: 24px;
- .report-row-foot {
- flex: 0 0 auto;
+ .ivu-input[disabled] {
+ color: #666666;
}
- .report-row-content {
+ .report-content {
flex: 1 1 auto;
overflow-y: auto;
- .report-row-content-editor {
+ .report-content-editor {
height: 100%;
.ivu-form-item-content {
@@ -165,21 +136,6 @@
}
}
- .report-row-foot {
- margin-bottom: 0;
- }
-
- .report-titles {
- line-height: 32px;
- }
-
- .report-poptip {
- .ivu-tooltip-inner {
- min-width: 60px !important;
- font-size: 12px !important;
- }
- }
-
.report-users {
display: flex;
align-items: center;
@@ -189,8 +145,14 @@
margin-right: 12px;
}
- .report-row-a {
+ .report-user-link {
flex-shrink: 0;
+
+ > i {
+ font-size: 16px;
+ margin-right: 2px;
+ transform: rotate(-90deg);
+ }
}
}
@@ -206,6 +168,10 @@
box-shadow: none !important;
border: none !important;
+ &.ivu-radio-wrapper-disabled {
+ color: #c6c6c6 !important;
+ }
+
&:before {
width: 0 !important;
}
@@ -241,11 +207,13 @@
.report-buttongroup-vertical {
position: absolute;
- left: 47px;
+ left: 50%;
width: 1px;
- height: 23px;
- background-color: #E5E5E5;
- top: 5px;
+ height: 15px;
+ background-color: #e9e9e9;
+ top: 50%;
+ transform: translate(-50%, -50%);
+ z-index: 9;
}
.ivu-btn-primary {
@@ -257,34 +225,30 @@
line-height: 34px;
&[disabled] {
- color: #515A6E !important;
+ color: #c6c6c6 !important;
}
}
}
-}
-.report-row {
- margin-bottom: 20px;
-
- .report-row-a {
- float: right;
- line-height: 32px;
-
- .report-row-a-icon {
- transform: rotate(-90deg);
- font-size: 16px;
- margin-right: 2px;
+ .report-content-editor {
+ flex: 1;
+ .ivu-form-item-content {
+ display: flex;
+ height: 100%;
+ .teditor-wrapper {
+ display: flex;
+ flex: 1;
+ }
}
}
- .report-bottom {
- height: 38px;
- line-height: 36px;
- min-width: 120px;
- }
-
- .ivu-input[disabled] {
- color: #666666;
+ .report-foot {
+ margin-bottom: 0;
+ .report-bottom {
+ height: 38px;
+ line-height: 36px;
+ min-width: 120px;
+ }
}
}