Commit 53247982 authored by hubaoshan's avatar hubaoshan

pd 1.0

parent 80e3a5d4
...@@ -2,68 +2,85 @@ ...@@ -2,68 +2,85 @@
<div class="application"> <div class="application">
<!-- 第一部分 --> <!-- 第一部分 -->
<div class="oneRegion"> <div class="oneRegion">
<!-- <div class="top">-->
<!-- <div v-if="tabList[0].number == 0" class="oneButtion">-->
<!-- <div class="spanTest">-->
<!-- <div class="testContent">{{ tabList[0].label }}</div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div v-if="tabList[0].number > 0" class="oneButtion">-->
<!-- <el-button-->
<!-- :class="actionIndex === 0 ? 'button_rowBtn_action' : 'button_rowBtn'"-->
<!-- type="primary"-->
<!-- @click="handleToggle(tabList[0],0)"-->
<!-- >-->
<!-- <div class="buttionText">-->
<!-- <span>{{ tabList[0].label }}</span>-->
<!-- <span style="color: red">({{ tabList[0].number }})</span>-->
<!-- </div>-->
<!-- </el-button>-->
<!-- </div>-->
<!-- <div v-if="tabList[1].number == 0" class="oneButtion">-->
<!-- <div class="spanTest"><div class="testContent">{{ tabList[1].label }}</div></div>-->
<!-- </div>-->
<!-- <div v-if="tabList[1].number > 0" class="oneButtion">-->
<!-- <el-button-->
<!-- :class="actionIndex === 1 ? 'button_rowBtn_action' : 'button_rowBtn'"-->
<!-- type="primary"-->
<!-- @click="handleToggle(tabList[1],1)"-->
<!-- >-->
<!-- <div class="buttionText">-->
<!-- <span>{{ tabList[1].label }}</span>-->
<!-- <span style="color: red">({{ tabList[1].number }})</span>-->
<!-- </div>-->
<!-- </el-button>-->
<!-- </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 class="top"> <div class="top">
<div v-if="tabList[0].number == 0" class="oneButtion"> <div v-if="tabList[4].number == 0" class="oneButtion">
<div class="spanTest"> <div class="spanTest"><div class="testContent">{{ tabList[4].label }}</div></div>
<div class="testContent">{{ tabList[0].label }}</div>
</div>
</div> </div>
<div v-if="tabList[0].number > 0" class="oneButtion"> <div v-if="tabList[4].number > 0" class="oneButtion">
<el-button <el-button
:class="actionIndex === 0 ? 'button_rowBtn_action' : 'button_rowBtn'" :class="actionIndex === 4 ? 'button_rowBtn_action' : 'button_rowBtn'"
type="primary" type="primary"
@click="handleToggle(tabList[0],0)" @click="handleToggle(tabList[4],4)"
> >
<div class="buttionText"> <div class="buttionText">
<span>{{ tabList[0].label }}</span> <span>{{ tabList[4].label }}</span>
<span style="color: red">({{ tabList[0].number }})</span> <span style="color: red">({{ tabList[4].number }})</span>
</div>
</el-button>
</div>
<div v-if="tabList[1].number == 0" class="oneButtion">
<div class="spanTest"><div class="testContent">{{ tabList[1].label }}</div></div>
</div>
<div v-if="tabList[1].number > 0" class="oneButtion">
<el-button
:class="actionIndex === 1 ? 'button_rowBtn_action' : 'button_rowBtn'"
type="primary"
@click="handleToggle(tabList[1],1)"
>
<div class="buttionText">
<span>{{ tabList[1].label }}</span>
<span style="color: red">({{ tabList[1].number }})</span>
</div>
</el-button>
</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> </div>
</el-button> </el-button>
</div> </div>
...@@ -134,6 +151,10 @@ export default { ...@@ -134,6 +151,10 @@ export default {
type: null, type: null,
number: null number: null
}, },
{
type: null,
number: null
},
{ {
type: null, type: null,
number: null number: null
...@@ -188,14 +209,14 @@ export default { ...@@ -188,14 +209,14 @@ export default {
console.log('tempIndexList', tempIndexList) console.log('tempIndexList', tempIndexList)
console.log('tempTypeList', tempTypeList) console.log('tempTypeList', tempTypeList)
if (tempIndexList.length > 0) { if (tempIndexList.length > 0) {
this.actionIndex = tempIndexList[0] this.actionIndex = tempIndexList[1]
} }
if (tempTypeList.length > 0) { if (tempTypeList.length > 0) {
this.queryparams.ptype = tempTypeList[0] this.queryparams.ptype = tempTypeList[1]
const obj = { const obj = {
page: 1, page: 1,
rows: 10, rows: 10,
ptype: tempTypeList[0], ptype: tempTypeList[1],
dealStatus: '0' dealStatus: '0'
} }
try { try {
......
<template> <template>
<div class="dispose-module"> <div class="dispose-module">
<div class="search"> <div class="search">
<el-form @submit.native.prevent ref="searchRef" :model="form" :rules="rules" label-width="80px" class="formClass" label-position="right"> <el-form ref="searchRef" :model="form" :rules="rules" label-width="80px" class="formClass" label-position="right" @submit.native.prevent>
<el-form-item label="code:"> <el-form-item label="code:">
<span>{{ form.appCode || '-' }}</span> <span>{{ form.appCode || '-' }}</span>
</el-form-item> </el-form-item>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<hr class="disposeHr"> <hr class="disposeHr">
<div class="disposeTable"> <div class="disposeTable">
<div class="searchInput"> <div class="searchInput">
<el-form @submit.native.prevent ref="formRef" :model="searchForm" :rules="rules" label-width="80px" class="formClass" label-position="right"> <el-form ref="formRef" :model="searchForm" :rules="rules" label-width="80px" class="formClass" label-position="right" @submit.native.prevent>
<el-form-item label="位置"> <el-form-item label="位置">
<el-input ref="input1" v-model="searchForm.search" clearable @keyup.enter.native="handleSearch" /> <el-input ref="input1" v-model="searchForm.search" clearable @keyup.enter.native="handleSearch" />
</el-form-item> </el-form-item>
...@@ -56,8 +56,8 @@ ...@@ -56,8 +56,8 @@
import { handleOutWarehouse, persistOut } from '@/api/setup/applicationTable' import { handleOutWarehouse, persistOut } from '@/api/setup/applicationTable'
import { getDict } from '@/api/system/dict/data' import { getDict } from '@/api/system/dict/data'
import {playAudio, successAudio} from '@/utils/common' import { playAudio, successAudio } from '@/utils/common'
import {customUpperCase} from "@/utils/common"; import { customUpperCase } from '@/utils/common'
export default { export default {
name: 'Dispose', name: 'Dispose',
data() { data() {
...@@ -111,6 +111,7 @@ export default { ...@@ -111,6 +111,7 @@ export default {
if (res.code === 200) { if (res.code === 200) {
console.log('res', res) console.log('res', res)
this.typeList = res.data this.typeList = res.data
console.log('ressssssss', this.typeList)
} }
}) })
}, },
......
This diff is collapsed.
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