فهرست منبع

Merge branch 'hot-fix' into 'Dev'

Hot fix

See merge request crowd-2019/crowd-test-service-front!64
郭超 5 سال پیش
والد
کامیت
a1c4f133ce

+ 1 - 1
src/components/Home.vue

@@ -247,7 +247,7 @@ export default {
         this.systemStatistics = res.systemStatistics
       }).catch((error) => {
         this.hideLoading()
-        notify('error', '主页加载失败:' + error.data)
+        notify('error', '主页加载失败,请稍后重试')
       })
     },
     setUserInfo () {

+ 1 - 2
src/components/Mine.vue

@@ -248,7 +248,7 @@ export default {
         // }
       }).catch((error) => {
         this.hideLoading()
-        notify('error', '加载失败:' + error.data)
+        notify('error', '加载失败,请稍后重试' )
       })
     },
     setUserInfo () {
@@ -343,7 +343,6 @@ export default {
       if (event.name == 'handlingProject') {
         //this.processProjectNoticeCount = 0
       }
-      console.log('123')
       console.log(event)
     }
   },

+ 1 - 1
src/components/Square.vue

@@ -112,7 +112,7 @@ export default {
         this.list = res.crowdTaskVOList
         this.hideLoading()
       }).catch((error) => {
-        notify('error', '任务加载失败' + error.data)
+        notify('error', '任务加载失败')
       })
     },
     showLoading () {

+ 4 - 4
src/components/authen/AgencyAuthentication.vue

@@ -39,10 +39,10 @@
           <el-link v-if="authentication.explain==null || authentication.explain==''" type="danger" disabled>管理员未填写
           </el-link>
         </el-form-item>
-        <el-form-item label="对公账户" prop="bankAccount">
-          <el-input v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>
-          <span v-if="!isModifyMode">{{authentication.bankAccount}}</span>
-        </el-form-item>
+<!--        <el-form-item label="对公账户" prop="bankAccount">-->
+<!--          <el-input v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>-->
+<!--          <span v-if="!isModifyMode">{{authentication.bankAccount}}</span>-->
+<!--        </el-form-item>-->
         <el-form-item label="地址" prop="address">
           <el-input v-if="isModifyMode" v-model="authentication.address"></el-input>
           <span v-if="!isModifyMode">{{authentication.address}}</span>

+ 4 - 4
src/components/authen/AgencyAuthenticationCreate.vue

@@ -27,10 +27,10 @@
         <!--<el-input v-if="isModifyMode" v-model="authentication.mobile"></el-input>-->
         <!--&lt;!&ndash;<span v-if="!isModifyMode">{{authentication.name}}</span>&ndash;&gt;-->
         <!--</el-form-item>-->
-        <el-form-item label="银行卡账户" prop="bankAccount">
-          <el-input size="small" v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>
-          <!--<span v-if="!isModifyMode">{{authentication.bankAccount}}</span>-->
-        </el-form-item>
+<!--        <el-form-item label="银行卡账户" prop="bankAccount">-->
+<!--          <el-input size="small" v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>-->
+<!--          &lt;!&ndash;<span v-if="!isModifyMode">{{authentication.bankAccount}}</span>&ndash;&gt;-->
+<!--        </el-form-item>-->
         <el-form-item label="地址" prop="address">
           <el-input size="small" v-if="isModifyMode" v-model="authentication.address"></el-input>
           <!--<span v-if="!isModifyMode">{{authentication.address}}</span>-->

+ 9 - 9
src/components/authen/AuthenticationIndex.vue

@@ -12,15 +12,15 @@
             </div>
           </el-card>
         </el-col>
-        <el-col :span="6">
-          <el-card :body-style="{ padding: '0px' }" style="cursor: pointer;">
-            <i class="el-icon-s-cooperation image" style="color:#909399" @click="toEnterpriseAuthentication"></i>
-            <div style="text-align: center;font-size: 12px"><span>认证为企业用户,可以创建项目</span></div>
-            <div @click="toEnterpriseAuthentication" style="padding: 14px;text-align: center;font-size: 20px">
-              <span>企业认证</span>
-            </div>
-          </el-card>
-        </el-col>
+<!--        <el-col :span="6">-->
+<!--          <el-card :body-style="{ padding: '0px' }" style="cursor: pointer;">-->
+<!--            <i class="el-icon-s-cooperation image" style="color:#909399" @click="toEnterpriseAuthentication"></i>-->
+<!--            <div style="text-align: center;font-size: 12px"><span>认证为企业用户,可以创建项目</span></div>-->
+<!--            <div @click="toEnterpriseAuthentication" style="padding: 14px;text-align: center;font-size: 20px">-->
+<!--              <span>企业认证</span>-->
+<!--            </div>-->
+<!--          </el-card>-->
+<!--        </el-col>-->
         <el-col :span="6">
           <el-card :body-style="{ padding: '0px' }" style="cursor: pointer;">
             <i class="el-icon-s-tools image" style="color:#909399;" @click="toAgencyAuthentication"></i>

+ 7 - 6
src/components/authen/AuthenticationManage.vue

@@ -75,13 +75,13 @@
             <span>
               <el-image
                 style="width: 100px;"
-                :src="authInfoDetail.IDCardPhoto"
+                :src="authInfoDetail.IDCardPositivePhoto"
                 fit="scale-down"></el-image>
             </span>
           </el-form-item>
-          <el-form-item label="银行账号:">
-            <span>{{authInfoDetail.bankAccount}}</span>
-          </el-form-item>
+<!--          <el-form-item label="银行账号:">-->
+<!--            <span>{{authInfoDetail.bankAccount}}</span>-->
+<!--          </el-form-item>-->
           <el-form-item label="地址:">
             <span>{{authInfoDetail.address}}</span>
           </el-form-item>
@@ -182,7 +182,7 @@
                     type: '',
                     realName: '',
                     IDCard: '',
-                    IDCardPhoto: '',
+                    IDCardPositivePhoto: '',
                     bankAccount: '',
                     address: '',
                     applyTime: '',
@@ -243,6 +243,7 @@
             handleAuthenticationPass (userId, type) {
                 this.showLoading()
                 checkPassAuth(type, userId, this.handleAuthenticationPassSuccess, this.handleAuthenticationPassFail)
+                this.showDialog = false
                 // item.status = this.authenticationStatusPass
                 // console.log('通过')
             },
@@ -321,7 +322,7 @@
                 console.log(res)
                 this.authInfoDetail.realName = res.realName
                 this.authInfoDetail.IDCard = res.idcard
-                this.authInfoDetail.IDCardPhoto = res.idcardPhoto
+                this.authInfoDetail.IDCardPositivePhoto = res.idCardPositivePhotoi
                 this.authInfoDetail.bankAccount = res.bankAccount
                 this.authInfoDetail.address = res.address
                 this.authInfoDetail.applyTime = res.applyTime

+ 4 - 4
src/components/authen/EnterpriseAuthentication.vue

@@ -44,10 +44,10 @@
           <el-input v-if="isModifyMode" v-model="authentication.legalPersonName"></el-input>
           <span v-if="!isModifyMode">{{authentication.legalPersonName}}</span>
         </el-form-item>
-        <el-form-item label="对公账户" prop="bankAccount">
-          <el-input v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>
-          <span v-if="!isModifyMode">{{authentication.bankAccount}}</span>
-        </el-form-item>
+<!--        <el-form-item label="对公账户" prop="bankAccount">-->
+<!--          <el-input v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>-->
+<!--          <span v-if="!isModifyMode">{{authentication.bankAccount}}</span>-->
+<!--        </el-form-item>-->
         <el-form-item label="统一社会信用代码" prop="unifiedSocialCreditCode">
           <el-input v-if="isModifyMode" v-model="authentication.unifiedSocialCreditCode"></el-input>
           <span v-if="!isModifyMode">{{authentication.unifiedSocialCreditCode}}</span>

+ 4 - 4
src/components/authen/EnterpriseAuthenticationCreate.vue

@@ -27,10 +27,10 @@
           <el-input size="small" v-if="isModifyMode" v-model="authentication.legalPersonName"></el-input>
           <!--<span v-if="!isModifyMode">{{authentication.name}}</span>-->
         </el-form-item>
-        <el-form-item label="对公账户" prop="bankAccount">
-          <el-input size="small" v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>
-          <!--<span v-if="!isModifyMode">{{authentication.name}}</span>-->
-        </el-form-item>
+<!--        <el-form-item label="对公账户" prop="bankAccount">-->
+<!--          <el-input size="small" v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>-->
+<!--          &lt;!&ndash;<span v-if="!isModifyMode">{{authentication.name}}</span>&ndash;&gt;-->
+<!--        </el-form-item>-->
         <el-form-item label="统一社会信用代码" prop="unifiedSocialCreditCode">
           <el-input size="small" v-if="isModifyMode" v-model="authentication.unifiedSocialCreditCode"></el-input>
           <!--<span v-if="!isModifyMode">{{authentication.bankAccount}}</span>-->

+ 14 - 14
src/components/authen/IndividualAuthentication.vue

@@ -7,7 +7,7 @@
           <el-input v-if="isModifyMode" v-model="authentication.realName"></el-input>
           <span v-if="!isModifyMode">{{authentication.realName}}</span>
         </el-form-item>
-        <el-form-item prop="IDCardPhoto" label="手持身份证照片">
+        <el-form-item prop="IDCardPositivePhoto" label="手持身份证照片">
           <el-upload
             v-if="isModifyMode"
             class="avatar-uploader"
@@ -15,13 +15,13 @@
             :show-file-list="false"
             :http-request="uploadFile"
             :before-upload="beforeFileUpload">
-            <img v-if="authentication.IDCardPhoto" :src="authentication.IDCardPhoto" class="avatar">
+            <img v-if="authentication.IDCardPositivePhoto" :src="authentication.IDCardPositivePhoto" class="avatar">
             <i v-else class="el-icon-plus avatar-uploader-icon"></i>
           </el-upload>
           <span v-if="!isModifyMode">
           <el-image
             style="width: 100px;"
-            :src="authentication.IDCardPhoto"
+            :src="authentication.IDCardPositivePhoto"
             fit="scale-down"></el-image>
         </span>
         </el-form-item>
@@ -39,10 +39,10 @@
           <el-link v-if="authentication.explain==null || authentication.explain==''" type="danger" disabled>管理员未填写
           </el-link>
         </el-form-item>
-        <el-form-item label="银行卡账户" prop="bankAccount">
-          <el-input v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>
-          <span v-if="!isModifyMode">{{authentication.bankAccount}}</span>
-        </el-form-item>
+<!--        <el-form-item label="银行卡账户" prop="bankAccount">-->
+<!--          <el-input v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>-->
+<!--          <span v-if="!isModifyMode">{{authentication.bankAccount}}</span>-->
+<!--        </el-form-item>-->
         <el-form-item label="地址" prop="address">
           <el-input v-if="isModifyMode" v-model="authentication.address"></el-input>
           <span v-if="!isModifyMode">{{authentication.address}}</span>
@@ -88,7 +88,7 @@ export default {
       loading: false,
       isModifyMode: false,
       authentication: {
-        IDCardPhoto: defaultValue.image,
+        IDCardPositivePhoto: defaultValue.image,
         realName: '',
         IDCard: '',
         bankAccount: '',
@@ -104,7 +104,7 @@ export default {
         realName: [
           {required: true, message: '请输入身份证上的姓名', trigger: 'blur'},
         ],
-        IDCardPhoto: [
+        IDCardPositivePhoto: [
             {
                 validator: (rule, value, callback) => {
                     console.log(value);
@@ -161,7 +161,7 @@ export default {
     },
     getAuthInfoSuccess (res) {
       this.hideLoading()
-      this.authentication.IDCardPhoto = res.idcardPhoto == null ? defaultValue.image : res.idcardPhoto
+      this.authentication.IDCardPositivePhoto = res.idCardPositivePhotoi == null ? defaultValue.image : res.idCardPositivePhotoi
       this.authentication.realName = res.realName == null ? '暂未填写' : res.realName
       this.authentication.IDCard = res.idcard == null ? '暂未填写' : res.idcard
       this.authentication.bankAccount = res.bankAccount == null ? '暂未填写' : res.bankAccount
@@ -190,7 +190,7 @@ export default {
             realName: this.authentication.realName,
             bankAccount: this.authentication.bankAccount,
             address: this.authentication.address,
-            IDCardPhoto: this.authentication.IDCardPhoto,
+            IDCardPositivePhoto: this.authentication.IDCardPositivePhoto,
             IDCard: this.authentication.IDCard,
           }
           //console.log(newAuthentication)
@@ -204,7 +204,7 @@ export default {
     },
     updateAuthInfoSuccess (res) {
       this.hideLoading()
-      this.authentication.IDCardPhoto = res.idcardPhoto == null ? defaultValue.image : res.idcardPhoto
+      this.authentication.IDCardPositivePhoto = res.idCardPositivePhotoi == null ? defaultValue.image : res.idCardPositivePhotoi
       this.authentication.realName = res.realName == null ? '暂未填写' : res.realName
       this.authentication.IDCard = res.idcard == null ? '暂未填写' : res.idcard
       this.authentication.bankAccount = res.bankAccount == null ? '暂未填写' : res.bankAccount
@@ -282,10 +282,10 @@ export default {
       Http.upload(Apis.FILE.UPLOAD_IMAGE.replace('{userId}', this.user.userVO.id), formData, config).then((res) => {
         this.hideLoading()
         console.log('上传成功')
-        this.authentication.IDCardPhoto = res.data
+        this.authentication.IDCardPositivePhoto = res.data
         console.log(res.data)
         notify('success', '上传成功')
-        this.$refs['authentication'].validateField('IDCardPhoto');
+        this.$refs['authentication'].validateField('IDCardPositivePhoto');
 
       }).catch(error => {
         this.hideLoading()

+ 11 - 11
src/components/authen/IndividualAuthenticationCreate.vue

@@ -7,7 +7,7 @@
           <el-input size="small" v-if="isModifyMode" v-model="authentication.realName"></el-input>
           <!--<span v-if="!isModifyMode">{{authentication.name}}</span>-->
         </el-form-item>
-        <el-form-item prop="IDCardPhoto" label="手持身份证照片">
+        <el-form-item prop="IDCardPositivePhoto" label="手持身份证照片">
           <el-upload
             class="avatar-uploader"
             action=""
@@ -15,7 +15,7 @@
             accept=".jpg,.png"
             :http-request="uploadFile"
             :before-upload="beforeFileUpload">
-            <img v-if="authentication.IDCardPhoto" :src="authentication.IDCardPhoto" class="avatar">
+            <img v-if="authentication.IDCardPositivePhoto" :src="authentication.IDCardPositivePhoto" class="avatar">
             <i v-else class="el-icon-plus avatar-uploader-icon"></i>
           </el-upload>
           <!--<div v-if="!isModifyMode">-->
@@ -29,10 +29,10 @@
           <!--<span v-if="!isModifyMode">{{authentication.name}}</span>-->
         </el-form-item>
 
-        <el-form-item label="银行卡账户" prop="bankAccount">
-          <el-input size="small" v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>
-          <!--<span v-if="!isModifyMode">{{authentication.bankAccount}}</span>-->
-        </el-form-item>
+<!--        <el-form-item label="银行卡账户" prop="bankAccount">-->
+<!--          <el-input size="small" v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>-->
+<!--          &lt;!&ndash;<span v-if="!isModifyMode">{{authentication.bankAccount}}</span>&ndash;&gt;-->
+<!--        </el-form-item>-->
         <el-form-item label="地址" prop="address">
           <el-input size="small" v-if="isModifyMode" v-model="authentication.address"></el-input>
           <!--<span v-if="!isModifyMode">{{authentication.address}}</span>-->
@@ -76,7 +76,7 @@ export default {
       isModifyMode: true,
       loading: false,
       authentication: {
-        IDCardPhoto: '',
+        IDCardPositivePhoto: '',
         realName: '',
         IDCard: '',
         bankAccount: '',
@@ -90,7 +90,7 @@ export default {
         realName: [
           {required: true, message: '请输入身份证上的姓名', trigger: 'blur'},
         ],
-        IDCardPhoto: [
+        IDCardPositivePhoto: [
             {
                 validator: (rule, value, callback) => {
                     console.log(value);
@@ -150,7 +150,7 @@ export default {
             userId: this.user.userVO.id,
             realName: this.authentication.realName,
             IDCard: this.authentication.IDCard,
-            IDCardPhoto: this.authentication.IDCardPhoto,
+            IDCardPositivePhoto: this.authentication.IDCardPositivePhoto,
             bankAccount: this.authentication.bankAccount,
             address: this.authentication.address
           }
@@ -242,9 +242,9 @@ export default {
       formData.append('file', param.file)
       Http.upload(Apis.FILE.UPLOAD_IMAGE.replace('{userId}', this.user.userVO.id), formData, config).then((res) => {
         this.hideLoading()
-        this.authentication.IDCardPhoto = res.data
+        this.authentication.IDCardPositivePhoto = res.data
         notify('success', '上传成功')
-        this.$refs['authentication'].validateField('IDCardPhoto');
+        this.$refs['authentication'].validateField('IDCardPositivePhoto');
       }).catch(error => {
         this.hideLoading()
         try {

+ 5 - 5
src/components/cheat/AgencyAdd.vue

@@ -15,10 +15,10 @@
           <el-input v-if="isModifyMode" v-model="agency.email"></el-input>
           <!--<span v-if="!isModifyMode">{{agency.name}}</span>-->
         </el-form-item>
-        <el-form-item size="small" label="银行卡账户" prop="bankAccount">
-          <el-input v-if="isModifyMode" v-model="agency.bankAccount"></el-input>
-          <!--<span v-if="!isModifyMode">{{agency.bankAccount}}</span>-->
-        </el-form-item>
+<!--        <el-form-item size="small" label="银行卡账户" prop="bankAccount">-->
+<!--          <el-input v-if="isModifyMode" v-model="agency.bankAccount"></el-input>-->
+<!--          &lt;!&ndash;<span v-if="!isModifyMode">{{agency.bankAccount}}</span>&ndash;&gt;-->
+<!--        </el-form-item>-->
         <el-form-item size="small" label="地址" prop="address">
           <el-input v-if="isModifyMode" v-model="agency.address"></el-input>
           <!--<span v-if="!isModifyMode">{{agency.address}}</span>-->
@@ -104,7 +104,7 @@
               <ul style="list-style-type:none">
                 <li>机构名称:{{ agency.name }}</li>
                 <li>机构电话:{{ agency.mobile }}</li>
-                <li>银行卡账户:{{ agency.bankAccount }}</li>
+<!--                <li>银行卡账户:{{ agency.bankAccount }}</li>-->
                 <li>地址:{{ agency.address }}</li>
                 <li>邮箱:{{ agency.email }}</li>
               </ul>

+ 448 - 434
src/components/cheat/ProjectAdd.vue

@@ -178,11 +178,24 @@
                 <span>{{scope.row.name}}</span>
               </template>
             </el-table-column>
-            <el-table-column prop="platform" label="项目测试平台">
+            <el-table-column prop="platform" label="领域类型">
               <template slot-scope="scope">
-                <span v-for="item in JSON.parse(scope.row.platform)" :key="item">
-                   <el-tag type="success">{{item}}</el-tag>&nbsp;&nbsp;
-                </span>
+                <span>{{scope.row.fieldType}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column prop="name" label="应用类型">
+              <template slot-scope="scope">
+                <span>{{scope.row.applicationType}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column prop="platform" label="测试类型">
+              <template slot-scope="scope">
+                <span>{{scope.row.type}}</span>
+              </template>
+            </el-table-column>
+             <el-table-column prop="platform" label="委托单位">
+              <template slot-scope="scope">
+                <span>{{scope.row.entrustUnit}}</span>
               </template>
             </el-table-column>
             <el-table-column prop="linkMan" label="项目联系人">
@@ -195,33 +208,31 @@
                 <span>{{scope.row.linkManMobile}}</span>
               </template>
             </el-table-column>
-            <el-table-column prop="type" label="项目测试类型">
+            <el-table-column prop="description" label="项目需求描述">
               <template slot-scope="scope">
-                <span v-for="item in JSON.parse(scope.row.type)" :key="item">
-                   <el-tag type="success">{{item}}</el-tag>&nbsp;&nbsp;
-                </span>
+                <span>{{scope.row.description}}</span>
               </template>
             </el-table-column>
-            <el-table-column prop="description" label="项目需求描述">
+            <el-table-column prop="description" label="计价标准">
               <template slot-scope="scope">
-                <span>{{scope.row.description}}</span>
+                <span>{{scope.row.valuationStandard}}</span>
               </template>
             </el-table-column>
             <el-table-column prop="description" label="测试报告内容">
               <template slot-scope="scope">
-                <span>{{scope.row.description}}</span>
+                <span>{{scope.row.crowdTestReportForProject.content}}</span>
               </template>
             </el-table-column>
             <el-table-column prop="description" label="测试报告结论">
               <template slot-scope="scope">
-                <span>{{scope.row.description}}</span>
+                <span>{{scope.row.crowdTestReportForProject.conclusion}}</span>
               </template>
             </el-table-column>
     </el-table>
         </span>
             <span slot="footer" class="dialog-footer">
     <el-button @click="handleDialogClose">取消</el-button>
-    <el-button type="primary" @click="ensureSubmitExcel">确认</el-button>
+    <el-button type="primary" @click="hindDialog">确认</el-button>
   </span>
           </el-dialog>
         </el-tab-pane>
@@ -233,434 +244,437 @@
 </template>
 
 <script>
-import Http from '@/js/http.js'
-import Apis from '@/js/api.js'
-import {notify} from '@/constants/index'
-import {
-  getAllPlatformTypes,
-  getAllServiceTypes,
-  getGreenChannelAddProjectExcelTemplateFile,
-  storageGet
-} from '@/js/index'
+    import Http from '@/js/http.js'
+    import Apis from '@/js/api.js'
+    import {notify} from '@/constants/index'
+    import {
+        getAllPlatformTypes,
+        getAllServiceTypes,
+        getGreenChannelAddProjectExcelTemplateFile,
+        storageGet
+    } from '@/js/index'
 
-export default {
-  name: 'ProjectAdd',
-  data () {
-    return {
-      userId: 0,
-      user: {},
-      loading: false,
-      dialogVisible: false,
-      isModifyMode: true,
-      serviceType: [],
-      platforms: [],
-      isFormSubmit: true,
-      downloadFile: '',
-      project: {
-        name: '',
-        description: '',
-        contactName: '',
-        contactPhone: '',
-        platform: [],
-        type: [],
-        requireDoc: [],
-        requireDocUrl: '',
-        file: [],
-        fileUrl: '',
-        excelFile: [],
-        excelFileUrl: '',
-        price: '',
-        datetime: ''
-      },
-      projectList: [
-        {
-          'projectDetails': {
-            'id': 'PROJECT-2019081319025',
-            'name': '网易云测试',
-            'contactName': '孙加辉',
-            'contactPhone': '13628972489',
-            'type': [
-              1
-            ],
-            'platform': [
-              1,
-              0
-            ],
-            'desc': '无',
-            'doc': '',
-            'file': '',
-            'resource': 1,
-            'location': {
-              'provinceCode': '江苏',
-              'cityCode': '南京'
-            },
-            'institution': 1,
-            'datetime': '2019-08-13T11:14:08.192+0000',
-            'price': 30000.0,
-            'budget': 30000.0,
-            'usage': null
-          },
-          'taskList': [
-            {
-              'id': 'TASK-LDSM-2019081319013',
-              'projectId': 'PROJECT-2019081319025',
-              'title': '网易云测试-安全漏洞扫描',
-              'description': null,
-              'quotePrice': 30000.0,
-              'fixedPrice': 30000.0,
-              'resource': 0,
-              'location': {
-                'provinceCode': '江苏',
-                'cityCode': '南京'
-              },
-              'institution': 1,
-              'serviceType': 1,
-              'status': 5,
-              'datetime': '2019-08-13T11:14:08.192+0000'
+    export default {
+        name: 'ProjectAdd',
+        data() {
+            return {
+                userId: 0,
+                user: {},
+                loading: false,
+                dialogVisible: false,
+                isModifyMode: true,
+                serviceType: [],
+                platforms: [],
+                isFormSubmit: true,
+                downloadFile: '',
+                project: {
+                    name: '',
+                    description: '',
+                    contactName: '',
+                    contactPhone: '',
+                    platform: [],
+                    type: [],
+                    requireDoc: [],
+                    requireDocUrl: '',
+                    file: [],
+                    fileUrl: '',
+                    excelFile: [],
+                    excelFileUrl: '',
+                    price: '',
+                    datetime: ''
+                },
+                projectList: [{
+                    "id": null,
+                    "name": "广东省农产品商贸交易服务平台",
+                    "code": "PROJ-2020070820055",
+                    "userId": 20473,
+                    "regionalManagerId": 99222,
+                    "projectDistributionTypeId": 1,
+                    "fieldType": "KJFW",
+                    "applicationType": "WEB",
+                    "type": "GNCS",
+                    "linkMan": "张三",
+                    "linkManMobile": "13512345678",
+                    "description": "本平台提供农产品网上供求信息的发布、在线交易服务等功能,帮助用户快速捕获商机,具备开设网上交易会和网上农博会,为用户提供更广阔的宣传平台。",
+                    "projectFile": "",
+                    "requirementFile": "",
+                    "distributionProvince": "江苏",
+                    "distributionCity": "南京",
+                    "valuationStandard": "1200元/(人天)",
+                    "quotedPrice": 30000.0,
+                    "fixedPrice": 30000.0,
+                    "restPrice": null,
+                    "entrustUnit": "广东省农村信息中心",
+                    "status": 4,
+                    "deadTime": "2020-07-08T12:16:34.695+0000",
+                    "endTime": "2020-07-08T12:16:34.695+0000",
+                    "isDeleted": 0,
+                    "joinCount": 1,
+                    "createTime": null,
+                    "crowdTestTaskList": [{
+                        "id": null,
+                        "name": "广东省农产品商贸交易服务平台-GNCS",
+                        "code": "TASK-GNCS-2020070820008",
+                        "crowdTestProjectCode": "PROJ-2020070820055",
+                        "evaluationAgencyId": 1,
+                        "type": "GNCS",
+                        "description": "本平台提供农产品网上供求信息的发布、在线交易服务等功能,帮助用户快速捕获商机,具备开设网上交易会和网上农博会,为用户提供更广阔的宣传平台。",
+                        "requirementFile": "",
+                        "distributionType": 0,
+                        "distributionProvince": null,
+                        "distributionCity": null,
+                        "quotedPrice": 30000.0,
+                        "fixedPrice": 30000.0,
+                        "status": 4,
+                        "fullStatus": 0,
+                        "deadTime": "2020-07-08T12:16:34.695+0000",
+                        "endTime": "2020-07-08T12:16:34.695+0000",
+                        "isDeleted": 0,
+                        "createTime": null,
+                        "participantCount": 1,
+                        "acceptedCount": 1,
+                        "participantHasCommittedCount": 1,
+                        "acceptedUserList": [{
+                            "id": null,
+                            "taskCode": "TASK-GNCS-2020070820008",
+                            "userId": 20473,
+                            "quotedPrice": 0.0,
+                            "hasReport": 1,
+                            "distributionType": 1,
+                            "isAccepted": 1,
+                            "acceptTime": null,
+                            "isCommitted": 1,
+                            "user": null,
+                            "commitTaskTime": "2020-07-08T12:16:34.695+0000",
+                            "commitReportTime": "2020-07-08T12:16:34.695+0000",
+                            "crowdTestReportList": [{
+                                "id": null,
+                                "name": "广东省农产品商贸交易服务平台-GNCS测试报告",
+                                "code": "REPORT-2020070820089",
+                                "userId": 20473,
+                                "dependencyCode": "TASK-GNCS-2020070820008",
+                                "type": "测试报告",
+                                "scope": 1,
+                                "testObject": null,
+                                "description": null,
+                                "content": "对平台的供求信息发布、在线交易、网上上交易会等模块进行了功能性测试,所有测试项均符合项目需求规格说明书的要求",
+                                "file": null,
+                                "conclusion": "通过",
+                                "isDeleted": 0,
+                                "createTime": null
+                            }]
+                        }]
+                    }],
+                    "crowdTestReportForProject": {
+                        "id": null,
+                        "name": "广东省农产品商贸交易服务平台测试报告",
+                        "code": "REPORT-2020070820090",
+                        "userId": null,
+                        "dependencyCode": "PROJ-2020070820055",
+                        "type": "GNCS",
+                        "scope": 0,
+                        "testObject": "广东省农产品商贸交易服务平台",
+                        "description": "本平台提供农产品网上供求信息的发布、在线交易服务等功能,帮助用户快速捕获商机,具备开设网上交易会和网上农博会,为用户提供更广阔的宣传平台。",
+                        "content": "对平台的供求信息发布、在线交易、网上上交易会等模块进行了功能性测试,所有测试项均符合项目需求规格说明书的要求",
+                        "file": null,
+                        "conclusion": "通过",
+                        "isDeleted": 0,
+                        "createTime": null
+                    }
+                }],
+                excelFile: {},
+                rules: {
+                    // name: [
+                    //   {required: true, message: '请输入报告名称', trigger: 'blur'}
+                    //   // { min: 3, max: 5, message: "长度在 3 到 5 个字符", trigger: "blur" }
+                    // ],
+                    // abstract: [
+                    //   {
+                    //     required: true,
+                    //     message: '请输入摘要信息',
+                    //     trigger: 'change'
+                    //   }
+                    // ],
+                    // type: [
+                    //   {required: true, message: '请选择报告类型', trigger: 'change'}
+                    // ],
+                    // conclusion: [
+                    //   {required: true, message: '请输入报告结论', trigger: 'blur'}
+                    // ]
+                },
+                pickerOptions: {
+                    shortcuts: [
+                        {
+                            text: '今天',
+                            onClick(picker) {
+                                picker.$emit('pick', new Date())
+                            }
+                        },
+                        {
+                            text: '昨天',
+                            onClick(picker) {
+                                const date = new Date()
+                                date.setTime(date.getTime() - 3600 * 1000 * 24)
+                                picker.$emit('pick', date)
+                            }
+                        },
+                        {
+                            text: '一周前',
+                            onClick(picker) {
+                                const date = new Date()
+                                date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)
+                                picker.$emit('pick', date)
+                            }
+                        }
+                    ]
+                },
+                tableData: [{
+                    date: '2016-05-02',
+                    name: '王小虎',
+                    address: '上海市普陀区金沙江路 1518 弄'
+                }, {
+                    date: '2016-05-04',
+                    name: '王小虎',
+                    address: '上海市普陀区金沙江路 1517 弄'
+                }, {
+                    date: '2016-05-01',
+                    name: '王小虎',
+                    address: '上海市普陀区金沙江路 1519 弄'
+                }, {
+                    date: '2016-05-03',
+                    name: '王小虎',
+                    address: '上海市普陀区金沙江路 1516 弄'
+                }]
             }
-          ],
-          'reportList': null
         },
-        {
-          'projectDetails': {
-            'id': 'PROJECT-2019081319026',
-            'name': '网易测试',
-            'contactName': '孙加辉',
-            'contactPhone': '0797-8877663',
-            'type': [
-              4,
-              3
-            ],
-            'platform': [
-              2
-            ],
-            'desc': '无',
-            'doc': '',
-            'file': '',
-            'resource': 1,
-            'location': {
-              'provinceCode': '江苏',
-              'cityCode': '南京'
+        mounted() {
+            this.$nextTick(() => {
+                this.init()
+            })
+        },
+        methods: {
+            init() {
+                this.setServiceType()
+                this.setPlatformType()
+                this.setUserInfo()
+                this.setTemplateExcel()
             },
-            'institution': 1,
-            'datetime': '2019-08-13T11:14:08.194+0000',
-            'price': 30000.0,
-            'budget': 30000.0,
-            'usage': null
-          },
-          'taskList': [
-            {
-              'id': 'TASK-GNCS-2019081319006',
-              'projectId': 'PROJECT-2019081319026',
-              'title': '网易测试-功能测试',
-              'description': null,
-              'quotePrice': 30000.0,
-              'fixedPrice': 30000.0,
-              'resource': 0,
-              'location': {
-                'provinceCode': '江苏',
-                'cityCode': '南京'
-              },
-              'institution': 1,
-              'serviceType': 4,
-              'status': 5,
-              'datetime': '2019-08-13T11:14:08.194+0000'
-            }
-          ],
-          'reportList': null
-        }
-      ],
-      excelFile: {},
-      rules: {
-        // name: [
-        //   {required: true, message: '请输入报告名称', trigger: 'blur'}
-        //   // { min: 3, max: 5, message: "长度在 3 到 5 个字符", trigger: "blur" }
-        // ],
-        // abstract: [
-        //   {
-        //     required: true,
-        //     message: '请输入摘要信息',
-        //     trigger: 'change'
-        //   }
-        // ],
-        // type: [
-        //   {required: true, message: '请选择报告类型', trigger: 'change'}
-        // ],
-        // conclusion: [
-        //   {required: true, message: '请输入报告结论', trigger: 'blur'}
-        // ]
-      },
-      pickerOptions: {
-        shortcuts: [
-          {
-            text: '今天',
-            onClick (picker) {
-              picker.$emit('pick', new Date())
-            }
-          },
-          {
-            text: '昨天',
-            onClick (picker) {
-              const date = new Date()
-              date.setTime(date.getTime() - 3600 * 1000 * 24)
-              picker.$emit('pick', date)
+            //加载数据
+            loadData: function () {
+            },
+            modifyInfo() {
+                this.isModifyMode = true
+            },
+            submitInfo() {
+                //this.isModifyMode = false
+                this.showLoading()
+                const newProject = {
+                    userId: this.user.userVO.id,
+                    name: this.project.name,
+                    description: this.project.description,
+                    contactName: this.project.contactName,
+                    contactPhone: this.project.contactPhone,
+                    platform: this.project.platform,
+                    type: this.project.type,
+                    doc: this.project.requireDocUrl,
+                    file: this.project.fileUrl,
+                    price: this.project.price,
+                    datetime: this.project.datetime
+                }
+                Http.post(Apis.PROJECT.ADD_PROJECT, newProject).then((res) => {
+                    this.hideLoading()
+                    this.createProjectByFormSuccessConfirm()
+                    console.log(res)
+                }).catch(error => {
+                    this.hideLoading()
+                    notify('error', error.data)
+                })
+            },
+            // cancelModify () {
+            //   this.isModifyMode = false
+            // },
+            handleRemove(file, fileList) {
+                console.log(file, fileList)
+            },
+            handleExceed(files, fileList) {
+                this.$message.warning(
+                    `当前限制选择 1 个文件,本次选择了 ${
+                        files.length
+                    } 个文件,共选择了 ${files.length + fileList.length} 个文件`
+                )
+            },
+            beforeRemove(file, fileList) {
+                //return this.$confirm(`确定移除 ${file.name}?`)
+            },
+            beforeFileUpload() {
+
+            },
+            uploadProjectCreateExcelFile(param) {
+                this.showLoading()
+                const formData = new FormData()
+                let config = {
+                    //添加请求头
+                    headers: {'Content-Type': 'multipart/form-data'},
+                }
+                formData.append('file', param.file)
+                Http.upload(Apis.PROJECT.ADD_PROJECT_BY_EXCEL_PRE.replace('{userId}', this.user.userVO.id), formData, config).then((res) => {
+                    console.log(res)
+                    this.projectList = res.data
+                    this.hideLoading()
+                    this.showDialog()
+                    //notify('success', '项目添加成功')
+                }).catch(error => {
+                    console.log("打印错误信息!!!");
+                    console.log(error.response.data);
+                    notify('error', error.response.data)
+                    this.hideLoading()
+                })
+            },
+            uploadRequireDoc(param) {
+                const formData = new FormData()
+                let config = {
+                    //添加请求头
+                    headers: {'Content-Type': 'multipart/form-data'},
+                }
+                formData.append('file', param.file)
+                Http.upload(Apis.FILE.REQUIREMENT_FILE.replace('{userId}', this.user.userVO.id), formData, config).then((res) => {
+                    console.log('上传成功')
+                    this.project.requireDocUrl = res.data
+                    console.log(res.data)
+                    notify('success', '上传成功')
+                }).catch(error => {
+                    notify('error', error.data)
+                })
+            },
+            uploadApkFile(param) {
+                const formData = new FormData()
+                let config = {
+                    //添加请求头
+                    headers: {'Content-Type': 'multipart/form-data'},
+                }
+                formData.append('file', param.file)
+                Http.upload(Apis.FILE.APK.replace('{userId}', this.user.userVO.id), formData, config).then((res) => {
+                    console.log('上传成功')
+                    this.project.fileUrl = res.data
+                    console.log(res)
+                    notify('success', '上传成功')
+                }).catch(error => {
+                    notify('error', error.data)
+                })
+            },
+            handleDialogClose(done) {
+                this.hideDialog()
+                this.project.excelFile = []
+                // this.$confirm('确认退出?退出前请记录下登录账号和密码,否则无法找回!!!')
+                //   .then(_ => {
+                //     //done()
+                //     this.hideDialog()
+                //   })
+                //   .catch(_ => {
+                //   })
+            },
+            hindDialog(){
+                this.hideDialog()
+            },
+            ensureSubmitExcel() {
+                this.hideDialog()
+                this.showLoading()
+                this.project.excelFile = []
+                Http.post(Apis.PROJECT.ADD_PROJECT_BY_EXCEL, this.projectList).then((res) => {
+                    notify('success', '添加成功')
+                    this.hideLoading()
+                }).catch((error) => {
+                    notify('error', error.data)
+                    this.hideLoading()
+                })
+            },
+            showDialog() {
+                this.dialogVisible = true
+            },
+            hideDialog() {
+                this.dialogVisible = false
+                //this.resetForm()
+            },
+            setServiceType() {
+                getAllServiceTypes().then((res) => {
+                    this.serviceType = res
+                }).catch((error) => {
+                    notify('error', '获取服务类型出错')
+                })
+            },
+            setPlatformType() {
+                this.platforms = getAllPlatformTypes()
+            },
+            createProjectByFormSuccessConfirm() {
+                this.$confirm('项目创建成功,是否跳转至主页?', '提示', {
+                    confirmButtonText: '跳转至主页',
+                    cancelButtonText: '继续创建项目',
+                    type: 'success'
+                }).then(() => {
+                    this.$router.push({
+                        name: 'Home',
+                        // params: {projectId: projectId, taskId: taskId}
+                    })
+                    // this.$message({
+                    //   type: 'success',
+                    //   message: '删除成功!'
+                    // });
+                }).catch(() => {
+                    this.resetForm()
+                    // this.$message({
+                    //   type: 'info',
+                    //   message: '已取消删除'
+                    // });
+                })
+            },
+            resetForm() {
+                this.project = {
+                    name: '',
+                    description: '',
+                    contactName: '',
+                    contactPhone: '',
+                    platform: [],
+                    type: [],
+                    requireDoc: [],
+                    requireDocUrl: '',
+                    file: [],
+                    fileUrl: '',
+                    excelFile: [],
+                    excelFileUrl: '',
+                    price: '',
+                    datetime: ''
+                }
+            },
+            setUserInfo() {
+                this.user = storageGet('user')
+            },
+            setTemplateExcel() {
+                this.showLoading()
+                getGreenChannelAddProjectExcelTemplateFile(this.setTemplateExcelSuccess, this.setTemplateExcelFail)
+            },
+            setTemplateExcelSuccess(res) {
+                this.hideLoading()
+                this.downloadFile = res.fileUrl
+            },
+            setTemplateExcelFail(error) {
+                this.hideLoading()
+                notify('error', '加载模板文件失败:' + error.data)
+            },
+            showLoading() {
+                this.loading = true
+            },
+            hideLoading() {
+                this.loading = false
             }
-          },
-          {
-            text: '一周前',
-            onClick (picker) {
-              const date = new Date()
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)
-              picker.$emit('pick', date)
+        },
+        watch: {
+            serviceType(val) {
+                this.serviceType = val
             }
-          }
-        ]
-      },
-      tableData: [{
-        date: '2016-05-02',
-        name: '王小虎',
-        address: '上海市普陀区金沙江路 1518 弄'
-      }, {
-        date: '2016-05-04',
-        name: '王小虎',
-        address: '上海市普陀区金沙江路 1517 弄'
-      }, {
-        date: '2016-05-01',
-        name: '王小虎',
-        address: '上海市普陀区金沙江路 1519 弄'
-      }, {
-        date: '2016-05-03',
-        name: '王小虎',
-        address: '上海市普陀区金沙江路 1516 弄'
-      }]
-    }
-  },
-  mounted () {
-    this.$nextTick(() => {
-      this.init()
-    })
-  },
-  methods: {
-    init () {
-      this.setServiceType()
-      this.setPlatformType()
-      this.setUserInfo()
-      this.setTemplateExcel()
-    },
-    //加载数据
-    loadData: function () {
-    },
-    modifyInfo () {
-      this.isModifyMode = true
-    },
-    submitInfo () {
-      //this.isModifyMode = false
-      this.showLoading()
-      const newProject = {
-        userId: this.user.userVO.id,
-        name: this.project.name,
-        description: this.project.description,
-        contactName: this.project.contactName,
-        contactPhone: this.project.contactPhone,
-        platform: this.project.platform,
-        type: this.project.type,
-        doc: this.project.requireDocUrl,
-        file: this.project.fileUrl,
-        price: this.project.price,
-        datetime: this.project.datetime
-      }
-      Http.post(Apis.PROJECT.ADD_PROJECT, newProject).then((res) => {
-        this.hideLoading()
-        this.createProjectByFormSuccessConfirm()
-        console.log(res)
-      }).catch(error => {
-        this.hideLoading()
-        notify('error', error.data)
-      })
-    },
-    // cancelModify () {
-    //   this.isModifyMode = false
-    // },
-    handleRemove (file, fileList) {
-      console.log(file, fileList)
-    },
-    handleExceed (files, fileList) {
-      this.$message.warning(
-        `当前限制选择 1 个文件,本次选择了 ${
-          files.length
-          } 个文件,共选择了 ${files.length + fileList.length} 个文件`
-      )
-    },
-    beforeRemove (file, fileList) {
-      //return this.$confirm(`确定移除 ${file.name}?`)
-    },
-    beforeFileUpload () {
-
-    },
-    uploadProjectCreateExcelFile (param) {
-      this.showLoading()
-      const formData = new FormData()
-      let config = {
-        //添加请求头
-        headers: {'Content-Type': 'multipart/form-data'},
-      }
-      formData.append('file', param.file)
-      Http.upload(Apis.PROJECT.ADD_PROJECT_BY_EXCEL_PRE.replace('{userId}', this.user.userVO.id), formData, config).then((res) => {
-        console.log(res)
-        console.log(res.data[0].platform)
-        console.log(typeof res.data[0].platform)
-        console.log(typeof JSON.parse(res.data[0].platform))
-        console.log(JSON.parse(res.data[0].platform))
-        this.projectList = res.data
-        this.hideLoading()
-        this.showDialog()
-        //notify('success', '项目添加成功')
-      }).catch(error => {
-        notify('error', error)
-        this.hideLoading()
-      })
-    },
-    uploadRequireDoc (param) {
-      const formData = new FormData()
-      let config = {
-        //添加请求头
-        headers: {'Content-Type': 'multipart/form-data'},
-      }
-      formData.append('file', param.file)
-      Http.upload(Apis.FILE.REQUIREMENT_FILE.replace('{userId}', this.user.userVO.id), formData, config).then((res) => {
-        console.log('上传成功')
-        this.project.requireDocUrl = res.data
-        console.log(res.data)
-        notify('success', '上传成功')
-      }).catch(error => {
-        notify('error', error.data)
-      })
-    },
-    uploadApkFile (param) {
-      const formData = new FormData()
-      let config = {
-        //添加请求头
-        headers: {'Content-Type': 'multipart/form-data'},
-      }
-      formData.append('file', param.file)
-      Http.upload(Apis.FILE.APK.replace('{userId}', this.user.userVO.id), formData, config).then((res) => {
-        console.log('上传成功')
-        this.project.fileUrl = res.data
-        console.log(res)
-        notify('success', '上传成功')
-      }).catch(error => {
-        notify('error', error.data)
-      })
-    },
-    handleDialogClose (done) {
-      this.hideDialog()
-      this.project.excelFile = []
-      // this.$confirm('确认退出?退出前请记录下登录账号和密码,否则无法找回!!!')
-      //   .then(_ => {
-      //     //done()
-      //     this.hideDialog()
-      //   })
-      //   .catch(_ => {
-      //   })
-    },
-    ensureSubmitExcel () {
-      this.hideDialog()
-      this.showLoading()
-      Http.post(Apis.PROJECT.ADD_PROJECT_BY_EXCEL, this.projectList).then((res) => {
-        notify('success', '添加成功')
-        this.hideLoading()
-      }).catch((error) => {
-        notify('error', error.data)
-        this.hideLoading()
-      })
-    },
-    showDialog () {
-      this.dialogVisible = true
-    },
-    hideDialog () {
-      this.dialogVisible = false
-      //this.resetForm()
-    },
-    setServiceType () {
-      getAllServiceTypes().then((res) => {
-        this.serviceType = res
-      }).catch((error) => {
-        notify('error', '获取服务类型出错')
-      })
-    },
-    setPlatformType () {
-      this.platforms = getAllPlatformTypes()
-    },
-    createProjectByFormSuccessConfirm () {
-      this.$confirm('项目创建成功,是否跳转至主页?', '提示', {
-        confirmButtonText: '跳转至主页',
-        cancelButtonText: '继续创建项目',
-        type: 'success'
-      }).then(() => {
-        this.$router.push({
-          name: 'Home',
-          // params: {projectId: projectId, taskId: taskId}
-        })
-        // this.$message({
-        //   type: 'success',
-        //   message: '删除成功!'
-        // });
-      }).catch(() => {
-        this.resetForm()
-        // this.$message({
-        //   type: 'info',
-        //   message: '已取消删除'
-        // });
-      })
-    },
-    resetForm () {
-      this.project = {
-        name: '',
-        description: '',
-        contactName: '',
-        contactPhone: '',
-        platform: [],
-        type: [],
-        requireDoc: [],
-        requireDocUrl: '',
-        file: [],
-        fileUrl: '',
-        excelFile: [],
-        excelFileUrl: '',
-        price: '',
-        datetime: ''
-      }
-    },
-    setUserInfo () {
-      this.user = storageGet('user')
-    },
-    setTemplateExcel () {
-      this.showLoading()
-      getGreenChannelAddProjectExcelTemplateFile(this.setTemplateExcelSuccess, this.setTemplateExcelFail)
-    },
-    setTemplateExcelSuccess (res) {
-      this.hideLoading()
-      this.downloadFile = res.fileUrl
-    },
-    setTemplateExcelFail (error) {
-      this.hideLoading()
-      notify('error', '加载模板文件失败:' + error.data)
-    },
-    showLoading () {
-      this.loading = true
-    },
-    hideLoading () {
-      this.loading = false
-    }
-  },
-  watch: {
-    serviceType (val) {
-      this.serviceType = val
+        },
+        created: function () {
+        }
     }
-  },
-  created: function () {
-  }
-}
 </script>
 
 <style scoped>

+ 2 - 3
src/components/commons/ProjectItem.vue

@@ -26,9 +26,8 @@
       <!--<el-col :span="4">{{project.id}}</el-col>-->
       <el-col :span="6" type="flex" align="middle" justify="center">
         <span style="font-size: 10px;"
-              v-bind:class="['badge',{ 'ios-platform': item=='IOS','android-platform': item=='ANDROID','web-platform': item=='WEB'}]"
-              v-for="item in project.platform"
-        >{{item}}</span>
+              v-bind:class="['badge']"
+        >{{project.platform}}</span>
       </el-col>
       <el-col :span="2" type="flex" align="middle" justify="center">
         <div class="badge">¥{{project.budget}}</div>

+ 80 - 18
src/components/project/Project.vue

@@ -32,6 +32,19 @@
               </el-input>
               <span v-if="!isModifyMode">{{project.budget}}¥</span>
             </el-form-item>
+
+            <el-form-item label="计价标准" prop="valuationStandard">
+              <el-input style="width: 400px" autosize v-if="isModifyMode" type="textarea"
+                        v-model="project.valuationStandard"></el-input>
+              <span v-if="!isModifyMode">{{project.valuationStandard}}</span>
+            </el-form-item>
+
+<!--            <el-form-item size="small" label="计价标准" prop="valuationStandard">-->
+<!--              <el-input v-if="isModifyMode" type="number" v-model="project.valuationStandard">-->
+<!--                <template slot="append"></template>-->
+<!--              </el-input>-->
+<!--              <span v-if="!isModifyMode">{{project.valuationStandard}}</span>-->
+<!--            </el-form-item>-->
             <el-form-item v-if="!isModifyMode" size="small" label="状态" prop="status">
               <span v-if="!isModifyMode">{{project.status==1?'等待接收':(project.status==2?'已被接收':(project.status==3?'项目已提交':'项目已结束'))}}</span>
             </el-form-item>
@@ -49,24 +62,35 @@
             <!--</el-input>-->
             <!--<span v-if="!isModifyMode">{{project.price}}¥</span>-->
             <!--</el-form-item>-->
+            <el-form-item label="领域类型" prop="field">
+              <el-radio-group v-if="isModifyMode" v-model="project.field">
+                <span v-for="(item,index) in fields" :key="index">
+              <el-radio :label="item.code" style="margin: 3px">{{ item.name }}&nbsp;&nbsp;&nbsp;&nbsp;</el-radio>
+            </span>
+              </el-radio-group>
+              <span
+                v-if="!isModifyMode"
+                class="badge"
+              >
+              {{project.field}}</span>
+            </el-form-item>
 
             <el-form-item label="应用类型" prop="platform">
               <el-radio-group v-if="isModifyMode" v-model="project.platform">
                 <span v-for="(item,index) in platforms" :key="index">
-              <el-radio :label="item" style="margin: 3px">{{ item }}&nbsp;&nbsp;&nbsp;&nbsp;</el-radio>
+              <el-radio :label="item.code" style="margin: 3px">{{ item.name }}&nbsp;&nbsp;&nbsp;&nbsp;</el-radio>
             </span>
               </el-radio-group>
               <span
                 v-if="!isModifyMode"
                 class="badge"
               >
-<!--                v-for="item in project.platform"-->
               {{project.platform}}</span>
             </el-form-item>
             <el-form-item label="服务类型" prop="type">
               <el-checkbox-group v-if="isModifyMode" v-model="project.type">
             <span v-for="(item,index) in serviceType" :key="index">
-              <el-checkbox :label="item" name="type">{{ item }}&nbsp;&nbsp;</el-checkbox>
+              <el-checkbox :label="item.code" name="type">{{ item.name }}&nbsp;&nbsp;</el-checkbox>
             </span>
               </el-checkbox-group>
               <span v-if="!isModifyMode" class="badge" v-for="item in project.type">{{item}}</span>
@@ -160,6 +184,11 @@
             <i v-if="project.fileUrl==null || project.fileUrl==''" class="el-icon-document">暂无文件</i>
           </span>
             </el-form-item>
+            <el-form-item label="委托单位" prop="entrustUnit" v-if="project.entrustUnit">
+              <el-input style="width: 400px" autosize v-if="isModifyMode" type="textarea"
+                        v-model="project.entrustUnit"></el-input>
+              <span v-if="!isModifyMode">{{project.entrustUnit}}</span>
+            </el-form-item>
             <el-form-item label="项目截止时间" prop="datetime">
               <div class="block" v-if="isModifyMode">
                 <el-date-picker
@@ -233,7 +262,7 @@
               <div v-if="scope.row.resource=='2'">{{resourceType[scope.row.resource]}}</div>
             </template>
           </el-table-column>
-          <el-table-column prop="type" label="业务类型">
+          <el-table-column prop="type" label="测试类型">
             <template slot-scope="scope">
               <div class="badge">{{scope.row.serviceType}}</div>
             </template>
@@ -283,6 +312,7 @@ import {
   ensureEndProject,
   getAllInstitutions,
   getAllPlatformTypes,
+  getAllFields,
   getAllServiceTypes,
   getFormalTimeFromDate,
   getProvinceCodeByProvinceName,
@@ -321,6 +351,7 @@ export default {
       institutionArray: [],
       isModifyMode: false,
       platforms: [],
+      fields: [],
       resourceType: ResourceType,
       serviceType: [],
       projectOperationControl: {
@@ -335,8 +366,11 @@ export default {
       project: {
         userId: 0,
         name: '',
-        type: '',
+        type: [],
         platform: '',
+        valuationStandard: '',
+        entrustUnit:'',
+        field: '',
         desc: '',
         resource: '',
         location: '',
@@ -418,10 +452,17 @@ export default {
         platform: [
           {
             required: true,
-            message: '请至少选择一个平台',
+            message: '请选择一个应用类型',
             trigger: 'change'
           }
         ],
+        field: [
+            {
+                required: true,
+                message: '请选择一个领域类型',
+                trigger: 'change'
+            }
+        ],
         desc: [{required: false, message: '请填写描述', trigger: 'blur'}],
         //price: [{required: true, message: '请填写价格', trigger: 'blur'}],
         budget: [
@@ -506,6 +547,7 @@ export default {
     init () {
       this.projectId = this.$route.params.projectId
       this.setServiceType()
+      this.setFields()
       this.setPlatformType()
       this.setInstitutions()
       this.setUserInfo()
@@ -570,7 +612,10 @@ export default {
             userId: this.user.userVO.id,
             name: this.project.name,
             type: this.project.type,
-            platform: this.project.platform.split('&#'),
+            platform: this.project.platform,
+            valuationStandard: this.project.valuationStandard,
+            entrustUnit: this.project.entrustUnit,
+            field: this.project.field,
             desc: this.project.desc,
             resource: this.project.resource,
             location: getProvinceNameByProvinceCode(this.project.location.provinceCode, this.project.location.cityCode),
@@ -592,7 +637,10 @@ export default {
             this.project.contactName = res.projectDetails.contactName
             this.project.contactPhone = res.projectDetails.contactPhone
             this.project.type = res.projectDetails.type
-            this.project.platform = res.projectDetails.platform[0]
+            this.project.platform = res.projectDetails.platform
+            this.project.valuationStandard = res.projectDetails.valuationStandard
+            this.project.entrustUnit = res.projectDetails.entrustUnit
+            this.project.field = res.projectDetails.field
             this.project.desc = res.projectDetails.desc
             this.project.doc = []
             this.project.file = []
@@ -626,7 +674,10 @@ export default {
       this.$refs[formName].resetFields()
       this.project.name = ''
       this.project.type = []
-      this.project.platform = []
+      this.project.platform = ''
+      this.project.valuationStandard = ''
+      this.project.entrustUnit = ''
+      this.project.field = ''
       this.project.desc = ''
       this.project.doc = ''
       this.project.file = ''
@@ -642,7 +693,11 @@ export default {
     //进入修改项目页面
     modifyForm () {
       this.isModifyMode = true
-      console.log(this.project.doc)
+      this.project.type = []
+      this.project.platform = []
+      this.project.field = []
+      console.log(this.project)
+      // console.log(this.project.doc)
       //this.setInstitutions()
       //获得update 信息
       //this.loadData()
@@ -821,7 +876,10 @@ export default {
         this.project.contactName = res.projectDetails.contactName
         this.project.contactPhone = res.projectDetails.contactPhone
         this.project.type = res.projectDetails.type
-        this.project.platform = res.projectDetails.platform[0]
+        this.project.platform = res.projectDetails.platform
+        this.project.valuationStandard = res.projectDetails.valuationStandard
+        this.project.entrustUnit = res.projectDetails.entrustUnit
+        this.project.field = res.projectDetails.field
         this.project.desc = res.projectDetails.desc
         this.project.doc = []
         this.project.file = []
@@ -849,7 +907,6 @@ export default {
               break
           }
         }
-
       }).catch((error) => {
         this.hideLoading()
         notify('error', error.data)
@@ -921,15 +978,20 @@ export default {
       })
     },
     setServiceType () {
-      getAllServiceTypes().then((res) => {
-        this.serviceType = res
-      }).catch((error) => {
-        notify('error', '获取项目类型列表失败')
-      })
+        getAllServiceTypes().then((res) => {
+            this.serviceType = res
+        })
     },
     setPlatformType () {
-      this.platforms = getAllPlatformTypes()
+        getAllPlatformTypes().then((res) => {
+            this.platforms = res
+        })
     },
+    setFields(){
+        getAllFields().then((res) => {
+            this.fields = res
+        })
+    }  ,
     setInstitutions () {
       getAllInstitutions().then((res) => {
         this.institutionArray = res

+ 46 - 13
src/components/project/ProjectCreate.vue

@@ -17,6 +17,10 @@
             <template slot="append">¥</template>
           </el-input>
         </el-form-item>
+        <el-form-item label="计价标准" prop="valuationStandard">
+          <el-input type="textarea" style="width: 400px" v-model="project.valuationStandard"
+                    placeholder="请输入项目的计价标准(eg:1200/人天)"></el-input>
+        </el-form-item>
         <el-form-item label="需求描述" prop="desc">
           <el-input type="textarea" style="width: 400px" v-model="project.desc"
                     placeholder="请输入对项目的描述"></el-input>
@@ -26,11 +30,18 @@
         <!--<template slot="append">¥</template>-->
         <!--</el-input>-->
         <!--</el-form-item>-->
+        <el-form-item label="领域类型" prop="field">
+          <el-radio-group v-model="project.field">
+            <span v-for="(item,index) in fields" :key="index">
+              <el-radio :label="item.code">{{ item.name }}&nbsp;&nbsp;&nbsp;&nbsp;</el-radio>
+            </span>
+          </el-radio-group>
+        </el-form-item>
 
         <el-form-item label="应用类型" prop="platform">
           <el-radio-group v-model="project.platform">
             <span v-for="(item,index) in platforms" :key="index">
-              <el-radio :label="item">{{ item }}&nbsp;&nbsp;&nbsp;&nbsp;</el-radio>
+              <el-radio :label="item.code">{{ item.name }}&nbsp;&nbsp;&nbsp;&nbsp;</el-radio>
             </span>
           </el-radio-group>
         </el-form-item>
@@ -38,7 +49,7 @@
         <el-form-item label="服务类型" prop="type">
           <el-checkbox-group v-model="project.type">
             <span v-for="(item,index) in serviceType" :key="index">
-              <el-checkbox :label="item" name="type">{{item}}&nbsp;&nbsp;&nbsp;&nbsp;</el-checkbox>
+              <el-checkbox :label="item.code" name="type">{{item.name}}&nbsp;&nbsp;&nbsp;&nbsp;</el-checkbox>
             </span>
           </el-checkbox-group>
         </el-form-item>
@@ -138,6 +149,7 @@ import {notify} from '@/constants/index'
 import {
   checkFileType,
   getAllInstitutions,
+  getAllFields,
   getAllPlatformTypes,
   getAllServiceTypes,
   getProvinceNameByProvinceCode,
@@ -165,8 +177,10 @@ export default {
       loading: false,
       tabPosition: 'top',
       institutionArray: [],
-      platforms: [],
-      serviceType: [],
+      fields:[{code: '', name: ''}],
+      platforms:[{code: '', name: ''}],
+      // platforms: [],
+      serviceType: [{code: '', name: ''}],
       resourceType: ResourceType,
       project: {
         userId: 0,
@@ -174,7 +188,9 @@ export default {
         contactName: '',
         contactPhone: '',
         type: [],
-        platform: [],
+        platform: '',
+        valuationStandard:'',
+        field: '',
         desc: '',
         doc: [],
         file: [],
@@ -253,6 +269,13 @@ export default {
             trigger: 'change'
           }
         ],
+        field: [
+          {
+            required: true,
+            message: '请至少选择一个领域类型',
+            trigger: 'change'
+          }
+        ],
         desc: [{required: false, message: '请填写描述', trigger: 'blur'}],
         //price: [{required: true, message: '请填写价格', trigger: 'blur'}],
         budget: [
@@ -339,6 +362,7 @@ export default {
     },
     init () {
       this.setServiceType()
+      this.setFields()
       this.setPlatforms()
       this.setInstitution()
       this.setUserInfo()
@@ -356,8 +380,10 @@ export default {
             userId: this.user.userVO.id,
             name: this.project.name,
             type: this.project.type,
-            platform: this.project.platform.split('&#'),
+            platform: this.project.platform,
+            field: this.project.field,
             desc: this.project.desc,
+            valuationStandard: this.project.valuationStandard,
             resource: this.project.resource,
             location: newLocation,
             institution: this.project.institution.id,
@@ -399,8 +425,10 @@ export default {
       this.$refs[formName].resetFields()
       this.project.name = ''
       this.project.type = []
-      this.project.platform = []
+      this.project.platform = ''
+      this.project.field = ''
       this.project.desc = ''
+      this.project.valuationStandard = ''
       this.project.file = ''
       this.project.doc = ''
       this.project.contactName = ''
@@ -489,14 +517,19 @@ export default {
       })
     },
     setServiceType () {
-      getAllServiceTypes().then((res) => {
-        this.serviceType = res
-      }).catch((error) => {
-        notify('error', '获取项目服务类型列表失败')
-      })
+        getAllServiceTypes().then((res) => {
+            this.serviceType = res
+        })
+    },
+    setFields(){
+        getAllFields().then((res) => {
+            this.fields = res
+        })
     },
     setPlatforms () {
-      this.platforms = getAllPlatformTypes()
+        getAllPlatformTypes().then((res) => {
+            this.platforms = res
+        })
     },
     setInstitution () {
       getAllInstitutions().then((res) => {

+ 6 - 4
src/components/task/Task.vue

@@ -25,10 +25,10 @@
         <!--</el-input>-->
         <!--<span v-if="!isModifyMode">{{task.fixedPrice}}</span>-->
         <!--</el-form-item>-->
-        <el-form-item label="业务类型" prop="serviceType">
+        <el-form-item label="测试类型" prop="serviceType">
           <el-radio-group v-if="isModifyMode" v-model="task.serviceType">
             <span v-for="(item,index) in serviceType" :key="index">
-              <el-radio :label="item" name="type">{{item}}</el-radio>
+              <el-radio :label="item.code" name="type">{{item.name}}</el-radio>
             </span>
           </el-radio-group>
           <span class="badge" v-if="!isModifyMode">{{task.serviceType}}</span>
@@ -52,7 +52,7 @@
                   name="type"
                   v-for="item,index in institutionArray"
                   :key="index"
-                >{{item.name}}
+                >{{item.evaluationAgencyName}}
                 </el-radio>
               </el-radio-group>
             </el-tab-pane>
@@ -315,7 +315,7 @@
             {min: 5, max: 50, message: '任务名称长度在 5 到 50 个字符', trigger: 'blur'}
           ],
           type: [
-            {required: true, message: '业务类型不可为空'},
+            {required: true, message: '测试类型不可为空'},
           ],
           desc: [{required: false, message: '请填写描述', trigger: 'blur'}],
           //price: [{required: true, message: '请填写价格', trigger: 'blur'}],
@@ -398,8 +398,10 @@
           params: {projectId: this.projectId}
         })
       },
+
       //切换至可编辑页面
       modifyForm() {
+        this.task.serviceType = ''
         this.isModifyMode = true
       },
       //切换至不可编辑页面

+ 8 - 9
src/components/task/TaskCreate.vue

@@ -19,10 +19,10 @@
         <!--<template slot="append">¥</template>-->
         <!--</el-input>-->
         <!--</el-form-item>-->
-        <el-form-item label="业务类型" prop="type">
+        <el-form-item label="测试类型" prop="type">
           <el-radio-group v-model="task.type">
             <span v-for="(item,index) in serviceType" :key="index">
-              <el-radio :label="item" name="type">{{item}}</el-radio>
+              <el-radio :label="item.code" name="type">{{item.name}}</el-radio>
             </span>
           </el-radio-group>
         </el-form-item>
@@ -35,7 +35,7 @@
                   name="type"
                   v-for="item,index in institutionArray"
                   :key="index"
-                >{{item.name}}
+                >{{item.evaluationAgencyName}}
                 </el-radio>
               </el-radio-group>
             </el-tab-pane>
@@ -164,7 +164,7 @@ export default {
           {min: 5, max: 50, message: '任务名称长度在 5 到 50 个字符', trigger: 'blur'}
         ],
         type: [
-          {required: true, message: '业务类型不可为空'},
+          {required: true, message: '测试类型不可为空'},
         ],
         desc: [{required: false, message: '请填写描述', trigger: 'blur'}],
         //price: [{required: true, message: '请填写价格', trigger: 'blur'}],
@@ -354,15 +354,14 @@ export default {
       })
     },
     setServiceType () {
-      this.serviceType = getAllServiceTypes().then((res) => {
-        this.serviceType = res
-      }).catch((error) => {
-        notify('error', '加载服务类型列表失败')
-      })
+        getAllServiceTypes().then((res) => {
+            this.serviceType = res
+        })
     },
     setInstitutions () {
       getAllAgencies().then((res) => {
         this.institutionArray = res
+        console.log(this.institutionArray)
       }).catch((error) => {
         notify('error', '测评机构加载失败')
       })

+ 11 - 11
src/components/task/TaskList.vue

@@ -26,7 +26,7 @@ export default {
           platform: [0, 1],
           description: "任务描述文字xxxx",
           price: "30",
-          业务类型: 1,
+          测试类型: 1,
           status: 0
         },
         {
@@ -35,7 +35,7 @@ export default {
           platform: [0],
           description: "任务描述文字xxxx",
           price: "10",
-          业务类型: 0,
+          测试类型: 0,
           status: 1
         },
         {
@@ -44,7 +44,7 @@ export default {
           platform: [1],
           description: "任务描述文字xxxx",
           price: "10",
-          业务类型: 2,
+          测试类型: 2,
           status: 0
         },
         {
@@ -53,7 +53,7 @@ export default {
           platform: [0, 1, 2],
           description: "任务描述文字xxxx",
           price: "0",
-          业务类型: 1,
+          测试类型: 1,
           status: 1
         },
         {
@@ -62,7 +62,7 @@ export default {
           platform: [0, 1],
           description: "任务描述文字xxxx",
           price: "30",
-          业务类型: 1,
+          测试类型: 1,
           status: 0
         }
       ],
@@ -73,7 +73,7 @@ export default {
           platform: [1],
           description: "任务描述文字xxxx",
           price: "10",
-          业务类型: 2,
+          测试类型: 2,
           status: 0
         },
         {
@@ -82,7 +82,7 @@ export default {
           platform: [0, 1, 2],
           description: "任务描述文字xxxx",
           price: "0",
-          业务类型: 1,
+          测试类型: 1,
           status: 1
         },
         {
@@ -91,7 +91,7 @@ export default {
           platform: [0, 1],
           description: "任务描述文字xxxx",
           price: "30",
-          业务类型: 1,
+          测试类型: 1,
           status: 0
         },
         {
@@ -100,7 +100,7 @@ export default {
           platform: [0],
           description: "任务描述文字xxxx",
           price: "10",
-          业务类型: 0,
+          测试类型: 0,
           status: 1
         },
         {
@@ -109,7 +109,7 @@ export default {
           platform: [1],
           description: "任务描述文字xxxx",
           price: "10",
-          业务类型: 2,
+          测试类型: 2,
           status: 0
         },
         {
@@ -118,7 +118,7 @@ export default {
           platform: [0, 1, 2],
           description: "任务描述文字xxxx",
           price: "0",
-          业务类型: 1,
+          测试类型: 1,
           status: 2
         }
       ]

+ 4 - 2
src/js/api.js

@@ -74,8 +74,10 @@ export default {
     REPORT_DETAIL_PAGE: '/api/page/reportDetail/{reportId}/',
   },
   GENERAL: {
-    GET_ALL_ABILITIES: '',
     GET_ALL_INSTITUTIONS: '/api/regionalManager',
-    GET_ALL_AGENCIES: '/api/agency/list'
+    GET_ALL_AGENCIES: '/api/agency/list',
+    GET_ALL_ApplicationType: '/api/list/application',
+    GET_ALL_TestType: '/api/list/type',
+    GET_ALL_Filed: '/api/list/filed',
   }
 }

+ 19 - 23
src/js/generalService.js

@@ -31,14 +31,6 @@ export const getAllAgencyResourceTypes = () => {
   //return Http.get(Apis.GENERAL.GET_ALL_ABILITIES)
 }
 
-//获取所有服务类型
-export const getAllServiceTypes = () => {
-  const data = ['接口测试', '兼容性测试', '可靠性测试', '稳定性测试', '功能测试', '性能测试', '安全测试','易用性测试', '应用故障诊断', '应用漏洞扫描', '代码安全审计', '风险评估', '等保测评', '评估评价', '定制测试']
-  return new Promise((resolve) => {
-    resolve(data)
-  })
-  //return Http.get(Apis.GENERAL.GET_ALL_ABILITIES)
-}
 
 //获取所有报告类型
 export const getAllReportTypes = () => {
@@ -49,11 +41,26 @@ export const getAllReportTypes = () => {
   //return Http.get(Apis.GENERAL.GET_ALL_ABILITIES)
 }
 
-//获取所有平台类型
+//获取所有领域类型
+export const getAllFields = () => {
+  return Http.get(Apis.GENERAL.GET_ALL_Filed)
+}
+
+//获取所有应用类型
 export const getAllPlatformTypes = () => {
-  return ['AndroidAPP', 'IOSAPP', 'Web应用', 'C/S应用软件', '嵌入式软件', '工业控制软件', '信息技术产品', '其他']
-  //return Http.get(Apis.GENERAL.GET_ALL_ABILITIES)
+  // return ['Android APP', 'IOS APP', 'Web应用', 'C/S应用软件', '嵌入式软件', '工业控制软件', '信息技术产品', '其他']
+  return Http.get(Apis.GENERAL.GET_ALL_ApplicationType)
 }
+
+//获取所有服务类型
+export const getAllServiceTypes = () => {
+  // const data = ['接口测试', '兼容性测试', '可靠性测试', '稳定性测试', '功能测试', '性能测试', '安全测试','易用性测试', '应用故障诊断', '应用漏洞扫描', '代码安全审计', '风险评估', '等保测评', '评估评价', '定制测试']
+  // return new Promise((resolve) => {
+  //   resolve(data)
+  // })
+  return Http.get(Apis.GENERAL.GET_ALL_TestType)
+}
+
 //获取所有定向发布的目标
 export const getAllInstitutions = () => {
   return Http.get(Apis.GENERAL.GET_ALL_INSTITUTIONS)
@@ -61,17 +68,6 @@ export const getAllInstitutions = () => {
 
 //获取所有测评机构
 export const getAllAgencies = () => {
-  // const data = [{
-  //   id: 1,
-  //   name: '慕测'
-  // }, {
-  //   id: 2,
-  //   name: '南大'
-  // }]
-  //
-  // return new Promise((resolve) => {
-  //   resolve(data)
-  // })
   return Http.get(Apis.GENERAL.GET_ALL_AGENCIES)
 }
 
@@ -117,7 +113,7 @@ export const getProvinceCodeByProvinceName = (provinceName, cityName) => {
 //获取批量上传项目模板文件
 export const getGreenChannelAddProjectExcelTemplateFile = (getTemplateExcelSuccess, getTemplateExcelFail) => {
   const data = {
-    fileUrl: 'http://mooctest-crowd-service.oss-cn-hangzhou.aliyuncs.com/Others/%E9%A1%B9%E7%9B%AE%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx'
+    fileUrl: 'http://mooctest-crowd-service.oss-cn-hangzhou.aliyuncs.com/Others/%E9%A1%B9%E7%9B%AE%E6%95%B0%E6%8D%AE%E4%B8%8A%E6%8A%A5%E6%A8%A1%E6%9D%BF.xlsx'
   }
   new Promise((resolve) => {
     resolve(data)

+ 3 - 1
src/js/index.js

@@ -57,6 +57,7 @@ import {
   getAllAgencyResourceTypes,
   getAllInstitutions,
   getAllPlatformTypes,
+  getAllFields,
   getAllReportTypes,
   getAllServiceTypes,
   getFormalTimeFromDate,
@@ -203,6 +204,7 @@ export {
   getAllInstitutions,
   //TODO 目前使用本地数据 需要修改 获取所有测试平台类型
   getAllPlatformTypes,
+  getAllFields,
   //TODO 目前使用本地数据 需要修改 获取所有报告类型
   getAllReportTypes,
   //TODO 目前使用本地数据 需要修改 获取所有服务类型(与获取所有测评能力相同)
@@ -690,7 +692,7 @@ export const defaultValue = {
 //     //个人
 //     realName: '李白',
 //     IDCard: '32092111111111',
-//     IDCardPhoto: 'http://www.mooctest.net/assets/img/mooctest.png',
+//     IDCardPositivePhoto: 'http://www.mooctest.net/assets/img/mooctest.png',
 //   }
 //   const enterpriseData = {
 //     type: '企业',//企业、机构、个人

+ 1 - 1
src/js/userService.js

@@ -162,7 +162,7 @@ export const getCurrentAuthenInfo = () => {
     //个人
     realName: '李白',
     IDCard: '32092111111111',
-    IDCardPhoto: 'http://www.mooctest.net/assets/img/mooctest.png',
+    IDCardPositivePhoto: 'http://www.mooctest.net/assets/img/mooctest.png',
   }
   const enterpriseData = {
     type: '企业',//企业、机构、个人