08335 / hivui-platform-template
hivui平台项目模板
Newer
Older
hivui-platform-template / project / WangGeShu / view / ShuWangGe / dtv / 1.0.0 / desktop / index.js
12896 on 11 Apr 2022 Jenkins commit
// import Vue from 'vue'
import Clipboard from 'v-clipboard' //复制功能
Vue.use(Clipboard)
import App from './ShuWangGe.vue' //dtv模块页面  
Vue.config.productionTip = false
// import ElementUI from 'element-ui';
// import HIUI from "hi-ui";
import "hi-ui/lib/hi-ui.css";
// import "element-ui/lib/theme-chalk/index.css";
import {HiDataSetContainer} from "hi-ui";
Vue.use(ELEMENT, {
  size: 'mini'
})
let hiSetting = HIVUI_SETTING
let userPath = ''
try{
    userPath  = process.env.VITE_APP_USERPATH||''
}catch(e){}

Vue.prototype.$HI = {
  userPath:userPath,
  projectName: hiSetting.projectName,
  request: hiSetting.request,
  queryOperate: hiSetting.queryOperate,
  serverName:hiSetting.serverName,
  pageSize: 20,
  saveUrl: hiSetting.saveUrl,
  queryUrl: hiSetting.queryUrl,
  exportUrl: hiSetting.exportUrl,
  datasetUrl: hiSetting.datasetUrl,
  policyUrl: hiSetting.policyUrl,
  upload: hiSetting.upload,
  download: hiSetting.download,
  review: hiSetting.review,
  getFlowInfo: hiSetting.getFlowInfo,
  getApprovalInfo: hiSetting.getApprovalInfo,
  processFlow: hiSetting.processFlow,
  queryTask: hiSetting.queryTask,
  withdrawtask: hiSetting.withdrawtask,
  taskDiagram: hiSetting.taskDiagram,
  openOrdernumber: hiSetting.openOrdernumber,
  editorImgServer :hiSetting.review+"?relativePath="
};
let DataSet = HiDataSetContainer;
Vue.prototype.$dsContainer = new DataSet({
  request: HIVUI_SETTING.request,
  saveUrl: hiSetting.saveUrl,
  queryUrl: hiSetting.queryUrl,
  exportUrl: hiSetting.exportUrl,
  datasetUrl: hiSetting.datasetUrl,
  policyUrl: hiSetting.policyUrl,
  
  cacheKeyPrefix: function () {
    return window.location.hash + "/";
  }
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  render: h => h(App)
});