Преглед изворни кода

项目登记调整需求:
项目登记时放开业务类型的隐藏(已经存在的被隐藏代码),并根据业务类型的是否启用以及排序进行对数据展示

lijt пре 1 година
родитељ
комит
03644c2ff7

+ 7 - 0
src/api/cw/projectBusinessType/CwProjectBusinessTypeService.js

@@ -1,6 +1,13 @@
 import request from '@/utils/httpRequest'
 
 export default class CwProjectBusinessTypeService {
+  list1 (params) {
+    return request({
+      url: '/projectRecords/cw_project_business_type/list1',
+      method: 'get',
+      params: params
+    })
+  }
   list (params) {
     return request({
       url: '/projectRecords/cw_project_business_type/list',

+ 1 - 1
src/views/modules/cw/projectBusinessType/CwProjectBusinessTypeListForm.vue

@@ -132,7 +132,7 @@
       list () {
         this.dataList = []
         this.loading = true
-        this.cwProjectBusinessTypeService.list({
+        this.cwProjectBusinessTypeService.list1({
           'current': this.tablePage.currentPage,
           'size': this.tablePage.pageSize,
           'orders': this.tablePage.orders,

+ 8 - 8
src/views/modules/cw/projectRecords/ProjectRecordsAddForm.vue

@@ -114,14 +114,14 @@
                       @getValue="(value) => {inputForm.officeId=value}"/>
                   </el-form-item>
                 </el-col>
-<!--                <el-col :span="12">-->
-<!--                  <el-form-item label="业务类型" prop="businessTypeName"-->
-<!--                                :rules="[-->
-<!--                                 {required: true, message:'业务类型不能为空', trigger:'blur'}-->
-<!--                   ]">-->
-<!--                    <el-input :readonly="true" @focus="openBusinessTypeForm" v-model="inputForm.businessTypeName" placeholder="请填写业务类型" clearable></el-input>-->
-<!--                  </el-form-item>-->
-<!--                </el-col>-->
+                <el-col :span="12">
+                  <el-form-item label="业务类型" prop="businessTypeName"
+                                :rules="[
+                                   {required: true, message:'业务类型不能为空', trigger:'blur'}
+                   ]">
+                    <el-input :readonly="true" @focus="openBusinessTypeForm" v-model="inputForm.businessTypeName" placeholder="请填写业务类型" clearable></el-input>
+                  </el-form-item>
+                </el-col>
                 <el-col :span="12">
                   <el-form-item label="风险等级" prop="riskLevel"
                                 :rules="[