Commit 5ebca190 authored by lixy's avatar lixy

车型管理

parent 12ce7999
......@@ -31,6 +31,16 @@ export function getAllParentLabel() {
});
}
/**
* 根据parentId获取子标签
*/
export function getLabelByParentId(id) {
return fetch({
url: '/vehicle/cata/add/fingCatasByParentId/' + id,
method: 'get'
});
}
/**
* 获取标签列表
*/
......@@ -88,4 +98,16 @@ export function updateAndAdd(params) {
method: 'post',
data: params
});
}
\ No newline at end of file
}
// vehicle/vehicleModel/app/update
/**
* 编辑一条车型数据
* */
export function updateVehicleModel(params) {
return fetch({
url: '/vehicle/vehicleModel/app/update',
method: 'put',
data: params
});
}
......@@ -278,6 +278,27 @@ export const asyncRouterMap = [{
}
]
},
{
path: '/campsiteManage',
component: Layout,
name: '营地管理',
icon: 'setting',
authority: 'campsiteManage',
children: [
{
path: 'campsiteList',
component: _import('campsiteManage/index'),
name: '营地列表',
authority: 'campsiteList'
},
{
path: 'campsiteLabel',
component: _import('campsiteManage/campsiteLabel'),
name: '营地标签设置',
authority: 'campsiteLabel'
}
]
},
{
path: '/vehicle',
component: Layout,
......
......@@ -297,7 +297,6 @@
type: 'success',
duration: 2000
});
this.bannerDialogVisible = false;
this.getList();
} else {
this.$notify({
......
This diff is collapsed.
This diff is collapsed.
......@@ -62,7 +62,7 @@
<el-button type="primary" size="mini" @click="deleteHandler(scope.row)">确定</el-button>
</div>
</el-popover>
<el-button type="danger" size="small" v-popover:popover5>删除</el-button>
<el-button type="danger" v-if="scope.row.parent.id != 1 && scope.row.parent.id!= 14" size="small" v-popover:popover5>删除</el-button>
</template>
</el-table-column>
</el-table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment