分支自 SuZhouGuanHong/TaiYuanTaiZhong

dengjunjie
2024-07-19 7a4c218909936721fe281737491d10efc7378e09
´úÂë¹ÜÀí/PCS/WCS_Client/src/extension/widesea_wcs/wcs/VV_Dispatch.js
@@ -5,12 +5,13 @@
**常用示例见:http://v2.volcore.xyz/document/vueDev
**后台操作见:http://v2.volcore.xyz/document/netCoreDev
*****************************************************************************************/
import Upload from "@/views/Upload"
//此js文件是用来自定义扩展业务代码,可以扩展一些自定义页面或者重新配置生成的代码
let extension = {
  components: {
    //查询界面扩展组件
    gridHeader: '',
    gridHeader: Upload,
    gridBody: '',
    gridFooter: '',
    //新建、编辑弹出框扩展组件
@@ -38,6 +39,15 @@
          this.startServe();
        }
      }
      // , {
      //   name: "上传文件",
      //   // icon: 'el-icon-video-play',
      //   index: 5,
      //   type: 'primary',
      //   onClick: function () {
      //     this.Upload();
      //   }
      // }
    ], box: [], detail: []
  }, //扩展的按钮
  methods: {
@@ -150,23 +160,26 @@
    //启动服务
    startServe() {
      this.http.post('/api/VV_Dispatch/StartServe', {}, true).then((x) => {
        this.search();
        if (!x.status) return this.$error(x.message);
        this.$success(x.message);
        this.search();
        this.$emit("onChangeWCSState", true);
      });
    },
    //关闭服务
    CloseServe() {
      this.http.post('/api/VV_Dispatch/CloseServe', {}, true).then((x) => {
        this.search();
        if (!x.status) return this.$error(x.message);
        this.$success(x.message);
        this.search();
        //重新加载页面
        // location.reload()
        this.$emit("onChangeWCSState", false);
      });
    }
    },
    Upload() {
      this.$refs.gridHeader.detialBox=true;
    },
  }
};
export default extension;