Commit 8b0b8d90 by xinla

修改塬微为仟微,侧边栏抓取素材弹窗问题等

1 parent e926b04d
# 开发环境配置
ENV = 'development'
# 塬微管理系统/开发环境
VUE_APP_BASE_API = 'http://146.56.222.200/api/'
# 仟微管理系统/开发环境
VUE_APP_BASE_API = 'http://146.56.222.200'
# VUE_APP_BASE_API = 'http://n3rpzt.natappfree.cc'
# 开发环境IP
......
# 生产环境配置
ENV = 'production'
# 塬微管理系统/生产环境api
VUE_APP_BASE_API = 'http://106.13.236.58:8080'
# 仟微管理系统/生产环境api
VUE_APP_BASE_API = 'http://146.56.222.200'
# 生产环境IP
VUE_APP_BASE_URL = 'http://106.13.236.58:8080'
......@@ -25,7 +25,7 @@ export default {
<template>
<div class="preview ac">
<div class="top">小微</div>
<div class="small">塬微科技-企微</div>
<div class="small">仟微科技-企微</div>
<div class="time">凌晨2:20</div>
<div class="flex msg-li">
<el-avatar
......
<script>
import { getTree, getList } from "@/api/material";
import { getTree, getList } from '@/api/material'
export default {
components: {},
props: {
type: {
type: String,
default: "4",
default: '4',
},
multiple: {
type: Boolean,
......@@ -23,83 +23,83 @@ export default {
query: {
pageNum: 1,
pageSize: 10,
categoryId: "",
search: "",
mediaType: "4",
categoryId: '',
search: '',
mediaType: '4',
},
list: [], // 列表
total: 0, // 总条数
treeData: [], // 树
// 树props
treeProps: {
children: "children",
label: "name",
children: 'children',
label: 'name',
},
// 分组props
groupProps: {
// expandTrigger: 'hover',
checkStrictly: true,
children: "children",
label: "name",
value: "id",
children: 'children',
label: 'name',
value: 'id',
emitPath: false,
},
radio: "",
radio: '',
// 树props
treeProps: {
children: "children",
label: "name",
children: 'children',
label: 'name',
},
selectedx: []
};
selectedx: [],
}
},
watch: {
radio(val) {
this.$emit("change", val);
this.$emit('change', val)
},
},
computed: {},
created() {
this.query.mediaType = this.type;
this.getTree();
this.getList();
this.query.mediaType = this.type
this.getTree()
this.getList()
},
mounted() {},
methods: {
// 获取类目树
getTree() {
getTree(this.type).then(({ data }) => {
this.treeData = data;
});
this.treeData = data
})
},
// 获取素材列表
getList(page) {
page && (this.query.pageNum = page);
this.loading = true;
page && (this.query.pageNum = page)
this.loading = true
getList(this.query)
.then(({ rows, total }) => {
this.list = rows;
this.total = +total;
this.loading = false;
this.$emit("listChange", this.list);
this.list = rows
this.total = +total
this.loading = false
this.$emit('listChange', this.list)
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
// 节点单击事件
handleNodeClick(data) {
this.query.categoryId = data.id;
this.getList(1);
this.query.categoryId = data.id
this.getList(1)
},
// 多选框选中数据
handleSelectionChange(selection) {
this.$emit("update:selected", selection);
this.$emit('update:selected', selection)
},
},
};
}
</script>
<template>
......@@ -191,7 +191,7 @@ export default {
></el-pagination>
</div>
<el-table
v-if="[3, 4].includes(+type)"
v-if="[1, 3, 4].includes(+type)"
:data="list"
@selection-change="handleSelectionChange"
>
......@@ -201,7 +201,10 @@ export default {
</el-table>
<el-row v-else :gutter="20">
<el-checkbox-group v-model="selectedx" @change="handleSelectionChange">
<el-checkbox-group
v-model="selectedx"
@change="handleSelectionChange"
>
<el-col
:span="6"
style="margin-bottom: 24px; min-width: 220px"
......
......@@ -10,7 +10,7 @@
<breadcrumb id="breadcrumb-container" class="breadcrumb-container" />
<div class="right-menu">
<template v-if="device!=='mobile'">
<template v-if="device !== 'mobile'">
<search id="header-search" class="right-menu-item" />
<el-tooltip content="源码地址" effect="dark" placement="bottom">
......@@ -28,9 +28,12 @@
<screenfull id="screenfull" class="right-menu-item hover-effect" />
</template>
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
<el-dropdown
class="avatar-container right-menu-item hover-effect"
trigger="click"
>
<div class="avatar-wrapper">
塬微
仟微
<!-- <img :src="avatar" class="user-avatar"> -->
<i class="el-icon-caret-bottom" />
</div>
......@@ -51,11 +54,11 @@
</template>
<script>
import { mapGetters } from "vuex";
import Breadcrumb from "@/components/Breadcrumb";
import Hamburger from "@/components/Hamburger";
import Search from "@/components/HeaderSearch";
import screenfull from "@/components/Screenfull";
import { mapGetters } from 'vuex'
import Breadcrumb from '@/components/Breadcrumb'
import Hamburger from '@/components/Hamburger'
import Search from '@/components/HeaderSearch'
import screenfull from '@/components/Screenfull'
export default {
components: {
......@@ -65,43 +68,43 @@ export default {
screenfull,
},
computed: {
...mapGetters(["sidebar", "avatar", "device"]),
...mapGetters(['sidebar', 'avatar', 'device']),
setting: {
get() {
return this.$store.state.settings.showSettings;
return this.$store.state.settings.showSettings
},
set(val) {
this.$store.dispatch("settings/changeSetting", {
key: "showSettings",
this.$store.dispatch('settings/changeSetting', {
key: 'showSettings',
value: val,
});
})
},
},
},
methods: {
toggleSideBar() {
this.$store.dispatch("app/toggleSideBar");
this.$store.dispatch('app/toggleSideBar')
},
async logout() {
this.$confirm("确定注销并退出系统吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
this.$confirm('确定注销并退出系统吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
this.$store.dispatch("LogOut").then(() => {
location.href = "/";
});
});
this.$store.dispatch('LogOut').then(() => {
location.href = '/'
})
})
},
goto(type) {
window.open(
type
? "https://gitee.com/LinkWeChat/link-wechat"
: "https://gitee.com/LinkWeChat/link-wechat"
);
? 'https://gitee.com/LinkWeChat/link-wechat'
: 'https://gitee.com/LinkWeChat/link-wechat'
)
},
},
};
}
</script>
<style lang="scss" scoped>
......
......@@ -224,6 +224,7 @@ export default {
<SelectMaterialMult
:selected.sync="selectedMaterial"
:type="metarialParams.mediaType"
:key="metarialParams.mediaType"
></SelectMaterialMult>
<div slot="footer">
<el-button @click="dialogVisible = false">取 消</el-button>
......
<script>
import * as api from "@/api/customer";
import * as api from '@/api/customer'
// import clipboard from "clipboard";
export default {
......@@ -10,7 +10,7 @@ export default {
query: {
pageNum: 1,
pageSize: 10,
name: ""
name: '',
},
dateRange: [], // 添加日期
total: 0,
......@@ -20,18 +20,18 @@ export default {
disabled: false,
loading: false,
rules: Object.freeze({
name: [{ required: true, message: "必填项", trigger: "blur" }],
corpId: [{ required: true, message: "必填项", trigger: "blur" }],
corpSecret: [{ required: true, message: "必填项", trigger: "blur" }],
contactSecret: [{ required: true, message: "必填项", trigger: "blur" }]
name: [{ required: true, message: '必填项', trigger: 'blur' }],
corpId: [{ required: true, message: '必填项', trigger: 'blur' }],
corpSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
contactSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
}),
status: ["正常", "停用"]
};
status: ['正常', '停用'],
}
},
watch: {},
computed: {},
created() {
this.getList();
this.getList()
},
mounted() {
// new clipboard(".copy-btn");
......@@ -39,53 +39,53 @@ export default {
methods: {
getList(page) {
if (this.dateRange[0]) {
this.query.beginTime = this.dateRange[0];
this.query.endTime = this.dateRange[1];
this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1]
} else {
this.query.beginTime = "";
this.query.endTime = "";
this.query.beginTime = ''
this.query.endTime = ''
}
page && (this.query.pageNum = page);
this.loading = true;
page && (this.query.pageNum = page)
this.loading = true
api
.getList(this.query)
.then(({ rows, total }) => {
this.list = rows;
this.total = +total;
this.loading = false;
this.list = rows
this.total = +total
this.loading = false
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
edit(data, type) {
this.form = Object.assign({}, data || {});
this.dialogVisible = true;
type || !data ? (this.disabled = false) : (this.disabled = true);
this.form = Object.assign({}, data || {})
this.dialogVisible = true
type || !data ? (this.disabled = false) : (this.disabled = true)
},
submit() {
this.$refs["form"].validate(valid => {
this.$refs['form'].validate((valid) => {
if (valid) {
api[this.form.id ? "update" : "add"](this.form)
api[this.form.id ? 'update' : 'add'](this.form)
.then(() => {
this.msgSuccess("操作成功");
this.dialogVisible = false;
this.getList(!this.form.id && 1);
this.msgSuccess('操作成功')
this.dialogVisible = false
this.getList(!this.form.id && 1)
})
.catch(() => {
this.dialogVisible = false;
});
this.dialogVisible = false
})
}
});
})
},
goRoute(id, path) {
this.$router.push({
path: "/appTool/groupFissionAev",
query: { id }
});
}
}
};
path: '/appTool/groupFissionAev',
query: { id },
})
},
},
}
</script>
<template>
......@@ -222,7 +222,7 @@ export default {
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到塬微SCRM,无需手动更新同步。</div>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item label="外部联系人管理secret" prop="contactSecret">
<el-input v-model="form.contactSecret"></el-input>
......@@ -232,7 +232,7 @@ export default {
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到塬微SCRM,无需手动更新同步。</div>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item
label="企业微信扫码登陆回调地址"
......
<script>
import * as api from "@/api/customer";
import * as api from '@/api/customer'
// import clipboard from "clipboard";
export default {
......@@ -10,7 +10,7 @@ export default {
query: {
pageNum: 1,
pageSize: 10,
name: ""
name: '',
},
dateRange: [], // 添加日期
total: 0,
......@@ -20,18 +20,18 @@ export default {
disabled: false,
loading: false,
rules: Object.freeze({
name: [{ required: true, message: "必填项", trigger: "blur" }],
corpId: [{ required: true, message: "必填项", trigger: "blur" }],
corpSecret: [{ required: true, message: "必填项", trigger: "blur" }],
contactSecret: [{ required: true, message: "必填项", trigger: "blur" }]
name: [{ required: true, message: '必填项', trigger: 'blur' }],
corpId: [{ required: true, message: '必填项', trigger: 'blur' }],
corpSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
contactSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
}),
status: ["正常", "停用"]
};
status: ['正常', '停用'],
}
},
watch: {},
computed: {},
created() {
this.getList();
this.getList()
},
mounted() {
// new clipboard(".copy-btn");
......@@ -39,53 +39,53 @@ export default {
methods: {
getList(page) {
if (this.dateRange[0]) {
this.query.beginTime = this.dateRange[0];
this.query.endTime = this.dateRange[1];
this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1]
} else {
this.query.beginTime = "";
this.query.endTime = "";
this.query.beginTime = ''
this.query.endTime = ''
}
page && (this.query.pageNum = page);
this.loading = true;
page && (this.query.pageNum = page)
this.loading = true
api
.getList(this.query)
.then(({ rows, total }) => {
this.list = rows;
this.total = +total;
this.loading = false;
this.list = rows
this.total = +total
this.loading = false
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
edit(data, type) {
this.form = Object.assign({}, data || {});
this.dialogVisible = true;
type || !data ? (this.disabled = false) : (this.disabled = true);
this.form = Object.assign({}, data || {})
this.dialogVisible = true
type || !data ? (this.disabled = false) : (this.disabled = true)
},
submit() {
this.$refs["form"].validate(valid => {
this.$refs['form'].validate((valid) => {
if (valid) {
api[this.form.id ? "update" : "add"](this.form)
api[this.form.id ? 'update' : 'add'](this.form)
.then(() => {
this.msgSuccess("操作成功");
this.dialogVisible = false;
this.getList(!this.form.id && 1);
this.msgSuccess('操作成功')
this.dialogVisible = false
this.getList(!this.form.id && 1)
})
.catch(() => {
this.dialogVisible = false;
});
this.dialogVisible = false
})
}
});
})
},
goRoute(id, path) {
this.$router.push({
path: "/appTool/taskAev",
query: { id }
});
}
}
};
path: '/appTool/taskAev',
query: { id },
})
},
},
}
</script>
<template>
......@@ -222,7 +222,7 @@ export default {
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到塬微SCRM,无需手动更新同步。</div>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item label="外部联系人管理secret" prop="contactSecret">
<el-input v-model="form.contactSecret"></el-input>
......@@ -232,7 +232,7 @@ export default {
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到塬微SCRM,无需手动更新同步。</div>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item
label="企业微信扫码登陆回调地址"
......
<script>
import * as api from "@/api/customer";
import * as api from '@/api/customer'
export default {
components: {},
......@@ -9,7 +9,7 @@ export default {
query: {
pageNum: 1,
pageSize: 10,
name: ""
name: '',
},
dateRange: [], // 添加日期
total: 0,
......@@ -19,22 +19,22 @@ export default {
disabled: false,
loading: false,
rules: Object.freeze({
name: [{ required: true, message: "必填项", trigger: "blur" }],
corpId: [{ required: true, message: "必填项", trigger: "blur" }],
corpSecret: [{ required: true, message: "必填项", trigger: "blur" }],
contactSecret: [{ required: true, message: "必填项", trigger: "blur" }]
name: [{ required: true, message: '必填项', trigger: 'blur' }],
corpId: [{ required: true, message: '必填项', trigger: 'blur' }],
corpSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
contactSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
}),
status: ["正常", "停用"],
status: ['正常', '停用'],
pushType: {
0: "发给客户",
1: "发给客户群"
}
};
0: '发给客户',
1: '发给客户群',
},
}
},
watch: {},
computed: {},
created() {
this.getList();
this.getList()
},
mounted() {
// new clipboard(".copy-btn");
......@@ -42,53 +42,53 @@ export default {
methods: {
getList(page) {
if (this.dateRange[0]) {
this.query.beginTime = this.dateRange[0];
this.query.endTime = this.dateRange[1];
this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1]
} else {
this.query.beginTime = "";
this.query.endTime = "";
this.query.beginTime = ''
this.query.endTime = ''
}
page && (this.query.pageNum = page);
this.loading = true;
page && (this.query.pageNum = page)
this.loading = true
api
.getList(this.query)
.then(({ rows, total }) => {
this.list = rows;
this.total = +total;
this.loading = false;
this.list = rows
this.total = +total
this.loading = false
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
edit(data, type) {
this.form = Object.assign({}, data || {});
this.dialogVisible = true;
type || !data ? (this.disabled = false) : (this.disabled = true);
this.form = Object.assign({}, data || {})
this.dialogVisible = true
type || !data ? (this.disabled = false) : (this.disabled = true)
},
submit() {
this.$refs["form"].validate(valid => {
this.$refs['form'].validate((valid) => {
if (valid) {
api[this.form.id ? "update" : "add"](this.form)
api[this.form.id ? 'update' : 'add'](this.form)
.then(() => {
this.msgSuccess("操作成功");
this.dialogVisible = false;
this.getList(!this.form.id && 1);
this.msgSuccess('操作成功')
this.dialogVisible = false
this.getList(!this.form.id && 1)
})
.catch(() => {
this.dialogVisible = false;
});
this.dialogVisible = false
})
}
});
})
},
goRoute(id, path) {
this.$router.push({
path: "/communityOperating/groupSOPAev",
query: { id }
});
}
}
};
path: '/communityOperating/groupSOPAev',
query: { id },
})
},
},
}
</script>
<template>
......@@ -207,7 +207,7 @@ export default {
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到塬微SCRM,无需手动更新同步。</div>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item label="外部联系人管理secret" prop="contactSecret">
<el-input v-model="form.contactSecret"></el-input>
......@@ -217,7 +217,7 @@ export default {
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到塬微SCRM,无需手动更新同步。</div>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item
label="企业微信扫码登陆回调地址"
......
<script>
import * as api from "@/api/customer";
import * as api from '@/api/customer'
export default {
components: {},
......@@ -9,7 +9,7 @@ export default {
query: {
pageNum: 1,
pageSize: 10,
name: ""
name: '',
},
dateRange: [], // 添加日期
total: 0,
......@@ -19,22 +19,22 @@ export default {
disabled: false,
loading: false,
rules: Object.freeze({
name: [{ required: true, message: "必填项", trigger: "blur" }],
corpId: [{ required: true, message: "必填项", trigger: "blur" }],
corpSecret: [{ required: true, message: "必填项", trigger: "blur" }],
contactSecret: [{ required: true, message: "必填项", trigger: "blur" }]
name: [{ required: true, message: '必填项', trigger: 'blur' }],
corpId: [{ required: true, message: '必填项', trigger: 'blur' }],
corpSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
contactSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
}),
status: ["正常", "停用"],
status: ['正常', '停用'],
pushType: {
0: "发给客户",
1: "发给客户群"
}
};
0: '发给客户',
1: '发给客户群',
},
}
},
watch: {},
computed: {},
created() {
this.getList();
this.getList()
},
mounted() {
// new clipboard(".copy-btn");
......@@ -42,53 +42,53 @@ export default {
methods: {
getList(page) {
if (this.dateRange[0]) {
this.query.beginTime = this.dateRange[0];
this.query.endTime = this.dateRange[1];
this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1]
} else {
this.query.beginTime = "";
this.query.endTime = "";
this.query.beginTime = ''
this.query.endTime = ''
}
page && (this.query.pageNum = page);
this.loading = true;
page && (this.query.pageNum = page)
this.loading = true
api
.getList(this.query)
.then(({ rows, total }) => {
this.list = rows;
this.total = +total;
this.loading = false;
this.list = rows
this.total = +total
this.loading = false
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
edit(data, type) {
this.form = Object.assign({}, data || {});
this.dialogVisible = true;
type || !data ? (this.disabled = false) : (this.disabled = true);
this.form = Object.assign({}, data || {})
this.dialogVisible = true
type || !data ? (this.disabled = false) : (this.disabled = true)
},
submit() {
this.$refs["form"].validate(valid => {
this.$refs['form'].validate((valid) => {
if (valid) {
api[this.form.id ? "update" : "add"](this.form)
api[this.form.id ? 'update' : 'add'](this.form)
.then(() => {
this.msgSuccess("操作成功");
this.dialogVisible = false;
this.getList(!this.form.id && 1);
this.msgSuccess('操作成功')
this.dialogVisible = false
this.getList(!this.form.id && 1)
})
.catch(() => {
this.dialogVisible = false;
});
this.dialogVisible = false
})
}
});
})
},
goRoute(id, path) {
this.$router.push({
path: "/communityOperating/keywordsAev",
query: { id }
});
}
}
};
path: '/communityOperating/keywordsAev',
query: { id },
})
},
},
}
</script>
<template>
......@@ -219,7 +219,7 @@ export default {
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到塬微SCRM,无需手动更新同步。</div>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item label="外部联系人管理secret" prop="contactSecret">
<el-input v-model="form.contactSecret"></el-input>
......@@ -229,7 +229,7 @@ export default {
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到塬微SCRM,无需手动更新同步。</div>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item
label="企业微信扫码登陆回调地址"
......
<script>
import * as api from "@/api/customer";
import * as api from '@/api/customer'
export default {
components: {},
......@@ -9,7 +9,7 @@ export default {
query: {
pageNum: 1,
pageSize: 10,
name: ""
name: '',
},
dateRange: [], // 添加日期
total: 0,
......@@ -19,22 +19,22 @@ export default {
disabled: false,
loading: false,
rules: Object.freeze({
name: [{ required: true, message: "必填项", trigger: "blur" }],
corpId: [{ required: true, message: "必填项", trigger: "blur" }],
corpSecret: [{ required: true, message: "必填项", trigger: "blur" }],
contactSecret: [{ required: true, message: "必填项", trigger: "blur" }]
name: [{ required: true, message: '必填项', trigger: 'blur' }],
corpId: [{ required: true, message: '必填项', trigger: 'blur' }],
corpSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
contactSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
}),
status: ["正常", "停用"],
status: ['正常', '停用'],
pushType: {
0: "发给客户",
1: "发给客户群"
}
};
0: '发给客户',
1: '发给客户群',
},
}
},
watch: {},
computed: {},
created() {
this.getList();
this.getList()
},
mounted() {
// new clipboard(".copy-btn");
......@@ -42,53 +42,53 @@ export default {
methods: {
getList(page) {
if (this.dateRange[0]) {
this.query.beginTime = this.dateRange[0];
this.query.endTime = this.dateRange[1];
this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1]
} else {
this.query.beginTime = "";
this.query.endTime = "";
this.query.beginTime = ''
this.query.endTime = ''
}
page && (this.query.pageNum = page);
this.loading = true;
page && (this.query.pageNum = page)
this.loading = true
api
.getList(this.query)
.then(({ rows, total }) => {
this.list = rows;
this.total = +total;
this.loading = false;
this.list = rows
this.total = +total
this.loading = false
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
edit(data, type) {
this.form = Object.assign({}, data || {});
this.dialogVisible = true;
type || !data ? (this.disabled = false) : (this.disabled = true);
this.form = Object.assign({}, data || {})
this.dialogVisible = true
type || !data ? (this.disabled = false) : (this.disabled = true)
},
submit() {
this.$refs["form"].validate(valid => {
this.$refs['form'].validate((valid) => {
if (valid) {
api[this.form.id ? "update" : "add"](this.form)
api[this.form.id ? 'update' : 'add'](this.form)
.then(() => {
this.msgSuccess("操作成功");
this.dialogVisible = false;
this.getList(!this.form.id && 1);
this.msgSuccess('操作成功')
this.dialogVisible = false
this.getList(!this.form.id && 1)
})
.catch(() => {
this.dialogVisible = false;
});
this.dialogVisible = false
})
}
});
})
},
goRoute(id, path) {
this.$router.push({
path: "/communityOperating/newCustomerAev",
query: { id }
});
}
}
};
path: '/communityOperating/newCustomerAev',
query: { id },
})
},
},
}
</script>
<template>
......@@ -231,7 +231,7 @@ export default {
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到塬微SCRM,无需手动更新同步。</div>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item label="外部联系人管理secret" prop="contactSecret">
<el-input v-model="form.contactSecret"></el-input>
......@@ -241,7 +241,7 @@ export default {
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到塬微SCRM,无需手动更新同步。</div>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item
label="企业微信扫码登陆回调地址"
......
<script>
import * as api from "@/api/customer";
import * as api from '@/api/customer'
// import clipboard from "clipboard";
export default {
......@@ -10,7 +10,7 @@ export default {
query: {
pageNum: 1,
pageSize: 10,
name: ""
name: '',
},
dateRange: [], // 添加日期
total: 0,
......@@ -20,18 +20,18 @@ export default {
disabled: false,
loading: false,
rules: Object.freeze({
name: [{ required: true, message: "必填项", trigger: "blur" }],
corpId: [{ required: true, message: "必填项", trigger: "blur" }],
corpSecret: [{ required: true, message: "必填项", trigger: "blur" }],
contactSecret: [{ required: true, message: "必填项", trigger: "blur" }]
name: [{ required: true, message: '必填项', trigger: 'blur' }],
corpId: [{ required: true, message: '必填项', trigger: 'blur' }],
corpSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
contactSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
}),
status: ["正常", "停用"]
};
status: ['正常', '停用'],
}
},
watch: {},
computed: {},
created() {
this.getList();
this.getList()
},
mounted() {
// new clipboard(".copy-btn");
......@@ -39,53 +39,53 @@ export default {
methods: {
getList(page) {
if (this.dateRange[0]) {
this.query.beginTime = this.dateRange[0];
this.query.endTime = this.dateRange[1];
this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1]
} else {
this.query.beginTime = "";
this.query.endTime = "";
this.query.beginTime = ''
this.query.endTime = ''
}
page && (this.query.pageNum = page);
this.loading = true;
page && (this.query.pageNum = page)
this.loading = true
api
.getList(this.query)
.then(({ rows, total }) => {
this.list = rows;
this.total = +total;
this.loading = false;
this.list = rows
this.total = +total
this.loading = false
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
edit(data, type) {
this.form = Object.assign({}, data || {});
this.dialogVisible = true;
type || !data ? (this.disabled = false) : (this.disabled = true);
this.form = Object.assign({}, data || {})
this.dialogVisible = true
type || !data ? (this.disabled = false) : (this.disabled = true)
},
submit() {
this.$refs["form"].validate(valid => {
this.$refs['form'].validate((valid) => {
if (valid) {
api[this.form.id ? "update" : "add"](this.form)
api[this.form.id ? 'update' : 'add'](this.form)
.then(() => {
this.msgSuccess("操作成功");
this.dialogVisible = false;
this.getList(!this.form.id && 1);
this.msgSuccess('操作成功')
this.dialogVisible = false
this.getList(!this.form.id && 1)
})
.catch(() => {
this.dialogVisible = false;
});
this.dialogVisible = false
})
}
});
})
},
goRoute(id, path) {
this.$router.push({
path: "/communityOperating/oldCustomerAev",
query: { id }
});
}
}
};
path: '/communityOperating/oldCustomerAev',
query: { id },
})
},
},
}
</script>
<template>
......@@ -222,7 +222,7 @@ export default {
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到塬微SCRM,无需手动更新同步。</div>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item label="外部联系人管理secret" prop="contactSecret">
<el-input v-model="form.contactSecret"></el-input>
......@@ -232,7 +232,7 @@ export default {
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到塬微SCRM,无需手动更新同步。</div>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item
label="企业微信扫码登陆回调地址"
......
<script>
import * as api from "@/api/enterpriseId";
import * as api from '@/api/enterpriseId'
// import clipboard from "clipboard";
export default {
......@@ -10,7 +10,7 @@ export default {
query: {
pageNum: 1,
pageSize: 10,
companyName: ""
companyName: '',
},
total: 0,
form: {},
......@@ -19,65 +19,65 @@ export default {
disabled: false,
loading: false,
rules: Object.freeze({
companyName: [{ required: true, message: "必填项", trigger: "blur" }],
corpId: [{ required: true, message: "必填项", trigger: "blur" }],
corpSecret: [{ required: true, message: "必填项", trigger: "blur" }],
contactSecret: [{ required: true, message: "必填项", trigger: "blur" }]
companyName: [{ required: true, message: '必填项', trigger: 'blur' }],
corpId: [{ required: true, message: '必填项', trigger: 'blur' }],
corpSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
contactSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
}),
status: ["正常", "停用"]
};
status: ['正常', '停用'],
}
},
watch: {},
computed: {},
created() {
this.getList();
this.getList()
},
mounted() {
// new clipboard(".copy-btn");
},
methods: {
getList(page) {
page && (this.query.pageNum = page);
this.loading = true;
page && (this.query.pageNum = page)
this.loading = true
api
.getList(this.query)
.then(({ rows, total }) => {
this.list = rows;
this.total = +total;
this.loading = false;
this.list = rows
this.total = +total
this.loading = false
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
edit(data, type) {
this.form = Object.assign({}, data || {});
this.dialogVisible = true;
type || !data ? (this.disabled = false) : (this.disabled = true);
this.form = Object.assign({}, data || {})
this.dialogVisible = true
type || !data ? (this.disabled = false) : (this.disabled = true)
},
submit() {
this.$refs["form"].validate(valid => {
this.$refs['form'].validate((valid) => {
if (valid) {
api[this.form.id ? "update" : "add"](this.form)
api[this.form.id ? 'update' : 'add'](this.form)
.then(() => {
this.msgSuccess("操作成功");
this.dialogVisible = false;
this.getList(!this.form.id && 1);
this.msgSuccess('操作成功')
this.dialogVisible = false
this.getList(!this.form.id && 1)
})
.catch(() => {
this.dialogVisible = false;
});
this.dialogVisible = false
})
}
});
})
},
start(corpId) {
api.start(corpId).then(({ rows, total }) => {
this.msgSuccess("操作成功");
this.getList();
});
}
}
};
this.msgSuccess('操作成功')
this.getList()
})
},
},
}
</script>
<template>
......@@ -227,7 +227,7 @@ export default {
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到塬微SCRM,无需手动更新同步。</div>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item label="外部联系人管理secret" prop="contactSecret">
<el-input v-model="form.contactSecret"></el-input>
......@@ -237,7 +237,7 @@ export default {
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到塬微SCRM,无需手动更新同步。</div>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item
label="企业微信扫码登陆回调地址"
......
......@@ -106,13 +106,15 @@ export default {
let { msgid, messageId } = data
syncMsg({ msgid, messageId })
.then(({ data }) => {
this.msgSuccess('同步成功')
this.getList()
// this.list = rows
// this.total = +total
// this.loading = false
// this.ids = []
})
.catch(() => {
this.loading = false
// this.loading = false
})
},
},
......
......@@ -6,7 +6,7 @@
:rules="loginRules"
class="login-form"
>
<h3 class="title">塬微后台管理系统</h3>
<h3 class="title">仟微后台管理系统</h3>
<el-form-item prop="username">
<el-input
v-model="loginForm.username"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!