MrShi
4 天以前 be3ec4c1f11a5e090408fcd6f650557651fcf007
admin/src/views/business/area.vue
@@ -1,15 +1,5 @@
<template>
  <TableLayout :permissions="['business:areas:query']">
    <!-- 搜索表单 -->
    <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline>
      <el-form-item label="名称" prop="name">
        <el-input v-model="searchForm.name" placeholder="请输入名称" @keypress.enter.native="search"></el-input>
      </el-form-item>
      <section>
        <el-button type="primary" @click="search">搜索</el-button>
        <el-button @click="reset">重置</el-button>
      </section>
    </el-form>
    <!-- 表格和分页 -->
    <template v-slot:table-wrap>
      <el-table
@@ -22,7 +12,7 @@
        row-key="id"
        stripe
        border
        :height="tableHeightNew - 40"
        :height="tableHeightNew - 50"
        :header-row-class-name="'table-header'"
        class="doumee-element-table"
        @selection-change="handleSelectionChange"
@@ -52,7 +42,7 @@
          min-width="80"
        >
          <template slot-scope="{ row }">
            <el-button type="text" @click="openPriceRule(row)">计价规则</el-button>
            <el-button type="text" @click="openPriceRule(row)" v-if="row.type === 1">计价规则</el-button>
          </template>
        </el-table-column>
      </el-table>
@@ -145,7 +135,7 @@
      this.refreshLoadTree(parentId)
    },
    openPriceRule(row) {
      this.$refs.operaCityPriceRuleWindow.open('计价规则', row)
      this.$refs.operaCityPriceRuleWindow.open('计价规则', row.id)
    },
    handlePriceRuleSuccess() {
      this.$message.success('保存成功')