Browse Source

创建服务计划修改

duy 1 month ago
parent
commit
9c44954d94
2 changed files with 16 additions and 7 deletions
  1. 15 4
      src/views/systemService/fromDrawer.vue
  2. 1 3
      src/views/systemService/plan.vue

+ 15 - 4
src/views/systemService/fromDrawer.vue

@@ -34,7 +34,7 @@
                 </HcTooltip>
                 <HcTooltip keys="system-service-plan-send-btn">
                     <el-button
-                        v-if="status === 1 || status === 3"
+                        v-if="status === 1 || status === 3 "
                         class="node-card-plan-btn ml-6"
                         hc-btn
                         keys="system-service-plan-send-btn"
@@ -131,10 +131,18 @@ const status = ref()
 
 watch(isShow, (val) => {
     if (val) {
+          if (val) getExcelHtml()
+             tableFormData.value = {}
+                excelHtmlData.value = ''
+                isTableForm.value = false
+
             if (dataId.value) {
+               
+
                 getDetailData()
                  getAddLogBusinessData()
             }
+
     }
 })
 //监听
@@ -151,7 +159,7 @@ watch(() => [
         excelIdVal.value = '1937773223861026822'
     }
     
-     if (val) getExcelHtml()
+   
     
 })
 
@@ -218,6 +226,8 @@ const goBack = () => {
      emit('close')
 }
 const sendPlan = ()=>{
+    userData.value = []
+
     isUserModalShow.value = true
 
 }
@@ -272,7 +282,7 @@ const savePlan = async ()=>{
         projectId: projectId.value,
         contractId: contractId.value,
         pkeyId: excelIdVal.value,
-        id: dataId.value,
+        groupId: dataId.value,
        
        
     }
@@ -286,6 +296,7 @@ const savePlan = async ()=>{
          dataId.value = data
 
             window?.$message?.success(msg)
+            getDetailData()
            
         } else {
             saveLoading.value = false
@@ -326,7 +337,7 @@ const getDetailData = async ()=>{
        const res = getObjVal(data)
        
         status.value = res.status
-        console.log( status.value, ' status.value')
+       
         
     } else {
      

+ 1 - 3
src/views/systemService/plan.vue

@@ -122,9 +122,7 @@ const tableColumn = [
     { key: 'action', name: '操作', width:150 },
 ]
 const tableData = ref([
-    { name: '名称1', text: '文本1', key3: '已计划' },
-    { name: '名称2', text: '文本2', key3: '计划中' },
-    { name: '名称3', text: '文本3', key3: '协同中-甲方' },
+
 ])
 //分页被点击
 const pageChange = ({ current, size }) => {