服务指令包-获取服务指令列表启用状态01改为YN
This commit is contained in:
parent
5d0851eaa7
commit
43d7f36fe9
|
|
@ -47,7 +47,7 @@
|
|||
<a-button type="dashed" size="small" @click="packageEdit(directive)">编辑</a-button>
|
||||
</div>
|
||||
<div style="float:right;margin-top: 20px;">
|
||||
<a-switch style="margin-left:10px" :checked="directive.izEnabled == '0'" @change="handleChangeIzEnabled(directive)" checked-children="启" un-checked-children="停" />
|
||||
<a-switch style="margin-left:10px" :checked="directive.izEnabled == 'Y'" @change="handleChangeIzEnabled(directive)" checked-children="启" un-checked-children="停" />
|
||||
</div>
|
||||
</div>
|
||||
</a-card>
|
||||
|
|
@ -131,7 +131,7 @@ const pageParams = ref({ pageNo: 1, pageSize: 12 })
|
|||
|
||||
//启用停用
|
||||
function handleChangeIzEnabled(record){
|
||||
var izEnabled = record.izEnabled == '0' ? '1' : '0';
|
||||
var izEnabled = record.izEnabled == 'Y' ? 'N' : 'Y';
|
||||
var params = {id:record.id,izEnabled};
|
||||
defHttp.post({ url: '/services/directivePackage/directivePackage/edit', params }).then((res) => {
|
||||
searchQuery()
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<a-form-item name="instructionTagId">
|
||||
<template #label><span title="分类标签">分类标签</span></template>
|
||||
<j-dict-select-tag v-model:value="queryParam.instructionTagId"
|
||||
:dictCode="`nu_config_service_instruction_tag,instruction_name,id,del_flag = 0 and iz_enabled = 0 order by sort asc`"
|
||||
:dictCode="`nu_config_service_instruction_tag,instruction_name,id,del_flag = 0 and iz_enabled = 'Y' order by sort asc`"
|
||||
placeholder="请选择分类标签" allowClear :ignoreDisabled="true" @change="onInstructionTagChange" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
<a-form-item name="categoryId">
|
||||
<template #label><span title="服务类别">服务类别</span></template>
|
||||
<j-dict-select-tag type="list" v-model:value="queryParam.categoryId"
|
||||
:dictCode="`nu_config_service_category,category_name,id,del_flag = 0 and iz_enabled = 0 and instruction_id = '${queryParam.instructionTagId || ''}' order by sort asc`"
|
||||
:dictCode="`nu_config_service_category,category_name,id,del_flag = 0 and iz_enabled = 'Y' and instruction_id = '${queryParam.instructionTagId || ''}' order by sort asc`"
|
||||
placeholder="请选择服务类别" allowClear :ignoreDisabled="true" @change="onCategoryChange" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
<a-form-item name="typeId">
|
||||
<template #label><span title="服务类型">服务类型</span></template>
|
||||
<j-dict-select-tag type="list" v-model:value="queryParam.typeId"
|
||||
:dictCode="`nu_config_service_type,type_name,id,del_flag = 0 and iz_enabled = 0 and category_id = '${queryParam.categoryId || ''}' order by sort asc`"
|
||||
:dictCode="`nu_config_service_type,type_name,id,del_flag = 0 and iz_enabled = 'Y' and category_id = '${queryParam.categoryId || ''}' order by sort asc`"
|
||||
placeholder="请选择服务类型" allowClear :ignoreDisabled="true" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
|
@ -233,7 +233,8 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
|||
beforeFetch: async (params) => {
|
||||
params.column = 'createTime';
|
||||
params.order = 'desc';
|
||||
params.cycleType = '1,2'
|
||||
params.cycleType = '1,2';
|
||||
params.izEnabled = 'Y';
|
||||
let rangerQuery = await setRangeQuery();
|
||||
return Object.assign(params, rangerQuery);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@
|
|||
</a-popover>
|
||||
</div>
|
||||
<div style="float:right;margin-top: 20px;">
|
||||
<a-switch style="margin-left:10px" :checked="directive.izEnabled == '0'" disabled checked-children="启" un-checked-children="停" />
|
||||
<a-switch style="margin-left:10px" :checked="directive.izEnabled == 'Y'" disabled checked-children="启" un-checked-children="停" />
|
||||
</div>
|
||||
</div>
|
||||
</a-card>
|
||||
|
|
|
|||
Loading…
Reference in New Issue