优化
This commit is contained in:
@ -8,7 +8,7 @@ import { MonthPlanVO, MonthPlanForm, MonthPlanQuery } from '@/api/out/monthPlan/
|
|||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const listMonthPlan = (query?: MonthPlanQuery): AxiosPromise<MonthPlanVO[]> => {
|
export const listMonthPlan = (query?: any) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/out/monthPlan/list',
|
url: '/out/monthPlan/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="类型" prop="type">
|
<el-form-item label="类型" prop="type">
|
||||||
<el-select v-model="queryParams.type" placeholder="请选择类型">
|
<el-select v-model="queryParams.type" placeholder="请选择类型">
|
||||||
|
<el-option label="全部" value="0" />
|
||||||
<el-option label="对甲" value="1" />
|
<el-option label="对甲" value="1" />
|
||||||
<el-option label="对乙" value="2" />
|
<el-option label="对乙" value="2" />
|
||||||
</el-select>
|
</el-select>
|
||||||
@ -102,7 +103,7 @@
|
|||||||
|
|
||||||
<script setup name="MonthPlan" lang="ts">
|
<script setup name="MonthPlan" lang="ts">
|
||||||
import { listMonthPlan, getMonthPlan, delMonthPlan, addMonthPlan, updateMonthPlan } from '@/api/out/monthPlan';
|
import { listMonthPlan, getMonthPlan, delMonthPlan, addMonthPlan, updateMonthPlan } from '@/api/out/monthPlan';
|
||||||
import { MonthPlanVO, MonthPlanQuery, MonthPlanForm } from '@/api/out/monthPlan/types';
|
import { MonthPlanVO } from '@/api/out/monthPlan/types';
|
||||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||||
const { out_value_type } = toRefs<any>(proxy?.useDict('out_value_type'));
|
const { out_value_type } = toRefs<any>(proxy?.useDict('out_value_type'));
|
||||||
const { wf_business_status } = toRefs<any>(proxy?.useDict('wf_business_status'));
|
const { wf_business_status } = toRefs<any>(proxy?.useDict('wf_business_status'));
|
||||||
@ -163,7 +164,7 @@ const data = reactive({
|
|||||||
valueType: undefined,
|
valueType: undefined,
|
||||||
planAuditStatus: undefined,
|
planAuditStatus: undefined,
|
||||||
completeAuditStatus: undefined,
|
completeAuditStatus: undefined,
|
||||||
type: '1',
|
type: '0',
|
||||||
params: {}
|
params: {}
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
@ -180,7 +181,11 @@ const { queryParams, form, rules } = toRefs(data);
|
|||||||
/** 查询月度产值计划列表 */
|
/** 查询月度产值计划列表 */
|
||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await listMonthPlan(queryParams.value);
|
let type = queryParams.value.type;
|
||||||
|
if (type == '0') {
|
||||||
|
type = '';
|
||||||
|
}
|
||||||
|
const res = await listMonthPlan({ ...queryParams.value, type: type });
|
||||||
monthPlanList.value = res.rows;
|
monthPlanList.value = res.rows;
|
||||||
total.value = res.total;
|
total.value = res.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
|
Reference in New Issue
Block a user