From aa1b38e22656e8fad54f62b83229b6f4fa229167 Mon Sep 17 00:00:00 2001 From: hyt <958868763@qq.com> Date: Thu, 20 Jun 2024 15:15:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E4=B8=AD=E5=BF=83=20?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E7=AE=A1=E7=90=86=E3=80=81=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E7=AE=A1=E7=90=86=E4=BF=AE=E6=94=B9=E4=B8=8E=E5=BC=80?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/permission.js | 8 + src/views/applicationList/configData.js | 5 + .../applicationList/exploit/configData.js | 291 ++++++++------- src/views/applicationList/exploit/index.vue | 128 ++++--- .../applicationList/scriptAdmin/configData.js | 140 ++++++++ .../applicationList/scriptAdmin/index.vue | 336 ++++++++++++++++++ .../scriptAdmin/inserterAdd.vue | 206 +++++++++++ .../receiptsPage/compoments/baseNewForm.vue | 5 +- 8 files changed, 932 insertions(+), 187 deletions(-) create mode 100644 src/views/applicationList/scriptAdmin/configData.js create mode 100644 src/views/applicationList/scriptAdmin/index.vue create mode 100644 src/views/applicationList/scriptAdmin/inserterAdd.vue diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index d01474d..37bc4a7 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -67,6 +67,14 @@ const permission = { hidden: true } }, + { + path: 'scriptAdmin', + name: 'scriptAdmin', + component: () => import('@/views/applicationList/scriptAdmin'), + meta: { + hidden: true + } + }, { path: 'appApiadd', name: 'appApiAdd', diff --git a/src/views/applicationList/configData.js b/src/views/applicationList/configData.js index fa130df..6c37557 100644 --- a/src/views/applicationList/configData.js +++ b/src/views/applicationList/configData.js @@ -205,6 +205,11 @@ const settingMenu = [ icon: "appMenu06", path: 'inserterAdmin' }, + { + title: "脚本管理", + icon: "appMenu06", + path: 'scriptAdmin' + }, ] const configData = { addForm, diff --git a/src/views/applicationList/exploit/configData.js b/src/views/applicationList/exploit/configData.js index 7894d09..c647e41 100644 --- a/src/views/applicationList/exploit/configData.js +++ b/src/views/applicationList/exploit/configData.js @@ -2,230 +2,265 @@ const exploitSettingFormRow = [ { elCol: [ { - type: "select", - title: "接入方式", - id: "accessMode", + type: 'select', + title: '接入方式', + id: 'accessMode', row: 24, disabled: false, required: true, fontSize: 16, options: [ { - id: "1", - label: "接口", + id: '1', + label: '接口' }, { - id: "2", - label: "H5", + id: '2', + label: 'H5' }, { - id: "3", - label: "PC网页", + id: '3', + label: 'PC网页' }, { - id: "4", - label: "PC应用程序", - }, + id: '4', + label: 'PC应用程序' + } ], - multiple: true, - }, - ], + multiple: true + } + ] }, { elCol: [ { - type: "input", - title: "应用客户端地址(pc)", - id: "clientPath", + type: 'input', + title: '应用客户端地址(pc)', + id: 'clientPath', row: 24, disabled: false, required: false, fontSize: 16 - }, - ], + } + ] }, { elCol: [ { - type: "input", - title: "应用网页端地址(pc)", - id: "webPath", + type: 'input', + title: '应用网页端地址(pc)', + id: 'webPath', row: 24, disabled: false, required: false, fontSize: 16 - }, - ], + } + ] }, { elCol: [ { - type: "input", - title: "应用程序地址(移动端)", - id: "programPath", + type: 'input', + title: '应用程序地址(移动端)', + id: 'programPath', row: 24, disabled: false, required: false, fontSize: 16 - }, - ], + } + ] }, { elCol: [ { - type: "input", - title: "ip白名单", - id: "systemAddress", + type: 'input', + title: 'ip白名单', + id: 'systemAddress', row: 24, disabled: false, fontSize: 16, - placeholder:"请输入ip白名单并以,分割" - }, - ], + placeholder: '请输入ip白名单并以,分割' + } + ] }, { elCol: [ { - type: "input", - title: "应用Key", - id: "publicKey", + type: 'input', + title: '应用Key', + id: 'publicKey', row: 24, disabled: true, required: false, fontSize: 16, double: true - }, - ], + } + ] }, { elCol: [ { - type: "input", - title: "应用密钥", - id: "secretKey", + type: 'input', + title: '应用密钥', + id: 'secretKey', row: 24, disabled: true, fontSize: 16, double: true - }, - ], + } + ] }, { elCol: [ { - type: "input", - title: "appId ", - id: "appId", + type: 'input', + title: 'appId ', + id: 'appId', row: 24, disabled: true, fontSize: 16, double: true, - required: false, - }, - ], - }, + required: false + } + ] + } ] const apiEnvFormRow = [ { elCol: [ { - type: "input", - title: "接口地址", - id: "interfaceAddress", + type: 'input', + title: '接口地址', + id: 'interfaceAddress', row: 24, disabled: false, required: false, fontSize: 16 - }, - ], - }, + } + ] + } ] const tableColumn = [ { id: 'interfaceKey', - title: "Key" + title: 'Key' }, { id: 'interfaceValue', - title: "Value" + title: 'Value' }, { id: 'interfaceType', - title: "位置" - }, + title: '位置' + } ] const dataSettingFormRow = [ { - elCol: [ - { - type: "select", - title: "数据源类型", - id: "sourceType", - row: 24, - disabled: false, - required: true, - fontSize: 16, - options: [ - { - id: "1", - label: "oracle " - }, - { - id: "2", - label: "sqlServer" - }, - { - id: "3", - label: "mysql" - }, - ], - }, - ], + elCol: [{ + title: '数据源编码', + id: 'sourceCode', + type: 'input', + row: 24, + disabled: false, + required: true, + fontSize: 16 + }] }, { - elCol: [ - { - type: "input", - title: "实例地址", - id: "sourceUrl", - row: 24, - disabled: false, - required: true, - fontSize: 16 - }, - ], + elCol: [{ + title: '数据源名称', + id: 'sourceName', + type: 'input', + row: 24, + disabled: false, + required: true, + fontSize: 16 + + }] }, { - elCol: [ - { - type: "input", - title: "账户", - id: "loginName", - row: 8, - disabled: false, - required: true, - fontSize: 16 - }, - { - type: "input", - title: "密码", - id: "password", - row: 8, - disabled: false, - required: true, - fontSize: 16 - }, - { - type: "input", - title: "库名", - id: "dbName", - row: 8, - disabled: false, - required: true, - fontSize: 16 - }, - ], + elCol: [{ + title: 'ip', + id: 'sourceIp', + type: 'input', + changeRemind: true, + row: 12, + required: true, + fontSize: 16 + }, { + title: '端口', + id: 'sourcePort', + type: 'input', + changeRemind: true, + row: 12, + required: true, + fontSize: 16 + }] }, + { + elCol: [{ + title: '数据库名称', + id: 'dbName', + type: 'input', + changeRemind: true, + row: 12, + required: true, + fontSize: 16 + }, { + title: '数据源类型', + id: 'sourceType', + type: 'select', + changeRemind: true, + row: 12, + required: true, + fontSize: 16, + options: [ + { + id: '1', + label: 'oracle' + }, + { + id: '2', + label: 'sqlsever' + }, + { + id: '3', + label: 'mysql' + } + ] + }] + }, + { + elCol: [{ + title: '登录名', + id: 'loginName', + type: 'input', + changeRemind: true, + row: 12, + required: true, + fontSize: 16 + }, { + title: '密码', + id: 'password', + type: 'input', + changeRemind: true, + row: 12, + required: true, + fontSize: 16 + }] + }, + { + elCol: [{ + title: '服务名称', + id: 'serviceName', + type: 'input', + show: false, + changeRemind: true, + row: 12, + required: true, + fontSize: 16 + },] + } ] const config = { exploitSettingFormRow, diff --git a/src/views/applicationList/exploit/index.vue b/src/views/applicationList/exploit/index.vue index 89429a8..e6e0617 100644 --- a/src/views/applicationList/exploit/index.vue +++ b/src/views/applicationList/exploit/index.vue @@ -111,7 +111,7 @@ @click="testHandle" :type="testResult ? 'success' : 'primary'" style="margin-right: 10px" - >{{ testResult ? "测试通过" : "点击测试" }} + >{{ testResult ? '测试通过' : '点击测试' }} @@ -145,10 +146,10 @@ diff --git a/src/views/applicationList/scriptAdmin/inserterAdd.vue b/src/views/applicationList/scriptAdmin/inserterAdd.vue new file mode 100644 index 0000000..dd2a41c --- /dev/null +++ b/src/views/applicationList/scriptAdmin/inserterAdd.vue @@ -0,0 +1,206 @@ + + + + + \ No newline at end of file diff --git a/src/views/receiptsPage/compoments/baseNewForm.vue b/src/views/receiptsPage/compoments/baseNewForm.vue index 0921811..ccfb785 100644 --- a/src/views/receiptsPage/compoments/baseNewForm.vue +++ b/src/views/receiptsPage/compoments/baseNewForm.vue @@ -89,7 +89,7 @@ :disabled="row.disabled && !newFlag ? row.disabled : false" :precision="row.precisionNum ? row.precisionNum : 0" :step="row.stepNum ? row.stepNum : 1" - @change="handleChange" + @change="row.changeRemind?changeRemind(row):''" @input="(val) => limitPhoneNum(val, ruleForm, row.id)" :maxlength="row.maxlength ? row.maxlength * 1 : 50" :min="1" @@ -488,6 +488,9 @@ export default { }, computed: {}, methods: { + changeRemind() { + this.$emit('changeRemind', this.ruleForm) + }, showValueHandle() { }, limitPhoneNum(value, data, id) {