ZaiZai hace 1 año
padre
commit
a6d90793d9
Se han modificado 2 ficheros con 8 adiciones y 8 borrados
  1. 1 1
      scripts/build.js
  2. 7 7
      src/views/project/modules/project-list.vue

+ 1 - 1
scripts/build.js

@@ -44,7 +44,7 @@ if(!fs.existsSync(cacheFilePath)) {
 //修改配置文件
 const indexJson = JSON.parse(indexJsonContent);
 indexJson.version = dateFormat(new Date()); //版本号
-indexJson.target = "http://127.0.0.1:80";   //接口地址
+indexJson.target = "http://127.0.0.1:8104";   //接口地址
 indexJson.vite = {};    //vite配置
 
 //更新配置文件

+ 7 - 7
src/views/project/modules/project-list.vue

@@ -7,7 +7,7 @@
             <template #name="{ row }">
                 <el-link type="primary" @click="rowNameClick(row)">{{ row.name }}</el-link>
             </template>
-          
+
             <template #action="{ row }">
                 <el-link v-if="isAdminAuth" type="warning" @click="completion(row)">项目完成情况</el-link>
                 <el-link type="primary" @click="examine(row)">查看</el-link>
@@ -88,7 +88,7 @@
                                     <el-table-column prop="yearlyTarget" label="全年目标" width="100" align="center" />
                                     <el-table-column prop="workPlan" label="工作计划" width="100" align="center" />
                                     <el-table-column prop="workProgressAll" label="累计进展计划" align="center" />
-                               
+
                                     <el-table-column prop="workProgress" label="工作计划进展计划" align="center" />
                                     <el-table-column prop="planRatio" label="形象进度百分比(%)" width="100" align="center" />
                                 </el-table>
@@ -409,7 +409,7 @@ const yearKey = ref('2023')
 const yearData = ref({})
 const yearIndex = ref(-1)
 const yearChange = (_, index) => {
-  
+
     yearIndex.value = index
 }
 
@@ -429,14 +429,14 @@ const saveCompleLoading = ref(false)
 const saveComplete = async ()=>{
     saveCompleLoading.value = true
         //发起请求
-        const { error, code, msg } = await mainApi.updateProFin({
-            ...yearData.value,
+    const { error, code, msg } = await mainApi.updateProFin({
+        ...yearData.value,
     })
     //判断状态
     saveCompleLoading.value = false
     if (!error && code === 200) {
         window?.$message?.success(msg)
-     
+        getDetailData(rowDetail.value.id)
     } else {
         window.$message.error(msg ?? '操作失败')
     }
@@ -550,7 +550,7 @@ const changePlanRatio = (val, row, index)=>{
             row.planRatio = ''
         }
     }
-   
+
 }
 defineExpose({
     batchRemove,