diff --git a/epmet-oper-web/src/assets/scss/common.scss b/epmet-oper-web/src/assets/scss/common.scss
index fcbacf7..1509b2a 100644
--- a/epmet-oper-web/src/assets/scss/common.scss
+++ b/epmet-oper-web/src/assets/scss/common.scss
@@ -4,7 +4,8 @@
box-sizing: border-box;
}
body {
- font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
+ font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
+ 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
font-size: $--font-size-base;
line-height: $base--line-height;
color: $--color-text-primary;
@@ -34,7 +35,7 @@ img {
}
.clearfix:before,
.clearfix:after {
- content: " ";
+ content: ' ';
display: table;
}
.clearfix:after {
@@ -80,7 +81,6 @@ img {
line-height: $base--line-height !important;
}
-
/* Reset element-ui
------------------------------ */
.aui-wrapper {
@@ -110,7 +110,6 @@ img {
}
}
-
/* Common
------------------------------ */
// 图标
@@ -145,8 +144,8 @@ img {
background-color: transparent;
}
&-add {
- > span > *[class*="el-icon-"],
- > span > *[class*="icon"] {
+ > span > *[class*='el-icon-'],
+ > span > *[class*='icon'] {
vertical-align: middle;
font-size: 18px;
margin-right: 5px;
@@ -161,7 +160,7 @@ img {
bottom: 0;
z-index: 1010;
width: 210px;
- transition: right .3s;
+ transition: right 0.3s;
&--open {
right: 0;
}
@@ -197,7 +196,6 @@ img {
}
}
-
/* Layout
------------------------------ */
.aui-wrapper {
@@ -205,7 +203,6 @@ img {
padding-top: $navbar--height;
}
-
/* Sidebar fold
------------------------------ */
.aui-sidebar--fold {
@@ -252,7 +249,6 @@ img {
}
}
-
/* Navbar
------------------------------ */
.aui-navbar {
@@ -265,7 +261,7 @@ img {
align-items: stretch;
height: $navbar--height;
background-color: $--color-primary;
- box-shadow: 0 1px 0 0 rgba(0, 0, 0, .05);
+ box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
&--colorful {
.aui-navbar__body {
background-color: transparent;
@@ -316,7 +312,7 @@ img {
position: relative;
width: $sidebar--width;
height: $navbar--height;
- transition: width .3s;
+ transition: width 0.3s;
}
&__brand {
display: flex;
@@ -331,7 +327,7 @@ img {
white-space: nowrap;
color: #fff;
overflow: hidden;
- transition: width .3s;
+ transition: width 0.3s;
&-lg,
&-mini {
max-width: 100%;
@@ -402,7 +398,7 @@ img {
width: auto;
font-size: 12px;
margin: 0 0 0 5px;
- transition: transform .3s;
+ transition: transform 0.3s;
}
}
}
@@ -415,14 +411,14 @@ img {
}
}
&__search {
- > *[class*="el-icon-"],
- > *[class*="icon"] {
+ > *[class*='el-icon-'],
+ > *[class*='icon'] {
display: inline-block;
vertical-align: middle;
}
&-txt {
width: 0;
- transition: width .3s, margin-left .3s;
+ transition: width 0.3s, margin-left 0.3s;
&.is-show {
width: 210px;
margin-left: 8px;
@@ -453,7 +449,6 @@ img {
}
}
-
/* Sidebar
------------------------------ */
.aui-sidebar {
@@ -464,9 +459,9 @@ img {
z-index: 1020;
width: $sidebar--width;
background-color: #fff;
- box-shadow: 1px 0 2px 0 rgba(0, 0, 0, .05);
+ box-shadow: 1px 0 2px 0 rgba(0, 0, 0, 0.05);
overflow: hidden;
- transition: width .3s;
+ transition: width 0.3s;
&--dark {
background-color: $sidebar--background-color-dark;
.aui-sidebar__menu,
@@ -499,12 +494,12 @@ img {
padding-bottom: 15px;
overflow-x: hidden;
overflow-y: scroll;
- transition: width .3s;
+ transition: width 0.3s;
}
&__menu {
width: $sidebar--width;
border-right: 0;
- transition: width .3s;
+ transition: width 0.3s;
.el-menu-item,
.el-submenu__title {
height: $sidebar--menu-item-height;
@@ -519,11 +514,10 @@ img {
text-align: center;
font-size: 16px;
color: inherit !important;
- transition: font-size .3s;
+ transition: font-size 0.3s;
}
}
-
/* Content
------------------------------ */
.aui-content {
@@ -535,13 +529,15 @@ img {
margin-left: $sidebar--width;
min-height: calc(100vh - #{$navbar--height});
background-color: $content--background-color;
- transition: margin-left .3s;
+ transition: margin-left 0.3s;
}
> .aui-card--fill > .el-card__body {
min-height: calc(#{$content--fill-height} - 2px);
}
> .aui-card--fill > .el-card__header + .el-card__body {
- min-height: calc(#{$content--fill-height} - #{$content--card-header-height} - 2px);
+ min-height: calc(
+ #{$content--fill-height} - #{$content--card-header-height} - 2px
+ );
}
&--tabs {
padding: $content--tabs-header-height 0 0;
@@ -574,9 +570,9 @@ img {
z-index: 930;
padding: 0 55px 0 15px;
margin: 0;
- box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
background-color: #fff;
- transition: left .3s;
+ transition: left 0.3s;
> .el-tabs__nav-wrap {
margin-bottom: 0;
&:after {
@@ -646,10 +642,15 @@ img {
min-height: calc(#{$content--fill-height-tabs} - 2px);
}
> .aui-card--fill > .el-card__header + .el-card__body {
- min-height: calc(#{$content--fill-height-tabs} - #{$content--card-header-height} - 2px);
+ min-height: calc(
+ #{$content--fill-height-tabs} - #{$content--card-header-height} -
+ 2px
+ );
}
&.is-iframe {
- height: calc(#{$content--fill-height-tabs} + #{$content--padding * 2});
+ height: calc(
+ #{$content--fill-height-tabs} + #{$content--padding * 2}
+ );
margin: -$content--padding;
min-height: auto;
> .aui-card--fill {
@@ -668,7 +669,10 @@ img {
background-color: #fff;
}
> .aui-card--fill > .el-card__header + .el-card__body {
- height: calc(#{$content--fill-height-tabs} - #{$content--card-header-height} - 2px);
+ height: calc(
+ #{$content--fill-height-tabs} - #{$content--card-header-height} -
+ 2px
+ );
}
}
}
@@ -692,10 +696,13 @@ img {
}
}
+.el-loading-mask {
+ z-index: 5001 !important;
+}
/* Page
------------------------------ */
-*[class*="aui-page__"] {
+*[class*='aui-page__'] {
padding-top: 0;
.aui-content {
min-height: auto;
@@ -707,7 +714,9 @@ img {
min-height: calc(100vh - #{$content--padding * 2} - 2px);
}
> .aui-card--fill > .el-card__header + .el-card__body {
- min-height: calc(100vh - #{$content--padding * 2} - #{$content--card-header-height} - 2px);
+ min-height: calc(
+ 100vh - #{$content--padding * 2} - #{$content--card-header-height} - 2px
+ );
}
}
}
diff --git a/epmet-oper-web/src/js/columns/columns.js b/epmet-oper-web/src/js/columns/columns.js
index 13d439d..7c489e4 100644
--- a/epmet-oper-web/src/js/columns/columns.js
+++ b/epmet-oper-web/src/js/columns/columns.js
@@ -1,23 +1,27 @@
+// 客户管理
+import CustomerList from './customer/manage/customer'
+import RegisterInfo from './customer/init/customer'
+
+import miniProManage from './customer/miniProManage'
import Temp from './code/temp'
import CommitCode from './code/commitCode'
import OperHistory from './code/operHistory'
import Category from './code/category'
-import RegisterInfo from './customer/customer'
-import MiniProManage from './customer/miniProManage'
-import Version from './customer/version'
+// 产品配置
import CustomizedFunction from './miniPro/customizedFunction'
export default {
- Temp: Temp, // 代码上传——模板list
- CommitCodeList: CommitCode['list'], // 代码上传——已上传的代码列表
- CommitCodeForm: CommitCode['form'], // 代码上传——代码form
- OperHistory: OperHistory, // 代码上传——操作历史
- Category: Category, // 代码上传——审核项——类目
-
+ CustomerList: CustomerList['list'], // 客户管理——客户管理——客户列表
+ ConfigForm: CustomerList['configForm'], // 客户管理——客户管理——配置
RegisterInfo: RegisterInfo, // 客户管理——客户注册信息
- MiniProManage: MiniProManage, // 客户管理——客户小程序管理
- Version: Version, // 客户管理——基础库
+
+ MiniProList: miniProManage, // 客户管理——代小程序管理——客户小程序列表
+ Temp: Temp, // 客户管理——代小程序管理——版本管理——模板list
+ CommitCodeList: CommitCode['list'], // 客户管理——代小程序管理——版本管理——代码上传——已上传的代码列表
+ CommitCodeForm: CommitCode['form'], // 客户管理——代小程序管理——版本管理——代码上传——代码form
+ OperHistory: OperHistory, // 客户管理——代小程序管理——版本管理——操作历史
+ Category: Category, // 客户管理——代小程序管理——类目
// 小程序管理
CustomizedFunction: CustomizedFunction // 定制功能
diff --git a/epmet-oper-web/src/js/columns/customer/customer.js b/epmet-oper-web/src/js/columns/customer/init/customer.js
similarity index 78%
rename from epmet-oper-web/src/js/columns/customer/customer.js
rename to epmet-oper-web/src/js/columns/customer/init/customer.js
index 8b6178b..10a5598 100644
--- a/epmet-oper-web/src/js/columns/customer/customer.js
+++ b/epmet-oper-web/src/js/columns/customer/init/customer.js
@@ -17,27 +17,15 @@ export default [
},
{
key: 'province',
- title: '省',
- display: ['formA', 'formU', 'table', 'model'],
- fixed: false,
- block: true,
- width: 120
- },
- {
- key: 'city',
- title: '市',
- display: ['formA', 'formU', 'table', 'model'],
+ title: '组织地区',
+ display: ['table', 'model'],
fixed: false,
block: true,
- width: 120
- },
- {
- key: 'district',
- title: '区',
- display: ['formA', 'formU', 'table', 'model'],
- fixed: false,
- block: true,
- width: 120
+ provinceKey: 'province',
+ cityKey: 'city',
+ countyKey: 'district',
+ format: 'address',
+ width: 150
},
// {
// key: 'location',
@@ -68,7 +56,7 @@ export default [
title: '居民端',
display: ['formA', 'formU', 'table', 'model'],
block: true,
- format: function (cellValue, index) {
+ format: (cellValue, index) => {
if (cellValue === 1) {
return '已授权'
} else if (cellValue === 0) {
@@ -84,7 +72,7 @@ export default [
title: '工作端',
display: ['formA', 'formU', 'table', 'model'],
block: true,
- format: function (cellValue, index) {
+ format: (cellValue, index) => {
if (cellValue === 1) {
return '已授权'
} else if (cellValue === 0) {
@@ -100,7 +88,7 @@ export default [
title: '初始化',
display: ['formA', 'formU', 'table', 'model'],
block: true,
- format: function (cellValue, index) {
+ format: (cellValue, index) => {
if (cellValue === 1) {
return '已初始化'
} else if (cellValue === 0) {
diff --git a/epmet-oper-web/src/js/columns/customer/manage/customer.js b/epmet-oper-web/src/js/columns/customer/manage/customer.js
new file mode 100644
index 0000000..8c7f53e
--- /dev/null
+++ b/epmet-oper-web/src/js/columns/customer/manage/customer.js
@@ -0,0 +1,174 @@
+export default {
+ list: [
+ {
+ key: 'logo',
+ title: 'Logo',
+ display: ['table', 'model'],
+ fixed: false,
+ block: true,
+ width: 80,
+ tableType: 'image'
+ },
+ {
+ key: 'customerName',
+ title: '客户名称',
+ display: ['formA', 'formU', 'table', 'model'],
+ type: 'input',
+ rule: [
+ {
+ required: true,
+ message: '请输入客户名称',
+ trigger: 'blur'
+ }
+ ],
+ fixed: false,
+ block: true,
+ width: 100
+ },
+ {
+ key: 'organizationLevels',
+ title: '组织级别',
+ display: ['table', 'model'],
+ fixed: false,
+ block: true,
+ width: 50,
+ format: (cellValue, index) => {
+ // 客户组织级别:0.省级,1市级,2.区县级,3.乡镇街道级 字典表key:organizationlevel
+ if (cellValue === '0') {
+ return '省级'
+ } else if (cellValue === '1') {
+ return '市级'
+ } else if (cellValue === '2') {
+ return '区县级'
+ } else if (cellValue === '3') {
+ return '乡镇街道级'
+ } else {
+ return '未知'
+ }
+ }
+ },
+ {
+ key: 'province',
+ title: '组织地区',
+ display: ['table', 'model'],
+ fixed: false,
+ block: true,
+ provinceKey: 'province',
+ cityKey: 'city',
+ countyKey: 'county',
+ format: 'address',
+ width: 150
+ },
+ {
+ key: 'gridNumber',
+ title: '网格数',
+ display: ['table', 'model'],
+ block: true,
+ width: 60
+ },
+ {
+ key: 'validityTime',
+ title: '有效期',
+ display: ['table', 'model'],
+ block: true,
+ width: 60
+ },
+ {
+ key: 'rootManageName',
+ title: '管理员',
+ display: ['formA', 'formU', 'table', 'model'],
+ type: 'input',
+ rule: [
+ {
+ required: true,
+ message: '请输入管理员姓名',
+ trigger: 'blur'
+ }
+ ],
+ block: true,
+ width: 60
+ },
+ {
+ key: 'rootManagePhone',
+ title: '联系方式',
+ display: ['formA', 'formU', 'table', 'model'],
+ type: 'input',
+ rule: [
+ {
+ required: true,
+ message: '请输入管理员联系方式',
+ trigger: 'blur'
+ }
+ ],
+ block: true,
+ width: 60
+ }
+ ],
+ configForm: [
+ {
+ key: 'customerName',
+ title: '客户名称',
+ display: ['formA', 'formU', 'table', 'model'],
+ type: 'input',
+ rule: [
+ {
+ required: true,
+ message: '请输入客户名称',
+ trigger: 'blur'
+ }
+ ],
+ fixed: false,
+ block: true,
+ width: 100
+ },
+ {
+ key: 'validityTime',
+ title: '有效期',
+ display: ['formA', 'formU', 'table', 'model'],
+ type: 'date',
+ rule: [
+ {
+ required: true,
+ message: '请选择有效期',
+ trigger: 'blur'
+ }
+ ],
+
+ fixed: false,
+ block: true,
+ width: 100
+ },
+ {
+ key: 'createGridNumber',
+ title: '已创建网格数',
+ display: ['formA', 'formU', 'table', 'model'],
+ type: 'span',
+ rule: [
+ {
+ required: true,
+ message: '请输入有效期',
+ trigger: 'blur'
+ }
+ ],
+ fixed: false,
+ block: true,
+ width: 100
+ },
+ {
+ key: 'gridNumber',
+ title: '最大网格数',
+ display: ['formA', 'formU', 'table', 'model'],
+ type: 'counter',
+ rule: [
+ {
+ required: true,
+ message: '请输入最大网格数',
+ trigger: 'blur'
+ }
+ ],
+ fixed: false,
+ block: true,
+ width: 100
+ }
+ ]
+}
diff --git a/epmet-oper-web/src/js/columns/customer/miniProManage.js b/epmet-oper-web/src/js/columns/customer/miniProManage.js
index a4d6425..ec581b5 100644
--- a/epmet-oper-web/src/js/columns/customer/miniProManage.js
+++ b/epmet-oper-web/src/js/columns/customer/miniProManage.js
@@ -40,6 +40,22 @@ export default [
}
}
},
+ {
+ key: 'miniName',
+ title: '小程序名称',
+ type: 'radio',
+ rule: [
+ {
+ required: true,
+ message: '请输入小程序名称',
+ trigger: 'blur'
+ }
+ ],
+ display: ['formA', 'formU', 'table', 'model'],
+ fixed: false,
+ block: true,
+ width: 120
+ },
{
key: 'appId',
title: 'appId',
diff --git a/epmet-oper-web/src/js/columns/customer/version.js b/epmet-oper-web/src/js/columns/customer/version.js
deleted file mode 100644
index fcd4032..0000000
--- a/epmet-oper-web/src/js/columns/customer/version.js
+++ /dev/null
@@ -1,20 +0,0 @@
-export default [
- {
- key: 'percentage',
- title: '百分比',
- type: 'select',
- display: ['formA', 'formU', 'table', 'model'],
- fixed: false,
- block: false,
- width: 120
- },
- {
- key: 'version',
- title: '版本',
- type: 'radio',
- display: ['formA', 'formU', 'table', 'model'],
- fixed: false,
- block: false,
- width: 80
- }
-]
diff --git a/epmet-oper-web/src/js/columns/miniPro/customizedFunction.js b/epmet-oper-web/src/js/columns/miniPro/customizedFunction.js
index c099d3e..974529c 100644
--- a/epmet-oper-web/src/js/columns/miniPro/customizedFunction.js
+++ b/epmet-oper-web/src/js/columns/miniPro/customizedFunction.js
@@ -14,9 +14,9 @@ export default [
fixed: false,
block: true,
format: (cellValue, index) => {
- if (cellValue === 0) {
+ if (cellValue === '0') {
return '下架'
- } else if (cellValue === 1) {
+ } else if (cellValue === '1') {
return '上架'
} else {
return '未知'
diff --git a/epmet-oper-web/src/js/service.js b/epmet-oper-web/src/js/service.js
index 7b689db..ccab78e 100644
--- a/epmet-oper-web/src/js/service.js
+++ b/epmet-oper-web/src/js/service.js
@@ -69,6 +69,13 @@ export default {
case 'decimal': // 数字格式化
return Number(rowData[column.key].toFixed(column.num))
break
+ case 'address': // 地址组合
+ let address =
+ rowData[column.provinceKey] +
+ rowData[column.cityKey] +
+ rowData[column.countyKey]
+ return address
+ break
default:
return column.format(rowData[column.key])
}
diff --git a/epmet-oper-web/src/views/components/CForm.vue b/epmet-oper-web/src/views/components/CForm.vue
index 2e4257a..6a8f672 100644
--- a/epmet-oper-web/src/views/components/CForm.vue
+++ b/epmet-oper-web/src/views/components/CForm.vue
@@ -107,10 +107,10 @@
diff --git a/epmet-oper-web/src/views/modules/customer/customize/ConfigEdit.vue b/epmet-oper-web/src/views/modules/customer/customize/ConfigEdit.vue
index 8f2c71b..7d7ea21 100644
--- a/epmet-oper-web/src/views/modules/customer/customize/ConfigEdit.vue
+++ b/epmet-oper-web/src/views/modules/customer/customize/ConfigEdit.vue
@@ -9,44 +9,82 @@
:rules="dataRule"
ref="dataForm"
:label-width="'120px'">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ {{dataForm.customizedName}}
+
+
+
+
+
+
+
+
+
![]()
+
+
+
+
+
+
+
+ 恢复默认
+
+
+
+
+
+
+
+
![]()
+
+
+
+
+
+
+
+
+ 恢复默认
+
+
+
+
@@ -67,9 +105,12 @@ export default {
dataForm: {
customerId: '',
functionId: '',
- functionName: '',
- iconLargeImg: '',
- iconSmallImg: ''
+ customizedName: '', // 默认名称
+ functionName: '', // 自定义名称
+ defaultLargeImg: '', // 默认大图标
+ iconLargeImg: '', // 自定义大图标
+ defaultSmallImg: '', // 默认小图标
+ iconSmallImg: ''// 自定义小图标
},
uploadUlr: window.SITE_CONFIG['apiURL'] + '/oss/file/function/upload'
@@ -105,6 +146,15 @@ export default {
})
},
+ // 重置大图标
+ resetLargeImg () {
+ this.dataForm.iconLargeImg = this.dataForm.defaultLargeImg
+ },
+ // 重置小图标
+ resetSmallImg () {
+ this.dataForm.iconSmallImg = this.dataForm.defaultSmallImg
+ },
+
// 上传大图标成功
handleImgSuccess (res, file, type) {
if (res.code === 0 && res.msg === 'success') {
@@ -137,9 +187,16 @@ export default {
if (!valid) {
this.$message.error('表单验证失败!')
} else {
- console.log(this.dataForm)
- const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/customerfunctiondetail/updatecustomerfunction'
- // const url = '/oper/customize/customerfunctiondetail/updatecustomerfunction'
+ if (this.dataForm.functionName.length > 5) {
+ this.$message.warning('功能名称长度不能大于5个字!')
+ return false
+ } else if (this.dataForm.functionName.length < 2) {
+ this.$message.warning('功能名称长度不能小于2个字!')
+ return false
+ }
+ // console.log(this.dataForm)
+ // const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/customerfunctiondetail/updatecustomerfunction'
+ const url = '/oper/customize/customerfunctiondetail/updatecustomerfunction'
window.app.ajax.post(url, this.dataForm,
(data, rspMsg) => {
this.$message({
@@ -169,7 +226,7 @@ export default {
width: 28px;
}
.item_width_1 {
- width: 300px;
+ width: 200px;
}
.item_width_2 {
width: 700px;
@@ -177,4 +234,8 @@ export default {
.block {
display: block;
}
+.btn_reset {
+ vertical-align: bottom;
+ margin-left: 10px;
+}
diff --git a/epmet-oper-web/src/views/modules/customer/customize/ConfigItem.vue b/epmet-oper-web/src/views/modules/customer/customize/ConfigItem.vue
index 20d2301..fd4d5b3 100644
--- a/epmet-oper-web/src/views/modules/customer/customize/ConfigItem.vue
+++ b/epmet-oper-web/src/views/modules/customer/customize/ConfigItem.vue
@@ -3,7 +3,11 @@
取消返回
+
设置业务域名
{{customerName}}
@@ -40,13 +44,13 @@
header-align="center"
align="center"
width="150"
- prop="customizedName">
+ prop="functionName">
+ prop="functionExplain">
@@ -54,7 +58,7 @@
header-align="center"
align="center"
width="150"
- prop="customizedName">
+ prop="iconLargeImg">
+ prop="iconSmallImg">
+ width="50">
- 上架
- 下架
修改
+ @click.stop="editShow( scope.$index)">修改
@@ -147,7 +151,6 @@
element-loading-spinner="el-icon-loading"
element-loading-background="rgba(255, 255, 255, 0.8)"
:row-style="{height:'30px'}"
- :cell-style="{padding:'5px'}"
style="width: 100%;margin-top:10px"
:height="tableHeight2"
ref="ref_customer_table">
@@ -182,7 +185,7 @@
采集
+ @click.stop="addFunction(scope.row)">采集
@@ -196,22 +199,18 @@
@ok="upOrDownDiaOk">
+ v-model="upOrDownForm.reason">
-
-
灰度的百分比 1 ~ 100 的整数,控制发布的节奏,避免一上线就影响到所有的用户
+ @editDiaOK="editDiaOK">
@@ -253,7 +252,8 @@ export default {
functionId: '',
shoppingStatus: '',
reason: ''
- }
+ },
+ optionType: '' // 1 上架 /下架 2采集
}
},
@@ -265,10 +265,10 @@ export default {
},
computed: {
tableHeight1 () {
- return (this.clientHeight - 220) / 2
+ return (this.clientHeight - 220) / 2 + 50
},
tableHeight2 () {
- return (this.clientHeight - 220) / 2
+ return (this.clientHeight - 220) / 2 - 50
},
...mapGetters(['clientHeight']),
dataRule () {
@@ -297,6 +297,24 @@ export default {
this.customerName = customerName
this.loadTableData()
},
+ // 设置业务域名
+ setDomainName () {
+ this.startLoading()
+ let params = {
+ customerId: this.customerId
+ }
+ const url = '/oper/customize/functioncustomized/customerdomainname'
+ // const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/functioncustomized/customerdomainname'
+ window.app.ajax.post(url, params,
+ (data, rspMsg) => {
+ this.endLoading()
+ this.$message.success('设置成功')
+ },
+ (rspMsg, data) => {
+ this.endLoading()
+ this.$message.error(rspMsg)
+ })
+ },
// 获取列表数据
loadTableData () {
@@ -304,8 +322,8 @@ export default {
let params = {
customerId: this.customerId
}
- // const url = '/oper/customize/customerfunctiondetail/customerfunctionlist'
- const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/customerfunctiondetail/customerfunctionlist'
+ const url = '/oper/customize/customerfunctiondetail/customerfunctionlist'
+ // const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/customerfunctiondetail/customerfunctionlist'
window.app.ajax.post(url, params,
(data, rspMsg) => {
this.$nextTick(() => {
@@ -313,7 +331,7 @@ export default {
this.functionList = data.functionList
this.customizedList.forEach(element => {
- element.shoppingStatusShow = element.shoppingStatus === '0' ? element.shoppingStatusShow = '下架' : '上架'
+ element.shoppingStatusShow = element.shoppingStatus === 0 ? element.shoppingStatusShow = '下架' : '上架'
})
})
},
@@ -324,9 +342,10 @@ export default {
this.loading = false
},
- // 上架
+ // 上架/下架
upOrDown (functionId, shoppingStatus) {
- this.upOrDownDia.title = shoppingStatus === '0' ? '下架原因' : '上架原因'
+ this.optionType = '1'
+ this.upOrDownDia.title = shoppingStatus === 0 ? '下架原因' : '上架原因'
this.upOrDownForm = {
customerId: this.customerId,
functionId: functionId,
@@ -340,14 +359,22 @@ export default {
this.upOrDownDia.visible = false
},
upOrDownDiaOk () {
- this.startLoading()
- this.upOrDownForm.reason = this.upOrDownForm.reason
- const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/customerfunctiondetail/updateshoppingstatus'
+ let url = ''
// const url = '/oper/customize/customerfunctiondetail/updateshoppingstatus'
+ if (this.optionType === '1') {
+ // url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/customerfunctiondetail/updateshoppingstatus'
+ url = '/oper/customize/customerfunctiondetail/updateshoppingstatus'
+ } else {
+ // url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/customerfunctiondetail/customerfunctioncollect'
+ url = '/oper/customize/customerfunctiondetail/customerfunctioncollect'
+ }
+ this.startLoading()
+
window.app.ajax.post(url, this.upOrDownForm,
(data, rspMsg) => {
this.$message.success('操作成功')
this.upOrDownDia.visible = false
+ this.loadTableData()
},
(rspMsg, data) => {
this.$message.error(rspMsg)
@@ -355,19 +382,23 @@ export default {
this.endLoading()
},
// 编辑
- editShow (row) {
- this.$refs['ref_config_edit'].init(row)
+ editShow (index) {
+ this.$refs['ref_config_edit'].init(this.customizedList[index])
},
editDiaOK () {
this.loadTableData()
},
- editDiaCancel () {
-
- },
// 采集
- addFunction (functionId) {
-
+ addFunction (row) {
+ this.optionType = '2'
+ this.upOrDownDia.title = '采集原因'
+ this.upOrDownForm = {
+ customerId: row.customerId,
+ functionId: row.functionId,
+ reason: ''
+ }
+ this.upOrDownDia.visible = true
},
// 上传大图标成功
@@ -401,8 +432,8 @@ export default {
// 上移
moveUp (index) {
- console.log(index)
if (index > 0) {
+ console.log(this.customizedList)
this.startLoading()
let resultList = []
let one = {}
@@ -426,19 +457,20 @@ export default {
obj.displayOrder = i
resultList.push(obj)
}
-
- const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/customerfunctiondetail/updatedisplayorder'
- // const url = '/oper/customize/customerfunctiondetail/updatedisplayorder'
- window.app.ajax.post(url, resultList,
- (data, rspMsg) => {
- // this.$message.success('操作成功')
-
- },
- (rspMsg, data) => {
- this.$message.error(rspMsg)
- })
- this.endLoading()
}
+ console.log(resultList)
+
+ // const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/customerfunctiondetail/updatedisplayorder'
+ // const url = '/oper/customize/customerfunctiondetail/updatedisplayorder'
+ // window.app.ajax.post(url, resultList,
+ // (data, rspMsg) => {
+ // // this.$message.success('操作成功')
+ // this.loadTableData()
+ // },
+ // (rspMsg, data) => {
+ // this.$message.error(rspMsg)
+ // })
+ this.endLoading()
} else {
this.$message.warning('无法上移')
diff --git a/epmet-oper-web/src/views/modules/customer/manage/ConfigForm.vue b/epmet-oper-web/src/views/modules/customer/manage/ConfigForm.vue
new file mode 100644
index 0000000..4a83b91
--- /dev/null
+++ b/epmet-oper-web/src/views/modules/customer/manage/ConfigForm.vue
@@ -0,0 +1,135 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/epmet-oper-web/src/views/modules/customer/manage/CustomerList.vue b/epmet-oper-web/src/views/modules/customer/manage/CustomerList.vue
new file mode 100644
index 0000000..0b5f2f7
--- /dev/null
+++ b/epmet-oper-web/src/views/modules/customer/manage/CustomerList.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/epmet-oper-web/src/views/modules/customer/manage/EditForm.vue b/epmet-oper-web/src/views/modules/customer/manage/EditForm.vue
new file mode 100644
index 0000000..a426553
--- /dev/null
+++ b/epmet-oper-web/src/views/modules/customer/manage/EditForm.vue
@@ -0,0 +1,173 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/epmet-oper-web/src/views/modules/customer/miniProAgent/BasicInfo.vue b/epmet-oper-web/src/views/modules/customer/miniProAgent/BasicInfo.vue
index 6a235b3..7be00ff 100644
--- a/epmet-oper-web/src/views/modules/customer/miniProAgent/BasicInfo.vue
+++ b/epmet-oper-web/src/views/modules/customer/miniProAgent/BasicInfo.vue
@@ -1,94 +1,124 @@
+
-
+ @ok="setDomains">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
-
- 当小程序第一次提交审核且类目包含社交-社区/论坛、社交-笔记、社交-问答其中之一时需填写UGC场景信息
-
-
-
- 不涉及用户生成内容
- 用户资料
- 图片
- 视频
- 文本
- 其他
-
-
-
-
-
-
- 当scene选其他时的说明,不超时256字
-
-
-
- 使用平台建议的内容安全API
- 使用其他的内容审核产品
- 通过人工审核把关
- 未做内容审核把关
-
-
-
-
-
- 无
- 有
-
-
-
-
-
- 说明当前对UGC内容的审核机制,不超过256字
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
@@ -104,39 +134,14 @@ export default {
data () {
return {
loading: false,
- feedbackShow: false, // 是否显示反馈信息,父组件传
- codeId: '', // 上传代码id,父组件传
+ customerId: '', // 客户id,父组件传
+ clientType: '', // 客户端类型,父组件传
diaVisible: false,
-
- // tab页相关
- activeName: 'desc',
-
- sceneDisabled: true, // 场景是否禁用
- sceneOtherDisabled: true, // 其他场景是否禁用
- dataForm: {
- versionDesc: '', // 小程序版本说明和功能解释
-
- ugcDeclare: { // 用户生成内容场景(UGC)信息安全声明
- scene: [1, 2, 4], // UGC场景 0,不涉及用户生成内容, 1.用户资料,2.图片,3.视频,4.文本,5其他, 可多选,当scene填0时无需填写下列字段
- otherSceneDesc: '', // 当scene选其他时的说明,不超时256字
- method: [2], // 内容安全机制 1.使用平台建议的内容安全API,2.使用其他的内容审核产品,3.通过人工审核把关,4.未做内容审核把关
- hasAuditTeam: 1, // 是否有审核团队, 0.无,1.有,默认0
- auditDesc: '严重色情内容、轻微色情内容、涉政负面内容、严重辱骂、涉政暴恐(恶搞领导人、特殊标识、特殊着装、枪支、利器、血腥场景)' // 说明当前对UGC内容的审核机制,不超过256字
- }
- },
-
- // 上传素材
- dialogImageUrl: 'https://epmet-cloud.elinkservice.cn/api/third/code/mediaupload',
- upload_url: '', // 上传URL
- upload_name: '', // 图片或视频名称
- picList: [], // 预览列表
- videoList: [], // 预览列表
- feedbackPicList: [], // 预览列表
-
- // 弹出框相关
- dialog: {
- title: '',
- visible: false
+ formData: {
+ requestDomain: [], // request 合法域名
+ wsRequestDomain: [], // socket 合法域名
+ uploadDomain: [], // uploadFile 合法域名
+ downloadDomain: [] // downloadFile 合法域名
}
}
},
@@ -152,272 +157,94 @@ export default {
...mapGetters(['clientHeight'])
},
methods: {
- initData (codeId, feedbackShow) {
- this.codeId = codeId
- this.feedbackShow = feedbackShow
+ initData (customerId, clientType) {
+ this.clientType = clientType
+ this.customerId = customerId
this.diaVisible = true
- },
- reseatDataForm () {
- this.dataForm = {
- isSpeed: false, // 是否加急
- versionDesc: '', // 小程序版本说明和功能解释
- ugcDeclare: { // 用户生成内容场景(UGC)信息安全声明
- scene: [1, 2, 4], // UGC场景 0,不涉及用户生成内容, 1.用户资料,2.图片,3.视频,4.文本,5其他, 可多选,当scene填0时无需填写下列字段
- otherSceneDesc: '', // 当scene选其他时的说明,不超时256字
- method: [2], // 内容安全机制 1.使用平台建议的内容安全API,2.使用其他的内容审核产品,3.通过人工审核把关,4.未做内容审核把关
- hasAuditTeam: 1, // 是否有审核团队, 0.无,1.有,默认0
- auditDesc: '严重色情内容、轻微色情内容、涉政负面内容、严重辱骂、涉政暴恐(恶搞领导人、特殊标识、特殊着装、枪支、利器、血腥场景)' // 说明当前对UGC内容的审核机制,不超过256字
- }
- }
- },
- tabClick (tab) {
- if (tab.name === 'item') {
- this.$refs['ref_submit_item'].initData(this.codeId)
- }
- if (tab.name === 'ugc') {
- this.scene0(false)
- }
- },
- removeVedio (file) {
- this.videoList.splice(this.videoList.findIndex(item => item.uid === file.uid), 1)
- // console.log(this.videoList)
- },
- removePic (file) {
- this.picList.splice(this.picList.findIndex(item => item.uid === file.uid), 1)
- // console.log(this.picList)
- },
- removeFeedbackPic (file) {
- this.feedbackPicList.splice(this.feedbackPicList.findIndex(item => item.uid === file.uid), 1)
- // console.log(this.feedbackPicList)
- },
- exceedPic: () => {
- this.$message({
- message: '最多上传5张预览图片',
- type: 'warning'
- })
+ this.getDomain()
},
- exceedVedio: () => {
- this.$message({
- message: '最多上传2个预览视频',
- type: 'warning'
- })
- },
- exceedFeedbackPic: () => {
- this.$message({
- message: '最多上传5张反馈图片',
- type: 'warning'
- })
- },
- // 上传视频
- uploadVedio: (params) => {
- let file = params.file
- let fileType = file.type
- let isVideo = fileType.indexOf('video') !== -1
- let fileUrl = this.$refs.uploadVedio.uploadFiles[this.videoList.length].url
- file.url = fileUrl
- this.videoList.push(file)
-
- let isLt20M = file.size / 1024 / 1024 < 20
- if (!isLt20M) {
- this.$message({
- message: '上传视频大小不能超过 20MB!',
- type: 'warning'
- })
- this.videoList.pop()
- return
- }
- let isMP4 = file.type === 'video/mp4'
- if (!isVideo || !isMP4) {
- this.$message({
- message: '请选择mp4格式的视频!',
- type: 'warning'
- })
- this.videoList.pop()
- return
- }
+ // 获取Domain
+ getDomain () {
this.startLoading()
- this.upload_name = 'file_video[]'
- let formData = new FormData()
-
- formData.append('type', fileType)
- formData.append('media', file)
- formData.append('codeId', this.codeId)
- window.app.ajax.post2(this.dialogImageUrl, formData,
+ // const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/third/code/getdomain'
+ const url = 'https://epmet-cloud.elinkservice.cn/api/third/code/getdomain'
+ const param = {
+ customerId: this.customerId,
+ clientType: this.clientType
+ }
+ window.app.ajax.post(url, param,
(data, rspMsg) => {
- this.endLoading()
- if (data.code === 0) {
- this.videoList[this.videoList.length - 1].mediaid = data.data
- } else {
- this.videoList.pop()
- this.$message.error(rspMsg)
+ this.formData = data
+ if (this.formData.requestDomain.length === 0) {
+ this.formData.requestDomain.push('')
+ }
+ if (this.formData.wsRequestDomain.length === 0) {
+ this.formData.wsRequestDomain.push('')
+ }
+ if (this.formData.uploadDomain.length === 0) {
+ this.formData.uploadDomain.push('')
+ }
+ if (this.formData.downloadDomain.length === 0) {
+ this.formData.downloadDomain.push('')
}
+ this.endLoading()
},
(rspMsg, data) => {
- this.videoList.pop()
this.endLoading()
this.$message.error(rspMsg)
})
},
- // 上传图片
- uploadPic: (params) => {
- let file = params.file
- let fileType = file.type
- let isImage = fileType.indexOf('image') !== -1
- let fileUrl = this.$refs.uploadPic.uploadFiles[this.picList.length].url
- file.url = fileUrl
- this.picList.push(file)
-
- let isLt5M = file.size / 1024 / 1024 < 5
- if (!isLt5M) {
- this.$message({
- message: '上传图片大小不能超过 5MB!',
- type: 'warning'
- })
- this.picList.pop()
- return
- }
- if (!isImage) {
- this.$message({
- message: '请选择图片!',
- type: 'warning'
- })
- this.picList.pop()
- return
- }
- // console.log(this.picList)
+ addRequest (domainType) {
+ this.formData[domainType].push('')
+ },
+ delRequest (index, domainType) {
+ this.formData[domainType].splice(index, 1)
+ },
- this.upload_name = 'file_img[]'
- let formData = new FormData()
+ setDomains () {
this.startLoading()
- formData.append('type', fileType)
- formData.append('media', file)
- formData.append('codeId', this.codeId)
- window.app.ajax.post2(this.dialogImageUrl, formData,
- (data, rspMsg) => {
- this.endLoading()
- if (data.code === 0) {
- this.picList[this.picList.length - 1].mediaid = data.data
- } else {
- this.picList.pop()
- this.$message.error(rspMsg)
- }
- },
- (rspMsg, data) => {
- this.picList.pop()
- this.endLoading()
- this.$message.error(rspMsg)
- }, { headers: { 'Content-Type': 'multipart/form-data' } })
- },
- // 上传反馈图片
- uploadFeedbackPic: (params) => {
- let file = params.file
- let fileType = file.type
- let isImage = fileType.indexOf('image') !== -1
- let fileUrl = this.$refs.uploadFeedbackPic.uploadFiles[this.feedbackPicList.length].url
- file.url = fileUrl
- this.feedbackPicList.push(file)
+ // const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/third/setting/modifydomain'
+ const url = 'https://epmet-cloud.elinkservice.cn/api/third/setting/modifydomain'
+ let requestDomain = this.formData.requestDomain.filter(item => item !== '')
+ let wsRequestDomain = this.formData.wsRequestDomain.filter(item => item !== '')
+ let uploadDomain = this.formData.uploadDomain.filter(item => item !== '')
+ let downloadDomain = this.formData.downloadDomain.filter(item => item !== '')
- let isLt2M = file.size / 1024 / 1024 < 2
- if (!isLt2M) {
- this.$message({
- message: '上传图片大小不能超过 2MB!',
- type: 'warning'
- })
- this.feedbackPicList.pop()
- return
- }
- if (!isImage) {
- this.$message({
- message: '请选择图片!',
- type: 'warning'
- })
- this.feedbackPicList.pop()
- return
- }
+ const param = {
+ customerId: this.customerId,
+ clientType: this.clientType,
+ requestDomain: requestDomain,
+ wsRequestDomain: wsRequestDomain,
+ uploadDomain: uploadDomain,
+ downloadDomain: downloadDomain
- this.upload_name = 'file_img[]'
- let formData = new FormData()
+ }
+ console.log(param)
- formData.append('type', fileType)
- formData.append('media', file)
- formData.append('codeId', this.codeId)
- this.startLoading()
- window.app.ajax.post2(this.dialogImageUrl, formData,
+ window.app.ajax.post(url, param,
(data, rspMsg) => {
this.endLoading()
- if (data.code === 0) {
- this.feedbackPicList[this.feedbackPicList.length - 1].mediaid = data.data
- } else {
- this.feedbackPicList.pop()
- this.$message.error(rspMsg)
- }
+ this.$message.success('保存成功')
+
+ this.diaVisible = false
},
(rspMsg, data) => {
- this.feedbackPicList.pop()
this.endLoading()
this.$message.error(rspMsg)
- }, { headers: { 'Content-Type': 'multipart/form-data' } })
- },
- // UGC场景选中0以后的事件
- scene0 (value) {
- if (value) { // 选中
- this.sceneDisabled = true
- this.UGCSence0()
- } else {
- this.sceneDisabled = false
- }
- },
- // UGC场景选中其他以后的事件
- sceneOther (value) {
- if (value) { // 选中
- this.sceneOtherDisabled = false
- } else {
- this.sceneOtherDisabled = true
- this.dataForm.ugcDeclare.otherSceneDesc = ''
- }
- },
- // 重置UGC场景数据
- resetUGC () {
- this.dataForm.ugcDeclare.scene = [1, 2, 4]
- this.dataForm.ugcDeclare.otherSceneDesc = ''
- this.dataForm.ugcDeclare.method = [2]
- this.dataForm.ugcDeclare.hasAuditTeam = 1
- this.dataForm.ugcDeclare.auditDesc = '严重色情内容、轻微色情内容、涉政负面内容、严重辱骂、涉政暴恐(恶搞领导人、特殊标识、特殊着装、枪支、利器、血腥场景)'
- },
- // UGC场景选择0的初始化
- UGCSence0 () {
- this.dataForm.ugcDeclare.scene = [0]
- this.dataForm.ugcDeclare.otherSceneDesc = ''
- this.dataForm.ugcDeclare.method = [1]
- this.dataForm.ugcDeclare.hasAuditTeam = 0
- this.dataForm.ugcDeclare.auditDesc = ''
+ })
},
- submitCode () {
- },
// 取消
diaCancel () {
- this.resetData()
- this.activeName = 'desc'
this.diaVisible = false
},
- resetData () {
- this.reseatDataForm()
- // 功能说明
- this.picList = []
- this.videoList = []
- // 审核项
- this.$refs['ref_submit_item'].reseatData()
- // 反馈说明
- this.feedbackPicList = []
- // 信息安全
- },
// 开启加载动画
startLoading () {
loading = Loading.service({
lock: true, // 是否锁定
+ index: 100,
text: '正在加载……', // 加载中需要显示的文字
background: 'rgba(0,0,0,.7)' // 背景颜色
})
@@ -445,4 +272,10 @@ export default {
.form {
margin-top: 30px;
}
+.btn_serve {
+ float: left;
+ margin-top: 4px;
+ margin-left: 10px;
+ vertical-align: bottom;
+}
diff --git a/epmet-oper-web/src/views/modules/customer/miniProAgent/LowVersion.vue b/epmet-oper-web/src/views/modules/customer/miniProAgent/LowVersion.vue
index 3de3c1c..bca814e 100644
--- a/epmet-oper-web/src/views/modules/customer/miniProAgent/LowVersion.vue
+++ b/epmet-oper-web/src/views/modules/customer/miniProAgent/LowVersion.vue
@@ -11,11 +11,20 @@
+
+ @change.native="getRadioRow(scope.row)">
@@ -56,12 +65,15 @@ let loading // 加载动画
export default {
data () {
return {
+ loading: false,
customerId: '',
clientType: '',
tableData: [],
+ tableDataAll: [],
templateRadio: '',
nowVersion: '',//当前版本
selVersion: '',//要设置的版本
+ versionSearch: '',//查询版本
// 弹出框相关
diaVisible: false
@@ -73,10 +85,12 @@ export default {
},
mounted () {
},
+
computed: {
tableHeight () {
- return this.clientHeight - 60 - 80 - 80 - 50 - 400
+ return this.clientHeight * 0.6 - 130
},
+
...mapGetters(['clientHeight'])
},
props: {},
@@ -94,7 +108,7 @@ export default {
// 获取列表数据
loadData () {
- this.startLoading()
+ this.loading = true
const url = 'https://epmet-cloud.elinkservice.cn/api/third/pacustomer/getweappsupportversion'
// const url = '/third/pacustomer/getweappsupportversion'
const param = {
@@ -103,15 +117,29 @@ export default {
}
window.app.ajax.post(url, param,
(data, rspMsg) => {
- this.endLoading()
- this.nowVersion = data.newVersion
+
+ this.nowVersion = data.newVersion === '' ? '无' : data.newVersion
this.tableData = data.uvInfo
+ this.tableDataAll = data.uvInfo
},
(rspMsg, data) => {
- this.endLoading()
+
this.$message.error(rspMsg)
})
+ this.loading = false
+ },
+
+ versionSearchInput (value) {
+ console.log(value)
+ if (value !== '') {
+ let aaa = this.tableData.filter(item => item.version.indexOf(value) != -1)
+ this.tableData = aaa
+ } else {
+ this.tableData = this.tableDataAll
+ }
+
+
},
getRadioRow (row) {
@@ -134,6 +162,8 @@ export default {
version: this.selVersion
}
+ console.log(params)
+
window.app.ajax.post(url, params,
(data, rspMsg) => {
this.endLoading()
diff --git a/epmet-oper-web/src/views/modules/customer/miniProAgent/MiniProList.vue b/epmet-oper-web/src/views/modules/customer/miniProAgent/MiniProList.vue
index 3489154..4bb24bf 100644
--- a/epmet-oper-web/src/views/modules/customer/miniProAgent/MiniProList.vue
+++ b/epmet-oper-web/src/views/modules/customer/miniProAgent/MiniProList.vue
@@ -1,4 +1,4 @@
-
+
@@ -43,12 +43,12 @@
ref="table"
:url="tableUrl"
:params="tableParams"
- keyword="MiniProManage"
+ keyword="MiniProList"
:operations="operations"
:tableHeight="tableHeight"
@versionManage="versionManage"
@setweappsupportversion="setweappsupportversion"
- @getaccountbasicinfo="getaccountbasicinfo"
+ @basicinfo="basicinfo"
@getcategory="getcategory">
@@ -107,20 +107,20 @@ export default {
return true
}
},
- // {
- // lable: '基本信息', // 按钮显示名称
- // size: 'mini',
- // style: 'margin: 0 6px;',
- // type: 'text',
- // slot: '',
- // plain: false,
- // methodName: 'getaccountbasicinfo', // 回调方法名称
- // isShow: (row) => {
- // return true
- // }
- // },
{
- lable: '设置基础库版本', // 按钮显示名称
+ lable: '基本信息', // 按钮显示名称
+ size: 'mini',
+ style: 'margin: 0 6px;',
+ type: 'text',
+ slot: '',
+ plain: false,
+ methodName: 'basicinfo', // 回调方法名称
+ isShow: (row) => {
+ return true
+ }
+ },
+ {
+ lable: '基础库版本', // 按钮显示名称
size: 'mini',
style: 'margin: 0 6px;',
type: 'text',
@@ -225,7 +225,7 @@ export default {
},
// 查看信息
- getaccountbasicinfo (row) {
+ basicinfo (row) {
this.$refs['ref_basic_info'].initData(row.customerId, row.clientType)
},
diff --git a/epmet-oper-web/src/views/modules/productConfig/customizeFunction/CustomFun.vue b/epmet-oper-web/src/views/modules/productConfig/customizeFunction/CustomFun.vue
index e636652..619ba98 100644
--- a/epmet-oper-web/src/views/modules/productConfig/customizeFunction/CustomFun.vue
+++ b/epmet-oper-web/src/views/modules/productConfig/customizeFunction/CustomFun.vue
@@ -52,8 +52,7 @@
+ @editDiaOK="editDiaOK">
@@ -80,8 +79,8 @@ export default {
fromApp: '' // 类型
},
// 列表相关
- tableUrl: 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/functioncustomized/functioncustomizedlist',
- // tableUrl: '/oper/customize/f unctioncustomized/functioncustomizedlist',
+ // tableUrl: 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/functioncustomized/functioncustomizedlist',
+ tableUrl: '/oper/customize/functioncustomized/functioncustomizedlist',
operations: [
{
@@ -161,7 +160,6 @@ export default {
},
// 加载列表数据
loadTableData () {
- this.tableParams.source = this.env
this.$nextTick(() => {
this.$refs.table.loadData() // 获取表格数据
})
@@ -179,11 +177,11 @@ export default {
domainName: '',
fromApp: 'resi'
}
- this.$refs['ref_edit'].init(row)
+ this.$refs['ref_edit'].init(row, 'A')
},
// 编辑
editShow (row) {
- this.$refs['ref_edit'].init(row)
+ this.$refs['ref_edit'].init(row, 'U')
},
// 删除
@@ -193,8 +191,8 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
- const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/functioncustomized/deletefunctioncustomized'
- // const url = '/oper/customize/functioncustomized/deletefunctioncustomized'
+ // const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/functioncustomized/deletefunctioncustomized'
+ const url = '/oper/customize/functioncustomized/deletefunctioncustomized'
const param = {
functionId: row.functionId
}
diff --git a/epmet-oper-web/src/views/modules/productConfig/customizeFunction/Edit.vue b/epmet-oper-web/src/views/modules/productConfig/customizeFunction/Edit.vue
index a787c4c..a998302 100644
--- a/epmet-oper-web/src/views/modules/productConfig/customizeFunction/Edit.vue
+++ b/epmet-oper-web/src/views/modules/productConfig/customizeFunction/Edit.vue
@@ -10,9 +10,9 @@
ref="dataForm"
:label-width="'120px'">
+ prop="functionName">
+
+
+
+
+
+
+
+
+
+
+
@@ -109,14 +136,17 @@