¶Ô±ÈÐÂÎļþ |
| | |
| | |
|
| | | import request from '@/router/axios';
|
| | |
|
| | | export const downloadTemplate = (params) => {
|
| | | return request({
|
| | | url: '/api/ubcs-code/mdmEngineController/downloadTopImportExcel ',
|
| | | method: 'get',
|
| | | params
|
| | | })
|
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template>
|
| | | <el-dialog :title="title" :visible="visible" append-to-body>
|
| | | <Divider text="导å
¥æç¤º" left="30px"></Divider>
|
| | | <ul>
|
| | | <li v-for="(item, index) in tipInfo" :key="index">
|
| | | {{ item }}
|
| | | </li>
|
| | | </ul>
|
| | | <div class="radio_box">
|
| | | <span>åç±»çè·¯å¾ä½¿ç¨ç屿§:</span>
|
| | | <el-radio-group v-model="classifyAttr">
|
| | | <el-radio label="id">åç±»ç¼å·</el-radio>
|
| | | <el-radio label="name">åç±»åç§°</el-radio>
|
| | | </el-radio-group>
|
| | | </div>
|
| | | <Divider text="excelæä»¶ï¼éæ©æä»¶åä¼èªå¨ä¸ä¼ " left="30px"></Divider>
|
| | | <el-upload
|
| | | class="upload"
|
| | | :accept="accept"
|
| | | :action="action"
|
| | | :before-upload="beforeUpload"
|
| | | :on-exceed="handleExceed"
|
| | | >
|
| | | <el-button size="small" type="primary"><i class="el-icon-upload"></i> ç¹å»ä¸ä¼ </el-button>
|
| | | </el-upload>
|
| | | <template #footer>
|
| | | <el-button type="primary" size="small" @click="downloadTemplateFun">ä¸è½½å¯¼å
¥æ¨¡æ¿</el-button>
|
| | | <el-button size="small">å
³é</el-button>
|
| | | </template>
|
| | | </el-dialog>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import { downloadTemplate } from '../../api/batchImport/index'
|
| | | export default {
|
| | | name: "",
|
| | | props: {
|
| | | title: {
|
| | | type: String,
|
| | | default: "æ¹éç³è¯·ç¼ç ",
|
| | | },
|
| | | tipInfo: {
|
| | | type: Array,
|
| | | default: () => [],
|
| | | },
|
| | | visible: {
|
| | | type: Boolean,
|
| | | default: false,
|
| | | },
|
| | | accept: {
|
| | | type: String,
|
| | | default: '.xlsx, .xls'
|
| | | },
|
| | | codeClassifyOid: {
|
| | | type: String,
|
| | | default: ''
|
| | | },
|
| | | downloadTemplateFun: {
|
| | | type: Function
|
| | | }
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | classType: "classCode",
|
| | | };
|
| | | },
|
| | | computed: {
|
| | | action() {
|
| | | console.log(process, 'process');
|
| | | return '/api/ubcs-code/mdmEngineController/mdmEngineController/batchTopImportCode'
|
| | | }
|
| | | },
|
| | | methods: {
|
| | | beforeUpload(file) {
|
| | | const fileType = file.name.split('.').pop()
|
| | | if (fileType !== 'xlsx' && fileType !== 'xls') {
|
| | | // ä¸ä¼ æ ¼å¼ä¸ç¬¦åè¦æ±ï¼æç¤ºé误信æ¯å¹¶åæ¶ä¸ä¼
|
| | | this.$message.error('åªå
许ä¸ä¼ xlsxãxlsæ ¼å¼çæä»¶');
|
| | | return false;
|
| | | }
|
| | | return true;
|
| | | },
|
| | | },
|
| | | };
|
| | | </script>
|
| | |
|
| | | <style lang="scss" scoped>
|
| | | ul {
|
| | | color: rgb(188, 188, 188);
|
| | | margin: 20px 0 0 0;
|
| | | padding: 0;
|
| | | padding-left: 30px;
|
| | | list-style: none;
|
| | | li {
|
| | | margin-bottom: 5px;
|
| | | font-size: 12px;
|
| | | }
|
| | | }
|
| | | .radio_box {
|
| | | padding-left: 30px;
|
| | | margin: 20px 0 25px 0;
|
| | | display: flex;
|
| | | align-items: center;
|
| | | span {
|
| | | margin-right: 20px;
|
| | | }
|
| | | }
|
| | | .upload {
|
| | | padding-left: 30px;
|
| | | margin-top: 30px;
|
| | | }
|
| | | </style>
|
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- 彿°å¼ç»ä»¶å°è£
åå²çº¿ -->
|
| | | <template functional>
|
| | | |
| | | <div class="divider" :style="{backgroundColor: props.bgkColor, color: props.color}">
|
| | | <span :style="{left: props.left}">{{ props.text }}</span>{{ $props }}
|
| | | </div>
|
| | | </template>
|
| | | <style lang="scss" scoped>
|
| | | .divider {
|
| | | margin: 10px 0;
|
| | | position: relative;
|
| | | width: 100%;
|
| | | height: 1px;
|
| | | background-color: rgb(196, 196, 196);
|
| | | color: rgb(164, 164, 164);
|
| | | span {
|
| | | padding: 0 10px;
|
| | | position: absolute;
|
| | | top: 50%;
|
| | | left: 10%;
|
| | | transform: translateY(-50%);
|
| | | z-index: 999;
|
| | | background-color: #fff;
|
| | | }
|
| | | }
|
| | | </style>
|
| | |
| | | <!-- eslint-disable vue/valid-v-for --> |
| | | <!-- eslint-disable vue/require-v-for-key --> |
| | | <template> |
| | | <vue-flowchart-editor class="vue-flowchart-editor" ref="flowChart"> |
| | | <div class="vfe-chart"> |
| | |
| | | <flow :data="flowChartData" :onAfterChange="onAfterChange" /> |
| | | <div class="tooltip"> |
| | | <template v-for="item in tooltipData"> |
| | | <p :key="item.name">{{ item.name }}: {{ item.value }}</p> |
| | | <p>{{ item.name }}: {{ item.value }}</p> |
| | | </template> |
| | | </div> |
| | | </div> |
| | |
| | | import avueUeditor from 'avue-plugin-ueditor'; |
| | | import website from '@/config/website'; |
| | | import crudCommon from '@/mixins/crud'; |
| | | import Divider from './components/Divider'; |
| | | // ä¸å¡ç»ä»¶ |
| | | import tenantPackage from './views/system/tenantpackage'; |
| | | import enupackage from "@/views/modeling/enupackage"; |
| | |
| | | Vue.component('MasterTree',MasterTree) |
| | | Vue.component('FlowPath',FlowPath) |
| | | Vue.component('Stage',Stage) |
| | | Vue.component('Divider', Divider) |
| | | |
| | | // å è½½ç¸å
³urlå°å |
| | | Object.keys(urls).forEach(key => { |
| | |
| | | // target: 'http://192.168.1.46:37000', |
| | | // target: 'http://dev.vci-tech.com:37000', |
| | | // target: 'http://192.168.1.51:37000/', |
| | | target: 'http://192.168.1.104:37000', |
| | | // target: 'http://192.168.1.104:37000', |
| | | // target: 'http://192.168.1.63:37000', |
| | | //target: 'http://192.168.3.7:37000', |
| | | target: 'http://dev.vci-tech.com:37000', |