提交 f061c5c0 编写于 作者: X xinlaa

删除已开放页面多余代码

上级 0f17076f
......@@ -214,7 +214,8 @@ export default {
);
this.dialogVisibleDepart = true;
},
submitDepart() {
departRemove() {},
departSubmit() {
api[this.formDepart.id ? "updateDepart" : "addDepart"](this.formDepart)
.then(() => {
this.msgSuccess("操作成功");
......@@ -324,6 +325,12 @@ export default {
v-hasPermi="['contacts:organization:addDep']"
@click.stop="departEdit(data, 0)"
></i>
<i
class="el-icon-delete"
v-hasPermi="['contacts:organization:removeDep']"
v-if="node.level !== 1"
@click.stop="departRemove(data)"
></i>
</span>
</div>
</el-tree>
......@@ -509,7 +516,7 @@ export default {
</el-form>
<div slot="footer">
<el-button @click="dialogVisibleDepart = false">取 消</el-button>
<el-button type="primary" @click="submitDepart">确 定</el-button>
<el-button type="primary" @click="departSubmit">确 定</el-button>
</div>
</el-dialog>
......
......@@ -205,12 +205,6 @@ export default {
this.dateRange = [];
this.$refs["queryForm"].resetFields();
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
},
// 多选框选中数据
handleSelectionChange(selection) {
this.multipleSelection = selection;
......
......@@ -90,16 +90,6 @@ export default {
this.loading = false;
});
},
submitForm(formName) {
this.$refs["form"].validate((valid) => {
if (valid) {
alert("submit!");
} else {
console.log("error submit!!");
return false;
}
});
},
resetForm(formName) {
this.dateRange = [];
this.$refs["queryForm"].resetFields();
......
......@@ -21,20 +21,10 @@ export default {
ids: [],
// 非多个禁用
multiple: true,
// 显示搜索条件
showSearch: true,
// 总条数
total: 0,
// 表格数据
list: [],
// 是否显示弹出层
open: false,
// 类型数据字典
typeOptions: [],
// 类型数据字典
statusOptions: [],
// 表单参数
form: {},
};
},
created() {
......@@ -82,58 +72,21 @@ export default {
this.ids = selection.map((item) => item.id);
this.multiple = !selection.length;
},
/** 删除按钮操作 */
handleDelete(row) {
const operIds = row.operId || this.ids;
this.$confirm(
'是否确认删除日志编号为"' + operIds + '"的数据项?',
"警告",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}
)
.then(function () {
return delOperlog(operIds);
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
})
.catch(function () {});
},
/** 清空按钮操作 */
handleClean() {
this.$confirm("是否确认清空所有操作日志数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return cleanOperlog();
})
.then(() => {
this.getList();
this.msgSuccess("清空成功");
})
.catch(function () {});
},
/** 导出按钮操作 */
handleExport() {
const query = this.query;
this.$confirm("是否确认导出所有数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return exportOperlog(query);
})
.then((response) => {
this.download(response.msg);
})
.catch(function () {});
// const query = this.query;
// this.$confirm("是否确认导出所有数据项?", "警告", {
// confirmButtonText: "确定",
// cancelButtonText: "取消",
// type: "warning",
// })
// .then(function () {
// return exportOperlog(query);
// })
// .then((response) => {
// this.download(response.msg);
// })
// .catch(function () {});
},
},
};
......@@ -141,14 +94,7 @@ export default {
<template>
<div class="app-container">
<el-form
:model="query"
ref="queryForm"
:inline="true"
v-show="showSearch"
class="top-search"
label-width="80px"
>
<el-form :model="query" ref="queryForm" :inline="true" class="top-search" label-width="80px">
<el-form-item label="群名">
<el-input v-model="query.groupName" placeholder="请输入群名" clearable />
</el-form-item>
......
......@@ -11,20 +11,10 @@ export default {
ids: [],
// 非多个禁用
multiple: true,
// 显示搜索条件
showSearch: true,
// 总条数
total: 0,
// 表格数据
list: [],
// 是否显示弹出层
open: false,
// 类型数据字典
typeOptions: [],
// 类型数据字典
statusOptions: [],
// 日期范围
dateRange: [],
// 群信息
group: {},
// 查询参数
......@@ -61,64 +51,6 @@ export default {
this.ids = selection.map((item) => item.operId);
this.multiple = !selection.length;
},
/** 详细按钮操作 */
handleView(row) {
this.open = true;
this.form = row;
},
/** 删除按钮操作 */
handleDelete(row) {
const operIds = row.operId || this.ids;
this.$confirm(
'是否确认删除日志编号为"' + operIds + '"的数据项?',
"警告",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}
)
.then(function () {
return delOperlog(operIds);
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
})
.catch(function () {});
},
/** 清空按钮操作 */
handleClean() {
this.$confirm("是否确认清空所有操作日志数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return cleanOperlog();
})
.then(() => {
this.getList();
this.msgSuccess("清空成功");
})
.catch(function () {});
},
/** 导出按钮操作 */
handleExport() {
const query = this.query;
this.$confirm("是否确认导出所有操作日志数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return exportOperlog(query);
})
.then((response) => {
this.download(response.msg);
})
.catch(function () {});
},
},
};
</script>
......
......@@ -31,20 +31,10 @@ export default {
ids: [],
// 非多个禁用
multiple: true,
// 显示搜索条件
showSearch: true,
// 总条数
total: 0,
// 表格数据
list: [],
// 是否显示弹出层
open: false,
// 类型数据字典
typeOptions: [],
// 类型数据字典
statusOptions: [],
// 日期范围
dateRange: [],
};
},
created() {
......@@ -84,35 +74,11 @@ export default {
this.getList();
});
},
// 操作日志状态字典翻译
statusFormat(row, column) {
return this.selectDictLabel(this.statusOptions, row.status);
},
// 操作日志类型字典翻译
typeFormat(row, column) {
return this.selectDictLabel(this.typeOptions, row.businessType);
},
/** 搜索按钮操作 */
handleQuery() {
this.query.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.dateRange = [];
this.resetForm("queryForm");
this.handleQuery();
},
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.groupId);
this.multiple = !selection.length;
},
/** 详细按钮操作 */
handleView(row) {
this.open = true;
this.form = row;
},
/** 删除按钮操作 */
remove(id) {
const operIds = id || this.ids + "";
......@@ -127,38 +93,6 @@ export default {
this.msgSuccess("删除成功");
});
},
/** 清空按钮操作 */
handleClean() {
this.$confirm("是否确认清空所有操作日志数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return cleanOperlog();
})
.then(() => {
this.getList();
this.msgSuccess("清空成功");
})
.catch(function () {});
},
/** 导出按钮操作 */
handleExport() {
const query = this.query;
this.$confirm("是否确认导出所有操作日志数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return exportOperlog(query);
})
.then((response) => {
this.download(response.msg);
})
.catch(function () {});
},
},
};
</script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册