diff --git a/src/views/analysisrule/AnalysisRule.data.ts b/src/views/analysisrule/AnalysisRule.data.ts index f3092d0..14ad57d 100644 --- a/src/views/analysisrule/AnalysisRule.data.ts +++ b/src/views/analysisrule/AnalysisRule.data.ts @@ -44,11 +44,60 @@ export const columns: BasicColumn[] = [ // return text; // }, // }, + // { + // title: '地区类型', + // align: "center", + // dataIndex: 'regionType' + // }, +]; + + +//列表数据 +export const columnsJx: BasicColumn[] = [ { - title: '地区类型', + title: '电话号', align: "center", - dataIndex: 'regionType' + dataIndex: 'sim' }, + { + title: '规则代码', + align: "center", + dataIndex: 'code' + }, + { + title: '规则描述', + align: "center", + dataIndex: 'remarks' + }, + { + title: '热力公司', + align: "center", + dataIndex: 'companyId_dictText' + }, + { + title: '锅炉房', + align: "center", + dataIndex: 'sourceId_dictText' + }, + // { + // title: '换热站', + // align: "center", + // dataIndex: 'stationId_dictText' + // }, + // { + // title: '创建时间', + // align: "center", + // dataIndex: 'createDate', + // customRender:({text}) =>{ + // text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text); + // return text; + // }, + // }, + // { + // title: '地区类型', + // align: "center", + // dataIndex: 'regionType' + // }, ]; // 高级查询数据 diff --git a/src/views/analysisrule/AnalysisRuleList.vue b/src/views/analysisrule/AnalysisRuleList.vue index bf585c7..fd329f3 100644 --- a/src/views/analysisrule/AnalysisRuleList.vue +++ b/src/views/analysisrule/AnalysisRuleList.vue @@ -181,7 +181,7 @@ function handleSuperQuery(params) { */ function handleAdd() { registerModal.value.disableSubmit = false; - registerModal.value.add(); + registerModal.value.add({regionType:'城区'}); } /** diff --git a/src/views/analysisrule/AnalysisRuleListJx.vue b/src/views/analysisrule/AnalysisRuleListJx.vue index 93422f3..8920e58 100644 --- a/src/views/analysisrule/AnalysisRuleListJx.vue +++ b/src/views/analysisrule/AnalysisRuleListJx.vue @@ -85,7 +85,7 @@ import { ref, reactive, watch } from 'vue'; import { BasicTable, useTable, TableAction } from '/@/components/Table'; import { useListPage } from '/@/hooks/system/useListPage'; -import { columns, superQuerySchema } from './AnalysisRule.data'; +import { columnsJx, superQuerySchema } from './AnalysisRule.data'; import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './AnalysisRule.api'; import { downloadFile } from '/@/utils/common/renderUtils'; import AnalysisRuleModal from './components/AnalysisRuleModal.vue' @@ -129,7 +129,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ tableProps: { title: 'bl_analysis_rule', api: list, - columns, + columns: columnsJx, canResize: false, useSearchForm: false, actionColumn: { @@ -181,7 +181,7 @@ function handleSuperQuery(params) { */ function handleAdd() { registerModal.value.disableSubmit = false; - registerModal.value.add(); + registerModal.value.add({regionType:'郊县'}); } /** diff --git a/src/views/analysisrule/components/AnalysisRuleForm.vue b/src/views/analysisrule/components/AnalysisRuleForm.vue index a9c7a98..3654332 100644 --- a/src/views/analysisrule/components/AnalysisRuleForm.vue +++ b/src/views/analysisrule/components/AnalysisRuleForm.vue @@ -23,18 +23,18 @@ - + - + - + - + @@ -79,9 +79,9 @@ const formData = reactive>({ sim: '', code: '', remarks: '', - companyId: undefined, - sourceId: undefined, - stationId: undefined, + companyId: '', + sourceId: '', + stationId: '', createDate: '', regionType: '', conpanyName: '', @@ -94,7 +94,7 @@ const wrapperCol = ref({ xs: { span: 24 }, sm: { span: 16 } }); const confirmLoading = ref(false); //表单验证 const validatorRules = reactive({ - regionType: [{ required: true, message: '请输入地区类型!' },], + // regionType: [{ required: true, message: '请输入地区类型!' },], }); const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false }); @@ -114,8 +114,8 @@ const disabled = computed(() => { /** * 新增 */ -function add() { - edit({}); +function add(record) { + edit(record); } /** diff --git a/src/views/analysisrule/components/AnalysisRuleModal.vue b/src/views/analysisrule/components/AnalysisRuleModal.vue index 136b127..594a8bf 100644 --- a/src/views/analysisrule/components/AnalysisRuleModal.vue +++ b/src/views/analysisrule/components/AnalysisRuleModal.vue @@ -19,11 +19,11 @@ /** * 新增 */ - function add() { + function add(record) { title.value = '新增'; visible.value = true; nextTick(() => { - registerForm.value.add(); + registerForm.value.add(record); }); } diff --git a/src/views/base/waterFlowConfig/BlWaterFlowConfig.data.ts b/src/views/base/waterFlowConfig/BlWaterFlowConfig.data.ts index fba307c..25f98b3 100644 --- a/src/views/base/waterFlowConfig/BlWaterFlowConfig.data.ts +++ b/src/views/base/waterFlowConfig/BlWaterFlowConfig.data.ts @@ -36,6 +36,7 @@ export const columns: BasicColumn[] = [ }, ]; + // 高级查询数据 export const superQuerySchema = { sn: {title: 'SN',order: 0,view: 'text', type: 'string',}, diff --git a/src/views/base/waterFlowConfig/components/BlWaterFlowConfigForm.vue b/src/views/base/waterFlowConfig/components/BlWaterFlowConfigForm.vue index 0f0b869..c02d517 100644 --- a/src/views/base/waterFlowConfig/components/BlWaterFlowConfigForm.vue +++ b/src/views/base/waterFlowConfig/components/BlWaterFlowConfigForm.vue @@ -11,12 +11,12 @@ - + - +