Merge branch 'master' of http://192.168.73.113:9001/r/lims-before
| | |
| | | ENV = 'development' |
| | | |
| | | # base api |
| | | VUE_APP_BASE_API = 'http://192.168.73.96:1234/' |
| | | VUE_APP_BASE_API = 'http://localhost:1234/' |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import GlobalClickMixin from "@/utils/GlobalClickMixin"; |
| | | export default { |
| | | mixins: [GlobalClickMixin], // ä½¿ç¨æ··å
¥ |
| | | name: 'App', |
| | | mounted() { |
| | | document.title = "è£
å¤çµç¼ lims ç³»ç»" |
| | |
| | | .breadcrumb-container{ |
| | | height: 40px; |
| | | } |
| | | |
| | | .app-main{ |
| | | margin-top: 41px !important; |
| | | } |
| | |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .el-dialog__header,.el-message-box__header { |
| | | .el-dialog__header, |
| | | .el-message-box__header { |
| | | box-sizing: border-box; |
| | | height: 46px; |
| | | border-bottom: 1px solid rgb(238, 238, 238); |
| | |
| | | import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n |
| | | import VueClipboard from 'vue-clipboard2' |
| | | Vue.use(VueClipboard) |
| | | |
| | | import '@/styles/index.scss' // global css |
| | | |
| | | import App from './App' |
| | |
| | | router, |
| | | store, |
| | | render: h => h(App) |
| | | }) |
| | | }); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // EventBus.js |
| | | import Vue from 'vue'; |
| | | export const EventBus = new Vue(); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import { EventBus } from './EventBus.js'; |
| | | |
| | | export default { |
| | | mounted() { |
| | | this.$el.addEventListener('click', this.$_handleGlobalClick); |
| | | }, |
| | | beforeDestroy() { |
| | | this.$el.removeEventListener('click', this.$_handleGlobalClick); |
| | | }, |
| | | methods: { |
| | | $_handleGlobalClick(event) { |
| | | if (event.target.tagName === 'SPAN'||event.target.tagName==='BUTTON') { |
| | | if(sessionStorage.getItem('user')===undefined&&sessionStorage.getItem('user')===null){ |
| | | return; |
| | | } |
| | | let user=JSON.parse(sessionStorage.getItem('user')); |
| | | if(user.account === 'admin'&&user.sessionLayerId === 'f5c8bcb7d5a0fd27e2323280f7e98cad'){ |
| | | return; |
| | | } |
| | | // console.log(this.$router.currentRoute); |
| | | // console.log(user.role.roleMenuList); |
| | | // console.log(event.target.innerText); |
| | | } |
| | | } |
| | | } |
| | | }; |
| | |
| | | <div class="main_div"> |
| | | <div class="top_div"> |
| | | <span>æ ·ååç§°ï¼</span> |
| | | <el-select v-model="params.material" size="small" placeholder="è¯·éæ©æ ·ååç§°"> |
| | | <el-select v-model="params.material" size="small" placeholder="è¯·éæ©æ ·ååç§°" @change="selectProductModelTable()"> |
| | | <el-option v-for="item in productModelSelectmater" :value="item" :key="item.index" :label="item"></el-option> |
| | | </el-select> |
| | | <span class="top_div_span">项ç®åç»ï¼</span> |
| | |
| | | message: res.message, |
| | | type: "success", |
| | | }); |
| | | this.selectProductMaster(); |
| | | this.selectProductModelTable(); |
| | | }); |
| | | } |
| | |
| | | name: null |
| | | } |
| | | this.selectProductModelTable() |
| | | } |
| | | }, |
| | | mounted() { |
| | | selectList(){ |
| | | this.selectProductMaster().then((res) => { |
| | | this.params.material = this.productModelSelectmater[0]; |
| | | this.selectProductModelTable(); |
| | | }); |
| | | }) |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.selectList() |
| | | }, |
| | | watch: { |
| | | centerDialogVisible: { |
| | |
| | | }, |
| | | async insertVersion() { |
| | | const resp = await addVersion({ |
| | | specificationsId: this.selectData.id |
| | | specificationsId: this.selectData.id, |
| | | version: this.versionValue |
| | | }); |
| | | if (resp.code === 200) { |
| | | this.initSelect(); |