田源
2023-04-14 6c4d4b494ef9c8fb134ece79e3993038a0358639
对象建模更新
已修改21个文件
已添加5个文件
11873 ■■■■■ 文件已修改
Source/UBCS-WEB/package-lock.json 9926 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/public/index.html 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/api/system/role.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/api/work/process.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/api/work/work.js 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/config/website.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/const/tool/model.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/main.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/mock/param.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/option/user/info.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/page/index/top/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/modeling/Business.vue 505 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/modeling/Businpackage.vue 116 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/modeling/Relationpackage.vue 101 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/modeling/Relations.vue 236 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/modeling/Torelationpackage.vue 101 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/modeling/Versionpackage.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/modeling/cycle.vue 225 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/modeling/enumeration.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/modeling/original.vue 364 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/modeling/originalLink.vue 95 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/modeling/originalRange.vue 121 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/report/reportlist.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/resource/oss.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/tool/code.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/vue.config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/package-lock.json
ÎļþÌ«´ó
Source/UBCS-WEB/public/index.html
@@ -18,6 +18,7 @@
  <link rel="stylesheet" href="<%= BASE_URL %>cdn/avue/2.9.12/index.css">
  <script src="<%= BASE_URL %>cdn/xlsx/FileSaver.min.js"></script>
  <script src="<%= BASE_URL %>cdn/xlsx/xlsx.full.min.js"></script>
  <script src="https://cdn.staticfile.org/jsPlumb/2.11.1/js/jsplumb.min.js"></script>
  <link rel="icon" href="<%= BASE_URL %>favicon.png">
  <title>ubcs企业平台</title>
  <style>
