| | |
| | | // ææ¯ç®¡ç-æ åBom |
| | | const standard = { |
| | | selectTreeByMaterial: "material/selectTreeByMaterial", //æ¥è¯¢ç©æçæ |
| | | selectRawInspectsList: "rawInspect/selectRawInspectsList",//æ¥è¯¢åæææ£éªåå表 |
| | | selectProductByMaterial: "product/selectTreeByMaterial",//æ ¹æ®ç©ææ¥è¯¢é¡¹ç®è¡¨æ ¼ |
| | | selectTechnologyByMaterial: "technology/select" |
| | | } |
| | | |
| | | // åæææ£éª |
| | | const raw = { |
| | | selectRawInspectsList: "rawInspect/selectRawInspectsList",//æ¥è¯¢åæææ£éªåå表 |
| | | selectRawInspectsListById: "rawInspect/selectRawInspectsListById/",//æ ¹æ®æ£éªåidè·åæ£éªå详æ
|
| | | updaterawInsProduct:'rawInsProduct/updaterawInsProduct',//ä¿®æ¹é¡¹ç®çæ£éªå¼ |
| | | updateRawInspectsById:"/rawInspect/updateRawInspectsById/",//䏿¥, |
| | | listMaterial:"/finished-inspect/list_material",//æ·»å æ£éªåæ¶ç项ç®å表 |
| | | } |
| | | |
| | | const url = { |
| | | "enter": "user/enter", //ç»å½ |
| | | ...standard |
| | | enter: "user/enter", //ç»å½ |
| | | ...standard, |
| | | ...raw |
| | | } |
| | | |
| | | |
| | |
| | | <el-row> |
| | | <el-col :span="12" style="line-height: 32px;">åæææ£éª</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button type="primary" icon="el-icon-plus" style="background: #004EA2;">æ°å¢</el-button> |
| | | <el-button type="primary" icon="el-icon-plus" style="background: #004EA2;" @click="goDetail(null)">æ°å¢</el-button> |
| | | <el-button icon="el-icon-download">å é¤</el-button> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="æä½" width="100"> |
| | | <template slot-scope="scope"> |
| | | <span class="table_do" @click="changeShowDetail">æ¥ç</span> |
| | | <span class="table_do" @click="changeShowDetail(scope.row)">æ¥ç</span> |
| | | <span class="table_do">æå°</span> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | }, |
| | | this.selectRawInspectsList() |
| | | }, |
| | | changeShowDetail(){ |
| | | this.goDetail() |
| | | changeShowDetail({id}){ |
| | | this.goDetail(id) |
| | | // console.log(id) |
| | | // const res = await this.$axios.post(this.$api.url.selectRawInspectsListById,{params:{id}}) |
| | | // console.log(res) |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | <template> |
| | | <div class="rawInsBox"> |
| | | <RawIns v-show="!showDetail" :goDetail="goDetail"></RawIns> |
| | | <RawInsDetail v-show="showDetail" :goBack="goBack" :detail="detail"></RawInsDetail> |
| | | <RawIns v-if="!showDetail" :goDetail="goDetail"></RawIns> |
| | | <RawInsDetail v-if="showDetail" :goBack="goBack" :detailId="id"></RawInsDetail> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | data() { |
| | | return { |
| | | showDetail: false, |
| | | detail:{} |
| | | id:0 |
| | | } |
| | | }, |
| | | mounted(){ |
| | | }, |
| | | methods:{ |
| | | goDetail(detail) { |
| | | goDetail(id) { |
| | | this.showDetail = true |
| | | this.detail = detail |
| | | this.id = id |
| | | console.log(this.id) |
| | | }, |
| | | goBack() { |
| | | this.showDetail = false |
| | |
| | | .raw-detail-info .el-input{ |
| | | width: auto; |
| | | } |
| | | .raw-detail-info.raw-detail-info-edit >>>.el-input__inner{ |
| | | background:#fff; |
| | | } |
| | | .raw-detail-info >>>.el-input__inner{ |
| | | width: 224px; |
| | | height: 32px; |
| | |
| | | } |
| | | .raw-detail-info .el-form-item{ |
| | | margin-bottom: 24px; |
| | | } |
| | | .raw-detail-info .el-form-item .el-button { |
| | | height: 32px; |
| | | border: 1px solid rgba(190, 190, 190, 0.44); |
| | | box-shadow: 0px 2px 4px rgba(220, 220, 220, 0.41); |
| | | padding: 0 12px; |
| | | } |
| | | |
| | | /* æ£éªé¡¹ç® */ |
| | |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div class="raw-detail-info"> |
| | | <el-form v-model="detail" label-position="right" label-width="120px" > |
| | | <div class="raw-detail-info" :class="detailId===null?'raw-detail-info-edit':''"> |
| | | <el-form v-model="detailInfo" label-position="right" label-width="120px" > |
| | | <el-row> |
| | | <el-col :span="7"> |
| | | <el-form-item label="æ¥ææ¥æ:"> |
| | | <el-input></el-input> |
| | | <el-input v-if="detailId!==null" :disabled="detailId!==null" v-model="detailInfo.formTime"></el-input> |
| | | <el-date-picker |
| | | v-else |
| | | type="date" |
| | | v-model="detailInfo.formTime" |
| | | placeholder="éæ©æ¥æ"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item label="è§æ ¼åå·:"> |
| | | <el-input></el-input> |
| | | <el-input :disabled="detailId!==null" v-model="detailInfo.specifications"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item label="åææç¼ç :"> |
| | | <el-input></el-input> |
| | | <el-input :disabled="detailId!==null" v-model="detailInfo.code"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="7"> |
| | | <el-form-item label="åææåç§°:"> |
| | | <el-input></el-input> |
| | | <el-input :disabled="detailId!==null" v-model="detailInfo.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item label="æ¥æ£æ¥æ:"> |
| | | <el-input></el-input> |
| | | <el-form-item label="æ°é:"> |
| | | <el-input placeholder="请è¾å
¥æ£éªæ°é" :disabled="detailId!==null" v-model="detailInfo.number"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item label="åä½:"> |
| | | <el-input></el-input> |
| | | <el-input placeholder="请è¾å
¥æ£éªåä½" :disabled="detailId!==null" v-model="detailInfo.unit"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="3"> |
| | | <el-form-item v-show="detailId===null" label="" label-width="100px"> |
| | | <el-button @click="addNewRawInspect">ä¿åæäº¤</el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | |
| | | <el-col :span="7"> |
| | | <el-form-item label="æ°é:"> |
| | | <el-input></el-input> |
| | | <el-form-item v-show="detailId!==null" label="æ¥æ£æ¥æ:"> |
| | | <el-input :disabled="detailId!==null" v-model="detailInfo.createTime"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item label="æ¥æ£äºº:"> |
| | | <el-input></el-input> |
| | | <el-col :span="14"> |
| | | <el-form-item v-show="detailId!==null" label="æ¥æ£äºº:"> |
| | | <el-input :disabled="detailId!==null" v-model="detailInfo.userName"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | </el-row> |
| | | </el-form> |
| | | <!-- <el-form v-show="detailId ===null" v-model="rawInsParams" label-position="right" label-width="120px" > |
| | | <el-row> |
| | | <el-col :span="7"> |
| | | <el-form-item label="订åå·:"> |
| | | <el-input placeholder="请è¾å
¥è®¢åå·" v-model="rawInsParams.orderNumber"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item label="客æ·åç§°:"> |
| | | <el-input placeholder="请è¾å
¥å®¢æ·åç§°" v-model="rawInsParams.customerName"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item label="å·¥ç¨åç§°:"> |
| | | <el-input placeholder="请è¾å
¥å·¥ç¨åç§°" v-model="rawInsParams.projectName"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="7"> |
| | | <el-form-item label="è´¨é追溯å·:"> |
| | | <el-input placeholder="请è¾å
¥è´¨é追溯å·" v-model="rawInsParams.qualityTraceability"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item label="项ç®åç§°:"> |
| | | <el-select placeholder="请è¾å
¥é¡¹ç®åç§°" v-model="rawInsParams.material"> |
| | | <el-option v-for="item in materialOptions" :key="item.id" :label="item.name" :value="item.name"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item label="产åç¼ç :"> |
| | | <el-input placeholder="产åç¼ç " disabled v-model="code"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="7"> |
| | | <el-form-item label="è§æ ¼åå·:"> |
| | | <el-input v-model="detailInfo.specificationsModel"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item label="åä½:"> |
| | | <el-input placeholder="请è¾å
¥åä½" v-model="rawInsParams.unit"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item label="æ°é"> |
| | | <el-input placeholder="请è¾å
¥äº§åç¼ç " v-model="rawInsParams.qualityTraceability"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="21"> |
| | | <el-form-item label="主æºå·¥:"> |
| | | <el-input placeholder="请è¾å
¥ä¸»æºå·¥" v-model="rawInsParams.userId"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="3"> |
| | | <el-form-item label="" label-width="100px"> |
| | | <el-button @click="addNewRawInspect">ä¿åæäº¤</el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> --> |
| | | </div> |
| | | <div class="title"> |
| | | <el-row> |
| | |
| | | width="212"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | prop="unit" |
| | | label="åä½" |
| | | width="148"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | prop="required" |
| | | label="æ å" |
| | | width="254"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | prop="internal" |
| | | label="å
æ§å¼" |
| | | width="291"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | prop="testValue" |
| | | label="æ£æ¥å¼" |
| | | width="371"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.testValue" @blur="changeState(scope.row)"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | prop="deviceName" |
| | | label="è¯éªè®¾å¤" |
| | | width="248" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | prop="testState" |
| | | label="ç»è®º" |
| | | width="98" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span v-show="scope.row.testState!=null" :style="{color: scope.row.testState===1?'#67C23A':'#F56C6C'}">{{scope.row.testState===1?'åæ ¼':'ä¸åæ ¼'}}</span> |
| | | <span v-show="scope.row.testState==null">ææªç»è®º</span> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | |
| | | <div class="raw-conclusion-table"> |
| | | <el-table :data="conclusionTable"> |
| | | <el-table-column |
| | | prop="number" |
| | | prop="code" |
| | | label="ç©æç¼å·" |
| | | width="353"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="number" |
| | | prop="name" |
| | | label="ç©æåç§°" |
| | | width="353"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="number" |
| | | prop="names" |
| | | label="æ£éªå" |
| | | width="542"> |
| | | <template slot-scope="scope"> |
| | | <span v-for="item in scope.row.names" :key="item.username" :style="{marginRight:'8px'}">{{item}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="number" |
| | | prop="testState" |
| | | label="æ£éªç»è®º" |
| | | width="362"> |
| | | <template slot-scope="scope"> |
| | | <span v-show="scope.row.testState!=null" :style="{color: scope.row.testState===1?'#67C23A':'#F56C6C'}">{{scope.row.testState===1?'åæ ¼':'ä¸åæ ¼'}}</span> |
| | | <span v-show="scope.row.testState==null">ææªç»è®º</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | fixed="right" |
| | | label="æä½" |
| | | width="120"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small">䏿¥</el-button> |
| | | <template> |
| | | <el-button type="text" size="small" @click.once="submitSave">䏿¥</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | import RawIns from './raw-ins.vue' |
| | | export default { |
| | | components:{RawIns}, |
| | | props:['goBack','detail'], |
| | | props:['goBack','detailId'], |
| | | created(){ |
| | | console.log(this.detail) |
| | | // æ¸
空 |
| | | this.detailInfo = {} |
| | | if(this.detailId){ |
| | | console.log(this.detailId) |
| | | this.getDetailInfo() |
| | | }else{ |
| | | this.getOptions() |
| | | } |
| | | }, |
| | | mounted(){ |
| | | }, |
| | | computed:{ |
| | | conclusionTable(){ |
| | | // console.log(this.projectTable) |
| | | // console.log(this.projectTable.map(item=>item.userName)) |
| | | const conclusion = {} |
| | | conclusion.name = this.detailInfo.name |
| | | conclusion.code = this.detailInfo.code |
| | | conclusion.names= [...new Set(this.projectTable.map(item=>item.userName))] |
| | | console.log(this.projectTable.filter(item=>item.testState===0)) |
| | | if(this.projectTable.filter(item=>item.testState===null).length){ |
| | | conclusion.testState = null |
| | | return [conclusion] |
| | | } |
| | | if(this.projectTable.filter(item=>item.testState===0).length>0){ |
| | | conclusion.testState= 0 |
| | | }else{ |
| | | conclusion.testState= 1 |
| | | } |
| | | return [conclusion] |
| | | }, |
| | | // 产åç¼ç |
| | | // code(){ |
| | | // const material= this.materialOptions.filter(item=>item.name===this.rawInsParams.material)[0] |
| | | // return material && material.code |
| | | // } |
| | | }, |
| | | data() { |
| | | return { |
| | | conclusionTable:[ |
| | | {number:'ç©æåç§°'} |
| | | ], |
| | | projectTable:[ |
| | | { |
| | | date: '2016-05-02', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | } |
| | | ] |
| | | // 详æ
页就æ¯è¯¦æ
ä¿¡æ¯ |
| | | detailInfo:{}, |
| | | projectTable:[], |
| | | // æ°å»ºæ£éªååæ°å¯¹è±¡ |
| | | rawInsParams:{}, |
| | | // 项ç®åç§°options |
| | | materialOptions:[] |
| | | } |
| | | }, |
| | | methods:{ |
| | | // è·åæ¥æ£å详æ
ä¿¡æ¯ |
| | | async getDetailInfo() { |
| | | const {data} = await this.$axios.get(this.$api.url.selectRawInspectsListById+`${this.detailId}`,{params:{id:this.detailId}}) |
| | | this.detailInfo = data |
| | | this.projectTable = data.rawInsProducts |
| | | // console.log(this.projectTable) |
| | | }, |
| | | // æ°å¢æ£éªå |
| | | addNewRawInspect() { |
| | | console.log(this.detailInfo) |
| | | }, |
| | | // ä¿®æ¹é¡¹ç®çæ£æµå¼æ¹åç»è®º |
| | | async changeState(row){ |
| | | // console.log(row) |
| | | const res = await this.$axios.post(this.$api.url.updaterawInsProduct,{...row},{headers:{'Content-Type':'application/json'}}) |
| | | this.$message.success('æäº¤æå') |
| | | this.getDetailInfo()//éæ°å·æ°ä¿¡æ¯æ°æ® |
| | | }, |
| | | async submitSave() { |
| | | const res = await this.$axios.post(this.$api.url.updateRawInspectsById+`${this.detailId}`) |
| | | this.$message.success('æäº¤æå') |
| | | this.getDetailInfo() |
| | | }, |
| | | async getOptions() { |
| | | const {data} = await this.$axios.get(this.$api.url.listMaterial) |
| | | this.materialOptions = data |
| | | } |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <style scoped> |
| | | .unqualifiedBox{ |
| | | width: 100%; |
| | | height: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | .unqualifiedBox .title .el-button { |
| | | height: 32px; |
| | | border: 1px solid rgba(190, 190, 190, 0.44); |
| | | box-shadow: 0px 2px 4px rgba(220, 220, 220, 0.41); |
| | | padding: 0 12px; |
| | | } |
| | | .unqualifiedBox .title { |
| | | margin-bottom: 10px; |
| | | padding: 0 20px; |
| | | } |
| | | /* æ¡ä»¶æ¥è¯¢å¤´é¨æ ·å¼ */ |
| | | .choose { |
| | | padding: 21px 24px; |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #fff; |
| | | border-bottom: 3px solid rgb(245, 247, 251); |
| | | } |
| | | |
| | | .choose * { |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .choose .el-button { |
| | | height: 32px; |
| | | border: 1px solid rgba(190, 190, 190, 0.44); |
| | | box-shadow: 0px 2px 4px rgba(220, 220, 220, 0.41); |
| | | padding: 0 12px; |
| | | } |
| | | /* ä¸åæ ¼è¡¨æ ¼æ ·å¼ */ |
| | | .unqualifiedTable{ |
| | | flex: 1; |
| | | background: #fff; |
| | | margin-top: 11px; |
| | | padding: 23px 21px; |
| | | } |
| | | </style> |
| | | |
| | | <template> |
| | | <div class="unqualifiedBox"> |
| | | <div class="title"> |
| | | <el-row> |
| | | <el-col :span="12" style="line-height: 32px;">åæææ£éª</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button icon="el-icon-download" @click="()=>{}">导åº</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div class="choose"> |
| | | <span>å¤çç¶æï¼</span> |
| | | <el-select v-model="search.insState" size="small" placeholder="è¯·éæ©" style="width: 224px;margin-right: 30px;"> |
| | | <el-option label="å·²å¤ç" :value="2"></el-option> |
| | | <el-option label="å¾
å¤ç" :value="0"></el-option> |
| | | </el-select> |
| | | <span>æ¥ææ¥æï¼</span> |
| | | <el-date-picker v-model="search.createTime" size="small" placeholder="请è¾å
¥" |
| | | style="width: 224px;margin-right: 30px;" clearable value-format="yyyy-MM-dd"></el-date-picker> |
| | | <span>ä¾åºåï¼</span> |
| | | <el-select v-model="search.insState" size="small" placeholder="è¯·éæ©" style="width: 224px;margin-right: 30px;"> |
| | | <el-option label="å
¨é¨" :value="2"></el-option> |
| | | <el-option label="æªæ£æµ" :value="0"></el-option> |
| | | <el-option label="å·²æ£æµ" :value="1"></el-option> |
| | | </el-select> |
| | | <el-button size="mini" @click="clean()"><span>é ç½®</span></el-button> |
| | | <el-button size="mini" type="primary" style="background: #004EA2;" @click="selectRawInspectsList()"><span>æ¥ |
| | | 询</span></el-button> |
| | | </div> |
| | | <div class="unqualifiedTable"> |
| | | <el-table :data="unqualifiedData" height="630"> |
| | | <el-table-column |
| | | type="selection" |
| | | width="55"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | type="index" |
| | | label="åºå·" |
| | | width="60"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="缺é·åç§°" |
| | | width="97"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="ææç¼ç " |
| | | width="141"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="ææåç§°" |
| | | width="214"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="è§æ ¼åå·"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="åä½" |
| | | width="250"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="æ°é" |
| | | width="75"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="æ¥æ£æ¥æ" |
| | | width="128"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="æ¥æ£äºº" |
| | | width="78"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="å¤çæ¥æ" |
| | | width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="å¤çç¶æ" |
| | | width="100"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="å¤çç»æ" |
| | | width="100"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="æä½" |
| | | width="118"> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-col style="height: 50px;display: flex;align-items: center;justify-content: right;"> |
| | | <el-pagination |
| | | :current-page="currentPage" |
| | | :page-sizes="[10, 20, 30, 50]" |
| | | :page-size="pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="countSize"> |
| | | </el-pagination> |
| | | </el-col> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | // æç´¢æ¡ä»¶ |
| | | search:{}, |
| | | unqualifiedData:[ |
| | | { |
| | | date: '2016-05-02', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-01', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-03', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-01', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-03', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-01', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-03', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-01', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | }, { |
| | | date: '2016-05-03', |
| | | name: 'çå°è', |
| | | address: '䏿µ·å¸' |
| | | } |
| | | ], |
| | | countSize:1, |
| | | pageSize:10, |
| | | currentPage:1 |
| | | } |
| | | }, |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <style scoped> |
| | | |
| | | </style> |
| | | |
| | | |
| | | <template> |
| | | <div class="rawUnqualifiedBox"> |
| | | <Unqualified></Unqualified> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Unqualified from './rawUnqualified/raw.vue' |
| | | export default { |
| | | components:{Unqualified} |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <style scoped> |
| | | |
| | | </style> |
| | | |
| | | |
| | | <template> |
| | | <div class="rawUnqualifiedBox"> |
| | | <Unqualified></Unqualified> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Unqualified from './rawUnqualified/raw.vue' |
| | | export default { |
| | | components:{Unqualified} |
| | | } |
| | | </script> |
| | |
| | | } |
| | | if (token) { |
| | | config.headers['token'] = "" + token |
| | | config.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8' |
| | | // config.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8' |
| | | // config.headers['Content-Type'] = 'application/json' |
| | | } |
| | | // console.log(config) |
| | | if (config.method === 'post' || config.method === 'put') { |
| | | |
| | | config.data = qs.stringify(config.data) |
| | | } |
| | | if(config.headers['Content-Type'] =='application/json'){ |
| | | config.data = qs.parse(config.data) |
| | | // console.log(config.data) |
| | | } |
| | | |
| | | return config |
| | | }, function(error) { |
| | | return Promise.reject(error) |
| | |
| | | k: 4, |
| | | v: "åææä¸åæ ¼å", |
| | | i: "font icon-shouye", |
| | | u: "" |
| | | u: "rawUnqualifiedBox" |
| | | }, { |
| | | k: 5, |
| | | v: "è¿ç¨æ£éª", |
| | |
| | | k: 7, |
| | | v: "ä¸åæ ¼å管ç", |
| | | i: "font icon-shouye", |
| | | u: "" |
| | | u: "unqualifiedManagement" |
| | | }, { |
| | | k: 8, |
| | | v: "å®éªå®¤ç®¡ç", |