Commit dc12c4f3 authored by Hagsn3's avatar Hagsn3

提交代码

parent 319b0c99
...@@ -4,7 +4,10 @@ ...@@ -4,7 +4,10 @@
<el-form 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">
<div class="searchDiv"> <div class="searchDiv">
<el-form-item label="ptype:"> <el-form-item label="ptype:">
<span>{{ form.ptype && getDictLabelByValue(typeList, form.ptype.trim()) || '-' }}</span> <!-- <span>{{ form.ptype && getDictLabelByValue(typeList, form.ptype.trim()) || '-' }}</span>-->
<span v-if="form.ptype === '1'">jb</span>
<span v-else-if="form.ptype === '20'">jl</span>
<span v-else>-</span>
</el-form-item> </el-form-item>
<el-form-item label="code:"> <el-form-item label="code:">
<span>{{ form.orderCode || '-' }}</span> <span>{{ form.orderCode || '-' }}</span>
...@@ -120,7 +123,7 @@ export default { ...@@ -120,7 +123,7 @@ export default {
}, },
created() { created() {
this.focusing() this.focusing()
this.getAllDict() // this.getAllDict()
// 获取数据字典 // 获取数据字典
this.getDetail() this.getDetail()
}, },
...@@ -136,25 +139,6 @@ export default { ...@@ -136,25 +139,6 @@ export default {
this.$refs.input1.focus() this.$refs.input1.focus()
}) })
}, },
getAllDict() {
getDict('APPLICATION_TYPE').then(res => {
if (res.code === 200) {
console.log('res的得的', res)
this.typeList = res.data
}
})
},
getDictLabelByValue(list, value) {
let label = '-'
if (list && list.length > 0 && value) {
if (list.find(item => item.dictValue === value)) {
label = list.find(item => item.dictValue === value).dictLabel
console.log('111')
return label
}
}
return label
},
tableRowClassName({ row, rowIndex }) { tableRowClassName({ row, rowIndex }) {
if (this.rowIndexList.includes(rowIndex)) { if (this.rowIndexList.includes(rowIndex)) {
return 'hight_row' return 'hight_row'
......
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