1 line
9.3 KiB
JSON
1 line
9.3 KiB
JSON
{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js!E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js!E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\hz-zhhq-web\\src\\views\\jurisdiction\\comesy\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\jurisdiction\\comesy\\index.vue","mtime":1737610069429},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\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//\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport Popup from \"@/views/estate/examine/dialog/popup.vue\";\nimport { delFoodOrders, comeSyList, saveReason, roleList, roleSelectList } from \"@/api/getdata\";\nexport default {\n components: {\n Popup: Popup\n },\n data: function data() {\n return {\n dialogTableVisible: false,\n title: \"添加\",\n ruleForm: {\n reason: \"\"\n },\n rules: {\n reason: [{\n required: true,\n message: \"请填写事由内容\",\n trigger: \"blur\"\n }]\n },\n validation: false,\n completeTitle: \"\",\n nav: \"\",\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n roleType: \"role\",\n roleId: \"\",\n row: {},\n typeTitle: \"\",\n manageFlag: false,\n addFlag: false,\n tableData: [],\n roleSelectProp: []\n };\n },\n mounted: function mounted() {\n this.createLoad();\n this.getlist();\n // this.getselect();\n },\n methods: {\n createLoad: function createLoad() {\n this.loading = true;\n this.loadingMsg = \"加载中...\";\n },\n clearLoad: function clearLoad() {\n this.loading = false;\n this.loadingMsg = \"\";\n },\n getselect: function getselect() {\n var _this = this;\n roleSelectList().then(function (res) {\n if (res.returnCode == \"1\") {\n _this.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this.roleSelectProp = res.returnData;\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n },\n //保存\n submitForm: function submitForm(formName) {\n var _this2 = this;\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n _this2.validation = true;\n if (_this2.title == \"添加\") {\n _this2.nav = \"确认添加来访事由?\";\n _this2.completeTitle = \"添加\";\n } else if (_this2.title == \"修改\") {\n _this2.nav = \"确认修改来访事由?\";\n _this2.completeTitle = \"修改\";\n }\n }\n });\n },\n closeDialog: function closeDialog() {\n this.ruleForm = {};\n this.$refs.ruleForm.resetFields();\n },\n cancal: function cancal(formName) {\n this.dialogTableVisible = false;\n // this.$nextTick(()=>{\n // this.$refs.formName.resetFields();\n // })\n // console.log(this.$refs[formName],666)\n // if (this.$refs.formName!==undefined) {\n // this.$refs.formName.resetFields();\n // }\n },\n closeEnd: function closeEnd(val) {\n var _this3 = this;\n this.validation = false;\n if (val == \"1\") {\n this.createLoad();\n var Content = {\n id: this.row.id\n };\n console.log(Content, 172);\n delFoodOrders(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this3.getlist();\n _this3.dialogTableVisible = false;\n } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(\"error\");\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n });\n } else if (val == \"2\") {\n var _Content = {\n id: this.row.id,\n reason: this.ruleForm.reason\n };\n // console.log(Content, 888);\n saveReason(_Content).then(function (res) {\n console.log(res, 169);\n if (res.returnCode == \"1\") {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this3.getlist();\n _this3.dialogTableVisible = false;\n } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n });\n console.log(222222);\n } else if (val == \"3\") {\n // console.log(333333);\n var _Content2 = {\n reason: this.ruleForm.reason\n };\n // console.log(Content,166)\n saveReason(_Content2).then(function (res) {\n console.log(res, 169);\n if (res.returnCode == \"1\") {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this3.getlist();\n _this3.dialogTableVisible = false;\n } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n });\n }\n\n // if (this.$refs.formName!==undefined) {\n // this.$refs.formName.resetFields();\n // }\n },\n /**删除 */del: function del(row) {\n this.row = row;\n this.validation = true;\n this.nav = \"确认删除来访事由?\";\n this.completeTitle = \"删除\";\n // if (id) {\n // this.createLoad();\n // this.getlist();\n // }\n // console.log(\"删除\");\n },\n closeaccount: function closeaccount(val) {\n this.addFlag = false;\n this.createLoad();\n this.getlist();\n },\n //管理\n manageChange: function manageChange(row) {\n this.row = row;\n this.title = \"修改\";\n this.ruleForm.reason = row.reason;\n this.ruleForm = {\n reason: row.reason\n };\n this.dialogTableVisible = true;\n // this.nav = \"确认添加来访事由?\";\n // this.completeTitle = \"添加\";\n // this.validation = true;\n\n // this.manageFlag = true;\n // this.roleId = row.role_id;\n // this.roleType = 'role';\n },\n //添加\n addChange: function addChange() {\n this.title = \"添加\";\n this.ruleForm = {\n reason: \"\"\n };\n this.dialogTableVisible = true;\n\n // this.typeTitle = \"添加\";\n // this.addFlag = true;\n // this.row = row;\n },\n changeInfo: function changeInfo(row) {\n this.typeTitle = \"修改\";\n this.addFlag = true;\n this.row = row;\n },\n formatDate: function formatDate(now) {\n var year = now.getFullYear();\n var month = now.getMonth() + 1;\n var date = now.getDate();\n var hour = now.getHours();\n var minute = now.getMinutes();\n var second = now.getSeconds();\n return year + \"-\" + month + \"-\" + date + \" \" + hour + \":\" + minute + \":\" + second;\n },\n getlist: function getlist() {\n var _this4 = this;\n comeSyList().then(function (res) {\n // console.log(res);\n if (res.returnCode == \"1\") {\n _this4.clearLoad();\n _this4.tableData = res.returnData;\n } else {\n _this4.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this4.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this4.clearLoad();\n }, 300);\n });\n }\n }\n};",null]} |