Bladeren bron

报表管理-更新

lxh 11 maanden geleden
bovenliggende
commit
a356e29b16

+ 18 - 6
src/views/vent/reportManager/comment/DeviceModal.vue

@@ -22,7 +22,13 @@
           <JDictSelectTag v-if="kindType == 'gasSReport'" v-model:value="formState.reportType" placeholder="请选择报表类型..."
             dictCode="gasSReport" />
         </a-form-item>
-        <a-form-item label="选择模板:">
+        <a-form-item label="模式类型:">
+          <a-radio-group v-model:value="formState.modelType" name="radioGroup">
+            <a-radio v-for="item in radioList" :value="item.value">{{ item.label }}</a-radio>
+          </a-radio-group>
+        </a-form-item>
+
+        <a-form-item label="选择模板:" v-if="formState.modelType">
           <a-select v-model:value="formState.handTempid">
             <a-select-option v-for="item in optionList" :key="item.value">{{ item.label }}</a-select-option>
           </a-select>
@@ -92,9 +98,14 @@ let formState = reactive({
   busKind: '',
   handTempid: '',
   reportType: '',
+  modelType:'',
 });
 let kindType = ref('ventSReport')
 let optionList = ref<any[]>([])
+let radioList=reactive<any[]>([
+  {label:"手动",value:1},
+  {label:"自动",value:0},
+])
 
 //设置标题
 let title = computed(() => {
@@ -181,10 +192,11 @@ function changeKind(val) {
 }
 //点击图标关闭弹框
 const closeModalFn = () => {
-  formState.busKind=''
-  formState.fileName=''
-  formState.handTempid=''
-  formState.reportType=''
+  formState.modelType=''
+  formState.busKind = ''
+  formState.fileName = ''
+  formState.handTempid = ''
+  formState.reportType = ''
   closeModal();
 };
 //新增保存
@@ -193,7 +205,7 @@ let save = () => {
 };
 
 watch(() => props.optionLists, (newV, oldV) => {
-  console.log(newV,'777777777777777----------------')
+  console.log(newV, '99999999----------')
   optionList.value = newV
 }, { immediate: true, deep: true })
 </script>

+ 0 - 1
src/views/vent/reportManager/comment/NormalTable.vue

@@ -35,7 +35,6 @@ import DeviceModal from './DeviceModal.vue';
 import tempUpload from './common/tempUpload.vue'
 import { getTableHeaderColumns } from '/@/hooks/web/useWebColumns';
 import { useListPage } from '/@/hooks/system/useListPage';
-import { getQuery } from '../reportManager.api'
 
 const props = defineProps({
   moduleList:{