|
|
@ -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;
|
|
|
|