瀏覽代碼

流程控制

gks 1 年之前
父節點
當前提交
63f63ed669
共有 3 個文件被更改,包括 434 次插入120 次删除
  1. 5 1
      src/views/ECONOMICSINDEX/index.vue
  2. 426 113
      src/views/GATHER/index.vue
  3. 3 6
      src/views/wf/index.vue

+ 5 - 1
src/views/ECONOMICSINDEX/index.vue

@@ -236,6 +236,11 @@
       append-to-body
     >
       <el-form ref="form" :model="form" :rules="rules" label-width="220px">
+        <!-- <el-tabs type="border-card">
+          <el-tab-pane label="first">基本信息</el-tab-pane>
+          <el-tab-pane label="option">配置管理</el-tab-pane>
+        </el-tabs> -->
+
         <el-row>
           <el-col :span="12">
             <el-form-item label="进出口总值" prop="jckzz">
@@ -480,7 +485,6 @@ export default {
       form: {},
       // 表单校验
       rules: {
-        
         jckzz: [
           { required: true, message: "进出口总值 不能为空", trigger: "blur" },
           {

+ 426 - 113
src/views/GATHER/index.vue

@@ -1,6 +1,12 @@
 <template>
   <div class="app-container">
-    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
+    <el-form
+      :model="queryParams"
+      ref="queryForm"
+      size="small"
+      :inline="true"
+      v-show="showSearch"
+    >
       <!--      <el-form-item label="数据类型" prop="type">-->
       <!--        <el-select-->
       <!--          v-model="queryParams.type"-->
@@ -18,66 +24,144 @@
       <!--        </el-select>-->
       <!--      </el-form-item>-->
       <el-form-item label="采集状态" prop="collStatus">
-        <el-select v-model="queryParams.collStatus" placeholder="请选择采集状态" clearable filterable class="se">
-          <el-option v-for="dict in collStatus" :key="dict.value + 'collStatus'" :label="dict.label"
-            :value="dict.value" />
+        <el-select
+          v-model="queryParams.collStatus"
+          placeholder="请选择采集状态"
+          clearable
+          filterable
+          class="se"
+        >
+          <el-option
+            v-for="dict in collStatus"
+            :key="dict.value + 'collStatus'"
+            :label="dict.label"
+            :value="dict.value"
+          />
         </el-select>
       </el-form-item>
       <el-form-item label="上报状态" prop="reportStatus">
-        <el-select v-model="queryParams.reportStatus" placeholder="请选择上报状态" clearable filterable class="se">
-          <el-option v-for="dict in reportStatus" :key="dict.value + 'reportStatus'" :label="dict.label"
-            :value="dict.value" />
+        <el-select
+          v-model="queryParams.reportStatus"
+          placeholder="请选择上报状态"
+          clearable
+          filterable
+          class="se"
+        >
+          <el-option
+            v-for="dict in reportStatus"
+            :key="dict.value + 'reportStatus'"
+            :label="dict.label"
+            :value="dict.value"
+          />
         </el-select>
       </el-form-item>
       <el-form-item label="审核状态" prop="approveStatus">
-        <el-select v-model="queryParams.approveStatus" placeholder="请选择审核状态" clearable filterable class="se">
-          <el-option v-for="(dict, index) in approveStatus" :key="dict.value + 'approveStatus'" :label="dict.label"
-            :value="dict.value" />
+        <el-select
+          v-model="queryParams.approveStatus"
+          placeholder="请选择审核状态"
+          clearable
+          filterable
+          class="se"
+        >
+          <el-option
+            v-for="(dict, index) in approveStatus"
+            :key="dict.value + 'approveStatus'"
+            :label="dict.label"
+            :value="dict.value"
+          />
         </el-select>
       </el-form-item>
       <el-form-item label="年度" prop="year">
-        <el-date-picker v-model="queryParams.year" type="year" format="yyyy" value-format="yyyy" placeholder="选择年度"
-          class="se"></el-date-picker>
+        <el-date-picker
+          v-model="queryParams.year"
+          type="year"
+          format="yyyy"
+          value-format="yyyy"
+          placeholder="选择年度"
+          class="se"
+        ></el-date-picker>
       </el-form-item>
       <el-form-item label="月份" prop="month">
-        <el-date-picker v-model="queryParams.month" type="month" format="MM" value-format="MM" placeholder="选择月份"
-          class="se"></el-date-picker>
+        <el-date-picker
+          v-model="queryParams.month"
+          type="month"
+          format="MM"
+          value-format="MM"
+          placeholder="选择月份"
+          class="se"
+        ></el-date-picker>
       </el-form-item>
       <el-form-item>
-        <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
+        <el-button type="primary" icon="el-icon-search" @click="handleQuery"
+          >搜索</el-button
+        >
         <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
       </el-form-item>
     </el-form>
 
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5">
-        <el-button type="success" @click="onOpenDialog('old')">历史数据导入</el-button>
+        <el-button type="success" @click="onOpenDialog('old')"
+          >历史数据导入</el-button
+        >
       </el-col>
       <el-col :span="1.5">
-        <el-button type="success" v-hasPermi="['gather:GATHER:upload']" @click="onOpenDialog('new')">导入</el-button>
+        <el-button
+          type="success"
+          v-hasPermi="['gather:GATHER:upload']"
+          @click="onOpenDialog('new')"
+          >导入</el-button
+        >
       </el-col>
       <el-col :span="1.5">
-        <el-button @click="handleDownload()" :title="radio === '' ? '请先选择下面对应的单位模板' : ''"
-          :disabled="radio === '' ? true : false">下载导入模板</el-button>
+        <el-button
+          @click="handleDownload()"
+          :title="radio === '' ? '请先选择下面对应的单位模板' : ''"
+          :disabled="radio === '' ? true : false"
+          >下载导入模板</el-button
+        >
       </el-col>
       <el-col :span="1.5">
-        <el-button type="danger" plain @click="importFile({ type: '0', mark: '1' })"
-          v-hasPermi="['gather:GATHER:upload']">海关部分贸易导入</el-button>
+        <el-button
+          type="danger"
+          plain
+          @click="importFile({ type: '0', mark: '1' })"
+          v-hasPermi="['gather:GATHER:upload']"
+          >海关部分贸易导入</el-button
+        >
       </el-col>
       <el-col :span="1.5">
-        <el-button type="danger" plain @click="importFile({ type: '0', mark: '2' })"
-          v-hasPermi="['gather:GATHER:upload']">海关进出口总值导入</el-button>
+        <el-button
+          type="danger"
+          plain
+          @click="importFile({ type: '0', mark: '2' })"
+          v-hasPermi="['gather:GATHER:upload']"
+          >海关进出口总值导入</el-button
+        >
       </el-col>
 
-      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+      <right-toolbar
+        :showSearch.sync="showSearch"
+        @queryTable="getList"
+      ></right-toolbar>
     </el-row>
 
-    <el-table :data="GATHERList" @selection-change="handleSelectionChange" @row-click="showRow">
+    <el-table
+      :data="GATHERList"
+      v-loading="load"
+      @selection-change="handleSelectionChange"
+      @row-click="showRow"
+    >
       <!-- @current-change="handleCurrentChange" -->
       <el-table-column label="选择" fixed="left" width="70" center>
         <template scope="scope">
-          <el-radio class="radio" v-model="radio" :label="scope.$index" @change.native="getCurrentRow(scope.row)">{{ ""
-          }}</el-radio>
+          <el-radio
+            class="radio"
+            v-model="radio"
+            :label="scope.$index"
+            @change.native="getCurrentRow(scope.row)"
+            >{{ "" }}</el-radio
+          >
         </template>
       </el-table-column>
       <!-- <el-table-column type="selection" width="55" align="center" /> -->
@@ -108,12 +192,22 @@
           <span v-if="scope.row.collStatus == 1">已采集</span>
         </template>
       </el-table-column>
-      <el-table-column label="采集人" align="center" prop="collName" width="110">
+      <el-table-column
+        label="采集人"
+        align="center"
+        prop="collName"
+        width="110"
+      >
         <template slot-scope="scope">
           <span>{{ scope.row.collName }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="采集时间" align="center" prop="collTime" width="100">
+      <el-table-column
+        label="采集时间"
+        align="center"
+        prop="collTime"
+        width="100"
+      >
       </el-table-column>
       <el-table-column label="上报状态" align="center" prop="reportStatus">
         <template slot-scope="scope">
@@ -121,61 +215,173 @@
           <span v-if="scope.row.reportStatus == 1">已上报</span>
         </template>
       </el-table-column>
-      <el-table-column label="上报人" align="center" prop="reportName" width="110" />
-      <el-table-column label="上报时间" align="center" prop="reportTime" width="100" />
-      <el-table-column label="审核人" align="center" prop="approveName" width="110" />
-      <el-table-column label="审核时间" align="center" prop="approveTime" width="100" />
+      <el-table-column
+        label="上报人"
+        align="center"
+        prop="reportName"
+        width="110"
+      />
+      <el-table-column
+        label="上报时间"
+        align="center"
+        prop="reportTime"
+        width="100"
+      />
+      <el-table-column
+        label="审核人"
+        align="center"
+        prop="approveName"
+        width="110"
+      />
+      <el-table-column
+        label="审核时间"
+        align="center"
+        prop="approveTime"
+        width="100"
+      />
       <el-table-column label="审核状态" align="center" prop="approveStatus">
         <template slot-scope="scope">
-          <span>{{ scope.row.approveStatus == 0 ? "未审核" : (scope.row.approveStatus == 1 ? "审核中" : (scope.row.approveStatus == 2 ? "审核通过" :"审核拒绝"))  }}</span>
+          <span>{{
+            scope.row.approveStatus == 0
+              ? "未审核"
+              : scope.row.approveStatus == 1
+              ? "审核中"
+              : scope.row.approveStatus == 2
+              ? "审核通过"
+              : "审核拒绝"
+          }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
+      <el-table-column
+        label="操作"
+        align="center"
+        fixed="right"
+        class-name="small-padding fixed-width"
+      >
         <template slot-scope="scope">
-          <template v-if="scope.row.collStatus == 0 && checkPermi(['gather:GATHER:add'])">
-            <el-button style="margin: 0 2px" size="mini" type="text" @click="handleUpdate(scope.row)">录入</el-button>
+          <template
+            v-if="
+              scope.row.collStatus == 0 && checkPermi(['gather:GATHER:add'])
+            "
+          >
+            <el-button
+              style="margin: 0 2px"
+              size="mini"
+              type="text"
+              @click="handleUpdate(scope.row)"
+              >录入</el-button
+            >
           </template>
 
-          <template v-if="scope.row.collStatus == 1 && (scope.row.approveStatus == 0 || scope.row.approveStatus == 3) && checkPermi(['gather:GATHER:approve'])">
-            <el-popconfirm title="确定提交审核吗?" @confirm="handleAudit(scope.row)">
-              <el-button style="margin: 0 2px" size="mini" type="text" slot="reference">提交审核</el-button>
+          <template
+            v-if="
+              scope.row.collStatus == 1 &&
+              (scope.row.approveStatus == 0 || scope.row.approveStatus == 3) &&
+              checkPermi(['gather:GATHER:approve'])
+            "
+          >
+            <el-popconfirm
+              title="确定提交审核吗?"
+              @confirm="handleAudit(scope.row)"
+            >
+              <el-button
+                style="margin: 0 2px"
+                size="mini"
+                type="text"
+                slot="reference"
+                >提交审核</el-button
+              >
             </el-popconfirm>
           </template>
-       
-          <template v-if="scope.row.approveStatus == 1 && checkPermi(['gather:GATHER:check'])
-            ">
-            <el-button @click="handleApprove(scope.row)" style="margin: 0 2px" size="mini" type="text"
-              slot="reference">审核绩效</el-button>
+
+          <template
+            v-if="
+              scope.row.approveStatus == 1 &&
+              checkPermi(['gather:GATHER:check'])
+            "
+          >
+            <el-button
+              @click="handleApprove(scope.row)"
+              style="margin: 0 2px"
+              size="mini"
+              type="text"
+              slot="reference"
+              >审核绩效</el-button
+            >
           </template>
 
           <!--              已采集,审核通过,未上报 -->
-          <template v-if="scope.row.collStatus == 1 &&
-            scope.row.reportStatus == 0 &&
-            scope.row.approveStatus == 2 &&
-            checkPermi(['gather:GATHER:report'])
-            ">
-            <el-popconfirm title="确定上报吗?" @confirm="handleReport(scope.row)">
-              <el-button style="margin: 0 2px" size="mini" slot="reference" type="text">上报</el-button>
+          <template
+            v-if="
+              scope.row.collStatus == 1 &&
+              scope.row.reportStatus == 0 &&
+              scope.row.approveStatus == 2 &&
+              checkPermi(['gather:GATHER:report'])
+            "
+          >
+            <el-popconfirm
+              title="确定上报吗?"
+              @confirm="handleReport(scope.row)"
+            >
+              <el-button
+                style="margin: 0 2px"
+                size="mini"
+                slot="reference"
+                type="text"
+                >上报</el-button
+              >
             </el-popconfirm>
           </template>
 
-          <el-button v-if="scope.row.collStatus == 1" style="margin: 0 2px"  size="mini" type="text"
-            @click="handleDetail(scope.row, 0)">查看</el-button>
+          <el-button
+            v-if="scope.row.collStatus == 1"
+            style="margin: 0 2px"
+            size="mini"
+            type="text"
+            @click="handleDetail(scope.row, 0)"
+            >查看</el-button
+          >
           <!-- {{scope.row.collStatus}}--{{scope.row.approveStatus}} -->
 
-          <el-button style="margin: 0 2px" v-if="scope.row.approveStatus == 0 || scope.row.approveStatus == 3 && 
-            checkPermi(['gather:GATHER:edit']) // 编辑权限
-            " size="mini" type="text" @click="handleDetail(scope.row, 1)">修改</el-button>
+          <el-button
+            style="margin: 0 2px"
+            v-if="
+              scope.row.approveStatus == 0 ||
+              (scope.row.approveStatus == 3 &&
+                checkPermi(['gather:GATHER:edit'])) // 编辑权限
+            "
+            size="mini"
+            type="text"
+            @click="handleDetail(scope.row, 1)"
+            >修改</el-button
+          >
         </template>
       </el-table-column>
     </el-table>
 
-    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
-      @pagination="getList" />
+    <pagination
+      v-show="total > 0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
 
     <!-- 上传文件对话框  历史数据导入 -->
-    <el-dialog center title="导入" :visible.sync="openUpload" width="50%" append-to-body :close-on-click-modal="false">
-      <el-form ref="uploadForm" :model="uploadForm" :rules="rules" label-width="120px">
+    <el-dialog
+      center
+      title="导入"
+      :visible.sync="openUpload"
+      width="50%"
+      append-to-body
+      :close-on-click-modal="false"
+    >
+      <el-form
+        ref="uploadForm"
+        :model="uploadForm"
+        :rules="rules"
+        label-width="120px"
+      >
         <!--        <el-form-item label="数据类型" prop="type">-->
         <!--          <el-select-->
         <!--            v-model="uploadForm.type"-->
@@ -192,9 +398,19 @@
         <!--          </el-select>-->
         <!--        </el-form-item>-->
         <el-form-item label="文件" prop="linkUrl">
-          <el-upload class="upload-demo" ref="upload" action="#" :http-request="httprequest" :before-upload="uploadFile"
-            :file-list="fileList" :auto-upload="false" :limit="1">
-            <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
+          <el-upload
+            class="upload-demo"
+            ref="upload"
+            action="#"
+            :http-request="httprequest"
+            :before-upload="uploadFile"
+            :file-list="fileList"
+            :auto-upload="false"
+            :limit="1"
+          >
+            <el-button slot="trigger" size="small" type="primary"
+              >选取文件</el-button
+            >
           </el-upload>
         </el-form-item>
         <div class="tips-text">
@@ -210,31 +426,62 @@
     </el-dialog>
 
     <!-- 录入数据采集对话框 -->
-    <el-dialog center :title="title" :visible.sync="open" width="55%" append-to-body :close-on-click-modal="false">
-      <el-tabs v-if="this.form.type == 0" v-model="activeName" type="border-card" @tab-click="handleClick">
-        <el-tab-pane v-for="(item, index) in tabList" :key="index + 'tabs'" :label="item.normName" :name="item.normName">
+    <el-dialog
+      center
+      :title="title"
+      :visible.sync="open"
+      width="55%"
+      append-to-body
+      :close-on-click-modal="false"
+    >
+      <el-tabs
+        v-if="this.form.type == 0"
+        v-model="activeName"
+        type="border-card"
+        @tab-click="handleClick"
+      >
+        <el-tab-pane
+          v-for="(item, index) in tabList"
+          :key="index + 'tabs'"
+          :label="item.normName"
+          :name="item.normName"
+        >
           <el-row :gutter="10">
             <template v-for="listItem in form.feeLists">
-              <el-form v-if="listItem.normId == item.normId" :rules="validatorList(
-                listItem.normfeeCode,
-                listItem.normfeeName,
-                listItem.sendValue
-              )
-                " :model="listItem" :ref="'form' + listItem.normfeeId" :key="listItem.normfeeId"
-                :disabled="listItem.sendValue == 1">
+              <el-form
+                v-if="listItem.normId == item.normId"
+                :rules="
+                  validatorList(
+                    listItem.normfeeCode,
+                    listItem.normfeeName,
+                    listItem.sendValue
+                  )
+                "
+                :model="listItem"
+                :ref="'form' + listItem.normfeeId"
+                :key="listItem.normfeeId"
+                :disabled="listItem.sendValue == 1"
+              >
                 <!-- :key="index + listIndex + listItem.normId" -->
                 <!-- :rules="rules" ref="form" -->
 
                 <el-col :span="12">
-                  <el-form-item :label="listItem.normfeeName +
-                    '(' +
-                    listItem.funit_dictText +
-                    ')'
-                    " prop="collCalue">
+                  <el-form-item
+                    :label="
+                      listItem.normfeeName +
+                      '(' +
+                      listItem.funit_dictText +
+                      ')'
+                    "
+                    prop="collCalue"
+                  >
                     <!-- 这里科研失败!想动态绑定校验规则的 -->
                     <!-- :prop="listItem.normfeeId" -->
                     <!-- :rules="rules.listItem.normfeeId" -->
-                    <el-input v-model="listItem.collCalue" :placeholder="'请输入' + listItem.normfeeName"></el-input>
+                    <el-input
+                      v-model="listItem.collCalue"
+                      :placeholder="'请输入' + listItem.normfeeName"
+                    ></el-input>
                   </el-form-item>
                 </el-col>
               </el-form>
@@ -256,15 +503,27 @@
         </el-tab-pane>
       </el-tabs>
       <template v-else-if="this.form.type == 1">
-        <el-form v-for="listItem in form.feeLists" :model="listItem" :ref="'form' + listItem.normfeeId" :rules="rules"
-          :key="listItem.normfeeId">
+        <el-form
+          v-for="listItem in form.feeLists"
+          :model="listItem"
+          :ref="'form' + listItem.normfeeId"
+          :rules="rules"
+          :key="listItem.normfeeId"
+        >
           <!-- :rules="rules" ref="form" -->
-          <el-form-item :label="listItem.normfeeName + '(' + listItem.funit_dictText + ')'
-            " prop="collCalue">
+          <el-form-item
+            :label="
+              listItem.normfeeName + '(' + listItem.funit_dictText + ')'
+            "
+            prop="collCalue"
+          >
             <!-- 这里科研失败!想动态绑定校验规则的 -->
             <!-- :prop="listItem.normfeeId" -->
             <!-- :rules="rules.listItem.normfeeId" -->
-            <el-input v-model="listItem.collCalue" :placeholder="'请输入' + listItem.normfeeName"></el-input>
+            <el-input
+              v-model="listItem.collCalue"
+              :placeholder="'请输入' + listItem.normfeeName"
+            ></el-input>
           </el-form-item>
         </el-form>
       </template>
@@ -276,26 +535,55 @@
     </el-dialog>
 
     <!-- 查看或修改 -->
-    <el-dialog center @close="handleClose" :title="title" :visible.sync="openDetail" width="50%" append-to-body
-      :close-on-click-modal="false">
-      <el-tabs v-if="this.form.type == 0" v-model="activeName" type="border-card" @tab-click="handleClick">
-        <el-tab-pane v-for="(item, index) in tabList" :key="index + 'tabs'" :label="item.normName" :name="item.normName">
+    <el-dialog
+      center
+      @close="handleClose"
+      :title="title"
+      :visible.sync="openDetail"
+      width="50%"
+      append-to-body
+      :close-on-click-modal="false"
+    >
+      <el-tabs
+        v-if="this.form.type == 0"
+        v-model="activeName"
+        type="border-card"
+        @tab-click="handleClick"
+      >
+        <el-tab-pane
+          v-for="(item, index) in tabList"
+          :key="index + 'tabs'"
+          :label="item.normName"
+          :name="item.normName"
+        >
           <el-row :gutter="10">
             <template v-for="listItem in form.feeLists">
-              <el-form v-if="listItem.normId == item.normId" :model="listItem" :ref="'form' + listItem.normfeeId"
-                :rules="rules" :key="listItem.normfeeId">
+              <el-form
+                v-if="listItem.normId == item.normId"
+                :model="listItem"
+                :ref="'form' + listItem.normfeeId"
+                :rules="rules"
+                :key="listItem.normfeeId"
+              >
                 <!-- :rules="rules" ref="form" -->
                 <el-col :span="12">
-                  <el-form-item prop="collCalue" :label="listItem.normfeeName +
-                    '(' +
-                    listItem.funit_dictText +
-                    ')'
-                    ">
+                  <el-form-item
+                    prop="collCalue"
+                    :label="
+                      listItem.normfeeName +
+                      '(' +
+                      listItem.funit_dictText +
+                      ')'
+                    "
+                  >
                     <!-- 这里科研失败!想动态绑定校验规则的 -->
                     <!-- :prop="listItem.normfeeId" -->
                     <!-- :rules="rules.listItem.normfeeId" -->
-                    <el-input :disabled="!edit" v-model="listItem.collCalue"
-                      :placeholder="'请输入' + listItem.normfeeName"></el-input>
+                    <el-input
+                      :disabled="!edit"
+                      v-model="listItem.collCalue"
+                      :placeholder="'请输入' + listItem.normfeeName"
+                    ></el-input>
                   </el-form-item>
                 </el-col>
               </el-form>
@@ -319,15 +607,27 @@
       </el-tabs>
 
       <template v-else-if="this.form.type == 1">
-        <el-form v-for="listItem in form.feeLists" :model="listItem" :ref="'form' + listItem.normfeeId" :rules="rules"
-          :key="listItem.normfeeId">
+        <el-form
+          v-for="listItem in form.feeLists"
+          :model="listItem"
+          :ref="'form' + listItem.normfeeId"
+          :rules="rules"
+          :key="listItem.normfeeId"
+        >
           <!-- :rules="rules" ref="form" -->z
-          <el-form-item :label="listItem.normfeeName + '(' + listItem.funit_dictText + ')'
-            " prop="collCalue">
+          <el-form-item
+            :label="
+              listItem.normfeeName + '(' + listItem.funit_dictText + ')'
+            "
+            prop="collCalue"
+          >
             <!-- 这里科研失败!想动态绑定校验规则的 -->
             <!-- :prop="listItem.normfeeId" -->
             <!-- :rules="rules.listItem.normfeeId" -->
-            <el-input v-model="listItem.collCalue" :placeholder="'请输入' + listItem.normfeeName"></el-input>
+            <el-input
+              v-model="listItem.collCalue"
+              :placeholder="'请输入' + listItem.normfeeName"
+            ></el-input>
           </el-form-item>
         </el-form>
       </template>
@@ -348,9 +648,15 @@
       </el-form>
       -->
       <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitForm('edit')" v-if="edit">确 定</el-button>
-        <el-button type="primary" v-if="check" @click="handleCheck(1)">通 过</el-button>
-        <el-button type="warning" v-if="check" @click="handleReject">驳 回</el-button>
+        <el-button type="primary" @click="submitForm('edit')" v-if="edit"
+          >确 定</el-button
+        >
+        <el-button type="primary" v-if="check" @click="handleCheck(1)"
+          >通 过</el-button
+        >
+        <el-button type="warning" v-if="check" @click="handleReject"
+          >驳 回</el-button
+        >
         <el-button type="primary" @click="cancel">返 回</el-button>
       </div>
 
@@ -436,6 +742,7 @@ export default {
       total: 0,
       // 数据采集表格数据
       GATHERList: [],
+      load: true,
       // 弹出层标题
       title: "",
       // 是否显示弹出层
@@ -628,7 +935,7 @@ export default {
     submitUpload() {
       this.$refs.upload.submit();
     },
-    httprequest() { },
+    httprequest() {},
     getCurrentRow(val) {
       console.log(val);
     },
@@ -789,12 +1096,13 @@ export default {
         });
     },
 
-    handleClick(tab, event) { },
+    handleClick(tab, event) {},
     /** 查询数据采集列表 */
     getList() {
       this.loading = true;
       listGATHER(this.queryParams).then((response) => {
         this.GATHERList = response.rows;
+        this.load = false;
         this.total = response.total;
         this.loading = false;
       });
@@ -1006,13 +1314,20 @@ export default {
       Promise.all(p)
         .then(() => {
           if (type == "add") {
+            let is = false;
             addGATHER(this.form).then((response) => {
+              if (response.code == 200) {
+                is = true;
+              }
+            });
+
+            if (is) {
               compute(this.form).then((response) => {
                 this.$modal.msgSuccess("录入成功");
                 this.open = false;
                 this.getList();
               });
-            });
+            }
           } else if (type == "edit") {
             updateGATHER(this.form).then((response) => {
               this.$modal.msgSuccess("修改成功");
@@ -1037,7 +1352,7 @@ export default {
           this.getList();
           this.$modal.msgSuccess("删除成功");
         })
-        .catch(() => { });
+        .catch(() => {});
     },
     /** 导出按钮操作 */
     handleExport() {
@@ -1053,12 +1368,10 @@ export default {
 };
 </script>
 
-
 <style scoped lang="scss">
 .remark {
   margin-top: 20px;
 
-
   .remark_title {
     margin-bottom: 10px;
     font-size: 18px;
@@ -1075,4 +1388,4 @@ export default {
     background: #3333331a;
   }
 }
-</style>
+</style>

+ 3 - 6
src/views/wf/index.vue

@@ -8,13 +8,11 @@
       v-show="showSearch"
       label-width="68px"
     >
-      <el-row :gutter="10" style="margin-bottom: 8px">
-        <el-col :span="6">
+    
           <el-form-item label="流程名称" prop="proname">
             <el-input v-model="queryParams.proname" />
           </el-form-item>
-        </el-col>
-        <el-col :span="6">
+      
           <el-form-item>
             <el-button
               type="primary"
@@ -27,8 +25,7 @@
               >重置</el-button
             >
           </el-form-item>
-        </el-col>
-      </el-row>
+       
     </el-form>
 
     <el-row :gutter="10" style="margin-bottom: 8px">