浏览代码

fix: 大屏、资源库分组编辑查重优化

大屏、资源库分组编辑查重优化
hong.yang 1 年之前
父节点
当前提交
83ecab2d48

+ 1 - 0
data-room-ui/packages/BigScreenList/CatalogEditForm.vue

@@ -155,6 +155,7 @@ export default {
   data () {
     const validateName = (rule, value, callback) => {
       this.$dataRoomAxios.post('/bigScreen/type/nameRepeat', {
+        id: this.currentCatalog.id,
         name: value,
         type: this.catalogType
       }, true).then((r) => {

+ 1 - 0
data-room-ui/packages/BigScreenMag/SideMenu.vue

@@ -126,6 +126,7 @@ export default {
   data () {
     const validateName = (rule, value, callback) => {
       this.$dataRoomAxios.post('/bigScreen/type/nameRepeat', {
+        id: this.currentCatalog.id,
         name: value,
         type: this.type || 'bigScreenCatalog'
       }, true).then((r) => {

+ 1 - 1
data-room-ui/packages/SourceMag/SideMenu.vue

@@ -127,6 +127,7 @@ export default {
   data () {
     const validateName = (rule, value, callback) => {
       this.$dataRoomAxios.post('/bigScreen/type/nameRepeat', {
+        id: this.currentCatalog.id,
         name: value,
         type: 'resourceCatalog'
       }, true).then((r) => {
@@ -175,7 +176,6 @@ export default {
         name: '',
         id: '',
         code: '',
-        orderNum: 0
       },
       formRules: {
         name: [