963bfbfac284bc0396be208c1fa7b105.json 13 KB

1
  1. {"remainingRequest":"E:\\mec-cloud_IntelligentManufacturing_CRM\\mec-cloud_IntelligentManufacturing_CRM\\ruoyi-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\mec-cloud_IntelligentManufacturing_CRM\\mec-cloud_IntelligentManufacturing_CRM\\ruoyi-ui\\src\\views\\tool\\datasheet\\sqlServer.vue?vue&type=script&lang=js&","dependencies":[{"path":"E:\\mec-cloud_IntelligentManufacturing_CRM\\mec-cloud_IntelligentManufacturing_CRM\\ruoyi-ui\\src\\views\\tool\\datasheet\\sqlServer.vue","mtime":1686554739943},{"path":"E:\\mec-cloud_IntelligentManufacturing_CRM\\mec-cloud_IntelligentManufacturing_CRM\\ruoyi-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1688725391035},{"path":"E:\\mec-cloud_IntelligentManufacturing_CRM\\mec-cloud_IntelligentManufacturing_CRM\\ruoyi-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1688725407620},{"path":"E:\\mec-cloud_IntelligentManufacturing_CRM\\mec-cloud_IntelligentManufacturing_CRM\\ruoyi-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1688725391035},{"path":"E:\\mec-cloud_IntelligentManufacturing_CRM\\mec-cloud_IntelligentManufacturing_CRM\\ruoyi-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1688725415411}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KDQppbXBvcnQgeyBjcmVhdGVTcWxTZXJ2ZXJEYXRhQmFzZSB9IGZyb20gIkAvYXBpL2RhdGFzaGVldC9pbmRleCINCmV4cG9ydCBkZWZhdWx0IHsNCiAgICBuYW1lOiAiU3FsU2VydmVyIiwNCiAgICBkYXRhKCkgew0KICAgICAgICByZXR1cm4gew0KICAgICAgICAgICAgZm9ybTogew0KICAgICAgICAgICAgICAgIGRhdGFCYXNlTmFtZTogJycsDQogICAgICAgICAgICAgICAgdGFibGVOYW1lOiAnJywNCiAgICAgICAgICAgIH0sDQogICAgICAgICAgICBleHBlcmllbmNlRGF0YTogW3sNCiAgICAgICAgICAgICAgICBmaWVsZE5hbWU6ICcnLA0KICAgICAgICAgICAgICAgIGZpZWxkVHlwZTogJycsDQogICAgICAgICAgICAgICAgZmllbGRMZW5ndGg6IHVuZGVmaW5lZCwNCiAgICAgICAgICAgICAgICBpc051bGw6IGZhbHNlLA0KICAgICAgICAgICAgICAgIGlzUHJpbWFyeTogZmFsc2UsDQogICAgICAgICAgICAgICAgZmllbGREZXNjcmlwdGlvbjogJycsDQogICAgICAgICAgICAgICAgaXNBdXRvOmZhbHNlDQogICAgICAgICAgICB9LF0sDQogICAgICAgICAgICBkYXRhQmFzZToge30NCg0KICAgICAgICB9DQogICAgfSwNCiAgICBtZXRob2RzOiB7DQogICAgICAgIC8v5aKe5Yqg57uP6aqM6KGMDQogICAgICAgIGhhbmRsZUFkZEV4cGVyaWVuY2VsaW5lKCkgew0KICAgICAgICAgICAgaWYgKHRoaXMuZXhwZXJpZW5jZURhdGEgPT0gdW5kZWZpbmVkKSB7DQogICAgICAgICAgICAgICAgdGhpcy5leHBlcmllbmNlRGF0YSA9IG5ldyBBcnJheSgpOw0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgbGV0IG9iaiA9IHsNCiAgICAgICAgICAgICAgICBmaWVsZE5hbWU6ICcnLA0KICAgICAgICAgICAgICAgIGZpZWxkVHlwZTogJycsDQogICAgICAgICAgICAgICAgZmllbGRMZW5ndGg6IHVuZGVmaW5lZCwNCiAgICAgICAgICAgICAgICBpc051bGw6IGZhbHNlLA0KICAgICAgICAgICAgICAgIGlzUHJpbWFyeTogZmFsc2UsDQogICAgICAgICAgICAgICAgZmllbGREZXNjcmlwdGlvbjogJycsDQogICAgICAgICAgICAgICAgaXNBdXRvOmZhbHNlDQogICAgICAgICAgICB9Ow0KDQogICAgICAgICAgICB0aGlzLmV4cGVyaWVuY2VEYXRhLnB1c2gob2JqKTsNCiAgICAgICAgfSwNCiAgICAgICAgLy/kv53lrZjnu4/pqozooYwNCiAgICAgICAgaGFuZGxlc2F2ZUV4cGVyaWVuY2UoYSwgYikgew0KICAgICAgICAgICAgY29uc29sZS5sb2coYSArIGIpOw0KICAgICAgICAgICAgY29uc29sZS5sb2coYik7DQogICAgICAgIH0sDQogICAgICAgIC8v5Yig6Zmk57uP6aqM6KGMDQogICAgICAgIGhhbmRsZURlbGV0ZUV4cGVyaWVuY2UoaW5kZXgpIHsNCiAgICAgICAgICAgIGNvbnNvbGUubG9nKGluZGV4KTsNCiAgICAgICAgICAgIHRoaXMuZXhwZXJpZW5jZURhdGEuc3BsaWNlKGluZGV4LCAxKQ0KICAgICAgICB9LA0KICAgICAgICBhZGRTcWxTZXJ2ZXIoKSB7DQogICAgICAgICAgICBsZXQgcXVlcnkgPSB7DQogICAgICAgICAgICAgICAgZGF0YUJhc2VOYW1lOiB0aGlzLmZvcm0uZGF0YUJhc2VOYW1lLA0KICAgICAgICAgICAgICAgIHRhYmxlTmFtZTogdGhpcy5mb3JtLnRhYmxlTmFtZSwNCiAgICAgICAgICAgICAgICBmaWVsZDogdGhpcy5leHBlcmllbmNlRGF0YQ0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgY3JlYXRlU3FsU2VydmVyRGF0YUJhc2UocXVlcnkpLnRoZW4ocmVzID0+IHsNCiAgICAgICAgICAgICAgICB0aGlzLiRtb2RhbC5tc2dTdWNjZXNzKHJlcy5tc2cpOw0KICAgICAgICAgICAgICAgIGlmIChyZXMuY29kZSA9PT0gMjAwKSB7DQogICAgICAgICAgICAgICAgICAgIHRoaXMudmlzaWJsZSA9IGZhbHNlOw0KICAgICAgICAgICAgICAgICAgICB0aGlzLiRlbWl0KCJvayIpOw0KICAgICAgICAgICAgICAgICAgICBPYmplY3Qua2V5cyh0aGlzLmZvcm0pLmZvckVhY2goa2V5ID0+ICh0aGlzLmZvcm1ba2V5XSA9ICcnKSk7DQogICAgICAgICAgICAgICAgICAgIHRoaXMuZXhwZXJpZW5jZURhdGEgPSBbew0KICAgICAgICAgICAgICAgICAgICAgICAgZmllbGROYW1lOiAnJywNCiAgICAgICAgICAgICAgICAgICAgICAgIGZpZWxkVHlwZTogJycsDQogICAgICAgICAgICAgICAgICAgICAgICBmaWVsZExlbmd0aDogdW5kZWZpbmVkLA0KICAgICAgICAgICAgICAgICAgICAgICAgaXNOdWxsOiBmYWxzZSwNCiAgICAgICAgICAgICAgICAgICAgICAgIGlzUHJpbWFyeTogZmFsc2UsDQogICAgICAgICAgICAgICAgICAgICAgICBmaWVsZERlc2NyaXB0aW9uOiAnJywNCiAgICAgICAgICAgICAgICAgICAgICAgIGlzQXV0bzpmYWxzZQ0KICAgICAgICAgICAgICAgICAgICB9XQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgIH0pLmNhdGNoKGVycj0+ew0KICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7DQogICAgICAgICAgICB9KQ0KICAgICAgICB9DQoNCg0KDQogICAgfQ0KfQ0K"},{"version":3,"sources":["sqlServer.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AAIA;AACA","file":"sqlServer.vue","sourceRoot":"src/views/tool/datasheet","sourcesContent":["<template>\r\n <div class=\"app-container\">\r\n <el-card style=\"margin-bottom: 15px;\">\r\n <el-form ref=\"form\" :model=\"form\" label-width=\"100px\">\r\n <el-form-item label=\"数据库名称\">\r\n <el-input v-model=\"form.dataBaseName\" style=\"width: 600px;\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"数据表名称\">\r\n <el-input v-model=\"form.tableName\" style=\"width: 600px;\"></el-input>\r\n </el-form-item>\r\n </el-form>\r\n </el-card>\r\n <el-card>\r\n <div class=\"titleitem\">\r\n <span>数据表字段</span>\r\n </div>\r\n <el-table :data=\"experienceData\" stripe style=\"width: 100%\">\r\n <el-table-column prop=\"fieldName\" label=\"字段名称\" width=\"200\">\r\n <template slot-scope=\"scope\">\r\n <el-input v-model=\"scope.row.fieldName\"></el-input>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column prop=\"fieldType\" label=\"字段类型\" width=\"200\">\r\n <template slot-scope=\"scope\">\r\n <el-select v-model=\"scope.row.fieldType\">\r\n <el-option label=\"int\" value=\"int\"></el-option>\r\n <el-option label=\"varchar\" value=\"varchar\"></el-option>\r\n </el-select>\r\n </template>\r\n\r\n </el-table-column>\r\n\r\n <el-table-column prop=\"fieldLength\" label=\"长度\" width=\"200\">\r\n <template slot-scope=\"scope\">\r\n <el-input v-model=\"scope.row.fieldLength\"></el-input>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column prop=\"isNull\" label=\"不是null\" width=\"200\">\r\n <template slot-scope=\"scope\">\r\n <el-radio-group v-model=\"scope.row.isNull\">\r\n <el-radio :label=\"true\">是</el-radio>\r\n <el-radio :label=\"false\">否</el-radio>\r\n </el-radio-group>\r\n </template>\r\n </el-table-column>\r\n\r\n\r\n\r\n <el-table-column prop=\"isPrimary\" label=\"键\" width=\"200\">\r\n <template slot-scope=\"scope\">\r\n <el-radio-group v-model=\"scope.row.isPrimary\">\r\n <el-radio :label=\"true\">是</el-radio>\r\n <el-radio :label=\"false\">否</el-radio>\r\n </el-radio-group>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column prop=\"isAuto\" label=\"自增\" width=\"200\">\r\n <template slot-scope=\"scope\">\r\n <el-radio-group v-show=\"scope.row.isPrimary\" v-model=\"scope.row.isAuto\">\r\n <el-radio :label=\"true\">是</el-radio>\r\n <el-radio :label=\"false\">否</el-radio>\r\n </el-radio-group>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column prop=\"fieldDescription\" label=\"字段描述\" width=\"200\">\r\n <template slot-scope=\"scope\">\r\n <el-input v-model=\"scope.row.fieldDescription\"></el-input>\r\n </template>\r\n </el-table-column>\r\n <el-table-column prop=\"operate\" label=\"操作\">\r\n <template slot-scope=\"scope\">\r\n <el-button size=\"mini\" type=\"success\" icon=\"el-icon-save\"\r\n @click=\"handlesaveExperience(scope.$index, scope.row)\">保存\r\n </el-button>\r\n <el-button size=\"mini\" type=\"danger\" icon=\"el-icon-delete\"\r\n @click=\"handleDeleteExperience(scope.$index, scope.row)\">删除\r\n </el-button>\r\n\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <div>\r\n <el-button type=\"primary\" icon=\"el-icon-plus\" size=\"mini\" @click=\"handleAddExperienceline\">新增字段\r\n </el-button>\r\n </div>\r\n </el-card>\r\n\r\n <div style=\"margin-top: 15px;\">\r\n <el-button @click=\"addSqlServer\" type=\"primary\">添加</el-button>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { createSqlServerDataBase } from \"@/api/datasheet/index\"\r\nexport default {\r\n name: \"SqlServer\",\r\n data() {\r\n return {\r\n form: {\r\n dataBaseName: '',\r\n tableName: '',\r\n },\r\n experienceData: [{\r\n fieldName: '',\r\n fieldType: '',\r\n fieldLength: undefined,\r\n isNull: false,\r\n isPrimary: false,\r\n fieldDescription: '',\r\n isAuto:false\r\n },],\r\n dataBase: {}\r\n\r\n }\r\n },\r\n methods: {\r\n //增加经验行\r\n handleAddExperienceline() {\r\n if (this.experienceData == undefined) {\r\n this.experienceData = new Array();\r\n }\r\n let obj = {\r\n fieldName: '',\r\n fieldType: '',\r\n fieldLength: undefined,\r\n isNull: false,\r\n isPrimary: false,\r\n fieldDescription: '',\r\n isAuto:false\r\n };\r\n\r\n this.experienceData.push(obj);\r\n },\r\n //保存经验行\r\n handlesaveExperience(a, b) {\r\n console.log(a + b);\r\n console.log(b);\r\n },\r\n //删除经验行\r\n handleDeleteExperience(index) {\r\n console.log(index);\r\n this.experienceData.splice(index, 1)\r\n },\r\n addSqlServer() {\r\n let query = {\r\n dataBaseName: this.form.dataBaseName,\r\n tableName: this.form.tableName,\r\n field: this.experienceData\r\n }\r\n createSqlServerDataBase(query).then(res => {\r\n this.$modal.msgSuccess(res.msg);\r\n if (res.code === 200) {\r\n this.visible = false;\r\n this.$emit(\"ok\");\r\n Object.keys(this.form).forEach(key => (this.form[key] = ''));\r\n this.experienceData = [{\r\n fieldName: '',\r\n fieldType: '',\r\n fieldLength: undefined,\r\n isNull: false,\r\n isPrimary: false,\r\n fieldDescription: '',\r\n isAuto:false\r\n }]\r\n }\r\n }).catch(err=>{\r\n console.log(err);\r\n })\r\n }\r\n\r\n\r\n\r\n }\r\n}\r\n</script>"]}]}