xiangpei
2025-03-17 5a98e5f9ce50bb5de56a54cae14e5ea49fbe2c07
src/views/flowable/definition/model.vue
@@ -5,6 +5,7 @@
      :xml="xml"
      :is-view="false"
      @save="save"
      @update="update"
      @showXML="showXML"
    />
    <!--在线查看xml-->
@@ -17,7 +18,7 @@
  </div>
</template>
<script>
import {readXml, roleList, saveXml, userList,expList} from "@/api/flowable/definition";
import {readXml, roleList, saveXml, userList, expList, updateXml} from "@/api/flowable/definition";
import BpmnModel from '@/components/Process'
import vkBeautify from 'vkbeautify'
import hljs from 'highlight.js'
@@ -101,6 +102,21 @@
        this.$tab.closeOpenPage(obj);
      })
    },
    /** 更新xml */
    update(data) {
      const params = {
        deploymentId: this.$route.query && this.$route.query.deployId,
        name: data.process.name,
        category: data.process.category,
        xml: data.xml
      }
      updateXml(params).then(res => {
        this.$modal.msgSuccess(res.msg)
        // 关闭当前标签页并返回上个页面
        const obj = { path: "/flowable/definition", query: { t: Date.now()} };
        this.$tab.closeOpenPage(obj);
      })
    },
    /** 指定流程办理人员列表 */
    getDataList() {
      userList().then(res => {