This commit is contained in:
Zhang HaoYang 2023-12-28 23:23:26 +08:00
parent 06e68e8fc9
commit 2ab306c2c1

View File

@ -34,9 +34,8 @@
width="50">
</el-table-column>
<el-table-column
style="display: none"
align="center"
prop="cate_id"
prop="parentId"
label="所属编号"
width="50">
</el-table-column>
@ -193,8 +192,8 @@
</el-form-item>
<el-row>
<el-col :span="12">
<el-form-item label="网站归类" prop="cate_id">
<el-select v-model="form.cate_id" prop="cate_id"
<el-form-item label="网站归类" prop="parentId">
<el-select v-model="form.parentId" prop="parentId"
value-key="deviceType" placeholder="请选择">
<el-option
v-for="item in Cate"
@ -283,7 +282,7 @@ export default {
weigh:'',
status:'',
icon:'',
cate_id:'',
parentId:'',
url:'',
tags:'',
desc:'',
@ -306,7 +305,6 @@ export default {
},
mounted() {
this.GetData();
},
created() {
this.getUserInfo();
@ -323,7 +321,7 @@ export default {
weigh:'',
status:'',
icon:'',
cate_id:'',
parentId:'',
url:'',
tags:'',
desc:'',
@ -401,7 +399,7 @@ export default {
weigh:'',
status:'',
icon:'',
cate_id:'',
parentId:'',
url:'',
tags:'',
desc:'',
@ -411,6 +409,7 @@ export default {
//
this.dialogVisible = false;
this.openAddCategory=false;
this.GetData();
},
// :
openAddCategoryFun(){
@ -444,7 +443,7 @@ export default {
name: this.form.name,
weigh: this.form.weigh,
icon:this.form.icon,
cateId:this.form.cate_id,
cateId:this.form.parentId,
status: this.form.status,
isNeedAgent:this.form.isNeedAgent,
url: this.form.url,
@ -469,6 +468,7 @@ export default {
}
}).catch((error)=>{
})
this.GetData();
}else if(title == "新增网址"){
axios({
method: 'post',
@ -479,7 +479,7 @@ export default {
name: this.form.name,
weigh: this.form.weigh,
icon:this.form.icon,
cateId:this.form.cate_id,
cateId:this.form.parentId,
status: this.form.status,
isNeedAgent:this.form.isNeedAgent,
url: this.form.url,
@ -504,6 +504,7 @@ export default {
}
}).catch((error)=>{
})
this.GetData();
}
}
})