liuhj недель назад: 2
Родитель
Сommit
e4f498c831
2 измененных файлов с 40 добавлено и 3 удалено
  1. 35 0
      src/components/OP/DecreasePayments.vue
  2. 5 3
      src/components/OP/GuideGroundAIData.vue

+ 35 - 0
src/components/OP/DecreasePayments.vue

@@ -33,6 +33,9 @@
                         <router-link :to="{ path: '/home/OpDecreasePayments', query: { DiId } }">
                             <el-button size="small" type="primary" style="margin-left: 10px;">新增</el-button>
                         </router-link>
+                        <div>
+                            <el-button size="small" type="primary" @click="DecreasePaymentsExcelDownload" style="margin-left: 10px;">下载</el-button>
+                        </div>
                     </div>
                 </div>
                 <div class="communal-box-title">
@@ -195,6 +198,38 @@ export default {
                 that.$message.error(error);
             });
         },
+        //下载
+        DecreasePaymentsExcelDownload() {
+            var url = "/api/Groups/DecreasePaymentsExcelDownload"
+            var that = this
+            this.$axios({
+                method: 'post',
+                url: url,
+                headers: {
+                    Authorization: 'Bearer ' + this.token
+                },
+                data: {
+                    groupId: that.DiId,
+                    currUserId: that.userId,
+                }
+            }).then(function (res) {
+                if (res.data.code == 200) {
+                    
+                    window.open(res.data.data)
+                     that.$message({
+                        message: res.data.data.msg,
+                        type: 'success'
+                    });
+                }else{
+                    that.$message({
+                        message: res.data.msg,
+                        type: 'error'
+                    });
+                }
+            }).catch(function (error) {
+                that.$message.error(error);
+            });
+        },
         DecreasePaymentsChange() {
             for (let index = 0; index < this.delegationInfoList.length; index++) {
                 if (this.delegationInfoList[index].id == this.DiId) {

+ 5 - 3
src/components/OP/GuideGroundAIData.vue

@@ -147,9 +147,9 @@
                         </el-input>
                     </template>
                 </el-table-column>
-                <el-table-column prop="name" label="姓名/公司名">
+                <el-table-column prop="nameCn" label="姓名/公司名">
                      <template slot-scope="scope">
-                        <el-input type="textarea" autosize placeholder="请输入内容" size="small" v-model="scope.row.name">
+                        <el-input type="textarea" autosize placeholder="请输入内容" size="small" v-model="scope.row.nameCn">
                         </el-input>
                      </template>
                 </el-table-column> 
@@ -805,6 +805,7 @@ export default {
                 this.GuideGroundAILoading = false;
                 return;
             }
+            console.log('Selected name:', name); // Debugging line
             var url = "/api/Resource/OpLocalServiceAIItemByName/"+name
             var that = this
             this.$axios({
@@ -821,7 +822,7 @@ export default {
                 that.language=[];
                 that.Id=0;
                 if (res.data.code == 200) {
-                    that.tableData = res.data.data.aiLocalServiceDetails || [];
+                    that.tableData = res.data.data.aiCrawledDetails || [];
                     that.Id = res.data.data.id || 0;
                     that.entry = res.data.data.entry || {};
                     that.initSelection();
@@ -1008,6 +1009,7 @@ export default {
                     currUserId: that.userid,
                 },
                 (data) => {
+                    // var infos=JSON.parse(data);
                     that.loadingtext = data.message;
                     if (data.progress != -1) {
                         if (data.progress === 100) {