上传
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
/** 重置表单 */
|
||||
|
||||
Reference in New Issue
Block a user