mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 17:43:44 +09:00
저장팝업 수정
This commit is contained in:
@@ -59,6 +59,8 @@
|
|||||||
:addCls="grid.addCls"
|
:addCls="grid.addCls"
|
||||||
></custom-grid>
|
></custom-grid>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- <common-modal ref="commonModal" /> -->
|
||||||
|
<common-modal ref="commonModal"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -69,6 +71,8 @@ import moment from 'moment';
|
|||||||
import VueTimepicker from 'vue2-timepicker';
|
import VueTimepicker from 'vue2-timepicker';
|
||||||
import 'vue2-timepicker/dist/VueTimepicker.css'
|
import 'vue2-timepicker/dist/VueTimepicker.css'
|
||||||
import sysMgtApi from '../service/sysMgtApi'
|
import sysMgtApi from '../service/sysMgtApi'
|
||||||
|
// import CommonModal from '../components/modal/commonModal';
|
||||||
|
import CommonModal from '../components/commonModal.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'workState',
|
name: 'workState',
|
||||||
@@ -114,6 +118,7 @@ export default {
|
|||||||
customGrid: customGrid,
|
customGrid: customGrid,
|
||||||
vuejsDatepicker,
|
vuejsDatepicker,
|
||||||
VueTimepicker,
|
VueTimepicker,
|
||||||
|
CommonModal,
|
||||||
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -143,6 +148,11 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
fnSaveTxt(){
|
fnSaveTxt(){
|
||||||
|
if (this.state == 'NOTUSE') {
|
||||||
|
this.row.title = '서비스 점검 설정';
|
||||||
|
this.row.msg1 = '저장 하시겠습니까?';
|
||||||
|
this.$refs.commonModal.confirmModalOpen(this.row);
|
||||||
|
}
|
||||||
let params = {
|
let params = {
|
||||||
startDate : moment(this.startDate).format('YYYY-MM-DD'),
|
startDate : moment(this.startDate).format('YYYY-MM-DD'),
|
||||||
startTimeT : '',
|
startTimeT : '',
|
||||||
@@ -151,25 +161,27 @@ export default {
|
|||||||
endTimeM : '',
|
endTimeM : '',
|
||||||
state : this.state,
|
state : this.state,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.startTime) {
|
if (this.startTime) {
|
||||||
params.startTimeT = moment(this.startTime, 'HH:mm').format('HH');
|
params.startTimeT = moment(this.startTime, 'HH:mm').format('HH');
|
||||||
params.startTimeM = moment(this.startTime, 'HH:mm').format('mm');
|
params.startTimeM = moment(this.startTime, 'HH:mm').format('mm');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.endTime) {
|
if (this.endTime) {
|
||||||
params.endTimeT = moment(this.endTime, 'HH:mm').format('HH');
|
params.endTimeT = moment(this.endTime, 'HH:mm').format('HH');
|
||||||
params.endTimeM = moment(this.endTime, 'HH:mm').format('mm');
|
params.endTimeM = moment(this.endTime, 'HH:mm').format('mm');
|
||||||
}
|
}
|
||||||
|
sysMgtApi.setWorkState(params).then((respose) => {
|
||||||
sysMgtApi.setWorkState(params).then(() => {
|
var result = respose.data;
|
||||||
|
if (result != null && result.retCode == "0000"){
|
||||||
// 저장이 완료된 후에 테이블 다시 로드
|
// 저장이 완료된 후에 테이블 다시 로드
|
||||||
this.$nextTick(() => {
|
this.toComplete();
|
||||||
this.$refs.table.reloadData();
|
}
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
toComplete(){
|
||||||
|
this.$refs.table.reloadData();
|
||||||
|
// this.confirmCalbackFnc();
|
||||||
|
},
|
||||||
search: function (isKeep) {
|
search: function (isKeep) {
|
||||||
this.$refs.table.search(this.grid.params, isKeep);
|
this.$refs.table.search(this.grid.params, isKeep);
|
||||||
const getP = this.$refs.table.getPagination();
|
const getP = this.$refs.table.getPagination();
|
||||||
@@ -215,7 +227,10 @@ export default {
|
|||||||
// 라우트 하기전 실행
|
// 라우트 하기전 실행
|
||||||
next();
|
next();
|
||||||
},
|
},
|
||||||
|
confirmCalbackFnc(props) {
|
||||||
|
// if (props.result) {
|
||||||
|
// }
|
||||||
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -28,6 +28,14 @@ app.props:
|
|||||||
header: Authorization
|
header: Authorization
|
||||||
prefix: "Bearer "
|
prefix: "Bearer "
|
||||||
|
|
||||||
|
# file
|
||||||
|
hubeasy_file_info:
|
||||||
|
send-message-location: /efs/home/sendMessage
|
||||||
|
rsv-message-location: /efs/home/rsvMessage
|
||||||
|
caller-id-location: /efs/home/callidDoc
|
||||||
|
consult-location: /efs/home/consult
|
||||||
|
work-location: /efs/admin/workState/workStatefile.txt
|
||||||
|
|
||||||
logging:
|
logging:
|
||||||
config: classpath:logback-spring.xml
|
config: classpath:logback-spring.xml
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user