// import Vue from 'vue'
import Clipboard from 'v-clipboard' //复制功能
Vue.use(Clipboard)
import App from './buttonTest.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)
});