This commit is contained in:
qsh
2024-07-19 10:45:50 +08:00
parent f56305505f
commit 72a049b7b8
3 changed files with 26 additions and 18 deletions

View File

@@ -29,9 +29,10 @@
<el-select v-model="formData.planId" placeholder="请选择" filterable>
<el-option
v-for="item in planOptions"
:key="item.value"
:label="item.label"
:value="item.value"
:key="item.percentageId"
:label="item.percentageName"
:disabled="item.status == 1"
:value="item.percentageId"
/>
</el-select>
</el-form-item>
@@ -104,6 +105,8 @@
<script setup name="DialogSalarySetting">
import * as SalaryApi from '@/api/finance/salary'
import { getPlanSimpleList } from '@/api/finance/plan'
const message = useMessage() // 消息弹窗
const dialogVisible = ref(false) // 弹窗的是否展示
@@ -133,7 +136,9 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
const planOptions = ref([])
function getOptions() {
planOptions.value = []
getPlanSimpleList().then((data) => {
planOptions.value = data
})
}
/** 重置表单 */