瀏覽代碼

OTA管理:美团、猫眼上下线传参调整。

shipeng 3 周之前
父節點
當前提交
e5d0a036c4
共有 3 個文件被更改,包括 9 次插入9 次删除
  1. 3 3
      src/views/otaMr/maoyan/dialog/dataEdit.vue
  2. 3 3
      src/views/otaMr/maoyan/index.vue
  3. 3 3
      src/views/otaMr/meituan/index.vue

+ 3 - 3
src/views/otaMr/maoyan/dialog/dataEdit.vue

@@ -267,7 +267,7 @@ export default {
         if(res.code == 200) {
           let list = []
           list = this.setTreeData(res.data)
-          console.log("list===",list)
+          // console.log("list===",list)
           this.cityList = list
         }
       } catch (error) {
@@ -420,7 +420,7 @@ export default {
       return flog
     },
     handleSelectionChange(val) {
-      console.log("选中了====", val)
+      // console.log("选中了====", val)
       this.multipleSelection = val;
     },
 
@@ -596,7 +596,7 @@ export default {
               "costAmount": this.formPrice.costAmount
             });
           }
-          console.log("daysList===",daysList)
+          // console.log("daysList===",daysList)
           daysList.forEach((item,index)=>{
             this.perFormList.forEach((item1,index1)=>{
               if(moment(item.priceDate).format("YYYY-MM-DD") == moment(item1.priceDate).format("YYYY-MM-DD") ) {

+ 3 - 3
src/views/otaMr/maoyan/index.vue

@@ -171,13 +171,13 @@ export default {
     },
     /** 推送 */
     handlePush(row) {
-      this.$modal.confirm(`是否确认${ (row.status == -1 || !row.status) ? '上线': row.status == 1 ?'下线':''}此商品吗?`).then(function() {
+      this.$modal.confirm(`是否确认${ (row.status === 0 || !row.status) ? '上线': row.status == 1 ?'下线':''}此商品吗?`).then(function() {
         return updateById({
           id: row.id,
-          status: row.status == -1 ? 1 : 0
+          status: (row.status === 0 || !row.status) ? 1 : 0
         });
       }).then(() => {
-        this.$modal.msgSuccess(`${ (row.status == -1 || !row.status) ? '上线': row.status == 1 ?'下线':''}成功`);
+        this.$modal.msgSuccess(`${ (row.status ===  0 || !row.status) ? '上线': row.status == 1 ?'下线':''}成功`);
         this.getList();
       }).catch(() => {
 

+ 3 - 3
src/views/otaMr/meituan/index.vue

@@ -170,13 +170,13 @@ export default {
     },
     /** 推送 */
     handlePush(row) {
-      this.$modal.confirm(`是否确认${ (row.status == -1 || !row.status) ? '上线': row.status == 1 ?'下线':''}此商品吗?`).then(function() {
+      this.$modal.confirm(`是否确认${ (row.status === 0 || !row.status) ? '上线': row.status == 1 ?'下线':''}此商品吗?`).then(function() {
         return updateById({
           id: row.id,
-          status: row.status == -1 ? 1 : 0
+          status: (row.status === 0 || !row.status) ? 1 : 0
         });
       }).then(() => {
-        this.$modal.msgSuccess(`${ (row.status == -1 || !row.status) ? '上线': row.status == 1 ?'下线':''}成功`);
+        this.$modal.msgSuccess(`${ (row.status === 0 || !row.status) ? '上线': row.status == 1 ?'下线':''}成功`);
         this.getList();
       }).catch(() => {