浏览代码

销售端上传企业微信图片

sgw 7 小时之前
父节点
当前提交
ed2cb2b274
共有 2 个文件被更改,包括 31 次插入0 次删除
  1. 7 0
      src/api/company/company.js
  2. 24 0
      src/views/qw/tagGroup/index.vue

+ 7 - 0
src/api/company/company.js

@@ -49,3 +49,10 @@ export function getCompanyListByCorId(corId) {
     method: 'get'
   })
 }
+
+export function syncCompanyCorIdImage() {
+    return request({
+        url: '/company/company/syncCompanyCorIdImage',
+        method: 'get'
+    })
+}

+ 24 - 0
src/views/qw/tagGroup/index.vue

@@ -80,6 +80,16 @@
           v-hasPermi="['qw:tagGroup:export']"
         >导出</el-button>
       </el-col>
+
+        <el-col :span="1.5">
+            <el-button
+                type="primary"
+                plain
+                size="mini"
+                @click="handleImageSync"
+                v-hasPermi="['qw:tagGroup:imageSync']"
+            >企微上传图片(用于欢迎语,平常不要点)</el-button>
+        </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -185,6 +195,7 @@
 <script>
 import { syncTag,listTagGroup, getTagGroup, delTagGroup, addTagGroup, updateTagGroup, exportTagGroup } from "@/api/qw/tagGroup";
 import { getMyQwUserList,getMyQwCompanyList } from "@/api/qw/user";
+import {syncCompanyCorIdImage} from "../../../api/company/company";
 export default {
   name: "TagGroup",
   data() {
@@ -335,6 +346,19 @@ export default {
         }
       );
     },
+      handleImageSync(){
+          this.loading=true;
+          syncCompanyCorIdImage(this.queryParams.corpId).then(response => {
+              this.msgSuccess("同步成功");
+
+              this.getList();
+          }).finally(
+              () => {
+                  this.loading=false;
+              }
+          );
+      } ,
+
     /** 提交按钮 */
     submitForm() {
       this.$refs["form"].validate(valid => {