Browse Source

分类管理

preview
jiangyy 4 years ago
parent
commit
fbfd1a2ff5
  1. 18
      epmet-oper-web/src/views/modules/customer/customize/CategoryEdit.vue
  2. 14
      epmet-oper-web/src/views/modules/customer/customize/CategoryList.vue

18
epmet-oper-web/src/views/modules/customer/customize/CategoryEdit.vue

@ -29,7 +29,6 @@
prop="sort"> prop="sort">
<el-input-number v-model="dataForm.sort" <el-input-number v-model="dataForm.sort"
:min="1" :min="1"
:max="10"
label="描述文字"></el-input-number> label="描述文字"></el-input-number>
</el-form-item> </el-form-item>
</div> </div>
@ -101,11 +100,11 @@ export default {
this.dataForm.sort = sort this.dataForm.sort = sort
if (this.dataForm.level === 'l1') { if (this.dataForm.level === 'l1') {
// this.url="/gov/issue/issueprojectcategorydict/savefirstcategory" this.url = "/gov/issue/issueprojectcategorydict/savefirstcategory"
this.url = "https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/savefirstcategory" // this.url = "https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/savefirstcategory"
} else { } else {
// this.url="/gov/issue/issueprojectcategorydict/savesecondcategory" this.url = "/gov/issue/issueprojectcategorydict/savesecondcategory"
this.url = "https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/savesecondcategory" // this.url = "https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/savesecondcategory"
} }
}, },
@ -120,11 +119,11 @@ export default {
this.dataForm = dataForm this.dataForm = dataForm
if (this.dataForm.level === 'l1') { if (this.dataForm.level === 'l1') {
// this.url="/gov/issue/issueprojectcategorydict/savefirstcategory" this.url = "/gov/issue/issueprojectcategorydict/savefirstcategory"
this.url = "https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/savefirstcategory" // this.url = "https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/savefirstcategory"
} else { } else {
// this.url="/gov/issue/issueprojectcategorydict/savesecondcategory" this.url = "/gov/issue/issueprojectcategorydict/savesecondcategory"
this.url = "https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/savesecondcategory" // this.url = "https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/savesecondcategory"
} }
}, },
@ -168,6 +167,7 @@ export default {
this.$emit('editDiaOK') this.$emit('editDiaOK')
} else { } else {
this.$message.error(msg + ":" + internalMsg) this.$message.error(msg + ":" + internalMsg)
} }
}, },

14
epmet-oper-web/src/views/modules/customer/customize/CategoryList.vue

@ -44,7 +44,7 @@
<el-button type="text" <el-button type="text"
size="small" size="small"
@click="deleteCategory(scope.row)">删除</el-button> @click="deleteCategory(scope.row)">删除</el-button>
<el-button v-if="(scope.row.children && scope.row.children.length>0)" <el-button v-if="(scope.row.children )"
type="text" type="text"
size="small" size="small"
@click="showAddLevel2(scope.row)">{{ "新增二级分类"}}</el-button> @click="showAddLevel2(scope.row)">{{ "新增二级分类"}}</el-button>
@ -113,8 +113,8 @@ export default {
// //
async loadData () { async loadData () {
this.dataListLoading = true this.dataListLoading = true
const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/customercategorylist' // const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/customercategorylist'
// const url = '/gov/issue/issueprojectcategorydict/customercategorylist' const url = '/gov/issue/issueprojectcategorydict/customercategorylist'
this.tableParams.customerId = this.customerId this.tableParams.customerId = this.customerId
@ -151,8 +151,8 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
// const url = '/gov/issue/issueprojectcategorydict/isdisablecategory' const url = '/gov/issue/issueprojectcategorydict/isdisablecategory'
const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/isdisablecategory' // const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/isdisablecategory'
const param = { const param = {
customerId: this.customerId, customerId: this.customerId,
categoryId: row.categoryId, categoryId: row.categoryId,
@ -178,8 +178,8 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
// const url = '/gov/issue/issueprojectcategorydict/delcategory' const url = '/gov/issue/issueprojectcategorydict/delcategory'
const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/delcategory' // const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/delcategory'
const param = { const param = {
customerId: this.customerId, customerId: this.customerId,
categoryId: row.categoryId, categoryId: row.categoryId,

Loading…
Cancel
Save