Browse Source

优化页面

master
李磊 3 years ago
parent
commit
f5f79b7df9
  1. 25
      src/views/task/list.vue
  2. 22
      src/views/ysjl/3000/common/index.vue
  3. 5
      src/views/ysjl/3000/jj/wjf-yy/index.vue
  4. 5
      src/views/ysjl/3000/jj/xfdt/index.vue
  5. 7
      src/views/ysjl/3000/jj/yjf-yy/index.vue
  6. 5
      src/views/ysjl/3000/jj/yy-jj/index.vue
  7. 5
      src/views/ysjl/3000/jj/yyfb/index.vue
  8. 5
      src/views/ysjl/3000/jj/zdft/index.vue
  9. 5
      src/views/ysjl/3000/jj/zw/index.vue

25
src/views/task/list.vue

@ -32,7 +32,7 @@
<el-option v-for="item in sbzlList" :key="item.value" :label="item.label" :value="item.value" /> <el-option v-for="item in sbzlList" :key="item.value" :label="item.label" :value="item.value" />
</el-select> </el-select>
<el-select v-model="listQuery.neibuleibie" placeholder="请选择检验类别" clearable> <el-select v-model="listQuery.neibuleibie" placeholder="请选择检验类别" clearable>
<el-option v-for="item in searchNblist" :key="item.code" :label="item.name" :value="item.code" /> <el-option v-for="item in $store.getters.allCategory" v-show="item.parentId" :key="item.code" :label="item.name" :value="item.code" />
</el-select> </el-select>
<el-input v-model="listQuery.shiyongdanwei" placeholder="使用单位名称" clearable style="width: 340px" @keyup.enter.native="handleFilter" /> <el-input v-model="listQuery.shiyongdanwei" placeholder="使用单位名称" clearable style="width: 340px" @keyup.enter.native="handleFilter" />
<el-input v-model="listQuery.zhucedaima" placeholder="注册代码" clearable style="width: 230px" @keyup.enter.native="handleFilter" /> <el-input v-model="listQuery.zhucedaima" placeholder="注册代码" clearable style="width: 230px" @keyup.enter.native="handleFilter" />
@ -183,17 +183,10 @@ import Pagination from '@/components/Pagination'
import Utils from '../../utils/contact.js' import Utils from '../../utils/contact.js'
import { getOwnList, terminateRenwu, completeRenwuFn } from '@/api/renwu' import { getOwnList, terminateRenwu, completeRenwuFn } from '@/api/renwu'
import { cancelRenwuFn } from '@/api/common' import { cancelRenwuFn } from '@/api/common'
import { mapGetters } from 'vuex'
import qs from 'qs' import qs from 'qs'
export default { export default {
name: 'MyTask', name: 'MyTask',
components: { Sticky, Pagination }, components: { Sticky, Pagination },
filters: {
screen(value) {
console.log(value, 254444)
return value.charAt(0).toUpperCase() + value.slice(1)
}
},
data() { data() {
return { return {
total: 0, total: 0,
@ -244,21 +237,7 @@ export default {
sbpzdm: '' sbpzdm: ''
}, },
currentRenwuId: 0, currentRenwuId: 0,
dialogEnclosureVisible: false, dialogEnclosureVisible: false
isSysUser: this.$store.getters.clientType === 'System',
searchNblist: []
}
},
computed: {
...mapGetters(['allCategory'])
},
watch: {
allCategory: {
handler(n, o) {
console.log(n.filter(item => item.parentId))
this.searchNblist = n.filter(item => item.parentId)
},
deep: true
} }
}, },
created() { created() {

22
src/views/ysjl/3000/common/index.vue

@ -220,22 +220,10 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row <el-row v-if="fieldSetting.anzhuangdidian" :gutter="20">
v-if="
fromType === 2 ||
fromType === 6 ||
fromType === 8 ||
fromType === 12
"
:gutter="20"
>
<el-col :span="18"> <el-col :span="18">
<el-form-item label="安装地点" prop="anzhuangdidian"> <el-form-item label="安装地点" prop="anzhuangdidian">
<el-input <el-input v-model="ysjl.anzhuangdidian" type="text" :disabled="edit" />
v-model="ysjl.anzhuangdidian"
type="text"
:disabled="edit"
/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -310,7 +298,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row v-if="fromType !== 6 && fromType !== 10" :gutter="20"> <el-row v-if="fromType !== 2 && fromType !== 6 && fromType !== 10" :gutter="20">
<el-col :span="18"> <el-col :span="18">
<el-form-item label="设备使用地点" prop="anzhuangdidian"> <el-form-item label="设备使用地点" prop="anzhuangdidian">
<el-input <el-input
@ -813,6 +801,10 @@ export default {
jlbh1: { jlbh1: {
type: String, type: String,
default: 'DT' default: 'DT'
},
fieldSetting: {
type: Object,
default: () => {}
} }
}, },
data() { data() {

5
src/views/ysjl/3000/jj/wjf-yy/index.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<baseInfo :from-type="type" :array-group="arrayGroup" :jlbh1="'DTJ'" /> <baseInfo :from-type="type" :array-group="arrayGroup" :jlbh1="'DTJ'" :field-setting="fieldSetting" />
</div> </div>
</template> </template>
<script> <script>
@ -12,6 +12,9 @@ export default {
data() { data() {
return { return {
type: 2, type: 2,
fieldSetting: {
anzhuangdidian: true
},
arrayGroup: [ arrayGroup: [
{ {
header: [ header: [

5
src/views/ysjl/3000/jj/xfdt/index.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<baseInfo :from-type="type" :array-group="arrayGroup" :jlbh1="'DTJ'" /> <baseInfo :from-type="type" :array-group="arrayGroup" :jlbh1="'DTJ'" :field-setting="fieldSetting" />
</div> </div>
</template> </template>
<script> <script>
@ -12,6 +12,9 @@ export default {
data() { data() {
return { return {
type: 10, type: 10,
fieldSetting: {
anzhuangdidian: true
},
arrayGroup: [ arrayGroup: [
{ {
header: [ header: [

7
src/views/ysjl/3000/jj/yjf-yy/index.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<baseInfo :from-type="type" :jlbh1="'DTJ'" /> <baseInfo :from-type="type" :jlbh1="'DTJ'" :field-setting="fieldSetting" />
</div> </div>
</template> </template>
<script> <script>
@ -11,7 +11,10 @@ export default {
components: { baseInfo }, components: { baseInfo },
data() { data() {
return { return {
type: 2 type: 2,
fieldSetting: {
anzhuangdidian: true
}
} }
}, },
computed: { computed: {

5
src/views/ysjl/3000/jj/yy-jj/index.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<baseInfo :from-type="type" :array-group="arrayGroup" :jlbh1="'DTJ'" /> <baseInfo :from-type="type" :array-group="arrayGroup" :jlbh1="'DTJ'" :field-setting="fieldSetting" />
</div> </div>
</template> </template>
<script> <script>
@ -12,6 +12,9 @@ export default {
data() { data() {
return { return {
type: 4, type: 4,
fieldSetting: {
anzhuangdidian: true
},
arrayGroup: [ arrayGroup: [
{ {
header: [ header: [

5
src/views/ysjl/3000/jj/yyfb/index.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<baseInfo :from-type="type" :array-group="arrayGroup" :jlbh1="'DTJ'" /> <baseInfo :from-type="type" :array-group="arrayGroup" :jlbh1="'DTJ'" :field-setting="fieldSetting" />
</div> </div>
</template> </template>
<script> <script>
@ -12,6 +12,9 @@ export default {
data() { data() {
return { return {
type: 8, type: 8,
fieldSetting: {
anzhuangdidian: true
},
arrayGroup: [ arrayGroup: [
{ {
header: [ header: [

5
src/views/ysjl/3000/jj/zdft/index.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<baseInfo :from-type="type" :array-group="arrayGroup" :jlbh1="'DTJ'" /> <baseInfo :from-type="type" :array-group="arrayGroup" :jlbh1="'DTJ'" :field-setting="fieldSetting" />
</div> </div>
</template> </template>
<script> <script>
@ -12,6 +12,9 @@ export default {
data() { data() {
return { return {
type: 6, type: 6,
fieldSetting: {
anzhuangdidian: true
},
arrayGroup: [ arrayGroup: [
{ {
header: [ header: [

5
src/views/ysjl/3000/jj/zw/index.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<baseInfo :from-type="type" :array-group="arrayGroup" :jlbh1="'DTJ'" /> <baseInfo :from-type="type" :array-group="arrayGroup" :jlbh1="'DTJ'" :field-setting="fieldSetting" />
</div> </div>
</template> </template>
<script> <script>
@ -12,6 +12,9 @@ export default {
data() { data() {
return { return {
type: 12, type: 12,
fieldSetting: {
anzhuangdidian: true
},
arrayGroup: [ arrayGroup: [
{ {
header: [ header: [

Loading…
Cancel
Save