|
|
@@ -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 => {
|