Commit 74a5506b authored by 向偲彪's avatar 向偲彪 Committed by lgcareer
Browse files

Fix delete operation, no query interface request is made on the list page #1768 (#1777)

* Fix api url

* Fixed DAG zoom in and zoom out nodes separated from arrows

* Fix front-end code specifications

* Fix front-end code specifications

* Fix front-end code specifications

* jest unit test demo

* jest unit test demo

* Fix delete operation, no query interface request is made on the list page

* Fix delete operation, no query interface request is made on the list page
parent 03ef3943
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@
        this.deleteDatasource({
          id: item.id
        }).then(res => {
          this.list.splice(i, 1)
          this.$emit('on-update')
          this.$message.success(res.msg)
        }).catch(e => {
          this.$message.error(e.msg || '')
+7 −4
Original line number Diff line number Diff line
@@ -24,13 +24,13 @@
      </m-conditions>
    </template>
    <template slot="content">
      <template v-if="datasourcesList.length">
        <m-list :datasources-list="datasourcesList" :page-no="searchParams.pageNo" :page-size="searchParams.pageSize"></m-list>
      <template v-if="datasourcesList.length || total>0">
        <m-list @on-update="_onUpdate" :datasources-list="datasourcesList" :page-no="searchParams.pageNo" :page-size="searchParams.pageSize"></m-list>
        <div class="page-box">
          <x-page :current="parseInt(searchParams.pageNo)" :total="total" :page-size="searchParams.pageSize" show-elevator @on-change="_page" show-sizer :page-size-options="[10,30,50]" @on-size-change="_pageSize"></x-page>
        </div>
      </template>
      <template v-if="!datasourcesList.length">
      <template v-if="!datasourcesList.length && total<=0">
        <m-no-data></m-no-data>
      </template>
      <m-spin :is-spin="isLoading" :is-left="false">
@@ -131,7 +131,10 @@
        }).catch(e => {
          this.isLoading = false
        })
      }
      },
      _onUpdate () {
        this._debounceGET('false')
      },
    },
    watch: {
      // router
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@
      height: 276px;
      line-height: 276px;
      text-align: center;
      >b {
      >strong {
        font-size: 100px;
        color: #333;
      }
+2 −2
Original line number Diff line number Diff line
@@ -20,14 +20,14 @@
      <m-conditions @on-query="_onQuery"></m-conditions>
    </template>
    <template slot="content">
      <template v-if="taskRecordList.length">
      <template v-if="taskRecordList.length || total>0">
        <m-list :task-record-list="taskRecordList" @on-update="_onUpdate" :page-no="searchParams.pageNo" :page-size="searchParams.pageSize">
        </m-list>
        <div class="page-box">
          <x-page :current="parseInt(searchParams.pageNo)" :total="total" show-elevator @on-change="_page"></x-page>
        </div>
      </template>
      <template v-if="!taskRecordList.length">
      <template v-if="!taskRecordList.length && total<=0">
        <m-no-data></m-no-data>
      </template>
      <m-spin :is-spin="isLoading"></m-spin>
+2 −2
Original line number Diff line number Diff line
@@ -26,13 +26,13 @@
      </m-conditions>
    </template>
    <template slot="content">
      <template v-if="processListP.length">
      <template v-if="processListP.length || total>0">
        <m-list :process-list="processListP" @on-update="_onUpdate" :page-no="searchParams.pageNo" :page-size="searchParams.pageSize"></m-list>
        <div class="page-box">
          <x-page :current="parseInt(searchParams.pageNo)" :total="total" show-elevator @on-change="_page" show-sizer :page-size-options="[10,30,50]" @on-size-change="_pageSize"></x-page>
        </div>
      </template>
      <template v-if="!processListP.length">
      <template v-if="!processListP.length && total<=0">
        <m-no-data></m-no-data>
      </template>
      <m-spin :is-spin="isLoading"></m-spin>
Loading