wangting
2024-06-14 f8035d6a65d1f610f87fa12408224176f1bf005f
修改action
已修改8个文件
已删除3个文件
已重命名4个文件
已添加2个文件
616 ■■■■■ 文件已修改
Source/plt-web/plt-web-ui/src/components/actions/BaseAction.js 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/actions/base/AddAction.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/actions/base/AddEditDialog.vue 113 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/actions/base/DeleteAction.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/actions/base/EditAction.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/actions/base/RevisionAction.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/actions/base/RevisionDialog.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/actions/base/ViewAction.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/actions/base/ViewDialog.vue 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/actions/custom/AddResourceFolder.js 88 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/actions/custom/AddResourceFolderDialog.vue 196 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/actions/custom/testAction.js 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/actions/testAction1.js 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-button.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/custom-ui/test.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/preview/readMD.vue 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/actions/BaseAction.js
ÎļþÃû´Ó Source/plt-web/plt-web-ui/src/components/actions/base/BaseAction.js ÐÞ¸Ä
@@ -1,6 +1,6 @@
import {validatenull} from "@/util/validate";
import Vue from 'vue';
import {handlerAction} from '../handlers';
import {handlerAction} from './handlers';
/**
 * æŒ‰é’®çš„基础服务
@@ -61,7 +61,7 @@
  }
  if (button.url && button.url != 'null') {
    //有配置action路径,使用路径对应的js
    import(`../${button.url}`).then(module => {
    import(`./${button.url}`).then(module => {
      module.doAction(options, callback);
    })
  } else {
@@ -141,14 +141,17 @@
 * @param preEventName å‰ç½®äº‹ä»¶åç§°ï¼Œé»˜è®¤beforeevent
 */
