Prechádzať zdrojové kódy

fix:补充签字图文没有的校验和小喇叭点击进去添加数据失败的修改

liujiayin 2 rokov pred
rodič
commit
9ce49ae163

+ 1 - 0
src/layout/header-aside/components/header-message/index.vue

@@ -69,6 +69,7 @@
                          :subId="subId"
                          :visible="dialogFormVisible"
                          :type="type"
+                         :tableName="type"
                          :tableId="tableId"
                          :title="$t('layout.header-aside.header-message.details')"
                          inside

+ 7 - 1
src/views/platform/message/inner/detail/dialog.vue

@@ -62,7 +62,7 @@ export default {
       dialogVisible: this.visible,
       dialogLoading: false,
       toolbars: [{ key: 'cancel', label: '关闭' }],
-       type: ''
+      type: ''
     }
   },
   watch: {
@@ -130,6 +130,10 @@ export default {
         let sql = "select qian_zi_tu_wen_ FROM t_ryjbqk WHERE parent_id_ = '" + perInfosId + "'"
         curdPost("sql", sql).then((ryjbqkRes) => {
           let ryjbqkDatas = ryjbqkRes.variables.data
+          if (ryjbqkDatas.length == 0) {
+            alert('该人并没有签字图文在系统,请先上传系统再进行确认!')
+            return
+          }
           let tempObj = {
             id_: generateUUID(),
             parent_id_: this.tableId,
@@ -149,6 +153,8 @@ export default {
             () => {
               this.type = ''
               this.getFormData()
+            }, () => {
+
             }
           )
         });