shj
2022-08-09 c64c8f43ec1a3d88feb1f915fd488040b6358e7d
src/views/goalManagement/targetDecompositionMonth/index.vue
@@ -66,13 +66,13 @@
               v-model:page-size="pageSize4"
               :page-sizes="[10, 20, 30, 40]"
               layout="total, sizes, prev, pager, next, jumper"
               :total="400"
               :total="total"
               @size-change="handleSizeChange"
               @current-change="handleCurrentChange"
            />
         </div>
      </div>
      <Dailog ref="Show"></Dailog>
      <Dailog ref="Show" @addList="add"></Dailog>
   </div>
</template>
<script lang="ts">
@@ -142,6 +142,8 @@
      };
      // 删除
      const onDelete = (id: number) => {
         let arr=[]
         arr.push(id)
         ElMessageBox.confirm('确定删除所选项吗?', 'Warning', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
@@ -149,7 +151,7 @@
         })
            .then(() => {
               goalManagementApi()
                  .getTargetMngDelete(id)
                  .getTargetMngDelete(arr)
                  .then((res) => {
                     if (res.data.code == 200) {
                        ElMessage({
@@ -179,7 +181,7 @@
         for (let i = 0; i < valId.length; i++) {
            arr.push(valId[i].id);
         }
         deletAll.value = arr.toString();
         deletAll.value = arr
         if (val.length == 1) {
            warning.value = false;
            danger.value = false;
@@ -219,7 +221,11 @@
               });
            });
      };
         const add=()=>{
         listApi()
      }
      return {
         add,
         listApi,
         resetForm,
         tableData,