|
|
|
|
@ -24,12 +24,12 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="remark" label="备注" sortable>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="pid" label="上级" sortable>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="sort" align="center" label="排序" sortable width="80">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="300">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<Button type="primary" @click="addchildren(scope.row)" size="small" style="margin-left: 10px;"
|
|
|
|
|
ghost>下一级</Button>
|
|
|
|
|
<Button type="error" @click="del(scope.row)" size="small" style="margin-left: 10px;" ghost>删除</Button>
|
|
|
|
|
<Button type="primary" @click="edit(scope.row)" size="small" style="margin-left: 10px;" ghost>编辑</Button>
|
|
|
|
|
</template>
|
|
|
|
|
@ -43,7 +43,7 @@
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="上级">
|
|
|
|
|
<el-input v-model="form.pname" disabled autocomplete="off"></el-input>
|
|
|
|
|
<el-input v-model="form.pid" autocomplete="off"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
@ -59,8 +59,8 @@
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="是否启用" prop="status">
|
|
|
|
|
<el-select v-model="form.status">
|
|
|
|
|
<el-option label="启用" value="1"></el-option>
|
|
|
|
|
<el-option label="不启用" value="0"></el-option>
|
|
|
|
|
<el-option label="启用" :value="1"></el-option>
|
|
|
|
|
<el-option label="不启用" :value="0"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
@ -155,7 +155,7 @@
|
|
|
|
|
id: "",
|
|
|
|
|
pid: "0",
|
|
|
|
|
name: "",
|
|
|
|
|
status: "1",
|
|
|
|
|
status: 1,
|
|
|
|
|
sort: 0,
|
|
|
|
|
remark: "",
|
|
|
|
|
detail_list: [{
|
|
|
|
|
|