| | |
| | | |
| | | <!--添加行业--> |
| | | <div class="common-level-rail"> |
| | | <el-button size="small" type="primary" @click="addClick" icon="el-icon-plus" v-auth="'/plus/business/industry/add'">添加行业</el-button> |
| | | <el-button size="small" type="primary" v-auth="'/plus/business/industry/add'" @click="addClick" icon="el-icon-plus">添加行业</el-button> |
| | | </div> |
| | | |
| | | <!--内容--> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import PlusApi from '@/api/plus'; |
| | | import BusinessApi from '@/api/business'; |
| | | import Add from './Add.vue'; |
| | | import Edit from './Edit.vue'; |
| | | export default { |
| | |
| | | /*获取列表*/ |
| | | getData() { |
| | | let self = this; |
| | | PlusApi.getIndustryList({}, true) |
| | | BusinessApi.industryList({}, true) |
| | | .then(data => { |
| | | self.loading = false; |
| | | self.tableData = data.data.list.tree; |
| | |
| | | self.$confirm('删除后不可恢复,确认删除该记录吗?', '提示', { |
| | | type: 'warning' |
| | | }).then(() => { |
| | | PlusApi.deleteIndustry({ |
| | | BusinessApi.deleteIndustry({ |
| | | industry_id: row.industry_id |
| | | }).then(data => { |
| | | self.$message({ |
| | |
| | | sort: row.sort, |
| | | status: status |
| | | }; |
| | | PlusApi.editIndustry( |
| | | BusinessApi.industryEdit( |
| | | params, |
| | | true |
| | | ) |