Explorar el Código

参数设置修改

duy hace 1 año
padre
commit
4bb0464bd9
Se han modificado 1 ficheros con 22 adiciones y 66 borrados
  1. 22 66
      src/views/config/parameter.vue

+ 22 - 66
src/views/config/parameter.vue

@@ -64,14 +64,18 @@
                         </div>
                         <el-alert title="配置流水号生成的规则,是否设置有虚号及位数" type="error" :closable="false" />
                         <div class="hc-card-header-tree-checkbox">
-                            <el-radio-group v-model="lsnumber">
+                            <el-radio-group v-model="dirType">
                                 <el-radio :label="1">按档案主目录类别生成后缀流水号</el-radio>
-                                <el-radio :label="2">按档案目录从上至下的顺序生成流水号</el-radio>
-                                <el-radio :label="3">有虚号</el-radio>
-                                <el-radio :label="4">无虚号</el-radio>
+                                <el-radio :label="0">按档案目录从上至下的顺序生成流水号</el-radio>
                             </el-radio-group>
                             <div class="mt-4">
-                                <el-input-number v-model="xnum" :min="1" :max="10" @change="handleChange" />
+                                <el-radio-group v-model="indexType">
+                                    <el-radio :label="1">有虚号</el-radio>
+                                    <el-radio :label="0">无虚号</el-radio>
+                                </el-radio-group>
+                            </div>
+                            <div class="mt-4">
+                                <el-input-number v-model="indexNum" :min="0" :max="10" />
                             </div>
                         </div>
                     </div>
@@ -97,9 +101,9 @@ const projectTypeList = ref([])
 const factorTypeList = ref([])
 const config = ref({})
 //组卷流水号设置
-const lsnumber = ref(1)
-//虚号位数
-const xnum = ref(0)
+const dirType = ref(0)//目录类型
+const indexType = ref(0)//流水号类型
+const indexNum = ref(0)//虚位数
 //监听
 watch(() => [
     useAppState.getCollapse,
@@ -118,72 +122,17 @@ const searchForm = ref({
     current: 1, size: 20, total: 0,
 })
 
-//树相关的变量
-const primaryKeyId = ref('')
 
-//日期时间被选择
-const betweenTime = ref(null)
-const betweenTimeUpdate = ({ arr, query }) => {
-    betweenTime.value = arr
-    searchForm.value.betweenTime = query
-}
 
-//搜索
-const searchClick = () => {
-    searchForm.value.current = 1
-    getTableData()
-}
 
-//分页被点击
-const pageChange = ({ current, size }) => {
-    searchForm.value.current = current
-    searchForm.value.size = size
-    getTableData()
-}
 
-//表格数据
-const tableRef = ref(null)
-const tableColumn = ref([
-    { key:'key1', name: '报告编号' },
-    { key:'key2', name: '工程部位' },
-    { key:'key3', name: '试验日期' },
-    { key:'key4', name: '样品编号' },
-    { key:'key5', name: '生产厂家' },
-    { key:'key6', name: '规格型号' },
-    { key:'key7', name: '代表数量' },
-    { key:'key8', name: '密度(开kg/m3)' },
-    { key:'key9', name: '比表面积(m2/kg)' },
-    { key:'key10', name: '细度(%)' },
-    { key:'key11', name: '标准稠度用水量(%)' },
-    { key:'key12', name: '初凝结时间(min)' },
-    { key:'key13', name: '终凝结时间(min)' },
-    { key:'key14', name: '安定性霍氏夹法' },
-    { key:'key15', name: '抗折3D胶砂强度(Mpa)' },
-    { key:'key16', name: '抗折28D胶砂强度(Mpa)' },
-    { key:'key17', name: '抗压3D胶砂强度(Mpa)' },
-    { key:'key18', name: '抗压28D胶砂强度(Mpa)' },
-    { key:'key19', name: '试验结果' },
-    { key:'key20', name: '检测类型' },
-    { key:'key21', name: '检测人' },
-])
-const tableData = ref([])
 
-//获取数据
-const tableLoading = ref(false)
-const getTableData = async () => {
 
-}
 
-//多选
-const tableCheckedKeys = ref([])
-const tableSelection = (rows) => {
-    tableCheckedKeys.value = rows
-}
 
-//删除
-const delModalClick = () => {
 
-}
+
+
 
 
 const getConfigByProjectId = async ()=>{
@@ -195,6 +144,9 @@ const getConfigByProjectId = async ()=>{
         // 如果projectType 为 1 则选中 公路工程,为 2,则选中水里水电工程,为3,则两个都选中
         // factorType信息为字符串,格式为"1,2,3,4",包含 1,则选中案卷封面,包含2则选中卷内目录,包含3则选中脊背,包含4则选中备考表
         config.value = res.data
+        dirType.value = res.data['dirType']//目录类型
+        indexType.value = res.data['indexType']//流水号类型
+        indexNum.value = res.data['indexNum']//虚位树
         if (config.value.projectType == 1 || config.value.projectType == 2) {
             projectTypeList.value = [config.value.projectType]
         } else if (config.value.projectType == 3) {
@@ -223,6 +175,10 @@ const uploadModalClick = async () => {
         projectId:projectId.value,
         factorType:factorType,
         projectType:projectType,
+        dirType:dirType.value,
+        indexType:indexType.value,
+        indexNum:indexNum.value,
+
     })
 
     if (code == 200) {
@@ -263,7 +219,7 @@ line-height: 1.75rem;
     }
   .hc-page-content-box-list{
       width: 100%;
-      height: 250px;
+      height: 300px;
       border:rgb(187, 187, 187) solid 1px;
       margin-bottom: 30px;
       .hc-page-content-box-list-title{