10.10综合交易所原始源码-管理后台
1
zj
yesterday a27825570e9c2d0053c634ecd081cd9871a31b49
src/views/modules/us-spots/us-pickAddr.vue
@@ -34,19 +34,21 @@
      <template slot-scope="scope" slot="settlementTimes">
        <span>{{ formatTimestamp(scope.row.settlementTime) }}</span>
      </template>
      <template slot-scope="scope"
                slot="menu">
        <el-button type="primary"
                   icon="el-icon-edit"
                   size="small"
                   v-if="scope.row.state !=='created'&&isAuth('us-spots:operate')"
                   <!-- @click.stop="pickHandle(scope.row.orderNo)">电控</el-button> -->
      <template slot-scope="scope" slot="menu">
        <el-button
          type="primary"
          icon="el-icon-edit"
          size="small"
          v-if="scope.row.state !== 'created'"
          @click.stop="manualProfitHandle(scope.row)"
        >场控</el-button>
      </template>
    </avue-crud>
    <pickUpdate v-if="pickUpdateVisible"
                   ref="pickUpdate"
                   @refreshDataList="getDataList"></pickUpdate>
    <manualProfitUpdate
      v-if="manualProfitUpdateVisible"
      ref="manualProfitUpdate"
      @refreshDataList="getDataList"
    ></manualProfitUpdate>
    <!-- 弹窗, 新增 / 修改 -->
    <!-- <add-or-update v-if="addOrUpdateVisible"
                   ref="addOrUpdate"
@@ -58,8 +60,8 @@
  </div>
</template>
<script>
import { tableOption } from "@/crud/shop/pickAddr";
import pickUpdate from "./pick-update";
import { tableOption } from "@/crud/us-spots/us-pickAddr";
import manualProfitUpdate from "../shop/manual-profit-update";
export default {
  data() {
    return {
@@ -83,7 +85,7 @@
        },
      ],
      dataListLoading: false,
      pickUpdateVisible:false,
      manualProfitUpdateVisible: false,
      dataListSelections: [],
      tableOption: tableOption,
      page: {
@@ -119,9 +121,7 @@
    };
  },
  components: {
    pickUpdate
    // AddOrUpdate,
    // AddOrGogle
    manualProfitUpdate
  },
  created() {
    this.type = this.option.column[0];
@@ -250,11 +250,10 @@
      const seconds = String(date.getSeconds()).padStart(2, "0");
      return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
    },
        // 场控
    pickHandle(id) {
      this.pickUpdateVisible = true;
    manualProfitHandle(row) {
      this.manualProfitUpdateVisible = true;
      this.$nextTick(() => {
        this.$refs.pickUpdate.init(id);
        this.$refs.manualProfitUpdate.init(row);
      });
    },
    // tab切换