|
|
@@ -563,6 +563,7 @@ export default {
|
|
|
},
|
|
|
loadData () {
|
|
|
this.loading = true
|
|
|
+ const self = this
|
|
|
// 获取配置数据
|
|
|
queryScheduleConfig({
|
|
|
parameters: [],
|
|
|
@@ -574,7 +575,11 @@ export default {
|
|
|
}).then(async res => {
|
|
|
const { dataResult } = res.data || {}
|
|
|
this.configList = dataResult
|
|
|
- this.configOptions = this.transformConfigData(dataResult)
|
|
|
+ const { first, second } = this.$store.getters.level || {}
|
|
|
+ self.configOptions = self.transformConfigData(dataResult)
|
|
|
+ self.configOptions.forEach((el) => {
|
|
|
+ el.options = el.options.filter(obj => obj.diDian === (second || first))
|
|
|
+ })
|
|
|
// console.log(this.configOptions)
|
|
|
if (this.$utils.isEmpty(this.pageParams.id)) {
|
|
|
this.loading = false
|
|
|
@@ -1018,6 +1023,7 @@ export default {
|
|
|
handleSave (type) {
|
|
|
const { staffScheduleDetailPoList, overview } = this.dealData(this.scheduleData) || {}
|
|
|
const { dateRange, title, config, approver, scheduleType, status, scheduleShift, scheduleStaff, scheduleRule } = this.formData
|
|
|
+ const { first, second } = this.$store.getters.level || {}
|
|
|
const configData = {
|
|
|
id: config,
|
|
|
approver,
|
|
|
@@ -1028,6 +1034,7 @@ export default {
|
|
|
const submitData = {
|
|
|
id: this.pageParams.id,
|
|
|
pk: this.pageParams.id,
|
|
|
+ diDian: second || first,
|
|
|
title,
|
|
|
status: type ? '已发布' : '未发布',
|
|
|
startDate: dateRange[0],
|