Browse Source

feat: #摄影师审核重新对接2

loki 3 năm trước cách đây
mục cha
commit
ee0e2bbb9a

+ 3 - 2
src/containers/ToolbarContainer.vue

@@ -157,8 +157,9 @@ export default {
     async initForm() {
       const form = this.fields.reduce(async (init, current) => {
         init = await init;
-        init[current.name] = current.defaultValue || null;
-
+        init[current.name] =
+          current.defaultValue !== undefined ? current.defaultValue : null;
+        console.log(current.name, current.defaultValue);
         if (current.options && isPromise(current.options)) {
           current.options = await current.options;
         }

+ 2 - 1
src/views/photographerManagement/photographerVerify/toolbar.vue

@@ -27,7 +27,8 @@ export default {
           name: 'auditStatus',
           label: '状态',
           options: AUDITTYPE,
-          format: val => val
+          format: val => val,
+          defaultValue: 0
         }
       ]
     };