소스 검색

关键字设置添加字段

liuhj 3 달 전
부모
커밋
366f9a4131
1개의 변경된 파일26개의 추가작업 그리고 3개의 파일을 삭제
  1. 26 3
      src/components/OP/RequestAccess.vue

+ 26 - 3
src/components/OP/RequestAccess.vue

@@ -1,7 +1,11 @@
 <template>
     <div class="RequestAccess-all" v-loading.fullscreen.lock="RequestAccessLoading" :element-loading-text="loadingtext">
-        <el-dialog top="25vh" width="450px" title="AI访问关键字设置" :visible.sync="RequestAccessVisible">
+        <el-dialog top="18vh" width="450px" title="AI访问关键字设置" :visible.sync="RequestAccessVisible">
             <div class="RequestAccess-ul">
+                <div class="RequestAccess-li">
+                    <label>公务名称:</label>
+                    <el-input style="width:312px" size="small" v-model="invName" placeholder="请输入公务名称"></el-input>
+                </div>
                 <div class="RequestAccess-li">
                     <label>拜访单位:</label>
                     <el-select style="width:312px" size="small" filterable remote :filter-method="InvAIClientKeywordSearch" :loading="selectLoadings" v-model="unitName" clearable placeholder="请选择">
@@ -16,6 +20,10 @@
                         </el-option>
                     </el-select>
                 </div>
+                <div class="RequestAccess-li">
+                    <label>拜访目的:</label>
+                    <el-input style="width:312px" size="small" v-model="objective" placeholder="请输入拜访目的"></el-input>
+                </div>
                 <div class="RequestAccess-li">
                     <label>规模类型:</label>
                     <el-select style="width:312px" size="small" multiple filterable v-model="orgScale" clearable placeholder="请选择">
@@ -114,7 +122,7 @@
         <div class="RequestAccess-hader">
             <div class="RequestAccess-hader-top">
                 <div>
-                    <el-select style="width:250px" @change="InvitationAIItemByName" size="small" filterable remote :filter-method="InvAIKeywordSearch" :loading="selectLoading" v-model="itemNameid" clearable placeholder="请选择">
+                    <el-select style="width:250px" @change="InvitationAIItemByName" size="small" filterable remote :filter-method="InvAIKeywordSearch" :loading="selectLoading" v-model="itemNameid" placeholder="请选择">
                         <el-option v-for="item in itemNamess" :key="item.id" :label="item.name" :value="item.id">
                         </el-option>
                     </el-select>
@@ -177,6 +185,11 @@
                         </el-input>
                     </template>
                 </el-table-column>
+                <!-- <el-table-column label="官方网址">
+                    <template slot-scope="scope">
+                        <el-link type="primary" :href="scope.row.siteUrl" target="_blank">{{scope.row.siteUrl}}</el-link>
+                    </template>
+                </el-table-column> -->
                 <el-table-column prop="email" label="联系邮箱">
                     <template slot-scope="scope">
                         <el-input type="textarea" autosize placeholder="请输入内容" size="small" v-model="scope.row.email">
@@ -235,6 +248,8 @@ export default {
             itemNameid:'',
             itemNames:[],
             itemNamess:[],
+            invName:'',
+            objective:'',
             unitName:'',
             unitNames:[],
             unitNamess:[],
@@ -369,6 +384,8 @@ export default {
             this.otherConstraints = this.entry!={}?this.entry.otherConstraints:'';
             this.countrie = this.entry!={}?this.entry.targetCountry:[];
             this.unitName = this.entry!={}?this.entry.originUnit:'';
+            this.invName = this.entry!={}?this.entry.invName:'';
+            this.objective = this.entry!={}?this.entry.objective:'';
             this.orgScale = this.entry!={}?this.entry.scaleTypes:[];
             this.industryNode = this.entry!={}?this.entry.industries:[];
             this.isBackground = this.entry!={}?this.entry.isBackground:'';
@@ -1106,11 +1123,14 @@ export default {
                 that.otherConstraints='';
                 that.countrie=[];
                 that.unitName='';
+                that.invName='';
+                that.objective='';
                 that.Id=0;
                 if (res.data.code == 200) {
                     that.tableData = res.data.data.aiCrawledDetails;
                     that.Id = res.data.data.id;
                     that.entry = res.data.data.entry;
+                    that.entry.invName=res.data.data.invName;
                     that.initSelection();
                     that.RequestAccessLoading=false;
                     // that.otherConstraints = res.data.data.id!=0?res.data.data.entry.otherConstraints:'';
@@ -1372,6 +1392,8 @@ export default {
                     data: {
                         groupId: that.itemNameid,
                         originUnit: that.unitName,
+                        invName: that.invName,
+                        objective: that.objective,
                         targetCountry: that.countrie,
                         industries: that.industryNode,
                         scaleTypes: that.orgScale,
@@ -1395,7 +1417,8 @@ export default {
                     }
                 })
             }).then(()=>{
-                that.InvitationAIItemByName();
+                that.InvitationAIInit();
+                // that.InvitationAIItemByName();
             });
             
         },