删除未定义
This commit is contained in:
@ -51,7 +51,7 @@
|
|||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar
|
<right-toolbar
|
||||||
:showSearch.sync="showSearch"
|
v-model:showSearch="showSearch"
|
||||||
@queryTable="getList"
|
@queryTable="getList"
|
||||||
></right-toolbar>
|
></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -103,8 +103,8 @@
|
|||||||
<pagination
|
<pagination
|
||||||
v-show="total > 0"
|
v-show="total > 0"
|
||||||
:total="total"
|
:total="total"
|
||||||
:page.sync="queryParams.pageNum"
|
v-model:page="queryParams.pageNum"
|
||||||
:limit.sync="queryParams.pageSize"
|
v-model:limit="queryParams.pageSize"
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -270,7 +270,7 @@
|
|||||||
placeholder="请输入部门名称"
|
placeholder="请输入部门名称"
|
||||||
clearable
|
clearable
|
||||||
size="small"
|
size="small"
|
||||||
prefix-icon="el-icon-search"
|
prefix-icon="search"
|
||||||
/>
|
/>
|
||||||
<el-tree
|
<el-tree
|
||||||
:data="deptOptions"
|
:data="deptOptions"
|
||||||
@ -489,7 +489,6 @@ let dateRange;
|
|||||||
/** 查询用户列表 */
|
/** 查询用户列表 */
|
||||||
function getList() {
|
function getList() {
|
||||||
userLoading.value = true;
|
userLoading.value = true;
|
||||||
// debugger;
|
|
||||||
listUser(addDateRange(queryParams.value, dateRange)).then((response) => {
|
listUser(addDateRange(queryParams.value, dateRange)).then((response) => {
|
||||||
userList.value = response.rows;
|
userList.value = response.rows;
|
||||||
total.value = response.total;
|
total.value = response.total;
|
||||||
@ -509,9 +508,9 @@ function handleNodeClick(data) {
|
|||||||
}
|
}
|
||||||
function setIcon(val) {
|
function setIcon(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
return "el-icon-check";
|
return "check";
|
||||||
} else {
|
} else {
|
||||||
return "el-icon-time";
|
return "time";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function setColor(val) {
|
function setColor(val) {
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar
|
<right-toolbar
|
||||||
:showSearch.sync="showSearch"
|
v-model:showSearch="showSearch"
|
||||||
@queryTable="getList"
|
@queryTable="getList"
|
||||||
></right-toolbar>
|
></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -138,8 +138,8 @@
|
|||||||
<pagination
|
<pagination
|
||||||
v-show="total > 0"
|
v-show="total > 0"
|
||||||
:total="total"
|
:total="total"
|
||||||
:page.sync="queryParams.pageNum"
|
v-model:page="queryParams.pageNum"
|
||||||
:limit.sync="queryParams.pageSize"
|
v-model:limit="queryParams.pageSize"
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -149,6 +149,7 @@ import { listFinishedProcess } from "@/api/flowable/process";
|
|||||||
import { revokeProcess } from "@/api/flowable/finished";
|
import { revokeProcess } from "@/api/flowable/finished";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import { ref, reactive, toRefs } from "vue";
|
import { ref, reactive, toRefs } from "vue";
|
||||||
|
import { ElMessage, ElMessageBox } from "element-plus";
|
||||||
const queryFormRef = ref();
|
const queryFormRef = ref();
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
const loading = ref(true);
|
const loading = ref(true);
|
||||||
@ -165,10 +166,7 @@ const total = ref(0);
|
|||||||
// 已办任务列表数据
|
// 已办任务列表数据
|
||||||
const finishedList = ref([]);
|
const finishedList = ref([]);
|
||||||
// 弹出层标题
|
// 弹出层标题
|
||||||
const title = ref("");
|
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
const open = ref(false);
|
|
||||||
const src = ref("");
|
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
// 查询参数
|
// 查询参数
|
||||||
@ -190,7 +188,7 @@ const data = reactive({
|
|||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {},
|
rules: {},
|
||||||
});
|
});
|
||||||
const { queryParams, form, rules } = toRefs(data);
|
const { queryParams } = toRefs(data);
|
||||||
|
|
||||||
/** 查询流程定义列表 */
|
/** 查询流程定义列表 */
|
||||||
function getList() {
|
function getList() {
|
||||||
@ -204,8 +202,8 @@ function getList() {
|
|||||||
|
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
function handleQuery() {
|
function handleQuery() {
|
||||||
this.queryParams.pageNum = 1;
|
queryParams.value.pageNum = 1;
|
||||||
this.getList();
|
getList();
|
||||||
}
|
}
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
function resetQuery() {
|
function resetQuery() {
|
||||||
@ -240,24 +238,28 @@ function handleRevoke(row) {
|
|||||||
procInsId: row.procInsId,
|
procInsId: row.procInsId,
|
||||||
};
|
};
|
||||||
revokeProcess(params).then((res) => {
|
revokeProcess(params).then((res) => {
|
||||||
this.$modal.msgSuccess(res.msg);
|
ElMessage.success(res.msg);
|
||||||
this.getList();
|
getList();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
function handleDelete(row) {
|
function handleDelete(row) {
|
||||||
const ids = row.id || this.ids;
|
const deleteIds = row.id || ids.value;
|
||||||
this.$confirm('是否确认删除流程定义编号为"' + ids + '"的数据项?', "警告", {
|
ElMessageBox.confirm(
|
||||||
confirmButtonText: "确定",
|
'是否确认删除流程定义编号为"' + deleteIds + '"的数据项?',
|
||||||
cancelButtonText: "取消",
|
"警告",
|
||||||
type: "warning",
|
{
|
||||||
})
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning",
|
||||||
|
}
|
||||||
|
)
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return delDeployment(ids);
|
return delDeployment(deleteIds);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.getList();
|
getList();
|
||||||
this.$modal.msgSuccess("删除成功");
|
ElMessage.success("删除成功");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
defineExpose({
|
defineExpose({
|
||||||
|
@ -188,7 +188,6 @@ import { ElMessage, ElMessageBox } from "element-plus";
|
|||||||
const queryFormRef = ref();
|
const queryFormRef = ref();
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
const loading = ref(true);
|
const loading = ref(true);
|
||||||
const processLoading = ref(true);
|
|
||||||
// 选中数组
|
// 选中数组
|
||||||
const ids = ref([]);
|
const ids = ref([]);
|
||||||
// 非单个禁用
|
// 非单个禁用
|
||||||
@ -200,15 +199,10 @@ const showSearch = ref(true);
|
|||||||
// 总条数
|
// 总条数
|
||||||
const total = ref(0);
|
const total = ref(0);
|
||||||
const categoryOptions = ref([]);
|
const categoryOptions = ref([]);
|
||||||
const processTotal = ref(0);
|
|
||||||
// 我发起的流程列表数据
|
// 我发起的流程列表数据
|
||||||
const ownProcessList = ref([]);
|
const ownProcessList = ref([]);
|
||||||
// 弹出层标题
|
// 弹出层标题
|
||||||
const title = ref("");
|
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
const open = ref(false);
|
|
||||||
const src = ref("");
|
|
||||||
const definitionList = ref([]);
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
@ -229,7 +223,7 @@ const data = reactive({
|
|||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {},
|
rules: {},
|
||||||
});
|
});
|
||||||
const { queryParams, form, rules } = toRefs(data);
|
const { queryParams } = toRefs(data);
|
||||||
|
|
||||||
/** 查询流程分类列表 */
|
/** 查询流程分类列表 */
|
||||||
function getCategoryList() {
|
function getCategoryList() {
|
||||||
@ -344,21 +338,3 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<!-- <script>
|
|
||||||
export default {
|
|
||||||
name: "Own",
|
|
||||||
components: {},
|
|
||||||
data() {
|
|
||||||
return {};
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getCategoryList();
|
|
||||||
},
|
|
||||||
beforeRouteEnter(to, from, next) {
|
|
||||||
next((vm) => {
|
|
||||||
vm.getList();
|
|
||||||
});
|
|
||||||
},
|
|
||||||
methods: {},
|
|
||||||
};
|
|
||||||
</script> -->
|
|
||||||
|
@ -150,7 +150,7 @@ export default {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "@/assets/styles/mixin.scss";
|
@import "@/assets/styles/mixin.scss";
|
||||||
|
|
||||||
::v-deep .el-drawer__header {
|
:deep(.el-drawer__header) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@include action-bar;
|
@include action-bar;
|
||||||
|
@ -1425,7 +1425,7 @@ watch(
|
|||||||
.el-date-editor {
|
.el-date-editor {
|
||||||
width: 227px;
|
width: 227px;
|
||||||
}
|
}
|
||||||
::v-deep .el-icon-time {
|
:deep(.el-icon-time) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user