Sfoglia il codice sorgente

共享字段设置

maxiaoxiao 9 mesi fa
parent
commit
35ec7d7f77

+ 1 - 1
src/api/shared.js

@@ -64,7 +64,7 @@ export function shareZyml(data) {
 
 export function fileds(data) {
     return request({
-        url: '/apply/share/configuration/fileds',
+        url: '/apply/share/configuration/filed',
         method: 'put',
         data
     })

+ 2 - 2
src/views/ResourceShare/sharedLocation/components/fieldSetModal.vue

@@ -70,11 +70,11 @@ export default {
       this.getfieldList(rowdata.bsm);
     },
     async getfieldList(id) {
+      this.fieldList = [];
       let res = await Getfiledslist({ id });
       // this.fieldList = res.data;
-      this.fieldList = [];
       res.data.forEach((field) => {
-        this.fieldList.push({ ...field, checked: field == 0 });
+        this.fieldList.push({ ...field, checked: field.shareDisplay == 0 });
       });
     },
     changeShare(row, index) {