Ver código fonte

危险作业工程页面

zhaowenrui 1 ano atrás
pai
commit
d00d76c15f
1 arquivos alterados com 16 adições e 1 exclusões
  1. 16 1
      src/views/zdsz/engineeringDangerous/index.vue

+ 16 - 1
src/views/zdsz/engineeringDangerous/index.vue

@@ -377,7 +377,6 @@
             </el-form-item>
           </el-col>
         </el-row>
-
         <el-row>
           <el-col :span="24">
             <el-form-item label="备注" prop="remark" style="width: 42.7%;">
@@ -390,6 +389,18 @@
             </el-form-item>
           </el-col>
         </el-row>
+        <el-row :gutter="20">
+          <el-col :span="24">
+            <el-form-item label="附件" prop="" v-if="currentType=='put'">
+              <ObsFileUpload ref="obsFileUpload" :file-size="100" :file-type="['dwg','dwt','doc','docx','xls','xlsx','png', 'jpg', 'jpeg']" :limit="9999"  :value="form.pics"
+              ></ObsFileUpload>
+            </el-form-item>
+            <el-form-item label="附件" prop="" v-if="currentType==null">
+              <ObsFileUpload ref="obsFileUpload" :file-size="100" :file-type="['dwg','dwt','doc','docx','xls','xlsx','png', 'jpg', 'jpeg']" :limit="9999"  :value="form.files"
+              ></ObsFileUpload>
+            </el-form-item>
+          </el-col>
+        </el-row>
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: 20%;">
         <!-- <el-button :loading="buttonLoading" type="primary" @click="submitForm">确定</el-button> -->
@@ -460,6 +471,7 @@ export default {
       open: false,
       // 查询参数
       queryParams: {
+        files:[],
         pageNum: 1,
         pageSize: 10,
         basicInformation: undefined,
@@ -689,6 +701,7 @@ export default {
       },*/
     toNodeDetail() {
       if (this.currentType === 'put') {
+        this.form.files = this.$refs.obsFileUpload.fileList
         this.$refs.childNode.open(this.form, 37)
         this.currentType = null
         return
@@ -699,7 +712,9 @@ export default {
       // this.queryParams.zEngineeringNodeBo.type = this.enginClassification
       // this.queryParams.enginClassification = result
       // console.log(this.queryParams)
+      this.form.files = this.$refs.obsFileUpload.fileList
       this.$refs.childNode.open(this.form, 3)
+
       return
       this.$refs['form'].validate(e => {
         if (e) {