13025 用工形式显示不正确

2024年1月19日V01.00.51
liujun 2024-01-05 09:29:48 +08:00
parent c6bacc5cff
commit 07b12c3c05
2 changed files with 4 additions and 35 deletions

View File

@ -172,7 +172,7 @@
<el-form-item label="用工形式" prop="EMPLOYMENT_FORM">
<Treeselect
:options="employmentTypeList"
:normalizer="SpecialNormalizer"
:normalizer="normalizer"
v-model="dataForm.EMPLOYMENT_FORM"
placeholder="请选择用工形式"
no-options-text="暂无数据"
@ -886,12 +886,13 @@ export default {
},
getDict() {
requestFN(
'/xgf/dictionaries/getLevels',
'/xgf/dictionaries/listSelectTree',
{
DICTIONARIES_ID: '720992d898bf4fd7b44bf0ba1f1bbb88'
}
).then((data) => {
this.employmentTypeList = data.list
const employmentTypeList = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')
this.employmentTypeList = this.removeEmptyChildren(employmentTypeList)
})
requestFN(
'/xgf/dictionaries/getLevels',
@ -929,35 +930,6 @@ export default {
//
getDictByDicId(dicId) {
/* var dicListVal = []
return new Promise((resolve) => {
let id = ''
if (!dicId) {
id = '0'
} else {
id = dicId
}
requestFN(
'/dictionaries/getLevelsAndSCount',
{
DICTIONARIES_ID: id
}
).then((data) => {
if (data.list.length > 0) {
dicListVal = data.list.map((e) => {
if (e.zcount == '0') {
return { value: e.DICTIONARIES_ID.toString(), numValue: e.BIANMA.toString(), label: e.NAME, id: e.DICTIONARIES_ID, leaf: true }
} else {
return { value: e.DICTIONARIES_ID.toString(), numValue: e.BIANMA.toString(), label: e.NAME, id: e.DICTIONARIES_ID, children: [], leaf: false }
}
})
} else {
dicListVal = undefined
}
return resolve(dicListVal)
}).catch((e) => {
})
}) */
},
//
mapOpen() {

View File

@ -154,9 +154,6 @@
<el-row :gutter="24">
<el-col :span="12">
<el-form-item label="用工形式" prop="EMPLOYMENT_FORM">
<!-- <el-select v-model="form.EMPLOYMENT_FORM" style="width: 100%;">-->
<!-- <el-option v-for="item in employmentTypeList" :key="item.BIANMA" :label="item.NAME" :value="item.BIANMA" />-->
<!-- </el-select>-->
<Treeselect
:options="employmentTypeList"
:normalizer="normalizer"