no message
This commit is contained in:
parent
634b63241b
commit
8c6e53a6e2
@ -24,6 +24,8 @@
|
||||
<Calendar
|
||||
ref="cal"
|
||||
:view="calendarView"
|
||||
:week="calendarWeek"
|
||||
:month="calendarMonth"
|
||||
:theme="calendarTheme"
|
||||
:template="calendarTemplate"
|
||||
:calendars="calendarList"
|
||||
@ -70,6 +72,8 @@ export default {
|
||||
rangeTime: [],
|
||||
|
||||
calendarView: 'month',
|
||||
calendarWeek: {},
|
||||
calendarMonth: {},
|
||||
calendarTheme: {},
|
||||
calendarTemplate: {},
|
||||
calendarList: [],
|
||||
@ -117,6 +121,17 @@ export default {
|
||||
|
||||
methods: {
|
||||
initLanguage() {
|
||||
let daynames = [
|
||||
this.$L('周日'),
|
||||
this.$L('周一'),
|
||||
this.$L('周二'),
|
||||
this.$L('周三'),
|
||||
this.$L('周四'),
|
||||
this.$L('周五'),
|
||||
this.$L('周六')
|
||||
];
|
||||
this.calendarWeek = {daynames};
|
||||
this.calendarMonth = {daynames};
|
||||
this.calendarTheme = {
|
||||
'common.border': '1px solid #f4f5f5',
|
||||
'month.dayname.fontSize': '14px',
|
||||
|
@ -44,6 +44,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapState} from "vuex";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -64,6 +66,24 @@ export default {
|
||||
this.systemSetting();
|
||||
},
|
||||
|
||||
|
||||
|
||||
computed: {
|
||||
...mapState(['taskPriority']),
|
||||
},
|
||||
|
||||
watch: {
|
||||
taskPriority: {
|
||||
handler(data) {
|
||||
this.formDatum = $A.cloneJSON(data);
|
||||
if (this.formDatum.length === 0) {
|
||||
this.addDatum();
|
||||
}
|
||||
},
|
||||
immediate: true,
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
submitForm() {
|
||||
this.$refs.formDatum.validate((valid) => {
|
||||
@ -74,7 +94,7 @@ export default {
|
||||
},
|
||||
|
||||
resetForm() {
|
||||
this.formDatum = $A.cloneJSON(this.formDatum_bak);
|
||||
this.formDatum = $A.cloneJSON(this.taskPriority);
|
||||
},
|
||||
|
||||
addDatum() {
|
||||
@ -102,11 +122,6 @@ export default {
|
||||
}
|
||||
this.loadIng--;
|
||||
this.$store.state.taskPriority = $A.cloneJSON(data);
|
||||
this.formDatum = data;
|
||||
if (this.formDatum.length === 0) {
|
||||
this.addDatum();
|
||||
}
|
||||
this.formDatum_bak = $A.cloneJSON(this.formDatum);
|
||||
}).catch(({msg}) => {
|
||||
if (save) {
|
||||
$A.modalError(msg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user