improvements graphic load program production
This commit is contained in:
@@ -36,14 +36,17 @@
|
||||
<card-folder-path v-for="(val,key) in this.arrayViewList[0]"
|
||||
:key="key"
|
||||
:name="val.Name"
|
||||
:disabled="val.Name == nameNewPath"
|
||||
:disabled="val.Name == nameNewPath || (selectedFile ? val.Name == selectedFile.Name : '')"
|
||||
:withArrow="val.IsDirectory"
|
||||
:iconType="val.IsDirectory? 'FOLDER':'FILE'"
|
||||
@click="val.IsDirectory && val.Name != nameNewPath ? changePath(val.AbsolutePath): val.IsDirectory ? null : fileInfo(val.AbsolutePath)"></card-folder-path>
|
||||
</div>
|
||||
</div>
|
||||
<div class="third-column" v-if="enableThirdColumn">
|
||||
<div class="content scrollable">
|
||||
<div class="label-folder-empty" v-if="this.arrayViewList[1].length < 1">
|
||||
<label>Cartella vuota</label>
|
||||
</div>
|
||||
<div class="content scrollable" v-if="!this.arrayViewList[1].length < 1">
|
||||
<card-folder-path v-for="val in this.arrayViewList[1]"
|
||||
:key="val.Name"
|
||||
:name="val.Name"
|
||||
@@ -79,7 +82,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-load-program-footer">
|
||||
<button class="btn">Aggiungi in coda</button>
|
||||
<button class="btn btn-success">{{'modal_load_program_btn_load_program' | localize('Carica programma')}}</button>
|
||||
</div>
|
||||
</modal>
|
||||
</template>
|
||||
@@ -153,6 +156,7 @@ export default {
|
||||
},
|
||||
methods:{
|
||||
changePath(str, first = false, type){
|
||||
this.selectedFile = "";
|
||||
this.selectElementSecond();
|
||||
this.enableSelectedItem = false;
|
||||
this.parentPath = this.dirPath.split('\\').filter(i => i.length);
|
||||
@@ -246,7 +250,7 @@ export default {
|
||||
// console.log(this.childPath);
|
||||
},
|
||||
backPath(str){
|
||||
var n = 0;
|
||||
this.selectedFile = "";
|
||||
// this.breadcrumbs = [];
|
||||
this.childPath = str.split('\\').filter(i => i.length);
|
||||
this.parentPath = this.dirPath.split('\\').filter(i => i.length);
|
||||
|
||||
Reference in New Issue
Block a user