소스 검색

细节修改

liuYb 4 년 전
부모
커밋
b015da72c5
4개의 변경된 파일81개의 추가작업 그리고 10개의 파일을 삭제
  1. 55 2
      src/components/Modal.vue
  2. 15 3
      src/views/data/InforList.vue
  3. 5 4
      src/views/data/UploadLink.vue
  4. 6 1
      src/views/data/UploadLink/sonUploadLink.vue

+ 55 - 2
src/components/Modal.vue

@@ -223,8 +223,6 @@ export default {
       let d = y + "/" + m;
 
       let config = {
-        //url: "/dealerFeedback",
-        // url: "/updateDealerFeedback",
         url: "",
         data: {
           id: "", //主键值
@@ -251,16 +249,71 @@ export default {
       };
 
       if (this.LinkData.id) {
+        //编辑
         config.url = "/updateDealerFeedback";
         config.data.id = this.LinkData.id;
         console.log(config.url);
       } else {
+        //新增
         config.url = "/dealerFeedback";
       }
 
       this.$emit("update", config);
       this.$emit("closeme");
     },
+    addInfo: function () {
+      let obj = {};
+      //获取资料名
+      let idVal = this.ziliaoId;
+      obj = this.dataName.find(function (item) {
+        return item.id === idVal;
+      });
+      this.ziliaoName = obj.informationName;
+      //获取车系 id
+      let nameCarS = this.carS;
+      obj = this.carSeries.find(function (item) {
+        return item.typeName === nameCarS;
+      });
+      console.log("chexi ", obj);
+      //carTypeId  表示车系 id
+      this.carTypeId = obj.id;
+      //获取车型名 this.carT
+      //获取平台名 this.selectedPlatform,
+
+      //当前月份
+      let date = new Date();
+      let m = date.getMonth() + 1;
+      let y = date.getFullYear();
+      let d = y + "/" + m;
+
+      let config = {
+        url: "/dealerFeedback",
+        data: {
+         // id: "", //主键值
+          month: d,
+          dealerId: "254",
+          dataId: this.ziliaoId,
+          informationName: this.ziliaoName,
+          releaseTime: this.ziliaoTime,
+          carService: this.carS,
+          carType: this.carT,
+          //releasePlate: this.selectedPlatform,
+          //releaseMedia: this.releaseP,
+          //发布板块
+          releasePlate: this.releaseP,
+          //发布平台
+          releaseMedia: this.selectedPlatform,
+          draftGenre: this.contentName1,
+
+          //内容分类2?
+          contentClass: this.contentName2,
+          articleTitle: this.mediaTitle,
+          articleLink: this.mediaUrl,
+        },
+      };
+      this.$emit("update", config);
+      this.$emit("closeme");
+    },
     //资料名称列表
     chooseDataName: function () {
       this.$http({

+ 15 - 3
src/views/data/InforList.vue

@@ -67,10 +67,12 @@
                 <!--  <td v-for="(item, i) in obj" :key="i" :style="trStyle"> -->
                 <td>{{ obj.informationName || "北京博瑞" }}</td>
                 <td>{{ obj.filePulishTime || "2021/02" }}</td>
-                <td>{{ obj.accountScope === 1 ? "共通" : "部分" }}</td>
+                <td>{{ obj.accountScope == 1 ? "共通" : "部分" }}</td>
                 <td>{{ obj.fileUploadDate || "2021/01/10 12:12" }}</td>
                 <td>{{ obj.download > 0 ? "已下载" : "未下载" }}</td>
-                <td>{{ obj.report === "1" ? "已完成" : "待办" }}</td>
+                <td @click="waitToReport(obj.report)" :class="{reportStyle: obj.report == 0 ? true : false}">
+                  {{ obj.report == 1 ? "已完成" : "待办" }}
+                </td>
 
                 <td v-if="operation" :style="trStyle" class="operationStyle">
                   <span
@@ -178,7 +180,7 @@ export default {
           accountScope: "传播类型1",
           fileUploadDate: "",
           download: "已下载",
-          report: "未反馈",
+          report: "0",
           asc: "false",
         },
       ],
@@ -472,6 +474,13 @@ export default {
       };
       this.newGetDataList(data);
     },
+    //待办跳转
+    waitToReport: function (flag) {
+      if (flag) {
+        console.log("待办跳转");
+        this.$router.replace({ path: "/uploadLink/sonuploadLink" });
+      }
+    },
   },
   mounted() {
     let localUserId = localStorage.getItem("userId");
@@ -577,4 +586,7 @@ export default {
 .pageD p {
   margin-left: 16px;
 }
+.reportStyle {
+  text-decoration: underline;
+}
 </style>

+ 5 - 4
src/views/data/UploadLink.vue

@@ -147,19 +147,20 @@
       </div>
 
       <!-- 弹窗: 上传链接超过剩余限制数量,请修改后重新导入 -->
+     <!--  是否将已反馈数据进行替换? -->
       <div class="modal-backdrop" v-show="showModal3">
         <div class="modal">
           <div class="modal-body">
             <div class="bodyRow">
-              上传链接超过剩余限制数量,请修改后重新导入
+              是否将已反馈数据进行替换?
             </div>
           </div>
           <div class="modal-footer">
             <button type="button" class="btn-confirm" @click="closeme3()">
-              确定
+              
             </button>
             <button type="button" class="btn-close" @click="closeme3">
-              取消
+              
             </button>
           </div>
         </div>
@@ -326,7 +327,7 @@ export default {
     },
     /* 编辑内容,,Modal传参 */
     editTitle: function (val) {
-      console.log("editTitle文件:", val);
+      console.log("edit文件:", val);
       this.$http({
         url: val.url,
         method: "post",

+ 6 - 1
src/views/data/UploadLink/sonUploadLink.vue

@@ -2,7 +2,7 @@
   <div class="upload_Link">
     <div class="upHead">
       <div class="topLeftTitle">针对论坛及其他平台链接上传</div>
-      <button class="addButton">新增反馈</button>
+      <button class="addButton" @click="addInfo()">新增反馈</button>
     </div>
     
     <div class="tableBox">
@@ -381,6 +381,11 @@ export default {
           console.log(err);
         });
     },
+    //新增反馈
+    addInfo: function () {
+      this.showModal = !this.showModal;
+      //this.modalData = this.tableData[i];
+    },
   },
   mounted() {},
   created() {},