Conformance: feature task clear but after apply need to trued.
This commit is contained in:
@@ -44,10 +44,9 @@
|
||||
import sortNumEngZhtw from '@/module/sortNumEngZhtw.js';
|
||||
|
||||
export default {
|
||||
props: ['data', 'listSeq'],
|
||||
props: ['data', 'listSeq', 'isSubmit'],
|
||||
data() {
|
||||
return {
|
||||
actList: null,
|
||||
listSequence: [],
|
||||
lastItemIndex: null,
|
||||
}
|
||||
@@ -56,8 +55,12 @@ export default {
|
||||
datadata: function() {
|
||||
// TODO Activity List 的 dblclick, drag & drop 要改假刪除
|
||||
// Activity List 要排序
|
||||
if(this.data !== null) sortNumEngZhtw(this.data);
|
||||
return this.data;
|
||||
let newData;
|
||||
if(this.data !== null) {
|
||||
newData = JSON.parse(JSON.stringify(this.data));
|
||||
sortNumEngZhtw(newData);
|
||||
}
|
||||
return newData;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
@@ -83,7 +86,7 @@ export default {
|
||||
* get listSequence
|
||||
*/
|
||||
getComponentData(){
|
||||
this.$emitter.emit('getListSequence', this.listSequence);
|
||||
this.$emitter.emit('getListSequence',this.listSequence);
|
||||
},
|
||||
/**
|
||||
* Element dragging started
|
||||
@@ -118,6 +121,10 @@ export default {
|
||||
this.listSequence = [];
|
||||
});
|
||||
},
|
||||
mounted() {
|
||||
let newlist = JSON.parse(JSON.stringify(this.listSeq));
|
||||
this.isSubmit ? this.listSequence = newlist : this.listSequence = [];
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user