Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
b4c64256
Commit
b4c64256
authored
Jan 29, 2023
by
msgroup
Committed by
mingsoft
Jan 29, 2023
Browse files
up: 5.3.0 初始化数据更新
parent
3dd8f5d6
Changes
1
Show whitespace changes
Inline
Side-by-side
doc/mcms-5.3.0.sql
View file @
b4c64256
...
@@ -357,6 +357,8 @@ INSERT INTO `logger` (`id`, `log_error_msg`, `log_result`, `log_param`, `log_loc
...
@@ -357,6 +357,8 @@ INSERT INTO `logger` (`id`, `log_error_msg`, `log_result`, `log_param`, `log_loc
INSERT INTO `logger` (`id`, `log_error_msg`, `log_result`, `log_param`, `log_location`, `log_user`, `log_user_type`, `log_business_type`, `log_status`, `log_url`, `log_request_method`, `log_method`, `log_ip`, `log_title`, `BUSINESS_ID`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1603592136002162690, NULL, '{\n \n}', '{\n \n}', '内网IP', 'msopen', 'manage', 'update', 'success', '/ms/cms/generate/0/genernateColumn.do', 'GET', 'net.mingsoft.cms.action.GeneraterAction.genernateColumn()', '192.168.0.61', '生成栏目', NULL, NULL, NULL, '2022-12-16 11:25:33', NULL, 0);
INSERT INTO `logger` (`id`, `log_error_msg`, `log_result`, `log_param`, `log_location`, `log_user`, `log_user_type`, `log_business_type`, `log_status`, `log_url`, `log_request_method`, `log_method`, `log_ip`, `log_title`, `BUSINESS_ID`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1603592136002162690, NULL, '{\n \n}', '{\n \n}', '内网IP', 'msopen', 'manage', 'update', 'success', '/ms/cms/generate/0/genernateColumn.do', 'GET', 'net.mingsoft.cms.action.GeneraterAction.genernateColumn()', '192.168.0.61', '生成栏目', NULL, NULL, NULL, '2022-12-16 11:25:33', NULL, 0);
INSERT INTO `logger` (`id`, `log_error_msg`, `log_result`, `log_param`, `log_location`, `log_user`, `log_user_type`, `log_business_type`, `log_status`, `log_url`, `log_request_method`, `log_method`, `log_ip`, `log_title`, `BUSINESS_ID`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1603592176938569730, NULL, '{\n \n}', '{\n \"dateTime\":[\n \"2019-12-01\"\n ]\n}', '内网IP', 'msopen', 'manage', 'update', 'success', '/ms/cms/generate/0/generateArticle.do', 'POST', 'net.mingsoft.cms.action.GeneraterAction.generateArticle()', '192.168.0.61', '生成文章', NULL, NULL, NULL, '2022-12-16 11:25:43', NULL, 0);
INSERT INTO `logger` (`id`, `log_error_msg`, `log_result`, `log_param`, `log_location`, `log_user`, `log_user_type`, `log_business_type`, `log_status`, `log_url`, `log_request_method`, `log_method`, `log_ip`, `log_title`, `BUSINESS_ID`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1603592176938569730, NULL, '{\n \n}', '{\n \"dateTime\":[\n \"2019-12-01\"\n ]\n}', '内网IP', 'msopen', 'manage', 'update', 'success', '/ms/cms/generate/0/generateArticle.do', 'POST', 'net.mingsoft.cms.action.GeneraterAction.generateArticle()', '192.168.0.61', '生成文章', NULL, NULL, NULL, '2022-12-16 11:25:43', NULL, 0);
INSERT INTO `logger` (`id`, `log_error_msg`, `log_result`, `log_param`, `log_location`, `log_user`, `log_user_type`, `log_business_type`, `log_status`, `log_url`, `log_request_method`, `log_method`, `log_ip`, `log_title`, `BUSINESS_ID`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1613063327304847362, NULL, '{\"result\":true,\"code\":200}', '{\n \"updateDate\": \"2022-09-09 15:32:05\",\n \"appState\": \"0\",\n \"appStyle\": \"default\",\n \"appPay\": \"\",\n \"appLogo\": \"[{\\\"url\\\":\\\"/upload/1/appLogo/1609397756549.png\\\",\\\"name\\\":\\\"1593834123492.png\\\",\\\"path\\\":\\\"/upload/1/appLogo/1609397756549.png\\\",\\\"uid\\\":1609397756411,\\\"status\\\":\\\"success\\\"}]\",\n \"appName\": \"铭飞MCms(5.3.0)\",\n \"appDescription\": \"铭飞MCMS\",\n \"appDir\": \"web\",\n \"del\": \"0\",\n \"appUrl\": \"http://localhost:8080/\",\n \"appCopyright\": \"版权所有 ©铭飞科技有限公司2012-2019 保留一切权利。\",\n \"createBy\": \"\",\n \"updateBy\": \"57\",\n \"appId\": \"1\",\n \"id\": \"1\",\n \"appHostUrl\": \"http://localhost:8080/\",\n \"appKeyword\": \"铭飞MCMS\",\n \"appPayDate\": \"2019-11-17\"\n}', '内网IP', 'msopen', 'manage', 'update', 'success', '/ms/basic/app/update.do', 'POST', 'net.mingsoft.basic.action.AppAction.update()', '127.0.0.1', '更新站点信息', NULL, NULL, NULL, '2023-01-11 14:40:41', NULL, 0);
INSERT INTO `logger` (`id`, `log_error_msg`, `log_result`, `log_param`, `log_location`, `log_user`, `log_user_type`, `log_business_type`, `log_status`, `log_url`, `log_request_method`, `log_method`, `log_ip`, `log_title`, `BUSINESS_ID`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1613063327304847362, NULL, '{\"result\":true,\"code\":200}', '{\n \"updateDate\": \"2022-09-09 15:32:05\",\n \"appState\": \"0\",\n \"appStyle\": \"default\",\n \"appPay\": \"\",\n \"appLogo\": \"[{\\\"url\\\":\\\"/upload/1/appLogo/1609397756549.png\\\",\\\"name\\\":\\\"1593834123492.png\\\",\\\"path\\\":\\\"/upload/1/appLogo/1609397756549.png\\\",\\\"uid\\\":1609397756411,\\\"status\\\":\\\"success\\\"}]\",\n \"appName\": \"铭飞MCms(5.3.0)\",\n \"appDescription\": \"铭飞MCMS\",\n \"appDir\": \"web\",\n \"del\": \"0\",\n \"appUrl\": \"http://localhost:8080/\",\n \"appCopyright\": \"版权所有 ©铭飞科技有限公司2012-2019 保留一切权利。\",\n \"createBy\": \"\",\n \"updateBy\": \"57\",\n \"appId\": \"1\",\n \"id\": \"1\",\n \"appHostUrl\": \"http://localhost:8080/\",\n \"appKeyword\": \"铭飞MCMS\",\n \"appPayDate\": \"2019-11-17\"\n}', '内网IP', 'msopen', 'manage', 'update', 'success', '/ms/basic/app/update.do', 'POST', 'net.mingsoft.basic.action.AppAction.update()', '127.0.0.1', '更新站点信息', NULL, NULL, NULL, '2023-01-11 14:40:41', NULL, 0);
INSERT INTO `logger` (`id`, `log_error_msg`, `log_result`, `log_param`, `log_location`, `log_user`, `log_user_type`, `log_business_type`, `log_status`, `log_url`, `log_request_method`, `log_method`, `log_ip`, `log_title`, `BUSINESS_ID`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1619583883810377730, NULL, '{\"result\":true,\"code\":200}', '[\n {\n \"id\": \"1\",\n \"modelName\": \"会员配置\",\n \"notDel\": 0,\n \"modelType\": \"\",\n \"modelCustomType\": \"config\",\n \"modelJson\": \"{\\\"searchJson\\\":\\\"[\\\\n]\\\\n\\\",\\\"isWebSubmit\\\":false,\\\"html\\\":\\\"\\\\n<template id=\\\\\\\"custom-model\\\\\\\">\\\\n <el-form ref=\\\\\\\"form\\\\\\\" :model=\\\\\\\"form\\\\\\\" :rules=\\\\\\\"rules\\\\\\\" label-width=\\\\\\\"120px\\\\\\\" label-position=\\\\\\\"right\\\\\\\" size=\\\\\\\"small\\\\\\\">\\\\n\\\\n <!--启用发送验证码-->\\\\n \\\\n <el-form-item label=\\\\\\\"启用发送验证码\\\\\\\" prop=\\\\\\\"sendCode\\\\\\\">\\\\n <el-switch v-model=\\\\\\\"form.sendCode\\\\\\\"\\\\n :disabled=\\\\\\\"false\\\\\\\">\\\\n </el-switch>\\\\n <div class=\\\\\\\"ms-form-tip\\\\\\\">\\\\n启用之后注册接口需要调用发送插件进行验证发送,需要依赖发送插件,发送插件支持短信、邮件具体参考 <el-link type=\\\\\\\"primary\\\\\\\" href=\\\\\\\"http://doc.mingsoft.net/plugs/fa-song-cha-jian/jie-shao.html\\\\\\\" target=\\\\\\\"_blank\\\\\\\">开发手册</el-link> </div>\\\\n </el-form-item>\\\\n \\\\n <!--启用审核-->\\\\n \\\\n <el-form-item label=\\\\\\\"启用审核\\\\\\\" prop=\\\\\\\"peopleState\\\\\\\">\\\\n <el-switch v-model=\\\\\\\"form.peopleState\\\\\\\"\\\\n :disabled=\\\\\\\"false\\\\\\\">\\\\n </el-switch>\\\\n <div class=\\\\\\\"ms-form-tip\\\\\\\">\\\\n启用审核之后,会员需要审核通过才能登陆 </div>\\\\n </el-form-item>\\\\n \\\\n <!--启用登录-->\\\\n \\\\n <el-form-item label=\\\\\\\"启用登录\\\\\\\" prop=\\\\\\\"enableReg\\\\\\\">\\\\n <el-switch v-model=\\\\\\\"form.enableReg\\\\\\\"\\\\n :disabled=\\\\\\\"false\\\\\\\">\\\\n </el-switch>\\\\n <div class=\\\\\\\"ms-form-tip\\\\\\\">\\\\n启用后开启登录接口 </div>\\\\n </el-form-item>\\\\n \\\\n <!--启用注册-->\\\\n \\\\n <el-form-item label=\\\\\\\"启用注册\\\\\\\" prop=\\\\\\\"enableLogin\\\\\\\">\\\\n <el-switch v-model=\\\\\\\"form.enableLogin\\\\\\\"\\\\n :disabled=\\\\\\\"false\\\\\\\">\\\\n </el-switch>\\\\n <div class=\\\\\\\"ms-form-tip\\\\\\\">\\\\n启用后开启注册接口 </div>\\\\n </el-form-item>\\\\n \\\\n </el-form>\\\\n</template>\\\\n\\\",\\\"script\\\":\\\"\\\\n\\\\nvar custom_model = Vue.component(\\\\\\\"custom-model\\\\\\\",{\\\\nel: \'#custom-model\',\\\\ndata:function() {\\\\nreturn {\\\\n\\\\nmodelId:0,\\\\nmodelName: \\\\\\\"会员配置\\\\\\\",\\\\n//表单数据\\\\nform: {\\\\nlinkId:0,\\\\n // 启用发送验证码\\\\n sendCode:false,\\\\n // 启用审核\\\\n peopleState:false,\\\\n // 启用登录\\\\n enableReg:false,\\\\n // 启用注册\\\\n enableLogin:false,\\\\n},\\\\n\\\\nrules:{\\\\n},\\\\n}\\\\n},\\\\nwatch:{\\\\n \\\\n //启用发送验证码 \\\\n \\\\\\\"form.sendCode\\\\\\\":function(nev,old){\\\\n if(typeof(nev)==\'string\') {\\\\n this.form.sendCode = (nev==\'true\');\\\\n } \\\\n },\\\\n \\\\n //启用审核 \\\\n \\\\\\\"form.peopleState\\\\\\\":function(nev,old){\\\\n if(typeof(nev)==\'string\') {\\\\n this.form.peopleState = (nev==\'true\');\\\\n } \\\\n },\\\\n \\\\n //启用登录 \\\\n \\\\\\\"form.enableReg\\\\\\\":function(nev,old){\\\\n if(typeof(nev)==\'string\') {\\\\n this.form.enableReg = (nev==\'true\');\\\\n } \\\\n },\\\\n \\\\n //启用注册 \\\\n \\\\\\\"form.enableLogin\\\\\\\":function(nev,old){\\\\n if(typeof(nev)==\'string\') {\\\\n this.form.enableLogin = (nev==\'true\');\\\\n } \\\\n },\\\\n},\\\\ncomputed:{\\\\n},\\\\nmethods: {\\\\nvalidate:function(){\\\\nvar b = false\\\\nthis.$refs.form.validate(function(valid){\\\\nb = valid;\\\\n});\\\\nreturn b;\\\\n},\\\\nsave:function(callback) {\\\\nvar that = this;\\\\nvar url = this.formURL.save.url;\\\\nif (that.form.id > 0) {\\\\nurl = this.formURL.update.url;\\\\n}\\\\nthis.$refs.form.validate(function(valid) {\\\\nif (valid) {\\\\nvar form = JSON.parse(JSON.stringify(that.form));\\\\nform.modelId = that.modelId;\\\\nms.http.post(url, form).then(function (res) {\\\\nif(callback) {\\\\ncallback(res);\\\\n}\\\\n});\\\\n}else{\\\\ncallback({result:false,msg:\'请检查表单输入项\'});\\\\n}\\\\n})\\\\n},\\\\n//获取当前会员配置\\\\nget:function(id) {\\\\nvar that = this;\\\\nms.http.get(this.formURL.get.url, Object.assign({\\\\\\\"modelId\\\\\\\":that.modelId},this.formURL.get.params)).then(function (res) {\\\\nif(res.result&&res.data){\\\\nthat.form = res.data;\\\\n}\\\\n}).catch(function (err) {\\\\nconsole.log(err);\\\\n});\\\\n},\\\\n\\\\n},\\\\ncreated:function() {\\\\n//渲染create\\\\n\\\\nthis.get(this.form.linkId);\\\\n}\\\\n});\\\"}\",\n \"modelField\": \"[\\r\\n {\\r\\n \\\"model\\\":\\\"sendCode\\\",\\r\\n \\\"key\\\":\\\"SEND_CODE\\\",\\r\\n \\\"field\\\":\\\"SEND_CODE\\\",\\r\\n \\\"javaType\\\":\\\"Boolean\\\",\\r\\n \\\"jdbcType\\\":\\\"VARCHAR\\\",\\r\\n \\\"name\\\":\\\"启用发送验证码\\\",\\r\\n \\\"type\\\":\\\"switch\\\",\\r\\n \\\"length\\\":\\\"11\\\",\\r\\n \\\"isShow\\\":\\\"false\\\"\\r\\n }\\r\\n ,{\\r\\n \\\"model\\\":\\\"peopleState\\\",\\r\\n \\\"key\\\":\\\"PEOPLE_STATE\\\",\\r\\n \\\"field\\\":\\\"PEOPLE_STATE\\\",\\r\\n \\\"javaType\\\":\\\"Boolean\\\",\\r\\n \\\"jdbcType\\\":\\\"VARCHAR\\\",\\r\\n \\\"name\\\":\\\"启用审核\\\",\\r\\n \\\"type\\\":\\\"switch\\\",\\r\\n \\\"length\\\":\\\"11\\\",\\r\\n \\\"isShow\\\":\\\"false\\\"\\r\\n }\\r\\n ,{\\r\\n \\\"model\\\":\\\"enableReg\\\",\\r\\n \\\"key\\\":\\\"ENABLE_REG\\\",\\r\\n \\\"field\\\":\\\"ENABLE_REG\\\",\\r\\n \\\"javaType\\\":\\\"Boolean\\\",\\r\\n \\\"jdbcType\\\":\\\"VARCHAR\\\",\\r\\n \\\"name\\\":\\\"启用登录\\\",\\r\\n \\\"type\\\":\\\"switch\\\",\\r\\n \\\"length\\\":\\\"11\\\",\\r\\n \\\"isShow\\\":\\\"false\\\"\\r\\n }\\r\\n ,{\\r\\n \\\"model\\\":\\\"enableLogin\\\",\\r\\n \\\"key\\\":\\\"ENABLE_LOGIN\\\",\\r\\n \\\"field\\\":\\\"ENABLE_LOGIN\\\",\\r\\n \\\"javaType\\\":\\\"Boolean\\\",\\r\\n \\\"jdbcType\\\":\\\"VARCHAR\\\",\\r\\n \\\"name\\\":\\\"启用注册\\\",\\r\\n \\\"type\\\":\\\"switch\\\",\\r\\n \\\"length\\\":\\\"11\\\",\\r\\n \\\"isShow\\\":\\\"false\\\"\\r\\n }\\r\\n]\\r\\n\\r\\n\",\n \"del\": 0\n }\n]', '内网IP', 'msopen', 'manage', 'delete', 'success', '/ms/mdiy/config/delete.do', 'POST', 'net.mingsoft.mdiy.action.ConfigAction.delete()', '127.0.0.1', '批量删除自定义模型列表接口', NULL, NULL, NULL, '2023-01-29 14:31:03', NULL, 0);
INSERT INTO `logger` (`id`, `log_error_msg`, `log_result`, `log_param`, `log_location`, `log_user`, `log_user_type`, `log_business_type`, `log_status`, `log_url`, `log_request_method`, `log_method`, `log_ip`, `log_title`, `BUSINESS_ID`, `update_date`, `update_by`, `create_date`, `create_by`, `del`) VALUES (1619583965855158273, NULL, '{\"result\":true,\"code\":200}', '[\n {\n \"id\": \"2\",\n \"modelName\": \"扩展会员信息\",\n \"modelTableName\": \"MDIY_MODEL_PEOPLE_INFO\",\n \"notDel\": 0,\n \"modelType\": \"people\",\n \"modelCustomType\": \"model\",\n \"modelJson\": \"{\\\"searchJson\\\":\\\"[\\\\n // 爱好\\\\n {\'action\':\'and\', \'field\': \'FAV\', \'el\': \'eq\', \'model\': \'fav\', \'name\': \'爱好\', \'type\': \'textarea\'},\\\\n]\\\\n\\\",\\\"isWebSubmit\\\":false,\\\"html\\\":\\\"\\\\n<template id=\\\\\\\"custom-model\\\\\\\">\\\\n <el-form ref=\\\\\\\"form\\\\\\\" :model=\\\\\\\"form\\\\\\\" :rules=\\\\\\\"rules\\\\\\\" label-width=\\\\\\\"120px\\\\\\\" label-position=\\\\\\\"right\\\\\\\" size=\\\\\\\"small\\\\\\\">\\\\n\\\\n <!--爱好-->\\\\t\\\\n\\\\t <el-form-item label=\\\\\\\"爱好\\\\\\\" prop=\\\\\\\"fav\\\\\\\">\\\\n\\\\t <el-input\\\\n type=\\\\\\\"textarea\\\\\\\" :rows=\\\\\\\"5\\\\\\\"\\\\n :disabled=\\\\\\\"false\\\\\\\"\\\\n :readonly=\\\\\\\"false\\\\\\\"\\\\n v-model=\\\\\\\"form.fav\\\\\\\"\\\\n :style=\\\\\\\"{width: \'100%\'}\\\\\\\"\\\\n placeholder=\\\\\\\"请输入爱好\\\\\\\">\\\\n </el-input>\\\\n\\\\t </el-form-item>\\\\n\\\\t \\\\n </el-form>\\\\n</template>\\\\n\\\",\\\"script\\\":\\\"\\\\n\\\\nvar custom_model = Vue.component(\\\\\\\"custom-model\\\\\\\",{\\\\nel: \'#custom-model\',\\\\ndata:function() {\\\\nreturn {\\\\n\\\\nmodelId:0,\\\\nmodelName: \\\\\\\"扩展会员信息\\\\\\\",\\\\n//表单数据\\\\nform: {\\\\nlinkId:0,\\\\n // 爱好\\\\n fav:\'\',\\\\n},\\\\n\\\\nrules:{\\\\n},\\\\n}\\\\n},\\\\nwatch:{\\\\n},\\\\ncomputed:{\\\\n},\\\\nmethods: {\\\\nvalidate:function(){\\\\nvar b = false\\\\nthis.$refs.form.validate(function(valid){\\\\nb = valid;\\\\n});\\\\nreturn b;\\\\n},\\\\nsave:function(callback) {\\\\nvar that = this;\\\\nvar url = this.formURL.save.url;\\\\nif (that.form.id > 0) {\\\\nurl = this.formURL.update.url;\\\\n}\\\\nthis.$refs.form.validate(function(valid) {\\\\nif (valid) {\\\\nvar form = JSON.parse(JSON.stringify(that.form));\\\\nform.modelId = that.modelId;\\\\nms.http.post(url, form).then(function (res) {\\\\nif(callback) {\\\\ncallback(res);\\\\n}\\\\n});\\\\n}else{\\\\ncallback({result:false,msg:\'请检查表单输入项\'});\\\\n}\\\\n})\\\\n},\\\\n//获取当前扩展会员信息\\\\nget:function(id) {\\\\nvar that = this;\\\\nms.http.get(this.formURL.get.url, Object.assign({\\\\\\\"modelId\\\\\\\":that.modelId},this.formURL.get.params)).then(function (res) {\\\\nif(res.result&&res.data){\\\\nthat.form = res.data;\\\\n}\\\\n}).catch(function (err) {\\\\nconsole.log(err);\\\\n});\\\\n},\\\\n\\\\n},\\\\ncreated:function() {\\\\n//渲染create\\\\n\\\\nthis.get(this.form.linkId);\\\\n}\\\\n});\\\"}\",\n \"modelField\": \"[\\r\\n {\\r\\n \\\"model\\\":\\\"fav\\\",\\r\\n \\\"key\\\":\\\"FAV\\\",\\r\\n \\\"field\\\":\\\"FAV\\\",\\r\\n \\\"javaType\\\":\\\"String\\\",\\r\\n \\\"jdbcType\\\":\\\"VARCHAR\\\",\\r\\n \\\"name\\\":\\\"爱好\\\",\\r\\n \\\"type\\\":\\\"textarea\\\",\\r\\n \\\"length\\\":\\\"255\\\",\\r\\n \\\"isShow\\\":\\\"false\\\"\\r\\n }\\r\\n]\\r\\n\\r\\n\",\n \"del\": 0\n }\n]', '内网IP', 'msopen', 'manage', 'delete', 'success', '/ms/mdiy/model/delete.do', 'POST', 'net.mingsoft.mdiy.action.ModelAction.delete()', '127.0.0.1', '批量删除自定义模型', NULL, NULL, NULL, '2023-01-29 14:31:23', NULL, 0);
COMMIT;
COMMIT;
-- ----------------------------
-- ----------------------------
...
@@ -410,7 +412,6 @@ CREATE TABLE `mdiy_config` (
...
@@ -410,7 +412,6 @@ CREATE TABLE `mdiy_config` (
-- Records of mdiy_config
-- Records of mdiy_config
-- ----------------------------
-- ----------------------------
BEGIN;
BEGIN;
INSERT
INTO
`mdiy_config`
(
`id`
,
`config_name`
,
`config_data`
,
`update_date`
,
`update_by`
,
`create_date`
,
`create_by`
,
`del`
,
`NOT_DEL`
)
VALUES
(
1
,
'会员配置'
,
'{
\"
enableLogin
\"
:
\"
true
\"
,
\"
linkId
\"
:
\"
0
\"
,
\"
modelId
\"
:
\"
104
\"
,
\"
sendCode
\"
:
\"
false
\"
,
\"
enableReg
\"
:
\"
true
\"
,
\"
peopleState
\"
:
\"
true
\"
}'
,
NULL
,
NULL
,
NULL
,
NULL
,
0
,
1
);
COMMIT;
COMMIT;
-- ----------------------------
-- ----------------------------
...
@@ -483,30 +484,6 @@ CREATE TABLE `mdiy_model` (
...
@@ -483,30 +484,6 @@ CREATE TABLE `mdiy_model` (
-- Records of mdiy_model
-- Records of mdiy_model
-- ----------------------------
-- ----------------------------
BEGIN;
BEGIN;
INSERT
INTO
`mdiy_model`
(
`ID`
,
`model_json`
,
`model_table_name`
,
`model_name`
,
`model_type`
,
`model_field`
,
`model_custom_type`
,
`update_date`
,
`update_by`
,
`create_date`
,
`create_by`
,
`del`
,
`NOT_DEL`
)
VALUES
(
1
,
'{
\"
searchJson
\"
:
\"
[
\\
n]
\\
n
\"
,
\"
isWebSubmit
\"
:false,
\"
html
\"
:
\"\\
n<template id=
\\\"
custom-model
\\\"
>
\\
n <el-form ref=
\\\"
form
\\\"
:model=
\\\"
form
\\\"
:rules=
\\\"
rules
\\\"
label-width=
\\\"
120px
\\\"
label-position=
\\\"
right
\\\"
size=
\\\"
small
\\\"
>
\\
n
\\
n <!--启用发送验证码-->
\\
n
\\
n <el-form-item label=
\\\"
启用发送验证码
\\\"
prop=
\\\"
sendCode
\\\"
>
\\
n <el-switch v-model=
\\\"
form.sendCode
\\\"\\
n :disabled=
\\\"
false
\\\"
>
\\
n </el-switch>
\\
n <div class=
\\\"
ms-form-tip
\\\"
>
\\
n启用之后注册接口需要调用发送插件进行验证发送,需要依赖发送插件,发送插件支持短信、邮件具体参考 <el-link type=
\\\"
primary
\\\"
href=
\\\"
http://doc.mingsoft.net/plugs/fa-song-cha-jian/jie-shao.html
\\\"
target=
\\\"
_blank
\\\"
>开发手册</el-link> </div>
\\
n </el-form-item>
\\
n
\\
n <!--启用审核-->
\\
n
\\
n <el-form-item label=
\\\"
启用审核
\\\"
prop=
\\\"
peopleState
\\\"
>
\\
n <el-switch v-model=
\\\"
form.peopleState
\\\"\\
n :disabled=
\\\"
false
\\\"
>
\\
n </el-switch>
\\
n <div class=
\\\"
ms-form-tip
\\\"
>
\\
n启用审核之后,会员需要审核通过才能登陆 </div>
\\
n </el-form-item>
\\
n
\\
n <!--启用登录-->
\\
n
\\
n <el-form-item label=
\\\"
启用登录
\\\"
prop=
\\\"
enableReg
\\\"
>
\\
n <el-switch v-model=
\\\"
form.enableReg
\\\"\\
n :disabled=
\\\"
false
\\\"
>
\\
n </el-switch>
\\
n <div class=
\\\"
ms-form-tip
\\\"
>
\\
n启用后开启登录接口 </div>
\\
n </el-form-item>
\\
n
\\
n <!--启用注册-->
\\
n
\\
n <el-form-item label=
\\\"
启用注册
\\\"
prop=
\\\"
enableLogin
\\\"
>
\\
n <el-switch v-model=
\\\"
form.enableLogin
\\\"\\
n :disabled=
\\\"
false
\\\"
>
\\
n </el-switch>
\\
n <div class=
\\\"
ms-form-tip
\\\"
>
\\
n启用后开启注册接口 </div>
\\
n </el-form-item>
\\
n
\\
n </el-form>
\\
n</template>
\\
n
\"
,
\"
script
\"
:
\"\\
n
\\
nvar custom_model = Vue.component(
\\\"
custom-model
\\\"
,{
\\
nel:
\'
#custom-model
\'
,
\\
ndata:function() {
\\
nreturn {
\\
n
\\
nmodelId:0,
\\
nmodelName:
\\\"
会员配置
\\\"
,
\\
n//表单数据
\\
nform: {
\\
nlinkId:0,
\\
n // 启用发送验证码
\\
n sendCode:false,
\\
n // 启用审核
\\
n peopleState:false,
\\
n // 启用登录
\\
n enableReg:false,
\\
n // 启用注册
\\
n enableLogin:false,
\\
n},
\\
n
\\
nrules:{
\\
n},
\\
n}
\\
n},
\\
nwatch:{
\\
n
\\
n //启用发送验证码
\\
n
\\\"
form.sendCode
\\\"
:function(nev,old){
\\
n if(typeof(nev)==
\'
string
\'
) {
\\
n this.form.sendCode = (nev==
\'
true
\'
);
\\
n }
\\
n },
\\
n
\\
n //启用审核
\\
n
\\\"
form.peopleState
\\\"
:function(nev,old){
\\
n if(typeof(nev)==
\'
string
\'
) {
\\
n this.form.peopleState = (nev==
\'
true
\'
);
\\
n }
\\
n },
\\
n
\\
n //启用登录
\\
n
\\\"
form.enableReg
\\\"
:function(nev,old){
\\
n if(typeof(nev)==
\'
string
\'
) {
\\
n this.form.enableReg = (nev==
\'
true
\'
);
\\
n }
\\
n },
\\
n
\\
n //启用注册
\\
n
\\\"
form.enableLogin
\\\"
:function(nev,old){
\\
n if(typeof(nev)==
\'
string
\'
) {
\\
n this.form.enableLogin = (nev==
\'
true
\'
);
\\
n }
\\
n },
\\
n},
\\
ncomputed:{
\\
n},
\\
nmethods: {
\\
nvalidate:function(){
\\
nvar b = false
\\
nthis.$refs.form.validate(function(valid){
\\
nb = valid;
\\
n});
\\
nreturn b;
\\
n},
\\
nsave:function(callback) {
\\
nvar that = this;
\\
nvar url = this.formURL.save.url;
\\
nif (that.form.id > 0) {
\\
nurl = this.formURL.update.url;
\\
n}
\\
nthis.$refs.form.validate(function(valid) {
\\
nif (valid) {
\\
nvar form = JSON.parse(JSON.stringify(that.form));
\\
nform.modelId = that.modelId;
\\
nms.http.post(url, form).then(function (res) {
\\
nif(callback) {
\\
ncallback(res);
\\
n}
\\
n});
\\
n}else{
\\
ncallback({result:false,msg:
\'
请检查表单输入项
\'
});
\\
n}
\\
n})
\\
n},
\\
n//获取当前会员配置
\\
nget:function(id) {
\\
nvar that = this;
\\
nms.http.get(this.formURL.get.url, Object.assign({
\\\"
modelId
\\\"
:that.modelId},this.formURL.get.params)).then(function (res) {
\\
nif(res.result&&res.data){
\\
nthat.form = res.data;
\\
n}
\\
n}).catch(function (err) {
\\
nconsole.log(err);
\\
n});
\\
n},
\\
n
\\
n},
\\
ncreated:function() {
\\
n//渲染create
\\
n
\\
nthis.get(this.form.linkId);
\\
n}
\\
n});
\"
}'
,
NULL
,
'会员配置'
,
''
,
'[
\r\n
{
\r\n
\"
model
\"
:
\"
sendCode
\"
,
\r\n
\"
key
\"
:
\"
SEND_CODE
\"
,
\r\n
\"
field
\"
:
\"
SEND_CODE
\"
,
\r\n
\"
javaType
\"
:
\"
Boolean
\"
,
\r\n
\"
jdbcType
\"
:
\"
VARCHAR
\"
,
\r\n
\"
name
\"
:
\"
启用发送验证码
\"
,
\r\n
\"
type
\"
:
\"
switch
\"
,
\r\n
\"
length
\"
:
\"
11
\"
,
\r\n
\"
isShow
\"
:
\"
false
\"\r\n
}
\r\n
,{
\r\n
\"
model
\"
:
\"
peopleState
\"
,
\r\n
\"
key
\"
:
\"
PEOPLE_STATE
\"
,
\r\n
\"
field
\"
:
\"
PEOPLE_STATE
\"
,
\r\n
\"
javaType
\"
:
\"
Boolean
\"
,
\r\n
\"
jdbcType
\"
:
\"
VARCHAR
\"
,
\r\n
\"
name
\"
:
\"
启用审核
\"
,
\r\n
\"
type
\"
:
\"
switch
\"
,
\r\n
\"
length
\"
:
\"
11
\"
,
\r\n
\"
isShow
\"
:
\"
false
\"\r\n
}
\r\n
,{
\r\n
\"
model
\"
:
\"
enableReg
\"
,
\r\n
\"
key
\"
:
\"
ENABLE_REG
\"
,
\r\n
\"
field
\"
:
\"
ENABLE_REG
\"
,
\r\n
\"
javaType
\"
:
\"
Boolean
\"
,
\r\n
\"
jdbcType
\"
:
\"
VARCHAR
\"
,
\r\n
\"
name
\"
:
\"
启用登录
\"
,
\r\n
\"
type
\"
:
\"
switch
\"
,
\r\n
\"
length
\"
:
\"
11
\"
,
\r\n
\"
isShow
\"
:
\"
false
\"\r\n
}
\r\n
,{
\r\n
\"
model
\"
:
\"
enableLogin
\"
,
\r\n
\"
key
\"
:
\"
ENABLE_LOGIN
\"
,
\r\n
\"
field
\"
:
\"
ENABLE_LOGIN
\"
,
\r\n
\"
javaType
\"
:
\"
Boolean
\"
,
\r\n
\"
jdbcType
\"
:
\"
VARCHAR
\"
,
\r\n
\"
name
\"
:
\"
启用注册
\"
,
\r\n
\"
type
\"
:
\"
switch
\"
,
\r\n
\"
length
\"
:
\"
11
\"
,
\r\n
\"
isShow
\"
:
\"
false
\"\r\n
}
\r\n
]
\r\n\r\n
'
,
'config'
,
NULL
,
NULL
,
NULL
,
NULL
,
0
,
0
);
INSERT
INTO
`mdiy_model`
(
`ID`
,
`model_json`
,
`model_table_name`
,
`model_name`
,
`model_type`
,
`model_field`
,
`model_custom_type`
,
`update_date`
,
`update_by`
,
`create_date`
,
`create_by`
,
`del`
,
`NOT_DEL`
)
VALUES
(
2
,
'{
\"
searchJson
\"
:
\"
[
\\
n // 爱好
\\
n {
\'
action
\'
:
\'
and
\'
,
\'
field
\'
:
\'
FAV
\'
,
\'
el
\'
:
\'
eq
\'
,
\'
model
\'
:
\'
fav
\'
,
\'
name
\'
:
\'
爱好
\'
,
\'
type
\'
:
\'
textarea
\'
},
\\
n]
\\
n
\"
,
\"
isWebSubmit
\"
:false,
\"
html
\"
:
\"\\
n<template id=
\\\"
custom-model
\\\"
>
\\
n <el-form ref=
\\\"
form
\\\"
:model=
\\\"
form
\\\"
:rules=
\\\"
rules
\\\"
label-width=
\\\"
120px
\\\"
label-position=
\\\"
right
\\\"
size=
\\\"
small
\\\"
>
\\
n
\\
n <!--爱好-->
\\
t
\\
n
\\
t <el-form-item label=
\\\"
爱好
\\\"
prop=
\\\"
fav
\\\"
>
\\
n
\\
t <el-input
\\
n type=
\\\"
textarea
\\\"
:rows=
\\\"
5
\\\"\\
n :disabled=
\\\"
false
\\\"\\
n :readonly=
\\\"
false
\\\"\\
n v-model=
\\\"
form.fav
\\\"\\
n :style=
\\\"
{width:
\'
100%
\'
}
\\\"\\
n placeholder=
\\\"
请输入爱好
\\\"
>
\\
n </el-input>
\\
n
\\
t </el-form-item>
\\
n
\\
t
\\
n </el-form>
\\
n</template>
\\
n
\"
,
\"
script
\"
:
\"\\
n
\\
nvar custom_model = Vue.component(
\\\"
custom-model
\\\"
,{
\\
nel:
\'
#custom-model
\'
,
\\
ndata:function() {
\\
nreturn {
\\
n
\\
nmodelId:0,
\\
nmodelName:
\\\"
扩展会员信息
\\\"
,
\\
n//表单数据
\\
nform: {
\\
nlinkId:0,
\\
n // 爱好
\\
n fav:
\'\'
,
\\
n},
\\
n
\\
nrules:{
\\
n},
\\
n}
\\
n},
\\
nwatch:{
\\
n},
\\
ncomputed:{
\\
n},
\\
nmethods: {
\\
nvalidate:function(){
\\
nvar b = false
\\
nthis.$refs.form.validate(function(valid){
\\
nb = valid;
\\
n});
\\
nreturn b;
\\
n},
\\
nsave:function(callback) {
\\
nvar that = this;
\\
nvar url = this.formURL.save.url;
\\
nif (that.form.id > 0) {
\\
nurl = this.formURL.update.url;
\\
n}
\\
nthis.$refs.form.validate(function(valid) {
\\
nif (valid) {
\\
nvar form = JSON.parse(JSON.stringify(that.form));
\\
nform.modelId = that.modelId;
\\
nms.http.post(url, form).then(function (res) {
\\
nif(callback) {
\\
ncallback(res);
\\
n}
\\
n});
\\
n}else{
\\
ncallback({result:false,msg:
\'
请检查表单输入项
\'
});
\\
n}
\\
n})
\\
n},
\\
n//获取当前扩展会员信息
\\
nget:function(id) {
\\
nvar that = this;
\\
nms.http.get(this.formURL.get.url, Object.assign({
\\\"
modelId
\\\"
:that.modelId},this.formURL.get.params)).then(function (res) {
\\
nif(res.result&&res.data){
\\
nthat.form = res.data;
\\
n}
\\
n}).catch(function (err) {
\\
nconsole.log(err);
\\
n});
\\
n},
\\
n
\\
n},
\\
ncreated:function() {
\\
n//渲染create
\\
n
\\
nthis.get(this.form.linkId);
\\
n}
\\
n});
\"
}'
,
'MDIY_MODEL_PEOPLE_INFO'
,
'扩展会员信息'
,
'people'
,
'[
\r\n
{
\r\n
\"
model
\"
:
\"
fav
\"
,
\r\n
\"
key
\"
:
\"
FAV
\"
,
\r\n
\"
field
\"
:
\"
FAV
\"
,
\r\n
\"
javaType
\"
:
\"
String
\"
,
\r\n
\"
jdbcType
\"
:
\"
VARCHAR
\"
,
\r\n
\"
name
\"
:
\"
爱好
\"
,
\r\n
\"
type
\"
:
\"
textarea
\"
,
\r\n
\"
length
\"
:
\"
255
\"
,
\r\n
\"
isShow
\"
:
\"
false
\"\r\n
}
\r\n
]
\r\n\r\n
'
,
'model'
,
NULL
,
NULL
,
NULL
,
NULL
,
0
,
0
);
COMMIT
;
-- ----------------------------
-- Table structure for mdiy_model_people_info
-- ----------------------------
DROP
TABLE
IF
EXISTS
`mdiy_model_people_info`
;
CREATE
TABLE
`mdiy_model_people_info`
(
`id`
bigint
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`FAV`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'爱好'
,
`LINK_ID`
bigint
(
20
)
DEFAULT
NULL
,
`CREATE_DATE`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
`CREATE_BY`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'创建人'
,
`UPDATE_DATE`
datetime
DEFAULT
NULL
COMMENT
'修改时间'
,
`UPDATE_BY`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'修改人'
,
`DEL`
int
(
1
)
DEFAULT
'0'
COMMENT
'删除标记'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'扩展会员信息'
;
-- ----------------------------
-- Records of mdiy_model_people_info
-- ----------------------------
BEGIN
;
COMMIT;
COMMIT;
-- ----------------------------
-- ----------------------------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment