yrik 4 anni fa
parent
commit
7d7b9e841e

+ 1 - 1
ruoyi-ui/src/api/system/config.js

@@ -10,7 +10,7 @@ export function listConfig(query) {
 }
 export function listConfigfieu(query) {
   return request({
-    url: '/system/dept/deptList',
+    url: '/system/dept/treeselect',
     method: 'get',
     params: query
   })

+ 30 - 8
ruoyi-ui/src/views/management/nstruction/index.vue

@@ -116,6 +116,7 @@
                         slot="trigger"
                         size="small"
                         type="primary"
+                        :disabled = "disfal"
                         >选择图片</el-button
                       >
                       <!-- margin-top: 15%; transform: translateY(-50%); -->
@@ -127,6 +128,7 @@
                       style="margin-left: 10px; height: 32px"
                       size="small"
                       type="primary"
+                      :disabled = "disfal"
                       @click="submitUploaduccpermit"
                       >开始上传</el-button
                     >
@@ -137,8 +139,9 @@
             <el-form-item label="是否开工建设:" prop="isConstruction">
               <el-select
                 v-model="queryParamstwr.isConstruction"
-                placeholder="系统内置"
+                placeholder="请选择"
                 clearable
+                :disabled = "disfal"
                 size="small"
                 style="width: 458px"
               >
@@ -154,6 +157,7 @@
               <el-date-picker
                 type="date"
                 placeholder="选择日期"
+                :disabled = "disfal"
                 v-model="queryParamstwr.constructionStartdate"
                 style="width: 335px"
               ></el-date-picker>
@@ -161,6 +165,7 @@
             <el-form-item label="预计完工日期:">
               <el-date-picker
                 type="date"
+                :disabled = "disfal"
                 placeholder="选择日期"
                 v-model="queryParamstwr.constructionEnddate"
                 style="width: 335px"
@@ -189,6 +194,7 @@
                         slot="trigger"
                         size="small"
                         type="primary"
+                        :disabled = "disfal"
                         >选择图片</el-button
                       >
                       <!-- margin-top: 15%; transform: translateY(-50%); -->
@@ -200,6 +206,7 @@
                       style="margin-left: 10px; height: 32px"
                       size="small"
                       type="primary"
+                      :disabled = "disfal"
                       @click="submitUploaduccontract"
                       >开始上传</el-button
                     >
@@ -230,6 +237,7 @@
                         slot="trigger"
                         size="small"
                         type="primary"
+                        :disabled = "disfal"
                         >选择图片</el-button
                       >
                       <!-- margin-top: 15%; transform: translateY(-50%); -->
@@ -242,6 +250,7 @@
                       size="small"
                       type="primary"
                       @click="submitUpload"
+                      :disabled = "disfal"
                       >开始上传</el-button
                     >
                   </div>
@@ -407,6 +416,7 @@
           <el-form-item label=" 入统时间:">
             <el-date-picker
               type="date"
+              :disabled = "disfal"
               placeholder="选择日期"
               v-model="queryParamstheyr.statisticsDate"
               style="width: 335px"
@@ -434,7 +444,7 @@
                   <!-- <i slot="default" class="el-icon-plus"></i> -->
 
                   <div class="ijeut">
-                    <el-button plain slot="trigger" size="small" type="primary"
+                    <el-button plain slot="trigger" :disabled = "disfal" size="small" type="primary"
                       >选择图片</el-button
                     >
                     <!-- margin-top: 15%; transform: translateY(-50%); -->
@@ -446,6 +456,7 @@
                     style="margin-left: 10px; height: 32px"
                     size="small"
                     type="primary"
+                    :disabled = "disfal"
                     @click="submitUpload"
                     >开始上传</el-button
                   >
@@ -469,8 +480,9 @@
         <el-form-item label="进度" prop="configKey">
           <el-select
             v-model="form.rateType"
-            placeholder="系统内置"
+            placeholder="选择进度"
             clearable
+            :disabled = "disfal"
             size="small"
             style="width: 458px"
           >
@@ -494,13 +506,14 @@
             :auto-upload="false"
             :multiple="true"
           >
-            <el-button slot="trigger" size="small" type="primary"
+            <el-button slot="trigger" :disabled = "disfal" size="small" type="primary"
               >选取文件</el-button
             >
             <el-button
               style="margin-left: 10px"
               size="small"
               type="success"
+              :disabled = "disfal"
               @click="submitUploadther"
               >上传到服务器</el-button
             >
@@ -535,8 +548,9 @@
         <el-form-item label="进度" prop="configKey">
           <el-select
             v-model="formtwo.eqType"
-            placeholder="系统内置"
+            placeholder="选择进度"
             clearable
+            :disabled = "disfal"
             size="small"
             style="width: 458px"
           >
@@ -560,13 +574,14 @@
             :auto-upload="false"
             :multiple="true"
           >
-            <el-button slot="trigger" size="small" type="primary"
+            <el-button slot="trigger" :disabled = "disfal" size="small" type="primary"
               >选取文件</el-button
             >
             <el-button
               style="margin-left: 10px"
               size="small"
               type="success"
+              :disabled = "disfal"
               @click="submitUploadther"
               >上传到服务器</el-button
             >
@@ -598,9 +613,10 @@
         <el-form-item label="到资类型" prop="payForType">
           <el-select
             v-model="formther.payForType"
-            placeholder="系统内置"
+            placeholder="选择到资类型"
             clearable
             size="small"
+            :disabled = "disfal"
             style="width: 458px"
           >
             <el-option
@@ -616,6 +632,7 @@
             v-model="formther.payForMoney"
             placeholder="输入数字"
             clearable
+            :disabled = "disfal"
             size="small"
             style="width: 458px"
             @keyup.enter.native="handleQuery"
@@ -633,13 +650,14 @@
             :auto-upload="false"
             :multiple="true"
           >
-            <el-button slot="trigger" size="small" type="primary"
+            <el-button slot="trigger" :disabled = "disfal"  size="small" type="primary"
               >选取文件</el-button
             >
             <el-button
               style="margin-left: 10px"
               size="small"
               type="success"
+              :disabled = "disfal"
               @click="submitUploadther"
               >上传到服务器</el-button
             >
@@ -694,6 +712,7 @@ export default {
   data() {
     return {
       defaultSettings,
+      disfal:false,
       // 遮罩层
       loading: true,
       //步骤条
@@ -820,6 +839,9 @@ export default {
     this.bmProjectId = this.$route.query.setid;
     this.bmjdeu.bmProjectId = this.$route.query.setid;
     this.setrd = this.$route.query.setrd;
+    if(this.setrd !== 5){
+      this.disfal = true
+    }
     console.log(this.bmjdeu);
     this.getList();
     this.getListtoi();

+ 22 - 1
ruoyi-ui/src/views/management/row/index.vue

@@ -338,13 +338,34 @@ export default {
     changeTab(index) {
       console.log(34);
       this.tabIndex = index.index;
-      
+
       this.currentContent = index.component;
       // this.$router.push('/tab');
     },
   },
 };
 </script>
+
+  <style  >
+
+
+  .el-steps.el-steps--horizontal /deep/ .el-step.is-horizontal.is-center /deep/ .el-step__head.is-finish {
+      color: #EB6F67 !important;
+      border-color: #EB6F67 !important;
+    }
+  
+    .el-steps.el-steps--horizontal /deep/ .el-step.is-horizontal.is-center /deep/ .el-step__title.is-finish {
+      color: #666666;
+    }
+    .el-steps.el-steps--horizontal /deep/ .el-step.is-horizontal.is-center /deep/.el-step__description.is-finish {
+      color: #999999;
+    }
+
+ </style>
+
+
+
+
 <style rel="stylesheet/scss" lang="scss" scoped>
 .manager_form {
   .manager_lab {

+ 74 - 52
ruoyi-ui/src/views/under/index.vue

@@ -170,21 +170,11 @@
           :key="index"
           v-if="queryParams.referralList !== null"
         >
-          <el-form-item label="引荐单位:" prop="sysDeptId">
-            <el-select
-              v-model="item.sysDeptId"
-              placeholder="系统内置"
-              clearable
-              size="small"
-              style="width: 188px"
-            >
-              <el-option
-                v-for="dict in typeOptionstwo"
-                :key="dict.deptId"
-                :label="dict.deptName"
-                :value="dict.deptId"
-              />
-            </el-select>
+          <el-form-item label="引荐单位:" prop="sysDeptIdse">
+            <el-cascader
+                v-model="valuess"
+                :options="typeOptionstwoss"
+                @change="handleChangess"></el-cascader>
           </el-form-item>
           <el-form-item label="投资分配额:" prop="investmentAllcocation">
             <el-input
@@ -220,21 +210,11 @@
           </el-form-item>
         </div>
         <div v-if="queryParams.referralList == null">
-          <el-form-item label="引荐单位:" prop="sysDeptId">
-            <el-select
-              v-model="queryParams.referralList[0].sysDeptId"
-              placeholder="系统内置"
-              clearable
-              size="small"
-              style="width: 188px"
-            >
-              <el-option
-                v-for="dict in typeOptionstwo"
-                :key="dict.deptId"
-                :label="dict.deptName"
-                :value="dict.deptId"
-              />
-            </el-select>
+          <el-form-item label="引荐单位:" prop="sysDeptIdrt">
+            <el-cascader
+               :show-all-levels="false"
+               :options="typeOptionstwo"
+                ></el-cascader>
           </el-form-item>
           <el-form-item label="投资分配额:" prop="investmentAllcocation">
             <el-input
@@ -269,20 +249,9 @@
             />
           </el-form-item>
           <el-form-item label="引荐单位:" prop="sysDeptId">
-            <el-select
-              v-model="queryParams.referralList[1].sysDeptId"
-              placeholder="系统内置"
-              clearable
-              size="small"
-              style="width: 188px"
-            >
-              <el-option
-                v-for="dict in typeOptionstwo"
-                :key="dict.deptId"
-                :label="dict.deptName"
-                :value="dict.deptId"
-              />
-            </el-select>
+            <el-cascader
+                :options="typeOptionstwo"
+                @change="handleChangete"></el-cascader>
           </el-form-item>
           <el-form-item label="投资分配额:" prop="investmentAllcocation">
             <el-input
@@ -531,7 +500,7 @@
           <div class="forieu" style="width: 618px">
             <div class="bure burert">
               <el-upload
-                :action="defaultSettings.urls+process+'/common/upload'"
+                :action="defaultSettings.urls+'/prod-api/common/upload'"
                 :auto-upload="false"
                 ref="upload"
                 :before-upload="beforeAvatarUpload"
@@ -710,7 +679,6 @@ export default {
   },
   data() {
     return {
-      process: process.env.VUE_APP_BASE_API,
       defaultSettings,
       // 遮罩层
       loading: true,
@@ -740,6 +708,8 @@ export default {
       // 类型数据字典
       typeOptions: [],
       typeOptionstwo: [],
+      typeOptionstwos:[],
+      typeOptionstwoss:[],
       // 日期范围
       dateRange: [],
       setrd: 0,
@@ -881,8 +851,11 @@ export default {
       sbuen: 0, //0  新增   1  修改
       jeutu:{
         bmProjectId:0
-      }
+      },
       // id:0
+      value: [],
+      valuess:[],
+      values:[]
     };
   },
   created() {
@@ -900,6 +873,15 @@ export default {
     console.log(this.queryParams);
   },
   methods: {
+    handleChange(){
+
+    },
+    handleChangete(){
+
+    },
+    handleChangess(){
+
+    },
     //审核
     applyBtn() {
       var that=this
@@ -1076,12 +1058,52 @@ export default {
       this.loading = true;
       listConfigfieu().then((response) => {
         console.log(response);
-        this.typeOptionstwo = response.data;
+
+        if(response.data !== undefined){
+          this.typeOptionstwo = response.data;
+          this.dietj(this.typeOptionstwo)
+        }
+        this.typeOptionstwos= response.data ,
+        this.typeOptionstwoss= response.data,
+        // this.typeOptionstwo.filter((route) => {
+        //   route.value = route.id
+        //   route.children.filter((router) =>{
+        //     router.value = router.id
+        //      // this.getListthuy()
+        //     // router.children.filter((routers) =>{
+        //     //   routers.value = routers.id
+
+        //     // })
+        //   })
+
+        // });
+
+
         // this.fileList =  this.queryParams.attachment
         // this.total = response.total;
         this.loading = false;
       });
     },
+    //递归
+    dietj(index){
+       console.log(index)
+       let iuy = []
+      for(var i = 0 ; i < index.length; i++){
+        index[i].value = index[i].id
+        iuy = index[i].children
+        // this.dietj(index[i].children)
+         console.log(iuy)
+         if(index[i].children !== undefined){
+           if(index[i].children != 0){
+             console.log(index[i].children)
+             this.dietj(index[i].children)
+           }else{
+             return
+           }
+         }
+
+      }
+    },
     // 参数系统内置字典翻译
     typeFormat(row, column) {
       return this.selectDictLabel(this.typeOptions, row.configType);
@@ -1131,7 +1153,7 @@ export default {
       this.reset();
       this.open = true;
       // this.opentwo =  true
-      this.title = "添加参数";
+      this.title = "添加信息";
       // this.titletwo = "添加参数";
     },
     handleAddtwo() {
@@ -1139,7 +1161,7 @@ export default {
       // this.open = true;
       this.opentwo = true;
       // this.title = "添加参数";
-      this.titletwo = "添加参数";
+      this.titletwo = "添加信息";
     },
     // 多选框选中数据
     handleSelectionChange(selection) {
@@ -1157,7 +1179,7 @@ export default {
         this.form = response.data;
 
         // this.opentwo = true
-        this.title = "修改参数";
+        this.title = "修改信息";
         // this.titletwo = "修改参数";
       });
     },
@@ -1170,7 +1192,7 @@ export default {
         // this.open = true;
         this.opentwo = true;
         // this.title = "修改参数";
-        this.titletwo = "修改参数";
+        this.titletwo = "修改信息";
       });
     },
     /** 提交按钮 */