|
@@ -31,7 +31,7 @@
|
|
placeholder="请选择分部"
|
|
placeholder="请选择分部"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
- v-for="(item, index) in organList"
|
|
|
|
|
|
+ v-for="(item, index) in selects.branchs"
|
|
:key="index"
|
|
:key="index"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
:value="item.id"
|
|
:value="item.id"
|
|
@@ -203,7 +203,7 @@
|
|
clearable
|
|
clearable
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
- v-for="(item, index) in organList"
|
|
|
|
|
|
+ v-for="(item, index) in selects.branchs"
|
|
:key="index"
|
|
:key="index"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
:value="item.id"
|
|
:value="item.id"
|
|
@@ -220,7 +220,7 @@
|
|
disabled
|
|
disabled
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
- v-for="(item, index) in courseStatusList"
|
|
|
|
|
|
+ v-for="(item, index) in selects.vipGroupCategory"
|
|
:key="index"
|
|
:key="index"
|
|
:value="item.id"
|
|
:value="item.id"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
@@ -452,7 +452,6 @@ import {
|
|
resetVipActive,
|
|
resetVipActive,
|
|
removeVipActive,
|
|
removeVipActive,
|
|
} from "@/api/vipSeting";
|
|
} from "@/api/vipSeting";
|
|
-import { getEmployeeOrgan } from "@/api/buildTeam";
|
|
|
|
export default {
|
|
export default {
|
|
name: "vipActiveList",
|
|
name: "vipActiveList",
|
|
components: { pagination },
|
|
components: { pagination },
|
|
@@ -468,7 +467,6 @@ export default {
|
|
page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
},
|
|
},
|
|
searchForm: { organId: null, enable: null, search: "" },
|
|
searchForm: { organId: null, enable: null, search: "" },
|
|
- organList: [],
|
|
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
resetForm: {
|
|
resetForm: {
|
|
name: "",
|
|
name: "",
|
|
@@ -528,13 +526,15 @@ export default {
|
|
isReset: false,
|
|
isReset: false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
- this.init();
|
|
|
|
|
|
+ // created() {
|
|
|
|
+ // this.init();
|
|
|
|
+ // },
|
|
|
|
+ // activated() {
|
|
|
|
+ // this.init();
|
|
|
|
+ // },
|
|
|
|
+ mounted() {
|
|
|
|
+ this.init()
|
|
},
|
|
},
|
|
- activated() {
|
|
|
|
- this.init();
|
|
|
|
- },
|
|
|
|
- mounted() {},
|
|
|
|
filters: {
|
|
filters: {
|
|
onlinePip(val) {
|
|
onlinePip(val) {
|
|
let obj = JSON.parse(val);
|
|
let obj = JSON.parse(val);
|
|
@@ -649,30 +649,13 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- init() {
|
|
|
|
- if (this.$route.query.searchForm) {
|
|
|
|
- this.$route.query.searchForm instanceof Object
|
|
|
|
- ? (this.searchForm = this.$route.query.searchForm)
|
|
|
|
- : (this.searchForm = JSON.parse(this.$route.query.searchForm));
|
|
|
|
- }
|
|
|
|
- if (this.$route.query.rules) {
|
|
|
|
- this.$route.query.rules instanceof Object
|
|
|
|
- ? (this.rules = this.$route.query.rules)
|
|
|
|
- : (this.rules = JSON.parse(this.$route.query.rules));
|
|
|
|
- }
|
|
|
|
- getEmployeeOrgan().then((res) => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- this.organList = res.data;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ async init() {
|
|
|
|
+ // 获取类型
|
|
|
|
+ await this.$store.dispatch('setVipGroupCategory')
|
|
|
|
+ // 获取分部
|
|
|
|
+ await this.$store.dispatch('setBranchs')
|
|
|
|
+
|
|
this.getList();
|
|
this.getList();
|
|
- // 首先获取课程形式
|
|
|
|
- // 获取分部id
|
|
|
|
- vipGroupCategory().then((res) => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- this.courseStatusList = res.data;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
},
|
|
},
|
|
loadNumber(event) {
|
|
loadNumber(event) {
|
|
var el = event.currentTarget;
|
|
var el = event.currentTarget;
|
|
@@ -805,7 +788,6 @@ export default {
|
|
let obj = JSON.parse(row.salarySettlementJson);
|
|
let obj = JSON.parse(row.salarySettlementJson);
|
|
// 同步线上课状态
|
|
// 同步线上课状态
|
|
obj.onlineSalarySettlement ? (this.online = true) : (this.online = false);
|
|
obj.onlineSalarySettlement ? (this.online = true) : (this.online = false);
|
|
- console.log(obj.onlineSalarySettlement);
|
|
|
|
if (obj.onlineSalarySettlement) {
|
|
if (obj.onlineSalarySettlement) {
|
|
this.onlineSalary = obj.salarySettlementType;
|
|
this.onlineSalary = obj.salarySettlementType;
|
|
if (obj.onlineSalarySettlement.settlementValue) {
|
|
if (obj.onlineSalarySettlement.settlementValue) {
|