lxf 1 an în urmă
părinte
comite
a92b5283c7
1 a modificat fișierele cu 8 adăugiri și 38 ștergeri
  1. 8 38
      src/views/process/porcessDefinition/index.vue

+ 8 - 38
src/views/process/porcessDefinition/index.vue

@@ -1,7 +1,6 @@
 <template>
-  <div class="tenant">
-    <!-- <Banner /> -->
-    <div class="content">
+  <div>
+    <el-card class="box-card">
       <byTable
         :source="sourceList.data"
         :pagination="sourceList.pagination"
@@ -10,7 +9,6 @@
         highlight-current-row
         :selectConfig="selectConfig"
         :table-events="{
-          //element talbe事件都能传
           select: select,
         }"
         :action-list="[
@@ -24,7 +22,8 @@
           {{ item.createTime }}
         </template>
       </byTable>
-    </div>
+    </el-card>
+
     <el-dialog :title="modalType == 'add' ? '添加流程' : '编辑流程'" v-model="dialogVisible" width="400" v-loading="loading">
       <byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.data" :rules="rules" ref="byform"> </byForm>
       <template #footer>
@@ -36,14 +35,12 @@
 </template>
 
 <script setup>
-/* eslint-disable vue/no-unused-components */
-import { ElMessage, ElMessageBox } from "element-plus";
+import { ElMessage } from "element-plus";
 import byTable from "@/components/byTable/index";
 import byForm from "@/components/byForm/index";
-import { computed, defineComponent, ref } from "vue";
+import { computed, ref } from "vue";
 const loading = ref(false);
 const submitLoading = ref(false);
-const dictCommonModal = ref(false);
 const sourceList = ref({
   data: [],
   pagination: {
@@ -53,7 +50,6 @@ const sourceList = ref({
   },
 });
 let dialogVisible = ref(false);
-let roomDialogVisible = ref(false);
 let modalType = ref("add");
 let rules = ref({
   classifyName: [{ required: true, message: "请输入功能模块", trigger: "blur" }],
@@ -123,7 +119,6 @@ const config = computed(() => {
         width: "200",
         align: "right",
       },
-      // 渲染 el-button,一般用在最后一列。
       renderHTML(row) {
         return [
           {
@@ -153,9 +148,6 @@ const config = computed(() => {
     },
   ];
 });
-let dtlData = reactive({
-  data: {},
-});
 let formData = reactive({
   data: {},
   treeData: [],
@@ -167,7 +159,6 @@ const formOption = reactive({
   rules: [],
 });
 const byform = ref(null);
-const treeData = ref([]);
 const formConfig = computed(() => {
   return [
     {
@@ -200,7 +191,6 @@ const getList = async (req) => {
     }, 200);
   });
 };
-
 const openModal = () => {
   dialogVisible.value = true;
   modalType.value = "add";
@@ -209,29 +199,12 @@ const openModal = () => {
 const selection = ref({
   data: [],
 });
-const select = (_selection, row) => {
+const select = (_selection) => {
   selection.value.data = _selection;
   console.log(_selection.length);
 };
-
-const tree = ref(null);
-const submitTree = () => {
-  proxy
-    .post("/tenantInfo/bindingMenu", {
-      tenantId: selection.value.data[0].tenantId,
-      menuIdList: tree.value.getCheckedKeys(),
-    })
-    .then((res) => {
-      ElMessage({
-        message: "保存成功",
-        type: "success",
-      });
-      roomDialogVisible.value = false;
-    });
-};
-
 const submitForm = () => {
-  byform.value.handleSubmit((valid) => {
+  byform.value.handleSubmit(() => {
     submitLoading.value = true;
     proxy.post("/flowInfo/" + modalType.value, formData.data).then((res) => {
       ElMessage({
@@ -244,13 +217,11 @@ const submitForm = () => {
     });
   });
 };
-
 const getDtl = (row) => {
   formData.data = { ...row };
   modalType.value = "edit";
   dialogVisible.value = true;
 };
-
 const changeStatus = (row) => {
   modalType.value = "edit";
   proxy.post("/flowInfo/edit", { ...row, status: row.status === 0 ? 1 : 0 }).then((res) => {
@@ -261,7 +232,6 @@ const changeStatus = (row) => {
     getList();
   });
 };
-
 getList();
 </script>