{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\task\\doneReadOnly.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\task\\doneReadOnly.vue","mtime":1667327529419},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import _typeof from \"D:/jenkins/workspace/xq-web-fvue/node_modules/@babel/runtime/helpers/esm/typeof.js\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport OnlineForm from \"@/components/flow/OnlineForm.vue\";\nimport req from \"@/request.js\";\nimport form from \"@/api/form.js\";\nimport utils from \"@/utils.js\";\nexport default {\n  name: \"doneReadOnly\",\n  props: [\"instId\"],\n  data: function data() {\n    return {\n      html: \"\",\n      permission: {},\n      isView: true,\n      isPrint: false,\n      formData: {}\n    };\n  },\n  created: function created() {\n    this.init();\n  },\n  methods: {\n    //初始化\n    init: function init() {\n      var _this = this;\n\n      var that = this;\n      req.get(window.context.bpmRunTime + \"/runtime/instance/v1/getInstFormAndBO?proInstId=\" + this.instId).then(function (resp) {\n        //this.data = resp.data;\n        that.formData = resp.data.data;\n        that.permission = JSON.parse(resp.data.permission);\n\n        _this.handleReadonly(_this.permission);\n\n        that.html = resp.data.form.formHtml;\n      });\n    },\n    handleReadonly: function handleReadonly(permission) {\n      for (var key in permission) {\n        if (typeof permission[key] == \"string\" && (permission[key] == 'w' || permission[key] == 'b')) {\n          permission[key] = 'r';\n        } else if (_typeof(permission[key]) == \"object\") {\n          this.handleReadonly(permission[key]);\n        }\n      }\n    }\n  },\n  components: {\n    OnlineForm: OnlineForm\n  }\n};",null]}