export const callPreEvent = (options,fnTarget,callback,preEventName) => {
  let beforeEvent = options.paramVOS[preEventName || 'prepvent'];
  let beforeEvent = options.paramVOS[preEventName || 'preevent'];
  if(beforeEvent) {
    let buttonParse = parseEventByUrl(beforeEvent,options,true);
    if(buttonParse.params){
      Object.assign(options.paramVOS,buttonParse.params);
    }
    if(validatenull(buttonParse.jsPath)){
      fnTarget(buttonParse,callback);
      fnTarget(options,callback);
    }else{
      try {
        import(`../${buttonParse.jsPath}.js`).then(module => {
        import(`./${buttonParse.jsPath}.js`).then(module => {
          module[buttonParse.methodName](options,callback);
        })
      } catch (error) {
@@ -172,11 +175,14 @@
  let afterEvent = options.paramVOS[postEventName || 'afterevent'];
  if(afterEvent) {
    let buttonParse = parseEventByUrl(afterEvent,options,false);
    if(buttonParse.params){
      Object.assign(options.paramVOS,buttonParse.params);
    }
    if(validatenull(buttonParse.jsPath)){
      fnTarget(buttonParse,callback,actionType);
      fnTarget(options,callback,actionType);
    }else{
      try {
        import(`../${buttonParse.jsPath}.js`).then(module => {
        import(`./${buttonParse.jsPath}.js`).then(module => {
          module[buttonParse.methodName](options,callback,actionType);
        })
      } catch (error) {
@@ -201,7 +207,7 @@
  let jsPath = url;
  let methodName = defalutmethodName || (isBefore?"doBefore":"doAfter");
  let params = {};
  if (url.indexOf("?")) {
  if (url.indexOf("?")>-1) {
    let temp = url.substring(0, url.indexOf("?"));
    if (temp.indexOf("#") > -1) {
      let array = temp.split("#");
@@ -216,11 +222,13 @@
    }
    let paramArray = url.substring(url.indexOf("?") + 1).split("&");
    paramArray.forEach(_item=>{
      if (_item.indexOf("=") < 0) {
        Vue.prototype.$message.error(isBefore?"前置事件":"后置事件" + "的参数配置错误,需要要xxx=yyy&zzz=a的方式");
        return true;
      if(_item){
        if (_item.indexOf("=") < 0) {
          Vue.prototype.$message.error(isBefore?"前置事件":"后置事件" + "的参数配置错误,需要要xxx=yyy&zzz=a的方式");
          return true;
        }
        params[_item.split("=")[0]] = _item.split("=")[1];
      }
      params[_item.split("=")[0]] = _item.split("=")[1];
    })
  }else{
    if (url.indexOf("#") > -1) {
Source/plt-web/plt-web-ui/src/components/actions/base/AddAction.js
@@ -1,10 +1,10 @@
/**
 * æŒ‰é’®å¤„理 ä¸šåŠ¡ç±»åž‹æ–°å¢ž
 */
import {paramLow,callPreEvent, callPostEvent} from './BaseAction';
import {paramLow,callPreEvent, callPostEvent} from '../BaseAction';
import {validatenull} from "@/util/validate";
import Vue from "vue";
import AddEditDialog from "@/components/actions/AddEditDialog"
import AddEditDialog from "@/components/actions/base/AddEditDialog"
export const doAction = (options,callback) => {
  const paramVOS = Object.assign({
@@ -30,7 +30,7 @@
 */
export const doAdd = (options,callback)=> {
  const paramVOS = options.paramVOS;
  if (!paramVOS['form'] && !paramVOS['context'] && !paramVOS['content']) {
  if (!paramVOS['form'] && !paramVOS['context']) {
    Vue.prototype.$message.error("按钮配置不正确");
    return false;
  }
Source/plt-web/plt-web-ui/src/components/actions/base/AddEditDialog.vue
ÎļþÃû´Ó Source/plt-web/plt-web-ui/src/components/actions/AddEditDialog.vue ÐÞ¸Ä
@@ -8,6 +8,7 @@
             top="0"
             class="avue-dialog"
             :destroy-on-close="true"
             :close-on-click-modal="false"
             @close="dialogClose">
    <basic-form ref="formRef" v-if="paramVOS.form"
                :key="'dialog-'+paramVOS.form"
@@ -44,7 +45,7 @@
<script>
import uiView from "@/views/base/UIContentViewerInDialog"
import {parseEventByUrl} from "@/components/actions/base/BaseAction"
import {parseEventByUrl} from "@/components/actions/BaseAction"
import {getFormDefineById,dataForm} from "@/api/base/ui";
import {addSave,editSave} from "@/api/base/actions"
import {validatenull} from "@/util/validate"
@@ -177,13 +178,24 @@
          this.formDefineId=this.$refs.uiViewRef.data[key].DefineVO.id;
          if (this.paramVOS.savebeforeevent) {
            var urlobj = parseEventByUrl(this.paramVOS.savebeforeevent,null,null,'doAction');
            import(`./${urlobj.jsPath}.js`).then(module => {
              module[urlobj.methodName]({
                paramVOS: this.paramVOS,
                dataStore: this.dataStore,
                sourceData:this.sourceData
              },this.formSaveHandle);
            })
            if(urlobj.params){
              Object.assign(this.paramVOS,urlobj.params);
            }
            if(validatenull(urlobj.jsPath)){
              this.saveBforeHandle(this.paramVOS);
            }else{
              try {
                import(`./${urlobj.jsPath}.js`).then(module => {
                  module[urlobj.methodName]({
                    paramVOS: this.paramVOS,
                    dataStore: this.dataStore,
                    sourceData:this.sourceData
                  },this.formSaveHandle);
                })
              } catch (error) {
                this.$message.error('未找到保存前置事件执行js');
              }
            }
          } else {
            this.formSaveHandle();
          }
@@ -198,13 +210,24 @@
          this.formDefineId=this.paramVOS.form;
          if (this.paramVOS.savebeforeevent) {
            var urlobj = parseEventByUrl(this.paramVOS.savebeforeevent,null,null,'doAction');
            import(`./${urlobj.jsPath}.js`).then(module => {
              module[urlobj.methodName]({
                paramVOS: this.paramVOS,
                dataStore: this.dataStore,
                sourceData:this.sourceData
              },that.formSaveHandle);
            })
            if(urlobj.params){
              Object.assign(this.paramVOS,urlobj.params);
            }
            if(validatenull(urlobj.jsPath)){
              this.saveBforeHandle(this.paramVOS);
            }else{
              try {
                import(`./${urlobj.jsPath}.js`).then(module => {
                  module[urlobj.methodName]({
                    paramVOS: this.paramVOS,
                    dataStore: this.dataStore,
                    sourceData: this.sourceData
                  }, that.formSaveHandle);
                })
              } catch (error) {
                this.$message.error('未找到保存前置事件执行js');
              }
            }
          } else {
            that.formSaveHandle();
          }
@@ -243,13 +266,24 @@
          }
          if (this.paramVOS.saveafterevent) {
            let urlobj = parseEventByUrl(this.paramVOS.saveafterevent,null,null,'doAction');
            import(`./${urlobj.jsPath}.js`).then(module => {
              module[urlobj.methodName]({
                paramVOS: this.paramVOS,
                dataStore: this.dataStore,
                sourceData:this.sourceData
              });
            })
            if(urlobj.params){
              Object.assign(this.paramVOS,urlobj.params);
            }
            if(validatenull(urlobj.jsPath)){
              this.saveAfterHandle(this.paramVOS);
            }else{
              try {
                import(`./${urlobj.jsPath}.js`).then(module => {
                  module[urlobj.methodName]({
                    paramVOS: this.paramVOS,
                    dataStore: this.dataStore,
                    sourceData:this.sourceData
                  });
                })
              } catch (error) {
                this.$message.error('未找到保存后置事件执行js');
              }
            }
          }
          that.dialogClose();
        });
@@ -264,13 +298,24 @@
          }
          if (this.paramVOS.saveafterevent) {
            let urlobj = parseEventByUrl(this.paramVOS.saveafterevent,null,null,'doAction');
            import(`./${urlobj.jsPath}.js`).then(module => {
              module[urlobj.methodName]({
                paramVOS: this.paramVOS,
                dataStore: this.dataStore,
                sourceData:this.sourceData
              });
            })
            if(urlobj.params){
              Object.assign(this.paramVOS,urlobj.params);
            }
            if(validatenull(urlobj.jsPath)){
              this.saveAfterHandle(this.paramVOS);
            }else{
              try {
                import(`./${urlobj.jsPath}.js`).then(module => {
                  module[urlobj.methodName]({
                    paramVOS: this.paramVOS,
                    dataStore: this.dataStore,
                    sourceData:this.sourceData
                  });
                })
              } catch (error) {
                this.$message.error('未找到保存后置事件执行js');
              }
            }
          }
          that.dialogClose();
        });
@@ -297,7 +342,15 @@
    },
    getFormData(form) {
      this.form = form;
    }
    },
    //保存前置事件
    saveBforeHandle(params){
      this.$message.info('执行保存前置事件');
    },
    //保存后置事件
    saveAfterHandle(params){
      this.$message.info('保存后置事件执行');
    },
  }
}
</script>
Source/plt-web/plt-web-ui/src/components/actions/base/DeleteAction.js
@@ -1,7 +1,7 @@
/**
 * æŒ‰é’®å¤„理 ä¸šåŠ¡ç±»åž‹åˆ é™¤
 */
import {paramLow,callPreEvent,callPostEvent,replaceFreeMarker} from './BaseAction';
import {paramLow,callPreEvent,callPostEvent,replaceFreeMarker} from '../BaseAction';
import {validatenull} from "@/util/validate";
import Vue from "vue";
import { del} from "@/api/base/actions"
@@ -43,6 +43,7 @@
 */
export const doDelete = (options,callback)=> {
  let submitData = {
    type:options.paramVOS.type || 1,//1:删除版次,  2:删除版本,  3:删除主对象。默认值1。
    checkLinkedFlag:options.paramVOS.checklinkedflag,
    cascade:options.paramVOS.cascade,
    adminCascade:options.paramVOS.admincascade
Source/plt-web/plt-web-ui/src/components/actions/base/EditAction.js
@@ -1,10 +1,10 @@
/**
 * æŒ‰é’®å¤„理 ä¸šåŠ¡ç±»åž‹ä¿®æ”¹
 */
import {paramLow,callPreEvent,callPostEvent} from './BaseAction';
import {paramLow,callPreEvent,callPostEvent} from '../BaseAction';
import {validatenull} from "@/util/validate";
import Vue from "vue";
import AddEditDialog from "@/components/actions/AddEditDialog";
import AddEditDialog from "@/components/actions/base/AddEditDialog";
export const doAction = (options,callback) => {
  const paramVOS = Object.assign({
Source/plt-web/plt-web-ui/src/components/actions/base/RevisionAction.js
@@ -1,10 +1,10 @@
/**
 * æŒ‰é’®å¤„理 ä¸šåŠ¡ç±»åž‹å‡çº§ç‰ˆæœ¬
 */
import {paramLow,callPreEvent,callPostEvent} from './BaseAction';
import {paramLow,callPreEvent,callPostEvent} from '../BaseAction';
import {validatenull} from "@/util/validate";
import Vue from "vue";
import RevisionDialog from "@/components/actions/RevisionDialog";
import RevisionDialog from "@/components/actions/base/RevisionDialog";
export const doAction = (options,callback) => {
  const paramVOS = Object.assign({
Source/plt-web/plt-web-ui/src/components/actions/base/RevisionDialog.vue
ÎļþÃû´Ó Source/plt-web/plt-web-ui/src/components/actions/RevisionDialog.vue ÐÞ¸Ä
@@ -44,7 +44,7 @@
<script>
import uiView from "@/views/base/UIContentViewerInDialog"
import {parseEventByUrl} from "@/components/actions/base/BaseAction"
import {parseEventByUrl} from "@/components/actions/BaseAction"
import {getFormDefineById,dataForm} from "@/api/base/ui";
import {upRevision} from "@/api/base/actions"
import {validatenull} from "@/util/validate"
Source/plt-web/plt-web-ui/src/components/actions/base/ViewAction.js
@@ -1,10 +1,10 @@
/**
 * æŒ‰é’®å¤„理 é¡µé¢å±•示为tab选项卡
 */
import {paramLow,callPreEvent,callPostEvent,replaceFreeMarker} from './BaseAction';
import {paramLow,callPreEvent,callPostEvent,replaceFreeMarker} from '../BaseAction';
import {validatenull} from "@/util/validate";
import Vue from "vue";
import ViewDialog from "@/components/actions/ViewDialog";
import ViewDialog from "@/components/actions/base/ViewDialog";
export const doAction = (options,callback) => {
  const paramVOS = Object.assign({
Source/plt-web/plt-web-ui/src/components/actions/base/ViewDialog.vue
Source/plt-web/plt-web-ui/src/components/actions/custom/AddResourceFolder.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,88 @@
//自定义Action,创建资源分类
import {callPreEvent, callPostEvent} from '../BaseAction';
import Vue from "vue";
import Dialog from "./AddResourceFolderDialog";
/**
 * å…¥å£æ–¹æ³•
 * @param options æŒ‰é’®çš„配置信息,值为{paramVOS:{按钮配置的参数信息,key值已全部转成小写},dataStore:[按钮所在区域选中数据],sourceData:{按钮上一区域选中数据}}
 * @param callback æ‰§è¡Œå®ŒåŽå›žè°ƒï¼Œé»˜è®¤åˆ·æ–°åŒºåŸŸæ•°æ®
 */
export const doAction = (options,callback) => {
  options.sourceData = options.sourceData || {};
  //执行配置的preevent前置事件
  callPreEvent(options, doBefore, function (options) {
    //执行业务
    doAdd(options, function () {
      //执行配置的afterevent后置事件
      callPostEvent(options, doAfter, callback);
    });
  });
};
/**
 * æ‰§è¡Œä¸šåŠ¡
 * @param options æŒ‰é’®çš„配置信息
 * @param callback å›žè°ƒ
 */
export const doAdd = (options,callback)=> {
  const paramVOS = options.paramVOS;
  //无窗口展示直接写逻辑代码
  //有窗口展示时写以下代码
  //如果窗口想展示UI上下文,则必须配置context和type
  if (!paramVOS['type'] && paramVOS['context']) {
    Vue.prototype.$message.error("展示UI上下文时必须配置业务类型type");
    return false;
  }
  //Dialog为要展示的窗口组件,先在顶部import引入
  const dialogConstructor = Vue.extend(Dialog);
  let instance = new dialogConstructor();
  instance.sourceData = options.sourceData;
  instance.dataStore = options.dataStore;
  instance.paramVOS = paramVOS;
  instance.type='add';//按钮的操作类型
  instance.dialogClose = function () {
    vm.visible = false;
    document.body.removeChild(vm.$el);
    instance.$destroy();
    instance = null;
  };
  if (callback) {
    instance.saveCallback = callback;
  }
  let vm = instance.$mount();
  document.body.appendChild(vm.$el);
  //显示dialog窗口
  instance.visible = true;
}
/**
 * preevent前置事件
 * @param options æŒ‰é’®çš„配置信息
 * @param callback å›žè°ƒ
 */
export const doBefore = (options,callback)=> {
  console.log("执行前置事件");
  Vue.prototype.$message.success("执行前置事件");
  if(callback){
    callback(options);
  }
}
/**
 * afterevent后置事件
 * @param options æŒ‰é’®çš„配置信息
 * @param callback å›žè°ƒ
 */
export const doAfter = (options,callback)=> {
  console.log('执行后置事件');
  Vue.prototype.$message.success("执行后置事件");
  if(callback){
    const actionType='add';//actionType非必传,当按钮操作区域为树,并且执行删除时建议传值“del”,避免刷新整个树
    callback(actionType);
  }
}
Source/plt-web/plt-web-ui/src/components/actions/custom/AddResourceFolderDialog.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,196 @@
<template>
  <el-dialog v-dialogDrag
             :title="title"
             :visible.sync="visible"
             :width="width"
             :fullscreen="fullscreen"
             :append-to-body="true"
             top="0"
             class="avue-dialog"
             :destroy-on-close="true"
             :close-on-click-modal="false"
             @close="dialogClose">
    <!--窗口显示内容-->
    <!--展示UI上下文-->
    <ui-view ref="uiViewRef" v-if="paramVOS.context"
             :key="'AddDialog-'+paramVOS.context"
             :style="fullscreen?'':'height:'+height"
             :btmType="paramVOS.type"
             :context="paramVOS.context"
             :inDialog="true"
             :canEdit="true"
             :actionType="type"
             :sourceData="sourceData"
             :dataStore="dataStore"
             :paramVOS="paramVOS"
             @getFormData="getFormData"
    ></ui-view>
    <!--非UI上下文-->
    <div v-else>这里是窗口显示内容</div>
    <!--底部按钮,非必有-->
    <div class="dialog-footer avue-dialog__footer">
      <el-button type="primary" plain size="small" @click="save" >保 å­˜</el-button>
      <el-button size="small" @click="dialogClose">取 æ¶ˆ</el-button>
    </div>
  </el-dialog>
</template>
<script>
import uiView from "@/views/base/UIContentViewerInDialog"
import {validatenull} from "@/util/validate"
import {parseEventByUrl} from "@/components/actions/BaseAction";
export default {
  name: "AddResourceFolderDialog",
  components:{uiView},
  props: {
    sourceData: {
      //所属区域的上一区域选中数据
      type: Object,
      default: {}
    },
    dataStore: {
      //弹窗时按钮所属区域选中数据
      type: Array,
      default: []
    },
    paramVOS: {
      type: Object,
      default: {}
    }
  },
  data(){
    return {
      type: "add",
      visible: false,
      form:{}//表单对象
    }
  },
  computed:{
    title(){
      return this.paramVOS.title || (this.type=='add'?'添加':'修改')
    },
    width() {
      if (!validatenull(this.paramVOS.width)) {
        if (this.paramVOS.width.includes("px") || this.paramVOS.width.includes("%")) {
          return this.paramVOS.width;
        } else {
          return this.paramVOS.width + "px";
        }
      } else {
        return "60%";
      }
    },
    height(){
      if (!validatenull(this.paramVOS.height)) {
        if (this.paramVOS.height.includes("px") || this.paramVOS.height.includes("%")) {
          return this.paramVOS.height;
        } else {
          return this.paramVOS.height + "px";
        }
      } else {
        return "auto"
      }
    },
    fullscreen(){
      if(this.paramVOS.width || this.paramVOS.height){
        return false;
      }else if(this.paramVOS.form){
        return false;
      }
      return true;
    }
  },
  created() {
  },
  watch: {},
  methods: {
    //关闭弹窗
    dialogClose() {
      this.visible = false;
    },
    //保存
    save() {
      //有保存前置事件
      if (this.paramVOS.savebeforeevent) {
        var urlobj = parseEventByUrl(this.paramVOS.savebeforeevent, null, null, 'doAction');
        if(urlobj.params){
          Object.assign(this.paramVOS,urlobj.params);
        }
        if(validatenull(urlobj.jsPath)){
          this.saveBforeHandle(this.paramVOS);
        }else{
          try {
            import(`./${urlobj.jsPath}.js`).then(module => {
              module[urlobj.methodName]({
                paramVOS: this.paramVOS,
                dataStore: this.dataStore,
                sourceData: this.sourceData
              }, this.saveHandle);
            })
          } catch (error) {
            this.$message.error('未找到保存前置事件执行js');
          }
        }
      }else{
        //直接保存
        this.saveHandle();
      }
    },
    saveHandle(){
      let that=this;
      //执行保存逻辑
      //保存成功后
      that.$message({
        type: "success",
        message: that.paramVOS.successmsg||"保存成功!"
      });
      if(that.saveCallback){
        that.saveCallback(that.type);
      }
      if (this.paramVOS.saveafterevent) {
        let urlobj = parseEventByUrl(this.paramVOS.saveafterevent,null,null,'doAction');
        if(urlobj.params){
          Object.assign(this.paramVOS,urlobj.params);
        }
        if(validatenull(urlobj.jsPath)){
          this.saveAfterHandle(this.paramVOS);
        }else{
          try {
            import(`./${urlobj.jsPath}.js`).then(module => {
              module[urlobj.methodName]({
                paramVOS: this.paramVOS,
                dataStore: this.dataStore,
                sourceData:this.sourceData
              });
            })
          } catch (error) {
            this.$message.error('未找到保存后置事件执行js');
          }
        }
      }
      that.dialogClose();
    },
    //保存前置事件
    saveBforeHandle(params){
      this.$message.info('执行保存前置事件');
    },
    //保存后置事件
    saveAfterHandle(params){
      this.$message.info('保存后置事件执行');
    },
    getFormData(form) {
      this.form = form;
    }
  }
}
</script>
<style scoped>
</style>
Source/plt-web/plt-web-ui/src/components/actions/custom/testAction.js
ÎļþÒÑɾ³ý
Source/plt-web/plt-web-ui/src/components/actions/testAction1.js
ÎļþÒÑɾ³ý
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-button.vue
@@ -7,9 +7,7 @@
        <el-button :key="item.oid" :icon="item.paramVOS.icon"
                   :type="item.paramVOS.btnType || 'primary'" plain
                   size="small"
                   @click="buttonClick(item)">
          {{ item.name }}
        </el-button>
                   @click="buttonClick(item)">{{ item.name }}</el-button>
      </el-tooltip>
      <el-button type="text" @click="handleDefaultAddChildren(scope.row)" v-if="(LocationType === 'menu' && type === 'TreeTable')">新增子级</el-button>
@@ -20,9 +18,7 @@
                   :icon="item.paramVOS.icon ? item.paramVOS.icon : (item.id === 'edit' ? 'el-icon-edit' : (item.id === 'delete'  ||item.id === 'del' ? 'el-icon-delete' : ''))"
                   :type="item.paramVOS.btnType || 'text'" plain
                   size="small"
                   @click="buttonClick(item,scope.row)">
          {{ item.name }}
        </el-button>
                   @click="buttonClick(item,scope.row)">{{ item.name }}</el-button>
      </el-tooltip>
      <!-- è¡¨æ ¼å†…按钮操作对话框表单   -->
@@ -36,9 +32,7 @@
                   :type="item.paramVOS.btnType || 'primary'"
                   plain
                   size="small"
                   @click="buttonClick(item)">
          {{ item.name }}
        </el-button>
                   @click="buttonClick(item)">{{ item.name }}</el-button>
      </el-tooltip>
    </div>
    <div v-else-if="type === 'tree'" class="tree-buttons">
@@ -48,16 +42,12 @@
                   :type="item.paramVOS.btnType || 'primary'"
                   plain
                   size="small"
                   @click="buttonClick(item)">
          {{ item.name }}
        </el-button>
                   @click="buttonClick(item)">{{ item.name }}</el-button>
      </el-tooltip>
      <el-button type="primary"
                 plain
                 size="small"
                 @click="$emit('refresh')">
        åˆ·æ–°
      </el-button>
                 @click="$emit('refresh')">刷新</el-button>
    </div>
  </div>
</template>
@@ -65,7 +55,7 @@
<script>
import func from "@/util/func";
import {validatenull} from "@/util/validate";
import {doAction} from '@/components/actions/base/BaseAction';
import {doAction} from '@/components/actions/BaseAction';
import Vue from "vue";
export default {
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue
@@ -288,6 +288,7 @@
            node.loaded = false;
            node.expand();
            this.isRefresh=true;
            this.$refs.tree.setCurrentNode(this.currentClickNode);
          }
        }
      }
Source/plt-web/plt-web-ui/src/views/custom-ui/test.vue
@@ -18,14 +18,13 @@
  },
  methods: {},
  created() {
    //获取地址参数
    console.log(this.$route.query)
  },
  mounted() {
  },
  watch: {},
}
</script>
Source/plt-web/plt-web-ui/src/views/preview/readMD.vue
ÎļþÒÑɾ³ý