mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-04 04:59:48 +08:00
fix(测试跟踪): 缺陷管理弹窗记住上次同步时间
This commit is contained in:
parent
e106468b82
commit
601c5d051a
@ -25,6 +25,7 @@
|
||||
<el-date-picker
|
||||
v-model="form.createTime"
|
||||
type="datetime"
|
||||
@change="changeSyncTime"
|
||||
placeholder="选择日期时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
@ -65,6 +66,10 @@ export default {
|
||||
methods: {
|
||||
open() {
|
||||
this.visible = true;
|
||||
let syncTime = localStorage.getItem("ISSUE_SYNC_TIME");
|
||||
if (syncTime) {
|
||||
this.form.createTime = syncTime;
|
||||
}
|
||||
},
|
||||
save() {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
@ -78,7 +83,11 @@ export default {
|
||||
},
|
||||
cancel() {
|
||||
this.visible = false;
|
||||
this.$refs.form.resetFields();
|
||||
},
|
||||
changeSyncTime() {
|
||||
if (this.form.createTime) {
|
||||
localStorage.setItem("ISSUE_SYNC_TIME", this.form.createTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user