feat(标签): 标签模块添加返回一级按扭

dev
zhangjiabao 12 months ago
parent dcf87c05f8
commit 52373573a1

@ -96,9 +96,8 @@
plain plain
icon="el-icon-full-screen" icon="el-icon-full-screen"
type="primary" type="primary"
v-if="tagType === 1"
@click="handleChangeChildrenTag" @click="handleChangeChildrenTag"
>查看二级</el-button >{{ ["", "查看二级", "查看一级"][tagType] }}</el-button
> >
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -595,14 +594,24 @@ export default {
* 查看二级按钮点击事件 * 查看二级按钮点击事件
*/ */
handleChangeChildrenTag() { handleChangeChildrenTag() {
this.tagType = 2; if (this.tagType === 1) {
// this.tagType = 2;
this.queryForm.data.level = 2; //
this.handleResetClick(); this.queryForm.data.level = 2;
// this.handleResetClick();
this.modifyDialog.form.rules["parentId"] = [ //
{ required: true, message: "请选择父级", trigger: "change" } this.modifyDialog.form.rules["parentId"] = [
]; { required: true, message: "请选择父级", trigger: "change" }
];
} else {
this.tagType = 1;
//
this.queryForm.data.level = 1;
this.handleResetClick();
//
delete this.modifyDialog.form.rules["parentId"];
}
// //
this.table.data = []; this.table.data = [];
this.table.page.current = 1; this.table.page.current = 1;

Loading…
Cancel
Save