Source/UBCS-WEB/src/api/system/role.js
@@ -43,7 +43,7 @@
export const add = (row) => {
  return request({
    url: '/api/ubcs-system/role/submit',
    url: '/api/blade-system/role/submit',
    method: 'post',
    data: row
  })
Source/UBCS-WEB/src/api/work/process.js
@@ -4,7 +4,7 @@
export const historyFlowList = (processInstanceId) => {
  return request({
    url: '/api/ubcs-flow/process/history-flow-list',
    url: '/api/blade-flow/process/history-flow-list',
    method: 'get',
    params: {
      processInstanceId
@@ -17,7 +17,7 @@
export const leaveProcess = (data) => {
  return request({
    url: '/api/ubcs-desk/process/leave/start-process',
    url: '/api/blade-desk/process/leave/start-process',
    method: 'post',
    data
  })
@@ -25,7 +25,7 @@
export const leaveDetail = (businessId) => {
  return request({
    url: '/api/ubcs-desk/process/leave/detail',
    url: '/api/blade-desk/process/leave/detail',
    method: 'get',
    params: {
      businessId
Source/UBCS-WEB/src/api/work/work.js
@@ -2,7 +2,7 @@
export const startList = (current, size, params) => {
  return request({
    url: '/api/ubcs-flow/work/start-list',
    url: '/api/blade-flow/work/start-list',
    method: 'get',
    params: {
      ...params,
@@ -14,7 +14,7 @@
export const claimList = (current, size, params) => {
  return request({
    url: '/api/ubcs-flow/work/claim-list',
    url: '/api/blade-flow/work/claim-list',
    method: 'get',
    params: {
      ...params,
@@ -26,7 +26,7 @@
export const todoList = (current, size, params) => {
  return request({
    url: '/api/ubcs-flow/work/todo-list',
    url: '/api/blade-flow/work/todo-list',
    method: 'get',
    params: {
      ...params,
@@ -38,7 +38,7 @@
export const sendList = (current, size, params) => {
  return request({
    url: '/api/ubcs-flow/work/send-list',
    url: '/api/blade-flow/work/send-list',
    method: 'get',
    params: {
      ...params,
@@ -51,7 +51,7 @@
export const doneList = (current, size, params) => {
  return request({
    url: '/api/ubcs-flow/work/done-list',
    url: '/api/blade-flow/work/done-list',
    method: 'get',
    params: {
      ...params,
@@ -63,7 +63,7 @@
export const claimTask = (taskId) => {
  return request({
    url: '/api/ubcs-flow/work/claim-task',
    url: '/api/blade-flow/work/claim-task',
    method: 'post',
    params: {
      taskId
@@ -74,7 +74,7 @@
export const completeTask = (data) => {
  return request({
    url: '/api/ubcs-flow/work/complete-task',
    url: '/api/blade-flow/work/complete-task',
    method: 'post',
    data
  })
Source/UBCS-WEB/src/config/website.js
@@ -42,7 +42,7 @@
    }
  },
  // ç¬¬ä¸‰æ–¹ç³»ç»ŸæŽˆæƒåœ°å€
  authUrl: 'http://localhost/ubcs-auth/oauth/render',
  authUrl: 'http://localhost/blade-auth/oauth/render',
  // æŠ¥è¡¨è®¾è®¡å™¨åœ°å€(cloud端口为8108,boot端口为80)
  reportUrl: 'http://localhost:8108/ureport',
  // å•点登录系统认证(blade-auth服务的地)
Source/UBCS-WEB/src/const/tool/model.js
@@ -150,7 +150,7 @@
      search: true,
      span: 24,
      type: "select",
      dicUrl: "/api/ubcs-develop/datasource/select",
      dicUrl: "/api/blade-develop/datasource/select",
      props: {
        label: "name",
        value: "id"
@@ -288,7 +288,7 @@
    label: '字典编码',
    prop: 'dictCode',
    type: "select",
    dicUrl: "/api/ubcs-system/dict/select",
    dicUrl: "/api/blade-system/dict/select",
    props: {
      label: "dictValue",
      value: "code"
Source/UBCS-WEB/src/main.js
@@ -27,6 +27,11 @@
import tenantPackage from './views/system/tenantpackage';
import enupackage from "@/views/modeling/enupackage";
import Versionpackage from "@/views/modeling/Versionpackage";
import Businpackage from "@/views/modeling/Businpackage";
import Relationpackage from "@/views/modeling/Relationpackage"
import Torelationpackage from "@/views/modeling/Torelationpackage"
import originalRange from "@/views/modeling/originalRange"
import originalLink from "@/views/modeling/originalLink"
// æ³¨å†Œå…¨å±€crud驱动
window.$crudCommon = crudCommon;
// åŠ è½½Vue拓展
@@ -50,6 +55,11 @@
Vue.component('tenantPackage', tenantPackage);
Vue.component('enupackage',enupackage)
Vue.component('Versionpackage',Versionpackage)
Vue.component('Businpackage',Businpackage)
Vue.component('Relationpackage',Relationpackage)
Vue.component('Torelationpackage',Torelationpackage)
Vue.component('originalRange',originalRange)
Vue.component('originalLink',originalLink)
// åŠ è½½ç›¸å…³url地址
Object.keys(urls).forEach(key => {
  Vue.prototype[key] = urls[key];
Source/UBCS-WEB/src/mock/param.js
@@ -48,12 +48,12 @@
export default ({mock}) => {
  if (!mock) return;
  Mock.mock(/\/api\/ubcs-system\/param\/list/, 'get', getFakeList);
  Mock.mock(/\/api\/blade-system\/param\/list/, 'get', getFakeList);
  Mock.mock(/\/api\/ubcs-system\/param\/detail/, 'get', getFakeDetail);
  Mock.mock(/\/api\/blade-system\/param\/detail/, 'get', getFakeDetail);
  Mock.mock(/\/api\/ubcs-system\/param\/submit/, 'post', fakeSuccess);
  Mock.mock(/\/api\/blade-system\/param\/submit/, 'post', fakeSuccess);
  Mock.mock(/\/api\/ubcs-system\/param\/remove/, 'post', fakeSuccess);
  Mock.mock(/\/api\/blade-system\/param\/remove/, 'post', fakeSuccess);
}
Source/UBCS-WEB/src/option/user/info.js
@@ -17,7 +17,7 @@
          text: ' ',
          ratio: 0.1
        },
        action: '/api/ubcs-resource/oss/endpoint/put-file',
        action: '/api/blade-resource/oss/endpoint/put-file',
        tip: '只能上传jpg/png用户头像,且不超过500kb',
        span: 12,
        row: true,
Source/UBCS-WEB/src/page/index/top/index.vue
@@ -222,10 +222,10 @@
      switchDept() {
        const userId = this.userInfo.user_id;
        const deptColumn = this.findObject(this.userOption.column, "deptId");
        deptColumn.dicUrl = `/api/ubcs-system/dept/select?userId=${userId}`;
        deptColumn.dicUrl = `/api/blade-system/dept/select?userId=${userId}`;
        deptColumn.display = true;
        const roleColumn = this.findObject(this.userOption.column, "roleId");
        roleColumn.dicUrl = `/api/ubcs-system/role/select?userId=${userId}`;
        roleColumn.dicUrl = `/api/blade-system/role/select?userId=${userId}`;
        roleColumn.display = true;
        this.userBox = true;
      },
Source/UBCS-WEB/src/views/modeling/Business.vue
@@ -1,111 +1,434 @@
<template>
  <el-container>
    <el-aside width="240px">
      <basic-container>
        <avue-tree id="basic" :data="treeData" :option="treeOption" @node-click="nodeClick">
        </avue-tree>
      </basic-container>
    </el-aside>
    <el-main>
      <!--        åŸºæœ¬ä¿¡æ¯-->
      <basic-container>
        <p style="margin-top: 10px;font-weight: 570;font-size: 19px">基本信息</p>
        <avue-crud
          v-model="objs"
          :data="basicData"
          :option="basicOption"
          @row-save="basicSave"
        >
          <!--           ç‰ˆæœ¬è§„则-->
          <template slot="rulesForm" slot-scope="{disabled,size}">
  <div>
    <avue-form :model="form" :rules="rules">
      <avue-form-item label="姓名" prop="name">
        <el-input v-model="form.name"></el-input>
      </avue-form-item>
      <avue-form-item label="学历" prop="education">
        <el-select v-model="form.education" placeholder="请选择">
          <el-option label="博士" value="博士"></el-option>
          <el-option label="硕士" value="硕士"></el-option>
          <el-option label="本科" value="本科"></el-option>
          <el-option label="大专" value="大专"></el-option>
          <el-option label="中专" value="中专"></el-option>
              <el-input v-if="rulesFalg==false" v-model="objs.tex" :size="size" placeholder="请输入版本号规则"
                        style="width: 290px"></el-input>
              <el-select v-if="rulesFalg" v-model="objs.select" placeholder="请选择版本号规则" style="max-width: 300px">
                <el-option label="测试1" value="1"></el-option>
                <el-option label="测试2" value="2"></el-option>
                <el-option label="测试3" value="3"></el-option>
        </el-select>
      </avue-form-item>
      <avue-form-item label="工作经历">
        <table class="table">
          <thead>
          <tr>
            <th>公司</th>
            <th>职位</th>
            <th>起止时间</th>
          </tr>
          </thead>
          <tbody>
          <tr v-for="(item, index) in form.workExperience" :key="index">
            <td>
              <el-input v-model="item.company"></el-input>
            </td>
            <td>
              <el-input v-model="item.position"></el-input>
            </td>
            <td>
              <el-date-picker
                v-model="item.dateRange"
                range-separator="至"
                type="daterange"
                start-placeholder="开始日期"
                end-placeholder="结束日期"
                format="yyyy-MM-dd"
              ></el-date-picker>
            </td>
          </tr>
          </tbody>
        </table>
      </avue-form-item>
    </avue-form>
              <el-button style="margin-bottom: 5px;margin-left: 10px" type="primary" @click="handelRules">
                {{ rulesFalg == false ? "选择版本号规则" : "手动输入" }}
              </el-button>
  </div>
</template>
          <!--            ç”Ÿå‘½å‘¨æœŸ-->
          <template slot="lifeCycleForm">
            <el-select v-model="objs.select" placeholder="请选择生命周期" style="max-width: 300px">
              <el-option label="测试1" value="1"></el-option>
              <el-option label="测试2" value="2"></el-option>
              <el-option label="测试3" value="3"></el-option>
            </el-select>
            <el-button style="margin-bottom: 5px;display: inline-block;margin-left: 10px" type="primary"
                       @click="handelLife">生命周期列表
            </el-button>
          </template>
        </avue-crud>
        <el-dialog :visible.sync="packageLifeBox"
                   append-to-body
                   title="查看使用范围"
                   width="1000px">
          <Businpackage></Businpackage>
          <span slot="footer" class="dialog-footer">
            <el-button @click="dialoghandelfalse">取 æ¶ˆ</el-button>
            <el-button type="primary" @click="dialoghandeltrue">ç¡® å®š</el-button>
  </span>
        </el-dialog>
      </basic-container>
      <!--        å±žæ€§åˆ—表-->
      <basic-container>
        <p style="margin-top: 10px;font-weight: 570;font-size: 19px">属性列表</p>
        <avue-crud
          v-model="obj"
          :data="loadData"
          :option="loadOption"
          @row-save="loadSave"
        ></avue-crud>
      </basic-container>
    </el-main>
  </el-container>
</template>
<script>
export default {
  name: "Business",
  data(){
    return {
      form: {
        name: "",
        education: "",
        workExperience: [
          { company: "", position: "", dateRange: [] },
          { company: "", position: "", dateRange: [] },
        ],
      //生命周期对话框状态
      packageLifeBox: false,
      //版本规则状态
      rulesFalg: false,
      obj: {},
      treeData: [{
        value: 0,
        label: '业务类型树',
        children: [
          {
            value: 1,
            label: 'A',
      },
      rules: {
        name: [{ required: true, message: "请输入姓名", trigger: "blur" }],
        education: [{ required: true, message: "请选择学历", trigger: "change" }],
        "workExperience.0.company": [
          { required: true, message: "请输入公司名称", trigger: "blur" },
        ],
        "workExperience.0.position": [
          { required: true, message: "请输入职位名称", trigger: "blur" },
        ],
        "workExperience.0.dateRange": [
          { required: true, message: "请选择起止时间", trigger: "change" },
        ],
        "workExperience.1.company": [
          { required: true, message: "请输入公司名称", trigger: "blur" },
        ],
        "workExperience.1.position": [
          { required: true, message: "请输入职位名称", trigger: "blur" },
        ],
        "workExperience.1.dateRange": [
          { required: true, message: "请选择起止时间", trigger: "change" },
        ],
          {
            value: 2,
            label: 'B',
      },
          {
            value: 3,
            label: 'C',
          },
          {
            value: 4,
            label: 'D',
          },
          {
            value: 5,
            label: 'E',
    }
        ]
      }],
      treeOption: {
        defaultExpandAll: true,
      },
      loadData: [],
      loadData1: [
        {
          name: '张三',
          business: '测试',
          attrType: "测试",
          default: "测试",
          explain: "测试说明"
        },
        {
          name: '李四',
          business: '测试',
          attrType: "测试",
          default: "测试",
          explain: "测试说明"
        }
      ],
      loadData2: [
        {
          name: '王五',
          business: '测试',
          attrType: "测试",
          default: "测试",
          explain: "测试说明"
        },
        {
          name: '宋六',
          business: '测试',
          attrType: "测试",
          default: "测试",
          explain: "测试说明"
        }
      ],
      loadOption: {
        border: true,
        height: 422,
        editBtn: false,
        column: [
          {
            label: '属性名',
            prop: 'name'
          },
          {
            label: '业务类型',
            prop: 'business'
          },
          {
            label: "属性类型",
            prop: "attrType"
          },
          {
            label: "默认值",
            prop: "default",
          },
          {
            label: "说明",
            prop: "explain"
          }
        ]
      },
      //基本信息
      objs: {
        tex: "",
        select: "",
        lifeTex: ""
      },
      basicData: [],
      basicData1: [
        {
          typeName: "测试1",
          tag: "客户",
          inherit: "测试",
          implement: "测试",
          lifeCycle: "周期",
          desc: "这是一个描述"
        }
      ],
      basicData2: [
        {
          typeName: "测试2",
          tag: "客户",
          inherit: "测试",
          implement: "测试",
          lifeCycle: "周期",
          desc: "这是一个描述"
        }
      ],
      basicOption: {
        border: true,
        height: 88,
        tabs: true,
        column: [
          {
            label: "类型名称",
            prop: "typeName",
            display: false
          },
          {
            label: "标签",
            prop: "tag",
            display: false
          },
          {
            label: "继承自",
            prop: "inherit",
            display: false
          },
          {
            label: "实现类",
            prop: "implement",
            display: false
          },
          {
            label: "描述",
            prop: "desc",
            display: false
          }
        ],
        group: [
          {
            label: "基本信息",
            column: [
              {
                label: "类型名称",
                prop: "typeName"
              },
              {
                label: "标签",
                prop: "tag"
              },
              {
                label: "继承自",
                prop: "inherit"
              },
              {
                label: "是否实例化",
                prop: "case",
                type: "switch",
                align: "center",
                hide: true,
                labelWidth: 90,
                dicData: [
                  {
                    label: "否",
                    value: 0
                  },
                  {
                    label: "是",
                    value: 1
                  }
                ],
              },
              {
                label: "描述",
                prop: "desc",
                type: "textarea"
              },
              {
                label: "实现类",
                prop: "implement"
              },
            ]
          },
          {
            label: "版本规则",
            column: [
              {
                label: '版本规则',
                prop: 'radio',
                type: 'radio',
                button: true,
                change: this.radioChange,
                value: 0,
                dicData: [{
                  label: '不可修订',
                  value: 0
                }, {
                  label: '采用一级版本管理',
                  value: 1
                }, {
                  label: '采用二级版本管理',
                  value: 2
                }]
              },
              {
                label: "版本号规则",
                prop: "rules",
                display: true,
                formslot: true,
              },
              {
                label: "分隔符",
                prop: "interval",
                type: "select",
                display: true,
                dicData: [
                  {
                    label: ".",
                    value: 0
                  },
                  {
                    label: "-",
                    value: 1
                  },
                  {
                    label: " ",
                    value: 2
                  }
                ]
              },
              {
                label: '版次号规则',
                prop: 'radioRules',
                type: 'radio',
                display: true,
                dicData: [{
                  label: '1.2.3...',
                  value: 0
                }, {
                  label: 'a.b.c...',
                  value: 1
                }, {
                  label: '0.1.2...',
                  value: 2
                }]
              },
            ]
          },
          {
            label: "生命周期",
            column: [
              {
                label: "生命周期",
                prop: "lifeCycle"
              }
            ]
          }
        ]
      },
    }
  },
  created() {
    this.loadData = this.loadData1;
    this.basicData = this.basicData1
  },
  methods: {
    //生命周期对话框取消点击事件
    dialoghandelfalse() {
      this.packageLifeBox = false
    },
    //生命周期对话框确定点击事件
    dialoghandeltrue() {
      this.packageLifeBox = false
    },
    //选择生命周期对话框
    handelLife() {
      this.packageLifeBox = true
    },
    //版本规则手动输入和选择框的状态取反
    handelRules() {
      this.rulesFalg = !this.rulesFalg
    },
    //版本规则三个按钮的显示隐藏
    radioChange(val) {
      if (val.value == 0) {
        this.basicOption.group[1].column[1].display = false;
        this.basicOption.group[1].column[2].display = false;
        this.basicOption.group[1].column[3].display = false;
      } else if (val.value == 1) {
        this.basicOption.group[1].column[1].display = true;
        this.basicOption.group[1].column[2].display = true;
        this.basicOption.group[1].column[3].display = false;
      } else if (val.value == 2) {
        this.basicOption.group[1].column[1].display = true;
        this.basicOption.group[1].column[2].display = true;
        this.basicOption.group[1].column[3].display = true;
      }
    },
    nodeClick(data) {
      if (data.value == 1) {
        this.loadData = this.loadData1;
        this.basicData = this.basicData1
      } else if (data.value == 2) {
        this.loadData = this.loadData2;
        this.basicData = this.basicData2
      }
      this.$message.success(JSON.stringify(data))
    }
  },
//  åŸºæœ¬ä¿¡æ¯æ·»åŠ 
  basicSave(row, done, loading) {
    add(Object.assign({
      createUser: this.userInfo.name
    }, row)).then(() => {
      this.$message.success('新增成功')
      done();
      this.getList();
    }).catch(() => {
      loading()
    })
  },
  //属性添加
  loadSave(row, done, loading) {
    add(Object.assign({
      createUser: this.userInfo.name
    }, row)).then(() => {
      this.$message.success('新增成功')
      done();
      this.getList();
    }).catch(() => {
      loading()
    })
  }
}
</script>
<style scoped>
.table {
  width: 100%;
  border-collapse: collapse;
<style lang="scss">
#basic {
  height: 770px;
  border-radius: 10px;
}
.table th,
.table td {
  padding: 10px;
  border: 1px solid #ccc;
}
.table th {
  background-color: #f0f0f0;
  font-weight: bold;
}
</style>
Source/UBCS-WEB/src/views/modeling/Businpackage.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,116 @@
<<template>
  <basic-container>
    <avue-crud ref="crud"
               v-model="form"
               :data="data"
               :option="option"
               @on-load="getList"
               @row-del="rowDel"
               @refresh-change="refreshChange"
               @search-change="searchChange"
               @row-click="handleRowClick"
    >
      <template slot="menuLeft">
        <span>当前选择生命周期:{{this.lifeList}}</span>
      </template>
    </avue-crud>
    <div></div>
<!--    <el-button >取 æ¶ˆ</el-button>-->
<!--    <el-button type="primary" >ç¡® å®š</el-button>-->
  </basic-container>
</template>
<script>
export default {
  name: "Businpackage.vue",
  data(){
    return {
      lifeList:"",
      data:[
        {
          name:"测试1",
        },
        {
          name:"测试2",
        },
        {
          name:"测试3",
        },
        {
          name:"测试4",
        },
      ],
      form:{},
      option:{
        height:300,
        headerAlign:'center',
        align: 'center',
        border: true,
        editBtn:false,
        index: true,
        searchMenuSpan:8,
        searchSpan:9,
        searchBtnText:'查找',
        searchLabelWidth:100,
        addBtn:false,
        indexFixed:false,
        menuFixed:false,
        column:[
          {
            label:"生命周期名称",
            prop:"name",
            search:true,
            searchWidth:170
          },
        ]
      }
    }
  },
  methods:{
    handleRowClick(val){
      console.log(val)
      this.lifeList=val.name
    },
    // getList () {
    //   this.loading = true;
    //   const data = Object.assign({
    //     pageNum: this.page.currentPage,
    //     pageSize: this.page.pageSize,
    //   }, this.params)
    //   this.data = [];
    //   getList(data).then(res => {
    //     const data = res.data.data
    //     this.loading = false;
    //     this.page.total = data.total;
    //     const result = data.list;
    //     this.data = result;
    //   })
    // },
    //搜索
    searchChange(params, done) {
      if (done) done();
      this.params = params;
      this.page.currentPage = 1;
      this.getList();
      this.$message.success('搜索成功')
    },
    rowDel(row) {
      this.$confirm('此操作将永久删除, æ˜¯å¦ç»§ç»­?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        return del(row.id)
      }).then(() => {
        this.$message.success('删除成功')
        this.getList();
      })
    },
  }
}
</script>
<style scoped>
</style>
Source/UBCS-WEB/src/views/modeling/Relationpackage.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,101 @@
<<template>
  <basic-container>
    <avue-crud ref="crud"
               v-model="form"
               :data="data"
               :option="option"
               @on-load="getList"
               @row-del="rowDel"
               @refresh-change="refreshChange"
               @row-save="rowSave"
    >
    </avue-crud>
  </basic-container>
</template>
<script>
export default {
  name: "Relationpackage.vue",
  data(){
    return {
      lifeList:"",
      data:[
        {
          name:"测试1",
        },
        {
          name:"测试2",
        },
        {
          name:"测试3",
        },
        {
          name:"测试4",
        },
      ],
      form:{},
      option:{
        height:300,
        headerAlign:'center',
        align: 'center',
        border: true,
        editBtn:false,
        index: true,
        indexFixed:false,
        menuFixed:false,
        column:[
          {
            label:"Form端类型",
            prop:"name",
          },
        ]
      }
    }
  },
  methods:{
    // getList () {
    //   this.loading = true;
    //   const data = Object.assign({
    //     pageNum: this.page.currentPage,
    //     pageSize: this.page.pageSize,
    //   }, this.params)
    //   this.data = [];
    //   getList(data).then(res => {
    //     const data = res.data.data
    //     this.loading = false;
    //     this.page.total = data.total;
    //     const result = data.list;
    //     this.data = result;
    //   })
    // },
    //搜索
    rowSave(row, done, loading) {
      add(Object.assign({
        createUser: this.userInfo.name
      }, row)).then(() => {
        this.$message.success('新增成功')
        done();
        this.getList();
      }).catch(() => {
        loading()
      })
    },
    rowDel(row) {
      this.$confirm('此操作将永久删除, æ˜¯å¦ç»§ç»­?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        return del(row.id)
      }).then(() => {
        this.$message.success('删除成功')
        this.getList();
      })
    },
  }
}
</script>
<style scoped>
</style>
Source/UBCS-WEB/src/views/modeling/Relations.vue
@@ -1,13 +1,241 @@
<template>
<p>对象关系类型</p>
  <el-container>
    <el-aside width="240px">
      <basic-container >
        <avue-tree id="basic" :data="treeData" :option="treeOption" @node-click="nodeClick"></avue-tree>
      </basic-container>
    </el-aside>
    <el-main>
      <basic-container>
        <p style="margin-top: 10px;font-weight: 570;font-size: 19px">链接类型列表</p>
        <avue-crud
          v-model="obj"
          :data="loadData"
          :option="loadOption"
        >
          <template slot-scope="scope" slot="defaultForm">
            <Relationpackage></Relationpackage>
          </template>
          <template slot-scope="scope" slot="TodefaultForm">
            <Torelationpackage></Torelationpackage>
          </template>
        </avue-crud>
      </basic-container>
      <basic-container>
        <p style="margin-top: 10px;font-weight: 570;font-size: 19px">属性列表</p>
        <avue-crud
        v-model="objs"
        :data="attrData"
        :option="attrOption"
        >
        </avue-crud>
      </basic-container>
    </el-main>
  </el-container>
</template>
<script>
export default {
  name: "Relations"
  name: "Relations",
  data() {
    return {
      //  å·¦æ ‘数据
      treeOption: {
        defaultExpandAll: true,
      },
      treeData: [
        {
          value: 0,
          label: '链接类型列表',
          children: [
            {
              value: 1,
              label: 'input',
            },
            {
              value: 2,
              label: 'checkbox',
            },
          ]
        }
      ],
      //  å³ä¾§è¡¨æ ¼åŸºæœ¬ä¿¡æ¯æ•°æ®
      obj: {},
      loadData: [],
      loadOption: {
        border: true,
        editBtn: false,
        height: 200,
        tabs:true,
        column: [
          {
            label: "名称",
            prop: "name",
            display:false
          },
          {
            label: "标签",
            prop: "tag",
            display:false
          },
          {
            label: "形状",
            prop: "shape",
            display:false
          },
          {
            label: "描述",
            prop: "desc",
            display:false
          },
          {
            label: "Form端类型",
            prop: "FormType",
            display:false
          },
          {
            label: "To端类型",
            prop: "ToType",
            display:false
          }
        ],
        group:[
          {
            label:"链接类型",
            column:[
              {
                label: "名称",
                prop: "name"
              },
              {
                label: "标签",
                prop: "tag"
              },
              {
                label: "形状",
                prop: "shape"
              },
              {
                label: "描述",
                prop: "desc"
              },
            ]
          },
          {
            label: "Form端类型",
            column: [
              {
                label: "主类型",
                type:"select",
                prop:"PrimType",
                dicData:[
                  {
                    label:"测试1",
                    value:0
                  },
                  {
                    label:"测试2",
                    value:1
                  }
                ]
              },
              {
                type:"radio",
                prop:"primRadio",
                dicData:[
                  {
                    label:"N",
                    value:0
                  },
                  {
                    label:"1",
                    value:1
                  }
                ]
              },
              {
                //默认插槽
                prop:"default",
                span:24,
                labelWidth:5
              }
            ]
          },
          {
            label: "To端类型",
            column: [
              {
                label: "主类型",
                type:"select",
                prop:"toType",
                dicData:[
                  {
                    label:"测试1",
                    value:0
                  },
                  {
                    label:"测试2",
                    value:1
                  }
                ]
              },
              {
                type:"radio",
                prop:"toRadio",
                dicData:[
                  {
                    label:"N",
                    value:0
                  },
                  {
                    label:"1",
                    value:1
                  }
                ]
              },
              {
                //默认插槽
                prop:"Todefault",
                span:24,
                labelWidth:5
              }
            ]
          }
        ]
      },
    //  å³ä¾§åº•部数据列表数据
      objs:{},
      attrData:[],
      attrOption:{
        height: 310,
        border: true,
        column: [
          {
            label:"属性名",
            prop:"attrName"
          },
          {
            label:"属性类型",
            prop:"attrType"
          },
          {
            label: "初始值",
            prop:"Invalue"
          },
          {
            label: "说明",
            prop:"explain"
          }
        ]
      }
    }
  }
}
</script>
<style scoped>
<style lang="scss">
#basic {
  height: 770px;
  border-radius: 10px;
}
</style>
Source/UBCS-WEB/src/views/modeling/Torelationpackage.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,101 @@
<<template>
  <basic-container>
    <avue-crud ref="crud"
               v-model="form"
               :data="data"
               :option="option"
               @on-load="getList"
               @row-del="rowDel"
               @refresh-change="refreshChange"
               @row-save="rowSave"
    >
    </avue-crud>
  </basic-container>
</template>
<script>
export default {
  name: "Torelationpackage.vue",
  data(){
    return {
      lifeList:"",
      data:[
        {
          name:"测试1",
        },
        {
          name:"测试2",
        },
        {
          name:"测试3",
        },
        {
          name:"测试4",
        },
      ],
      form:{},
      option:{
        height:300,
        headerAlign:'center',
        align: 'center',
        border: true,
        editBtn:false,
        index: true,
        indexFixed:false,
        menuFixed:false,
        column:[
          {
            label:"To端类型",
            prop:"name",
          },
        ]
      }
    }
  },
  methods:{
    // getList () {
    //   this.loading = true;
    //   const data = Object.assign({
    //     pageNum: this.page.currentPage,
    //     pageSize: this.page.pageSize,
    //   }, this.params)
    //   this.data = [];
    //   getList(data).then(res => {
    //     const data = res.data.data
    //     this.loading = false;
    //     this.page.total = data.total;
    //     const result = data.list;
    //     this.data = result;
    //   })
    // },
    //搜索
    rowSave(row, done, loading) {
      add(Object.assign({
        createUser: this.userInfo.name
      }, row)).then(() => {
        this.$message.success('新增成功')
        done();
        this.getList();
      }).catch(() => {
        loading()
      })
    },
    rowDel(row) {
      this.$confirm('此操作将永久删除, æ˜¯å¦ç»§ç»­?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        return del(row.id)
      }).then(() => {
        this.$message.success('删除成功')
        this.getList();
      })
    },
  }
}
</script>
<style scoped>
</style>
Source/UBCS-WEB/src/views/modeling/Versionpackage.vue
@@ -71,7 +71,21 @@
    }
  },
  methods:{
    // getList () {
    //   this.loading = true;
    //   const data = Object.assign({
    //     pageNum: this.page.currentPage,
    //     pageSize: this.page.pageSize,
    //   }, this.params)
    //   this.data = [];
    //   getList(data).then(res => {
    //     const data = res.data.data
    //     this.loading = false;
    //     this.page.total = data.total;
    //     const result = data.list;
    //     this.data = result;
    //   })
    // },
    //搜索
    searchChange(params, done) {
      if (done) done();
Source/UBCS-WEB/src/views/modeling/cycle.vue
@@ -1,13 +1,45 @@
<template>
  <div>
  <p>生命周期模型</p>
  <el-button @click="tabs=!tabs">转化</el-button><br /><br />
  <avue-form @tab-click="handleTabClick" :option="option" v-model="form" @submit="handleSubmit">
    <template slot="group1Header">
      <h4>自定义表头</h4>
  <el-container>
  <el-aside width="240px">
    <basic-container style="margin-top: 10px">
      <avue-tree id="basic" :data="treeData" :option="treeOption" @node-click="nodeClick"  >
      </avue-tree>
    </basic-container>
  </el-aside>
  <basic-container >
    <el-button type="primary" @click="dialogTableVisible=true" size="small">创建模板</el-button>
    <el-button type="primary"  size="small">编辑模板</el-button>
    <el-button type="primary" size="small" @click="$refs.flow.addNode('测试节点')">添加节点</el-button>
    <br/><br/>
    <avue-flow ref="flow" v-model="form" :height="703" :option="option" :width="1500">
      <template slot="header" slot-scope="scope">
        <i class="el-icon-delete" @click="$refs.flow.deleteNode(scope.node.id)" style="margin-top: 8px"></i>
      </template>
      <div slot-scope="{node}">
        <span>自定义{{ (node || {}).name }}</span>
      </div>
    </avue-flow>
    <!--    åˆ›å»ºå¯¹è¯æ¡†-->
    <el-dialog title="创建模板" :visible.sync="dialogTableVisible" append-to-body>
      <avue-form :data="addData" :option="addoption" v-model="forms">
        <template slot="filetype">
          <el-select v-model="forms.select" slot="prepend" placeholder="请选择" style="max-width: 300px">
            <el-option label="测试1" value="1"></el-option>
            <el-option label="测试2" value="2"></el-option>
            <el-option label="测试3" value="3"></el-option>
          </el-select>
          <el-button  type="primary" @click="handelLife" style="display: inline-block;margin-left: 5px">
            æ·»åŠ èµ·å§‹çŠ¶æ€
          </el-button>
    </template>
  </avue-form>
  </div>
    </el-dialog>
  </basic-container>
  </el-container>
</template>
<script>
@@ -15,52 +47,155 @@
  name: "cycle.vue",
  data(){
    return{
      tabs:true,
      form:{
        text:'文本',
        text1:'文本1',
        text2:'文本2',
        text3:'文本3',
      //模板对话框
      dialogTableVisible:false,
      forms:{
        select:""
      },
    }
  },
  computed:{
    option(){
      return{
        tabs:this.tabs,
        tabsActive:2,
        column: [{
          label: '内容1',
          prop: 'text1',
        }],
        group:[
      addData:[],
      addoption:{
        formslot:true,
        column:[
          {
            icon:'el-icon-info',
            label: '分组1',
            prop: 'group1',
            column: [{
              label: '内容1',
              prop: 'text1',
            }]
          },{
            icon:'el-icon-info',
            label: '分组2',
            prop: 'group2',
            column: [{
              label: '选项卡2',
              prop: 'text2',
            }, {
              label: '选项卡3',
              prop: 'text3',
            }]
            label:"名称",
            prop:"name"
          },
          {
            label:"标签",
            prop:"tag"
          },
          {
            label:"起始状态",
            prop:"filetype",
            formslot: true,
            span:24
            // type:"select",
            // dicData:[
            //   {
            //     label:"测试1",
            //     value:0
            //   },
            //   {
            //     label:"测试2",
            //     value:1
            //   },
            //   {
            //     label:"测试3",
            //     value:2
            //   },
            // ]
          },
          {
            label: "描述",
            prop:"desc",
            type:"textarea",
            span:13
          }
        ]
      },
      count: 0,
      form: {},
      treeData: [{
        value: 0,
        label: '生命周期模板列表',
        children: [
          {
            value: 1,
            label: 'A',
          },
          {
            value: 2,
            label: 'B',
          },
          {
            value: 3,
            label: 'C',
          },
          {
            value: 4,
            label: 'D',
          },
          {
            value: 5,
            label: 'E',
          }
        ]
      }],
      treeOption: {
        defaultExpandAll: true,
      },
      option: {
        "nodeList": [
          {
            "id": "nodeA",
            "name": "流程A-节点A",
            "left": 39,
            "top": 110,
          },
          {
            "id": "nodeB",
            "name": "流程A-节点B",
            "left": 340,
            "top": 161,
          },
          {
            "id": "nodeC",
            "name": "流程A-节点C",
            "left": 739,
            "top": 161,
          },
          {
            "id": "nodeD",
            "name": "节点D",
            "left": 739,
            "top": 20,
          }
        ],
        "lineList": [
          {
            "from": "nodeA",
            "to": "nodeB"
          },
          {
            "from": "nodeB",
            "to": "nodeC"
          },
          {
            "from": "nodeC",
            "to": "nodeD"
          }
        ]
      },
      computed: {
        nodeList() {
          return this.option.nodeList
        }
      },
      mounted() {
        this.form = this.nodeList[this.count].id;
      },
      methods: {
        handleClick(node) {
          this.$message.success(JSON.stringify(node))
          console.log(node)
        },
        addHandler(){
          this.dialogTableVisible=true
          console.log(1)
        },
        deleteNode(id){
          console.log(id)
        }
      }
    }
  }
}
</script>
<style scoped>
<style lang="scss">
#basic {
  height: 761px;
  border-radius: 10px;
}
</style>
Source/UBCS-WEB/src/views/modeling/enumeration.vue
@@ -57,7 +57,7 @@
        index: true,
        tabs:true,
        rowKey:'id',
        searchMenuSpan:8,
        searchMenuSpan:4,
        column:[
          {
            label:"枚举名称",
Source/UBCS-WEB/src/views/modeling/original.vue
@@ -1,81 +1,35 @@
<template>
  <basic-container>
    <avue-crud v-model="form" :option="option" :data="data" ref="crud"   :before-open="beforeOpen" @on-load="onLoad" @row-save="rowSave" @row-update="rowUpdate" @row-del="rowDel" :page.sync="page">
      <template slot-scope="{row,index,type}" slot="hideboxForm">
        <avue-form :option="option.codomainoption"></avue-form>
        <div v-if="tablefalge">
          <el-input style="width: 140px;margin-left: 300px"></el-input>
          <el-button style="margin-left: 15px" type="primary">搜索</el-button>
          <el-table
            ref="multipleTable"
            :data="tableData"
            tooltip-effect="dark"
            style="width: 100%"
            max-height="510"
            @selection-change="handleSelectionChange">
            <el-table-column
              type="selection"
              width="55">
            </el-table-column>
            <el-table-column
              prop="name"
              label="业务类型名"
            >
            </el-table-column>
            <el-table-column
              prop="label"
              label="标签"
              show-overflow-tooltip>
            </el-table-column>
            <el-table-column
              prop="father"
              label="父类"
              show-overflow-tooltip>
            </el-table-column>
            <el-table-column
              prop="rules"
              label="版本规则"
              show-overflow-tooltip>
            </el-table-column>
            <el-table-column
              prop="cycle"
              label="生命周期"
              show-overflow-tooltip>
            </el-table-column>
          </el-table>
          <el-button style="margin-left: 320px;margin-top: 13px" type="primary">确定</el-button>
          <el-button>取消</el-button>
      <template slot-scope="{row,index,type}" slot="selInputForm">
        <div style="margin-left: 75px">
          <el-input  v-model="form.text" :size="size"
                     style="width: 210px" :readonly="true"></el-input>
          <el-button type="primary" style="margin-left: 10px" @click="addHandle">选择</el-button>
          <el-button type="info">取消</el-button>
        </div>
        <div  v-if="!tablefalge">
          <el-input style="width: 140px;margin-left: 300px"></el-input>
          <el-button style="margin-left: 15px" type="primary">搜索</el-button>
          <el-table
            :data="tableDatas"
            stripe
            style="width: 100%">
            <el-table-column
              type="selection"
              width="55">
            </el-table-column>
            <el-table-column
              prop="name"
              label="链接类型">
            </el-table-column>
          </el-table>
          <el-button style="margin-left: 320px;margin-top: 13px" type="primary">确定</el-button>
          <el-button>取消</el-button>
        </div>
<!--        <div v-if="tablefalge">-->
<!--          <el-button style="margin-left: 320px;margin-top: 13px" type="primary">确定</el-button>-->
<!--          <el-button>取消</el-button>-->
<!--        </div>-->
      </template>
    </avue-crud>
    <el-dialog :visible.sync="packageBox"
               append-to-body
               title="查看业务类型"
               width="1000px">
      <original-range @rowchange="rowchange"></original-range>
      <span slot="footer" class="dialog-footer">
            <el-button @click="dialoghandelfalse">取 æ¶ˆ</el-button>
            <el-button type="primary" @click="dialoghandeltrue">ç¡® å®š</el-button>
  </span>
    </el-dialog>
    <el-dialog :visible.sync="packageLinkBox"
               append-to-body
               title="查看链接类型"
               width="1000px">
      <original-link @rowLinkchange="rowLinkchange"></original-link>
      <span slot="footer" class="dialog-footer">
            <el-button @click="Linkdialoghandelfalse">取 æ¶ˆ</el-button>
            <el-button type="primary" @click="Linkdialoghandeltrue">ç¡® å®š</el-button>
  </span>
    </el-dialog>
  </basic-container>
</template>
@@ -84,91 +38,23 @@
  name: "passwords.vue",
  data() {
    return {
      tablefalge:false,
      tableDatas: [ {
        name: 'input',
      }, {
        name: 'checkbox',
      }, {
        name: 'switch',
      }],
      tableData: [{
        name: 'abc',
        label: '客户',
        father:'客户',
        rules:'规则',
        cycle:'cba'
      rouname:"",
      // ä¸šåŠ¡ç±»åž‹å¯¹è¯æ¡†
      packageBox:false,
      //链接类型对话框
      packageLinkBox:false,
      //值域下拉框数据
      Typelist:[],
      //版本数据
      banList:[],
      form:{
        text:""
      },
        {
          name: 'abc',
          label: '客户',
          father:'客户',
          rules:'规则',
          cycle:'cba'
        },
        {
          name: 'abc',
          label: '客户',
          father:'客户',
          rules:'规则',
          cycle:'cba'
        },
        {
          name: 'abc',
          label: '客户',
          father:'客户',
          rules:'规则',
          cycle:'cba'
        },
        {
          name: 'abc',
          label: '客户',
          father:'客户',
          rules:'规则',
          cycle:'cba'
        },
        {
          name: 'abc',
          label: '客户',
          father:'客户',
          rules:'规则',
          cycle:'cba'
        },
        {
          name: 'abc',
          label: '客户',
          father:'客户',
          rules:'规则',
          cycle:'cba'
        },
        {
          name: 'abc',
          label: '客户',
          father:'客户',
          rules:'规则',
          cycle:'cba'
        },   {
          name: 'abc',
          label: '客户',
          father:'客户',
          rules:'规则',
          cycle:'cba'
        },
        {
          name: 'abc',
          label: '客户',
          father:'客户',
          rules:'规则',
          cycle:'cba'
        },],
      form:{},
      page: {
        pageSize: 10,
        currentPage: 1,
        total: 100
      },
      appflage:true,
      data: [
        {
          name:"a",
@@ -197,52 +83,11 @@
      ],
      option:{
        selection: true,
        dialogType:'drawer',
        headerAlign: 'center',
        border: true,
        index: true,
        rowKey:'id',
        tabs: true,
        codomainoption:{
          submitBtn: false,
          emptyBtn: false,
          column: [
            {
              placeholder:"请选择值域",
              span:24,
              label: '值域',
              prop: 'select',
              type:"select",
              value:0,
              change:this.selectChange,
              dicData:[
                {
                  label:"业务类型",
                  value:0
                },
                {
                  label:"链接类型",
                  value:1
                },
              ]},
            {
              label: "选择版本",
              prop:"banben",
              type:'select',
              display:false,
              dicData: [
                {
                  label: '当前版本次',
                  value:0
                },
                {
                  label: '最新版本次',
                  value:1
                }
              ]
            }
          ]
        },
        column:[
          {
            label: '属性名',
@@ -392,11 +237,54 @@
            label: '值域',
            column:[
              {
                prop: 'hidebox',
                formsolt:true,
                hide: true,
                span:24,
                placeholder:"请选择值域",
                span:12,
                label: '值域',
                prop: 'range',
                value:0,
                type:"select",
                change:this.selectChange,
                dicData:[
                  {
                    label:"业务类型",
                    value:0
              },
                  {
                    label:"链接类型",
                    value:1
                  },
                ]},
              {
                prop:"selInput",
                placeholder: false,
                readonly:true,
                display: true,
                formslot: true,
              },
              {
                label: "选择版本",
                prop:"banben",
                type:'select',
                value:0,
                change: this.selchange,
                display: true,
                dicData: [
                  {
                    label: '当前版本次',
                    value:0
                  },
                  {
                    label: '最新版本次',
                    value:1
                  }
                ]
              },
              {
                //默认表格插槽
                prop:"default",
                span:24,
                display: false
              }
            ]
          },
          {
@@ -463,30 +351,71 @@
  created() {
  },
  methods:{
    selectChange(val){
      console.log(val)
      this.tablefalge=!this.tablefalge
      if(val.value == 0){
        this.tablefalge=true
        this.option.codomainoption.column[1].display=false
      }else if(val.value == null || val.value == 1){
        this.tablefalge=false;
        this.option.codomainoption.column[1].display=true
    rowLinkchange(row){
      this.form.text=row.name
    },
    rowchange(row){
      this.form.text=row.name
    },
    //值域类型选择
    addHandle() {
      this.packageBox=true
      if(this.Typelist.value == 0){
        this.packageBox=true
        this.packageLinkBox=false
      }else if(this.Typelist.value == 1){
        this.packageBox=false
        this.packageLinkBox=true
      }
    },
    beforeOpen (done, type) {
          if (['view', 'edit'].includes(type)) {
            // æŸ¥çœ‹å’Œç¼–辑逻辑
            console.log("编辑")
          } else {
            //新增逻辑
            this.tablefalge=false
            console.log(this.tablefalge)
            console.log("新增")
          }
          done();
    // å€¼åŸŸä¸šåŠ¡ç±»åž‹å¯¹è¯æ¡†å–æ¶ˆ
    dialoghandelfalse() {
      this.packageBox=false;
      this.form.text=""
    },
    //值域业务类型对话框确定
    dialoghandeltrue(){
      this.packageBox=false
    },
    // å€¼åŸŸé“¾æŽ¥ç±»åž‹å¯¹è¯æ¡†å–消
    Linkdialoghandelfalse(){
      this.packageLinkBox=false;
      this.form.text=""
    },
    //值域链接类型对话框确定
    Linkdialoghandeltrue(){
      this.packageLinkBox=false
    },
    selectChange(val){
      this.Typelist=val
     if(val.value == 0 ){
       this.option.group[1].column[2].display=false
     }else if(val .value == 1  ){
       this.option.group[1].column[2].display=true
     }else if(val.column.value == 0){
       this.option.group[1].column[2].display=false
      }
      },
    selchange(val){
      this.banList=val
    },
    // beforeOpen (done, type) {
    //   if (['view', 'edit'].includes(type)) {
    //     // æŸ¥çœ‹å’Œç¼–辑逻辑
    //     console.log("编辑")
    //   } else {
    //     //新增逻辑
    //     console.log(this.Typelist)
    //     console.log(this.banList)
    //
    //     console.log("新增")
    //   }
    //   done();
    //
    // }
    },
    // rowDel(row){
    //   this.$confirm("确定将选择数据删除?", {
    //     confirmButtonText: "确定",
@@ -540,10 +469,11 @@
    //   //   this.data=res.data.data.records
    //   // })
    // }
  }
  // }
}
</script>
<style lang="scss">
</style>
Source/UBCS-WEB/src/views/modeling/originalLink.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,95 @@
<template>
  <basic-container>
    <avue-crud ref="crud"
               v-model="form"
               :data="data"
               :option="option"
               @on-load="getList"
               @refresh-change="refreshChange"
               @search-change="searchChange"
               @current-row-change="handleCurrentRowChange"
    >
    </avue-crud>
  </basic-container>
</template>
<script>
export default {
  name: "originalLink.vue",
  data(){
    return {
      data:[
        {
          name:"链接测试1",
        },
        {
          name:"链接测试2",
        },
        {
          name:"链接测试3",
        },
        {
          name:"链接测试4",
        },
      ],
      form:{},
      option:{
        highlightCurrentRow:true,
        height:300,
        headerAlign:'center',
        align: 'center',
        border: true,
        menu: false,
        index: true,
        searchMenuSpan:6,
        searchSpan:10,
        addBtn:false,
        indexFixed:false,
        menuFixed:false,
        searchLabelWidth:130,
        column:[
          {
            label:"链接类型名",
            prop:"name",
            search:true,
          }
        ]
      }
    }
  },
  methods:{
    handleCurrentRowChange(row){
      this.$emit("rowLinkchange",row)
    },
    // getList () {
    //   this.loading = true;
    //   const data = Object.assign({
    //     pageNum: this.page.currentPage,
    //     pageSize: this.page.pageSize,
    //   }, this.params)
    //   this.data = [];
    //   getList(data).then(res => {
    //     const data = res.data.data
    //     this.loading = false;
    //     this.page.total = data.total;
    //     const result = data.list;
    //     this.data = result;
    //   })
    // },
    //搜索
    searchChange(params, done) {
      if (done) done();
      this.params = params;
      this.page.currentPage = 1;
      this.getList();
      this.$message.success('搜索成功')
    },
  }
}
</script>
<style scoped>
</style>
Source/UBCS-WEB/src/views/modeling/originalRange.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,121 @@
<template>
  <basic-container>
    <avue-crud ref="crud"
               v-model="form"
               :data="data"
               :option="option"
               @on-load="getList"
               @refresh-change="refreshChange"
               @search-change="searchChange"
               @current-row-change="handleCurrentRowChange"
    >
    </avue-crud>
  </basic-container>
</template>
<script>
export default {
  name: "Versionpackage.vue",
  data(){
    return {
      data:[
        {
          name:"测试1",
          source:"测试1",
          shows:"测试1"
        },
        {
          name:"测试2",
          source:"测试2",
          shows:"测试2"
        },
        {
          name:"测试3",
          source:"测试3",
          shows:"测试3"
        },
        {
          name:"测试4",
          source:"测试4",
          shows:"测试4"
        },
      ],
      form:{},
      option:{
        highlightCurrentRow:true,
        height:300,
        headerAlign:'center',
        align: 'center',
        border: true,
        menu: false,
        index: true,
        searchMenuSpan:6,
        searchSpan:10,
        addBtn:false,
        indexFixed:false,
        menuFixed:false,
        searchLabelWidth:130,
        column:[
          {
            label:"业务类型名",
            prop:"name",
            search:true,
          },
          {
            label:"标签",
            prop:"tag",
          },
          {
            label:"父类",
            prop:"father",
          },
          {
            label: "版本规则",
            prop:"versionRules"
          },
          {
            label: "生命周期",
            prop:"life"
          }
        ]
      }
    }
  },
  methods:{
    handleCurrentRowChange(row){
      this.$emit("rowchange",row)
    },
    // getList () {
    //   this.loading = true;
    //   const data = Object.assign({
    //     pageNum: this.page.currentPage,
    //     pageSize: this.page.pageSize,
    //   }, this.params)
    //   this.data = [];
    //   getList(data).then(res => {
    //     const data = res.data.data
    //     this.loading = false;
    //     this.page.total = data.total;
    //     const result = data.list;
    //     this.data = result;
    //   })
    // },
    //搜索
    searchChange(params, done) {
      if (done) done();
      // this.params = params;
      // this.page.currentPage = 1;
      // this.getList();
      this.$message.success('搜索成功')
      console.log(params,done)
    },
  }
}
</script>
<style scoped>
</style>
Source/UBCS-WEB/src/views/report/reportlist.vue
@@ -115,10 +115,10 @@
  },
  methods: {
    handlePreview(name) {
      this.$router.push({path: `/myiframe/urlPath?name=preview-${name}&src=${this.website.reportUrl}/preview?_u=ubcs-${name}`});
      this.$router.push({path: `/myiframe/urlPath?name=preview-${name}&src=${this.website.reportUrl}/preview?_u=blade-${name}`});
    },
    handleDesign(name) {
      this.$router.push({path: `/myiframe/urlPath?name=designer-${name}&src=${this.website.reportUrl}/designer?_u=ubcs-${name}`});
      this.$router.push({path: `/myiframe/urlPath?name=designer-${name}&src=${this.website.reportUrl}/designer?_u=blade-${name}`});
    },
    rowDel(row) {
      this.$confirm("确定将选择数据删除?", {
Source/UBCS-WEB/src/views/resource/oss.vue
@@ -250,7 +250,7 @@
      },
      'debugForm.code'() {
        const column = this.findObject(this.debugOption.column, "backgroundUrl");
        column.action = `/api/ubcs-resource/oss/endpoint/put-file?code=${this.debugForm.code}`;
        column.action = `/api/blade-resource/oss/endpoint/put-file?code=${this.debugForm.code}`;
      }
    },
    computed: {
Source/UBCS-WEB/src/views/tool/code.vue
@@ -411,7 +411,7 @@
                this.form.codeName = modelName;
              }
              if (validatenull(this.form.serviceName)) {
                this.form.serviceName = `ubcs-${modelCode}`;
                this.form.serviceName = `blade-${modelCode}`;
              }
              if (validatenull(this.form.pkName)) {
                this.form.pkName = "id";
Source/UBCS-WEB/vue.config.js
@@ -26,8 +26,8 @@
    proxy: {
      '/api': {
        //本地服务接口地址
        target: 'http://localhost:37000',
        //target: 'http://dev.vci-tech.com:37000',
        // target: 'http://192.168.0.101:37000',
        target: 'http://dev.vci-tech.com:37000',
        //远程演示服务地址,可用于直接启动项目
        //target: 'https://saber.bladex.vip/api',
        ws: true,