From d29d649933262e7e7f85763c1637d3825e432828 Mon Sep 17 00:00:00 2001 From: TimSpan Date: Thu, 28 Nov 2024 14:50:55 +0800 Subject: [PATCH] Update publicUnit.vue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 小修改 按钮颜色 --- .../src/views/query/publicUnit.vue | 32 ++----------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/policeManagement/src/views/query/publicUnit.vue b/policeManagement/src/views/query/publicUnit.vue index 71f5794..9ad450f 100644 --- a/policeManagement/src/views/query/publicUnit.vue +++ b/policeManagement/src/views/query/publicUnit.vue @@ -1,7 +1,5 @@ - @@ -179,8 +174,6 @@ const saveOrUpdateEnterprisesUnit = (params: _FormType, callback: Function) => { initMarker(_mapRef.value?.mapInstance) }} onSearch={debounce((val: string) => { - console.log('onSearch___________________', val) - //@ts-ignore const auto = new AMap.AutoComplete({ city: city, @@ -188,7 +181,6 @@ const saveOrUpdateEnterprisesUnit = (params: _FormType, callback: Function) => { citylimit: true, }) auto.search(val, (status, result) => { - console.log('🚀 ~ auto.search ~ status, result:', status, result) if (status === 'complete') { // 生成组件需要数据 autoAddress.value = result.tips?.map((e) => { @@ -480,8 +472,6 @@ const formItemOptions = ref>(null) const expandedRowRender: TableProMaxProps['expandedRowRender'] = ({ record }) => { - console.log('🚀 ~ record:', record) - const _columns: _TableProps['columns'] = [ { dataIndex: 'name', @@ -567,18 +557,12 @@ const expandedRowRender: TableProMaxProps['expandedRowRender'] = ({ record }) => return ( { - console.log('🚀 ~ customRender ~ record:编辑回显参数', record) visible.value = true serviceTitle.value = '编辑服务项目' idNumberDisabled.value = record.twoType.value !== 'outsource' - { - /* */ - } - formParams.value.securityUnitId = record.securityUnitId //企事业单位id - formParams.value.enterprisesUnitId = record.enterprisesUnitId //企事业单位id formParams.value.snowFlakeId = record.snowFlakeId //id formParams.value.projectManagerMiniProgramUserId = record.projectManagerMiniProgramUserId //项目经理小程序用户id @@ -594,10 +578,6 @@ const expandedRowRender: TableProMaxProps['expandedRowRender'] = ({ record }) => formParams.value.houseTotal = record.houseTotal //户数 formParams.value.staffTotal = record.staffTotal //工作人员数量 formParams.value.securityUserTotal = record.securityUserTotal //保安人员数量 - - { - /* formParams.value.administrativeDivisionCodes = record.enterprisesUnitAdministrativeDivisionCodes */ - } }} > 编辑 @@ -619,8 +599,7 @@ const expandedRowRender: TableProMaxProps['expandedRowRender'] = ({ record }) => }, }, ] - const _reqApi: _TableProps['requestApi'] = async (params) => { - console.log('🚀 ~ params:', params) + const _reqApi: _TableProps['requestApi'] = async () => { // @ts-ignore return await api.get('/m2/eu/listSp', { enterprisesUnitId: record?.snowFlakeId }) } @@ -635,7 +614,7 @@ const expandedRowRender: TableProMaxProps['expandedRowRender'] = ({ record }) => tableHeader: (_) => { return ( - @@ -669,12 +648,8 @@ const closeModal = async () => { } const submit = async () => { - console.log('formParams.value____________________', formParams.value) - await formRef.value.validate() - const serviceProjectSaveOrUpdateParams = { ...formParams.value } - const resp = await api.post('/m2/eu/add_upd_sp', serviceProjectSaveOrUpdateParams) message.success(resp.message) await _tableRef.value.requestGetTableData() @@ -686,7 +661,6 @@ onMounted(async () => { securityUnitIdList.value = res.data }) const addService = function (record) { - console.log('🚀 ~ addService ~ record:', record) formParams.value.enterprisesUnitId = record.snowFlakeId //企事业单位Id visible.value = true }