codeMan 3 năm trước cách đây
mục cha
commit
2aeb396058

+ 27 - 6
src/SManagement/submitedit_details/components/SubmiteditAction.vue

@@ -124,11 +124,6 @@ export default {
       if (this.editData.attinfos) {
         this.$api.requested(this.param).then(res => {
           if(res.code == 1) {
-            this.$notify({
-              title:'提示',
-              message:'修改成功',
-              type:'success'
-            })
             this.isFileInfoPanlShow = false
             this.$parent.getDetailData()
             this.upload_panl = ''
@@ -142,6 +137,31 @@ export default {
                 "sat_submiteditid": "0"
               }
             }
+            this.$api.requested({
+              "accesstoken": "5750f12f3c6ad59ab82f7d6e26499cf5",
+              "classname": "saletool.submitedit.submitedit",
+              "method": "sub_submitdetailed",
+              "content": {
+                  "onceonly": this.$route.query.type == 'more' ? 1 : 0,
+                  "sat_submiteditmodelid":res.data.sat_submiteditmodelid,
+                  "sat_submiteditid":res.data.sat_submiteditid
+              }
+            }).then( res => {
+                if( res.code == 1) {
+                  this.$notify({
+                    title:'提示',
+                    message:'修改成功',
+                    type:'success'
+                  })
+                  this.$parent.getDetailData()
+                } else {
+                  this.$notify({
+                    title:'提示',
+                    message:'修改失败',
+                    type:'success'
+                  })
+                }
+              })
           }
         })
       } else {
@@ -153,13 +173,14 @@ export default {
               "classname": "saletool.submitedit.submitedit",
               "method": "sub_submitdetailed",
               "content": {
-                "onceonly": 0,
+                "onceonly": this.$route.query.type == 'more' ? 1 : 0,
                 "sat_submiteditmodelid": this.detailData.sat_submiteditmodelid,
                 "sat_submiteditid": this.upload_panl.sat_submiteditid
               }
             }
             this.$api.requested(param2).then(res => {
               if (res.code == 1) {
+                
                 this.upload_panl.status = '发布'
                 this.upload_panl.attinfos = null
                 this.param = {

+ 19 - 0
src/SManagement/submitedit_details/components/SubmiteditItemInfo.vue

@@ -20,6 +20,10 @@
       </div>
     </div>
     <el-drawer title="详情" :visible.sync="isFileInfoPanlShow">
+      <div class="info">
+        <p><span style="margin-right:10px">提报人:</span>{{currentFile.createby}}</p>
+        <p><span style="margin-right:10px">提报时间:</span>{{currentFile.createdate}}</p>
+      </div>
       <div class="content" style="word-break:break-all">
         <p>提报内容</p>
         <p>
@@ -70,6 +74,8 @@ export default {
   },
   methods: {
     itemClick (item) {
+      console.log(item);
+      
       this.isFileInfoPanlShow = true
       this.currentFile = item
       this.currentFile.attinfos = this.fileType.fileList(this.currentFile.attinfos)
@@ -93,6 +99,9 @@ export default {
 .normal-card {
   height: 100%;
 }
+/deep/.el-drawer__header {
+  color: #000000;
+}
 /deep/ .el-drawer {
   width: 546px !important;
 }
@@ -203,6 +212,16 @@ export default {
   margin-right: 10px;
   display: block;
 }
+.info {
+  margin: 0 0 20px 16px;
+  display: flex;
+  font-size: 14px;
+  font-weight: 400;
+  color: #333333;
+}
+.info p:first-child {
+  margin-right: 29px;
+}
 .time span,.submit span {
   margin-right: 10px;
 }