Browse Source

门类管理 著录界面拖动排序对话框缓存修改

master
z_yu 3 years ago
parent
commit
7aac094925
  1. 9
      src/views/category/baseInfo/index.vue
  2. 7
      src/views/category/descriptionPreview/index.vue
  3. 1
      src/views/category/fileNoFormat/index.vue
  4. 7
      src/views/components/category/PreviewForm.vue

9
src/views/category/baseInfo/index.vue

@ -51,15 +51,6 @@ export default {
fileNoFormatStr: ''
}
},
// computed: {
// fileNoFormatStr: function() {
// console.log(this.fileNoFormat)
// return this.fileNoFormat.reduce(
// (previousValue, currentValue) => {
// previousValue.fieldCnName + previousValue.connector + currentValue.fieldCnName + currentValue.connector}, { fieldCnName: '', connector: '' }
// )
// }
// },
watch: {
selectedCategory: function(newValue, oldValue) {
if (newValue && newValue.id) {

7
src/views/category/descriptionPreview/index.vue

@ -50,13 +50,13 @@
</el-dialog>
<!-- 界面字段预览排序 -->
<el-dialog class="preview-dialog" :visible="previewFormVisible" :before-close="handleClose" :close-on-click-modal="false" title="修改排序">
<el-dialog class="preview-dialog" :visible="previewFormVisible" :before-close="handleClose" :close-on-click-modal="false" :destroy-on-close="true" title="修改排序">
<span class="dialog-right-top" />
<span class="dialog-left-bottom" />
<div class="setting-dialog">
<i class="drag-tip">提示请通过拖动鼠标来调整当前顺序</i>
<!-- <PreviewForm :is-disabled="true" :all-fields-data="allFieldsData" /> -->
<PreviewForm ref="previewForm" :is-has-code="true" :is-disabled="false" :is-draggable="true" :form-preview-data.sync="isInputFields" :selected-category="selectedCategory" />
<!-- <PreviewForm :is-disabled="true" :all-fields-data="allFieldsData" .sync/> -->
<PreviewForm ref="previewForm" :is-has-code="true" :is-disabled="false" :is-draggable="true" :form-preview-data="JSON.parse(JSON.stringify(isInputFields))" :selected-category="selectedCategory" />
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click.native="handleSort">保存</el-button>
</div>
@ -101,7 +101,6 @@ export default {
},
mounted() {
this.getArchivesType()
this.$refs.previewForm.rendered = true
},
methods: {
getArchivesType() {

1
src/views/category/fileNoFormat/index.vue

@ -125,7 +125,6 @@ export default {
this.$refs[tableName].toggleRowSelection(row)
},
selectionChangeHandler(val, tableName) {
console.log(123)
this.table[tableName].selections = val
},
toAdd() {

7
src/views/components/category/PreviewForm.vue

@ -246,12 +246,6 @@ export default {
})
},
//
// datadragEnd(evt) {
// evt.preventDefault()
// console.log(' :' + evt.oldIndex)
// console.log(' :' + evt.newIndex)
// console.log(this.formPreviewData)
// },
datadragEnd(event) {
//
const oldIndex = event.oldIndex //
@ -269,7 +263,6 @@ export default {
}
this.formPreviewData[newIndex] = index
}
console.log(this.formPreviewData)
},
submitForm(formName, categoryId) {
//

Loading…
Cancel
Save