| | |
| | | <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 |
| | |
| | | row-key="id" |
| | | stripe |
| | | border |
| | | :height="tableHeightNew - 40" |
| | | :height="tableHeightNew - 50" |
| | | :header-row-class-name="'table-header'" |
| | | class="doumee-element-table" |
| | | @selection-change="handleSelectionChange" |
| | |
| | | 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> |
| | |
| | | this.refreshLoadTree(parentId) |
| | | }, |
| | | openPriceRule(row) { |
| | | this.$refs.operaCityPriceRuleWindow.open('计价规则', row) |
| | | this.$refs.operaCityPriceRuleWindow.open('计价规则', row.id) |
| | | }, |
| | | handlePriceRuleSuccess() { |
| | | this.$message.success('保存成功') |