Commit e0b3e9c7 authored by Hagsn3's avatar Hagsn3

提交代码

parent dc12c4f3
...@@ -36,38 +36,6 @@ ...@@ -36,38 +36,6 @@
</el-button> </el-button>
</div> </div>
</div> </div>
<!-- <div class="top">-->
<!-- <div v-if="tabList[2].number == 0" class="oneButtion">-->
<!-- <div class="spanTest"><div class="testContent">{{ tabList[2].label }}</div></div>-->
<!-- </div>-->
<!-- <div v-if="tabList[2].number > 0" class="oneButtion">-->
<!-- <el-button-->
<!-- :class="actionIndex === 2 ? 'button_rowBtn_action' : 'button_rowBtn'"-->
<!-- type="primary"-->
<!-- @click="handleToggle(tabList[2],2)"-->
<!-- >-->
<!-- <div class="buttionText">-->
<!-- <span>{{ tabList[2].label }}</span>-->
<!-- <span style="color: red">({{ tabList[2].number }})</span>-->
<!-- </div>-->
<!-- </el-button>-->
<!-- </div>-->
<!-- <div v-if="tabList[3].number == 0" class="oneButtion">-->
<!-- <div class="spanTest"><div class="testContent">{{ tabList[3].label }}</div></div>-->
<!-- </div>-->
<!-- <div v-if="tabList[3].number > 0" class="oneButtion">-->
<!-- <el-button-->
<!-- :class="actionIndex === 3 ? 'button_rowBtn_action' : 'button_rowBtn'"-->
<!-- type="primary"-->
<!-- @click="handleToggle(tabList[3],3)"-->
<!-- >-->
<!-- <div class="buttionText">-->
<!-- <span>{{ tabList[3].label }}</span>-->
<!-- <span style="color: red">({{ tabList[3].number }})</span>-->
<!-- </div>-->
<!-- </el-button>-->
<!-- </div>-->
<!-- </div>-->
</div> </div>
<!-- 清空按钮 --> <!-- 清空按钮 -->
<div class="clearRegion"> <div class="clearRegion">
...@@ -76,15 +44,15 @@ ...@@ -76,15 +44,15 @@
<!-- 第三部分--> <!-- 第三部分-->
<div class="threeTable"> <div class="threeTable">
<hr class="tableHr"> <hr class="tableHr">
<!-- style="margin-left: 50%; transform: translateX(-25%)"--> <!-- style="margin-left: 50%; transform: translateX(-25%)"-->
<el-table :data="tableList" > <el-table :data="tableList">
<!-- <el-table-column type="index" label="序号" width="50" />--> <!-- <el-table-column type="index" label="序号" width="50" />-->
<el-table-column label="pn" width="95" > <el-table-column label="pn" width="95">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.pn || '-' }}</span> <span>{{ scope.row.pn || '-' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="lot" > <el-table-column label="lot">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.lot || '-' }}</span> <span>{{ scope.row.lot || '-' }}</span>
</template> </template>
...@@ -144,8 +112,13 @@ export default { ...@@ -144,8 +112,13 @@ export default {
// 获取申请分类的数量 // 获取申请分类的数量
getTabList() { getTabList() {
querykindsNumber().then(res => { querykindsNumber().then(res => {
const tabArray = [{ type: '1', number: 0 }, { type: '20', number: 0 }]
if (res.code === 200) { if (res.code === 200) {
this.tabList = res.data for (let a = 0; a < res.data.length; a++) {
if (res.data[a].type == '1') { tabArray[0].number = res.data[a].number }
if (res.data[a].type == '20') { tabArray[1].number = res.data[a].number }
}
this.tabList = tabArray
console.log('检查列表', this.tabList) console.log('检查列表', this.tabList)
this.getTableAndIndex(res.data).then(() => {}) this.getTableAndIndex(res.data).then(() => {})
} }
...@@ -175,7 +148,7 @@ export default { ...@@ -175,7 +148,7 @@ export default {
var tempIndexList = [] var tempIndexList = []
var tempTypeList = [] var tempTypeList = []
list.forEach((item, index) => { list.forEach((item, index) => {
if (item.number > 0 || item.number === '0') { if (item.number > 0) {
tempIndexList.push(index) tempIndexList.push(index)
tempTypeList.push(item.type) tempTypeList.push(item.type)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment