| | |
| | | department, |
| | | report, |
| | | certification, |
| | | sealScope, |
| | | } |
| | | } |
| | | |
| | |
| | | delCertificationDetail:"certification/delCertificationDetail",//å é¤èµè´¨æç»å表 |
| | | } |
| | | |
| | | |
| | | const sealScope = { |
| | | selectSeal:"/sealScope/selectSeal",//æ¥è¯¢å°ç« å表 |
| | | addSeal:"/sealScope/addSeal",//æ·»å å°ç« åæ° |
| | | } |
| | | |
| | |
| | | <div class="btns"> |
| | | <el-button size="medium" type="primary" @click="openUpload">æ´æ°å°ç« </el-button> |
| | | </div> |
| | | <ValueTable ref="ValueTable0" :url="$api.laboratoryScope.selectItemParameter" |
| | | <ValueTable ref="ValueTable0" :url="$api.sealScope.selectSeal" |
| | | :componentData="fileComponentData" :key="upIndex" style="height: 400px;" /> |
| | | </el-dialog> |
| | | <el-dialog title="æ´æ°å°ç« " :visible.sync="upFileVisible" width="400px"> |
| | |
| | | <div class="search_label" style="width:90px">å°ç« ç±»åï¼</div> |
| | | <div class="search_input"> |
| | | <el-cascader |
| | | v-model="dataForm.insProductIds" |
| | | v-model="dataForm.type" |
| | | :options="options" |
| | | :show-all-levels="false" |
| | | :props="props" |
| | |
| | | :on-change="beforeUpload" |
| | | ref="upload" |
| | | :on-error="onError" |
| | | :limit="1" |
| | | > |
| | | <img v-if="dataForm.pic1" :src="dataForm.pic1" > |
| | | <img v-if="dataForm.address" :src="javaApi+'/img/'+dataForm.address" style="width: 110px;height: 110px;" > |
| | | <i v-else class="el-icon-plus avatar-uploader-icon"></i> |
| | | </el-upload> |
| | | </div> |
| | |
| | | }, |
| | | fileComponentData: { |
| | | entity: { |
| | | labId:null, |
| | | orderBy: { |
| | | field: 'id', |
| | | order: 'asc' |
| | |
| | | upIndex: 0, |
| | | addDia: true, |
| | | addPower: true, |
| | | fileVisible:true, |
| | | fileVisible:false, |
| | | upFileVisible:false, |
| | | loading:false, |
| | | dataForm:{}, |
| | | dataForm:{ |
| | | type:'', |
| | | address:'', |
| | | }, |
| | | props: { multiple: false,emitPath:false,}, |
| | | options:[ |
| | | { |
| | |
| | | label:'é¢å¤ç±»å', |
| | | children:null |
| | | }, |
| | | ] |
| | | ], |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | this.$refs.ValueTable.openAddDia(this.$api.laboratoryScope.addParameter); |
| | | }, |
| | | openUpload(){ |
| | | this.dataForm = {}; |
| | | this.dataForm.type = ''; |
| | | this.dataForm.address = ''; |
| | | this.upFileVisible = true; |
| | | }, |
| | | fileManagement(row){ |
| | | this.$refs['ValueTable0'].selectList() |
| | | this.fileVisible = true; |
| | | this.fileComponentData.entity.labId = row.id; |
| | | this.$nextTick(function () { |
| | | this.$refs['ValueTable0'].selectList() |
| | | }) |
| | | }, |
| | | confirmConnect(){ |
| | | if(!this.dataForm.pic1){ |
| | | this.$message.error('æªä¸ä¼ ä¼ä¸å°ç« '); |
| | | if(!this.dataForm.type){ |
| | | this.$message.error('æªä¸éæ©å°ç« ç±»å'); |
| | | return |
| | | } |
| | | if(!this.dataForm.pic2){ |
| | | this.$message.error('æªä¸ä¼ CNASå°ç« '); |
| | | if(!this.dataForm.address){ |
| | | this.$message.error('æªä¸ä¼ å°ç« '); |
| | | return |
| | | } |
| | | this.loading = true; |
| | | this.$axios.post(this.$api.sealScope.addSeal, { |
| | | labId:this.fileComponentData.entity.labId, |
| | | ...this.dataForm |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | } |
| | | }).then(res => { |
| | | this.loading = false; |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.$refs['ValueTable0'].selectList() |
| | | this.upFileVisible = false; |
| | | }) |
| | | }, |
| | | handleSuccess(response,){ |
| | | if (response.code == 200) { |
| | | this.dataForm.pic1 = response.data |
| | | this.dataForm.address = response.data.url |
| | | } |
| | | }, |
| | | beforeUpload(file,type) { |
| | |
| | | let up = false |
| | | let del = false |
| | | let add = false |
| | | let file = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'upParameter') { |
| | | up = true |
| | |
| | | if (power[i].menuMethod == 'addParameter') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'selectSeal') { |
| | | file = true |
| | | } |
| | | } |
| | | if (!file) { |
| | | this.componentData.do.splice(2, 1) |
| | | } |
| | | if (!del) { |
| | | this.componentData.do.splice(1, 1) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="notice-detail-page"> |
| | | <div class="notice-detail-head"> |
| | | <el-row :gutter="20"> |
| | | <el-col :xs="12" :sm="8" :md="6" :lg="4" :xl="4" style="margin-bottom: 16px;"></el-col> |
| | | </el-row> |
| | | <div class="head-item"> |
| | | <label>主é¢ï¼</label> |
| | | <p></p> |
| | | </div> |
| | | <div class="head-item"> |
| | | <label>å
容ï¼</label> |
| | | <p></p> |
| | | </div> |
| | | <div class="head-item"> |
| | | <label>åä»¶æ¶é´ï¼</label> |
| | | <p></p> |
| | | </div> |
| | | <div class="head-item"> |
| | | <label>åé人ï¼</label> |
| | | <p></p> |
| | | </div> |
| | | <div class="head-item"> |
| | | <label>æ¶ä»¶äººï¼</label> |
| | | <p></p> |
| | | </div> |
| | | </div> |
| | | <component class="notice-content" :is="noticeInfo.u"> |
| | | </component> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | const requireComponent = require.context("../view", false, /\.vue/); |
| | | var comObj = {}; |
| | | requireComponent.keys().forEach(fileName => { |
| | | var names = fileName |
| | | .split("/") |
| | | .pop() |
| | | .replace(".vue", ""); |
| | | const componentConfig = requireComponent(fileName); |
| | | comObj[names] = componentConfig.default || componentConfig; |
| | | }); |
| | | export default { |
| | | components: comObj, |
| | | data() { |
| | | return{ |
| | | noticeInfo:{ |
| | | u:'b1-inspect-order-plan' |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .notice-detail-page{ |
| | | padding-top: 16px; |
| | | } |
| | | .notice-detail-head{ |
| | | background: #fff; |
| | | border-radius: 3px; |
| | | box-sizing: border-box; |
| | | padding: 16px; |
| | | } |
| | | .notice-detail-head{ |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | } |
| | | </style> |
| | |
| | | |
| | | //æ¬å° |
| | | Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80"; |
| | | const javaApi = 'http://192.168.11.200:8001';//æ |
| | | // const javaApi = 'http://192.168.11.200:8001';//æ |
| | | // const javaApi = 'http://192.168.11.249:8001';//å¼ |
| | | // const javaApi = 'http://192.168.11.50:8001';//å§ |
| | | const javaApi = 'http://192.168.11.50:8002';//å§ |
| | | // const javaApi = 'http://114.132.189.42:9006';//æµè¯æ |
| | | //èäºæå¡å¨ |
| | | // Vue.prototype.LOCATIONVUE = "http://syxt.shxiao2.cn"; |
| | |
| | | <div class="notice-content"> |
| | | <div class="notice-content-item" v-for="(m,i) in list" :key="i"> |
| | | <div class="btns"> |
| | | <el-dropdown style="margin-right: 20px;" trigger="click"> |
| | | <el-dropdown style="margin-right: 20px;" trigger="click" @command="handleDropdown"> |
| | | <span class="el-dropdown-link"> |
| | | <span class="more" style="line-height: 26px;display: inline-block;">···</span> |
| | | </span> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item> |
| | | æç» |
| | | </el-dropdown-item> |
| | | <el-dropdown-item> |
| | | æ¥æ¶ |
| | | </el-dropdown-item> |
| | | <el-dropdown-item> |
| | | éè¿ |
| | | </el-dropdown-item> |
| | | <el-dropdown-item> |
| | | ä¸éè¿ |
| | | </el-dropdown-item> |
| | | <el-dropdown-item> |
| | | æ¹å |
| | | </el-dropdown-item> |
| | | <el-dropdown-item> |
| | | 䏿¹å |
| | | </el-dropdown-item> |
| | | <el-dropdown-item> |
| | | æ´å¤ |
| | | <el-dropdown-item v-for="(n,j) in dropdownList" :key="j" :command="n.value"> |
| | | {{ n.label }} |
| | | </el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | |
| | | <span class="time" style="color: #999999;font-size: 12px;">{{ m.time }}</span> |
| | | </h4> |
| | | <p style="color: #999999;font-size: 14px;margin-bottom: 6px;" class="ellipsis-multiline">{{ m.content }}</p> |
| | | <el-tag type="danger" size="small" v-if="m.status==0" style="margin-bottom: 4px;">å·²æç»</el-tag> |
| | | <el-tag type="success" size="small" v-if="m.status==1" style="margin-bottom: 4px;">å·²æ¥æ¶</el-tag> |
| | | <el-tag type="danger" size="small" v-if="m.status==0&&m.type==2" style="margin-bottom: 4px;">å·²æç»</el-tag> |
| | | <el-tag type="success" size="small" v-if="m.status==1&&m.type==2" style="margin-bottom: 4px;">å·²æ¥æ¶</el-tag> |
| | | <p style="font-size: 12px;color: #999999;display: flex;align-items: center;justify-content: space-between;"> |
| | | <span>åé人ï¼{{m.sendUser}}</span> |
| | | <span>æ¶ä»¶äººï¼{{ m.getUser }}</span> |
| | |
| | | sendUser:'å°æ', |
| | | getUser:'æå', |
| | | }, |
| | | ], |
| | | dropdownList:[ |
| | | { |
| | | label:'æç»', |
| | | value:0 |
| | | }, |
| | | { |
| | | label:'æ¥æ¶', |
| | | value:1 |
| | | }, |
| | | { |
| | | label:'éè¿', |
| | | value:2 |
| | | }, |
| | | { |
| | | label:'ä¸éè¿', |
| | | value:3 |
| | | }, |
| | | { |
| | | label:'æ¹å', |
| | | value:4 |
| | | }, |
| | | { |
| | | label:'䏿¹å', |
| | | value:5 |
| | | }, |
| | | { |
| | | label:'æ¥çæ´å¤', |
| | | value:6 |
| | | }, |
| | | ] |
| | | } |
| | | }, |
| | |
| | | this.options = data; |
| | | }) |
| | | }, |
| | | goNoticeDetail(){ |
| | | this.drawer = false; |
| | | this.$parent.addTab({ |
| | | v: "æ¶æ¯è¯¦æ
", |
| | | i: "el-icon-s-tools", |
| | | u: "notice-detail", |
| | | k:35, |
| | | p: "abcd" |
| | | },29); |
| | | }, |
| | | handleDropdown(e){ |
| | | switch(e){ |
| | | case 0: |
| | | break; |
| | | case 6: |
| | | this.goNoticeDetail() |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | color: #303133; |
| | | } |
| | | >>>.el-drawer__body{ |
| | | box-sizing: border-box; |
| | | padding: 0 16px; |
| | | height: calc(100vh - 82px); |
| | | overflow: hidden; |
| | | } |
| | |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | margin-bottom: 16px; |
| | | box-sizing: border-box; |
| | | padding: 0 16px; |
| | | } |
| | | .more{ |
| | | font-size: 20px; |
| | |
| | | .notice-content{ |
| | | height: calc(100% - 60px); |
| | | overflow-y: auto; |
| | | box-sizing: border-box; |
| | | padding: 0 16px; |
| | | } |
| | | .notice-content-item{ |
| | | position: relative; |
| | | width: 100%; |
| | | padding: 16px; |
| | | padding: 8px; |
| | | border-radius: 8px; |
| | | box-sizing: border-box; |
| | | border: 1px solid #EEEEEE; |
| | |
| | | position: absolute; |
| | | right: 20px; |
| | | top: 4px; |
| | | z-index: 4; |
| | | } |
| | | .notice-content-item .btns{ |
| | | opacity: 0; |
| | |
| | | i: "el-icon-s-tools", |
| | | u: "system-log", |
| | | p: "selectSystemLogList" |
| | | }, { |
| | | v: "æ¶æ¯è¯¦æ
", |
| | | i: "el-icon-s-tools", |
| | | u: "notice-detail", |
| | | p: "abcd" |
| | | }] |
| | | }, |
| | | { |