Эх сурвалжийг харах

fix:菜单设置更新后未刷新对应列表

snow 1 жил өмнө
parent
commit
93f02a02df

+ 11 - 2
src/views/customerService/demandOrder/components/demandDetail/index.vue

@@ -120,8 +120,17 @@
       </template>
     </show-data-table>
 
-    <request-perpayment-modal :sitem="sitem" :visible.sync="requsetModalVisible" @refresh="$emit('refresh')" />
-    <upload-cerfificate-modal :sitem="sitem" :visible.sync="uploadModalVisible"  @refresh="$emit('refresh')" />
+    <request-perpayment-modal 
+      :sitem="sitem" 
+      :visible.sync="requsetModalVisible" 
+      @refresh="$emit('refresh')" 
+    />
+
+    <upload-cerfificate-modal 
+      :sitem="sitem" 
+      :visible.sync="uploadModalVisible"  
+      @refresh="$emit('refresh')" 
+    />
   </div>
 </template>
 

+ 16 - 9
src/views/customerService/demandOrder/components/manageProjectLetter.vue

@@ -79,15 +79,15 @@ export default {
            minWidth: '120px',
        },
        {
-           prop: "ststus",
-           label: '是否选中',
-           minWidth: '120px',
-           _slot_:'is_check'
+         prop: "ststus",
+         label: '是否选中',
+         minWidth: '120px',
+         _slot_:'is_check'
        },
        {
-        label:'结算天数',
-        prop:'settle_day',
-        minWidth:'80px'
+         label:'结算天数',
+         prop:'settle_day',
+         minWidth:'80px'
        },
        {
            prop: "plan_file",
@@ -145,11 +145,18 @@ export default {
       const chunks = url.split('/')
       const fullFileName = chunks[chunks.length - 1]
       const [ fileName, suffix ] = fullFileName.split('.')
-      return (fileName.length > 10 ? fileName[0] + fileName[1]  + '...' + fileName[fileName.length -1] : fileName) + '.' + suffix
+      return (fileName.length > 10 
+            ? fileName[0] + fileName[1]  + '...' + fileName[fileName.length -1] 
+            : fileName) + '.' + suffix
     },
     async searchList(id){
       this.loading = true
-      const { code, data }  = await asyncRequest.planList({ req_id: id ? id :this.sitem.id, plan_type: 3 , status:2 ,...this.parmValue})
+      const { code, data }  = await asyncRequest.planList({ 
+          req_id: id 
+          ? id 
+          :this.sitem.id, plan_type: 3 , status:2 , ...this.parmValue
+        })
+
       this.loading = false
 
       if(code !== 1) return

+ 10 - 9
src/views/customerService/workbench/detail.vue

@@ -9,10 +9,6 @@
               <ul class="page-main-ul clear">
                 <li>需求单号:</li>
                 <li>{{ sitem.reqCode }}</li>
-                <!-- <li>任务截止时间:</li>
-                <li>{{ sitem.req_endtime }}</li> -->
-                <!-- <li>任务剩余时间:</li>
-                <li>{{ countdown }}</li> -->
                 <li>当前状态:</li>
                 <li>{{ (demandStatusOptions.find(item => item.value === String(sitem.status)) || {}).label || '--'  }}</li>
                 <li>联系方式:</li>
@@ -24,6 +20,8 @@
               <ul class="page-main-ul clear">
                 <li>活动城市:</li>
                 <li>{{ sitem.shortname || '--' }}</li>
+                <li>活动组织:</li>
+                <li>{{ sitem.item_name || '--' }}</li>
                 <li>活动时间:</li>
                 <li>{{ sitem.act_time || '--'}}</li>
                 <li>活动类型:</li>
@@ -37,7 +35,10 @@
                 <li>{{ sitem.budget_name || '--'}}</li>
                 <li>活动需求:</li>
                 <li v-if="sitem && sitem.req_demand_name">
-                  {{sitem.req_demand_name.map(({name}) => name).join("+") || '--'}}
+                  {{
+                    sitem.req_demand_name.map(({name}) => name).join("+") 
+                    || '--'
+                  }}
                 </li>
               </ul>
             </div>
@@ -47,7 +48,7 @@
         <div class="p-right">
            <div style="margin:15px 0px">
              <el-alert
-               title="使用说:"
+               title="使用说:"
                type="warning"
                show-icon
                description="评估预算函、计划预算函上传默认为草稿数据,需要发布后客户才能看到!"
@@ -131,12 +132,12 @@
   </div>
 </template>
 <script>
-import asyncRequest from "@/apis/service/customerService/workbench";
-import baseForm from "./components/baseForm";
-import { demandStatusOptions } from '@/assets/js/statusList';
 import EvaluteBudgetLetter from "./components/evaluateBudgetLetter/index.vue"
 import PlanBudgetLetter from "./components/planBudgetLetter/index.vue"
 import ActivityLetter from "./components/activityLetter/index.vue"
+import asyncRequest from "@/apis/service/customerService/workbench"
+import { demandStatusOptions } from '@/assets/js/statusList'
+import baseForm from "./components/baseForm"
 import resToken from "@/mixins/resToken";
 import { mapGetters } from "vuex";
 import dayjs from "dayjs"

+ 11 - 8
src/views/system/setMenu/index.vue

@@ -267,6 +267,8 @@ export default {
       // console.log(row)
       const { id: pid } = row;
       this.loadMap.set(Number(pid), { row, treeNode, resolve });
+
+      console.log(this.loadMap)
       const { code, data } = await asyncRequest.list({ pid });
       if (code === 1) resolve(data.map((item) => ({ ...item, hasChildren: false })));
     },
@@ -313,7 +315,8 @@ export default {
             status: status + "" === "1" ? "0" : "1",
           };
           let res = {};
-          if (level === 3) {
+
+          if (Number(level) === 3) {
             res = await asyncRequest.actionstatus(model);
           } else {
             res = await asyncRequest.menustatus(model);
@@ -325,8 +328,8 @@ export default {
               message: "",
             });
 
-            if (level === 0 && parentIds !== 0) {
-              this.reloadTree(parentIds);
+            if (Number(level) === 0 && Number(parentIds) !== 0) {
+              this.reloadTree(Number(parentIds));
             } else {
               await this.searchList();
             }
@@ -348,7 +351,7 @@ export default {
             id: id,
           };
           let res = {};
-          if (level === 3) {
+          if (Number(level) === 3) {
             res = await asyncRequest.actiondel(model);
           } else {
             res = await asyncRequest.menudel(model);
@@ -360,8 +363,8 @@ export default {
               message: "",
             });
 
-            if (level === 0 && parentIds !== 0) {
-              this.reloadTree(parentIds);
+            if (Number(level) === 0 && Number(parentIds) !== 0) {
+              this.reloadTree(Number(parentIds));
             } else {
               await this.searchList();
             }
@@ -374,7 +377,7 @@ export default {
 
     openChildren(id, parentIds, level, isOpen) {
       if (isOpen) {
-        if (level === 1) {
+        if (Number(level) === 1) {
           this.tableData = this.tableData.map((v) => {
             if (v.id + "" === id + "") {
               v.child = [];
@@ -393,7 +396,7 @@ export default {
           });
         }
       } else {
-        if (level === 1) {
+        if (Number(level) === 1) {
           this.concatData(id, "0", level);
         } else {
           this.getchildList(id);