diff --git a/epmet-oper-web/src/App.vue b/epmet-oper-web/src/App.vue index 89fa5d2..20a9614 100644 --- a/epmet-oper-web/src/App.vue +++ b/epmet-oper-web/src/App.vue @@ -80,6 +80,7 @@ export default { Vue.prototype.$ELEMENT = { size: 'medium', zIndex: 3000 } } + window.onresize = () => { return (() => { if (!that.timer) { diff --git a/epmet-oper-web/src/assets/scss/variables.scss b/epmet-oper-web/src/assets/scss/variables.scss index 81814d1..171d572 100644 --- a/epmet-oper-web/src/assets/scss/variables.scss +++ b/epmet-oper-web/src/assets/scss/variables.scss @@ -12,11 +12,16 @@ $sidebar--text-color-dark: #8a979e; $sidebar--menu-item-height: 48px; // Content -$content--padding: 15px; +$content--padding: 10px; $content--background-color: #f1f4f5; $content--card-header-height: 60px; $content--tabs-header-height: 38px; // Content, 填充整屏高度(非tabs状态) = 整屏高度 - 导航条高度 - aui-content上下内边距高度 -$content--fill-height: calc(100vh - #{$navbar--height} - #{$content--padding * 2}); +$content--fill-height: calc( + 100vh - #{$navbar--height} - #{$content--padding * 2} +); // Content, 填充整屏高度(是tabs状态) = 整屏高度 - 导航条高度 - tabs组件header高度 - tabs组件content上下内边距高度 -$content--fill-height-tabs: calc(100vh - #{$navbar--height} - #{$content--tabs-header-height} - #{$content--padding * 2}); +$content--fill-height-tabs: calc( + 100vh - #{$navbar--height} - #{$content--tabs-header-height} - #{$content--padding * + 2} +); diff --git a/epmet-oper-web/src/js/columns/columns.js b/epmet-oper-web/src/js/columns/columns.js index 7526a94..0803124 100644 --- a/epmet-oper-web/src/js/columns/columns.js +++ b/epmet-oper-web/src/js/columns/columns.js @@ -10,6 +10,9 @@ import Category from './code/category' // 产品配置 import CustomizedFunction from './miniPro/customizedFunction' +import FootBar from './productConfig/footBar' + +//外部客户 import partner from './miniPro/partner' import partnerApp from './miniPro/partnerApp' @@ -25,10 +28,12 @@ export default { OperHistory: OperHistory, // 客户管理——代小程序管理——版本管理——操作历史 Category: Category, // 客户管理——代小程序管理——类目 - // 小程序管理 - CustomizedFunction: CustomizedFunction, // 定制功能 + FootBarCustomize: FootBar['customize'], // 客户定制化——FootBar配置 + + CustomizedFunction: CustomizedFunction, // 产品配置——定制功能 + FootBar: FootBar['default'], // 产品配置——FootBar配置 // 外部客户 partnerApp, // 外部客户 partner // 外部客户应用 -} \ No newline at end of file +} diff --git a/epmet-oper-web/src/js/columns/customer/manage/customer.js b/epmet-oper-web/src/js/columns/customer/manage/customer.js index b690b62..97924dc 100644 --- a/epmet-oper-web/src/js/columns/customer/manage/customer.js +++ b/epmet-oper-web/src/js/columns/customer/manage/customer.js @@ -77,7 +77,7 @@ export default { }, { key: 'rootManageName', - title: '跟管理员', + title: '根管理员', display: ['table', 'model'], type: 'input', rule: [ diff --git a/epmet-oper-web/src/js/columns/productConfig/footBar.js b/epmet-oper-web/src/js/columns/productConfig/footBar.js new file mode 100644 index 0000000..feacc05 --- /dev/null +++ b/epmet-oper-web/src/js/columns/productConfig/footBar.js @@ -0,0 +1,132 @@ +export default { + default: [ + { + key: 'barKey', + title: 'Key', + display: ['formA', 'formU', 'table', 'model'], + fixed: false, + block: true, + width: 80 + }, + { + key: 'barName', + title: '导航栏名称', + display: ['formA', 'formU', 'table', 'model'], + fixed: false, + block: true, + width: 80 + }, + { + key: 'pageTitle', + title: '页面标题', + display: ['formA', 'formU', 'table', 'model'], + fixed: false, + block: true, + width: 120 + }, + { + key: 'iconPath', + title: '图标', + display: ['formA', 'formU', 'table', 'model'], + fixed: false, + block: 100, + width: 120, + tableType: 'image', + imgWidth: '50px', + imgHeight: '50px' + }, + { + key: 'selectedIconPath', + title: '选中图标', + display: ['formA', 'formU', 'table', 'model'], + fixed: false, + block: true, + width: 100, + tableType: 'image', + imgWidth: '50px', + imgHeight: '50px' + }, + { + key: 'display', + title: '状态', + display: ['formA', 'formU', 'table', 'model'], + fixed: false, + block: true, + width: 80, + format: (cellValue, index) => { + if (cellValue === false) { + return '隐藏' + } else if (cellValue === true) { + return '显示' + } else { + return '未知' + } + } + } + ], + customize: [ + { + key: 'defaultBarName', + title: '默认导航栏名称', + display: ['formA', 'formU', 'table', 'model'], + fixed: false, + block: true, + width: 100 + }, + { + key: 'barName', + title: '导航栏名称', + display: ['formA', 'formU', 'table', 'model'], + fixed: false, + block: true, + width: 80 + }, + { + key: 'pageTitle', + title: '页面标题', + display: ['formA', 'formU', 'table', 'model'], + fixed: false, + block: true, + width: 120 + }, + { + key: 'iconPath', + title: '图标', + display: ['formA', 'formU', 'table', 'model'], + fixed: false, + block: 100, + width: 120, + tableType: 'image', + imgWidth: '50px', + imgHeight: '50px' + }, + { + key: 'selectedIconPath', + title: '选中图标', + display: ['formA', 'formU', 'table', 'model'], + fixed: false, + block: true, + width: 100, + tableType: 'image', + imgWidth: '50px', + imgHeight: '50px' + }, + { + key: 'display', + title: '状态', + display: ['formA', 'formU', 'table', 'model'], + fixed: false, + block: true, + width: 80, + format: (cellValue, index) => { + if (cellValue === false) { + return '隐藏' + } else if (cellValue === true) { + return '显示' + } else { + return '未知' + } + } + } + ] +} diff --git a/epmet-oper-web/src/js/util.js b/epmet-oper-web/src/js/util.js index 2ff62aa..c4a66f1 100644 --- a/epmet-oper-web/src/js/util.js +++ b/epmet-oper-web/src/js/util.js @@ -4,8 +4,25 @@ var crypto = require('crypto') let Base64 = require('js-base64').Base64 +import Vue from 'vue' export default { + /** + * + * @param {*} messageObj + */ + validateRule(messageObj) { + let message = '' + for (var oneObj in messageObj) { + message = message + messageObj[oneObj][0].message + '
' + } + + Vue.prototype.$message({ + dangerouslyUseHTMLString: true, + message: message, + type: 'error' + }) + }, /** * 日期格式化 * @param date diff --git a/epmet-oper-web/src/router/index.js b/epmet-oper-web/src/router/index.js index 99560e5..54dd2a6 100644 --- a/epmet-oper-web/src/router/index.js +++ b/epmet-oper-web/src/router/index.js @@ -50,6 +50,12 @@ export const moduleRoutes = { name: 'home', meta: { title: '首页', isTab: true } } + // { + // path: '/homeWork', + // component: () => import('@/views/modules/HomeWork'), + // name: 'homeWork', + // meta: { title: '首页', isTab: true } + // } ] } @@ -111,6 +117,7 @@ router.beforeEach((to, from, next) => { // }) // .catch(() => {}) // 获取菜单列表, 添加并全局变量保存 + const userType = localStorage.getItem('userType') console.log('获取菜单::::' + localStorage.getItem('userType')) diff --git a/epmet-oper-web/src/views/components/CForm.vue b/epmet-oper-web/src/views/components/CForm.vue index 6a8f672..b21b1ee 100644 --- a/epmet-oper-web/src/views/components/CForm.vue +++ b/epmet-oper-web/src/views/components/CForm.vue @@ -525,9 +525,16 @@ export default { this.model = window.app.service.getModel(this.keyWord) }, validate (callback) { - this.$refs['form'].validate((valid) => { + this.$refs['form'].validate((valid, messageObj) => { if (!valid) { - this.$message.error('表单验证失败!') + let message = '' + for (var oneObj in messageObj) { + + message = message + (messageObj[oneObj])[0].message + ' \n ' + } + + this.$message.error(message) + } else { if (typeof callback === 'function') callback(valid) } diff --git a/epmet-oper-web/src/views/components/CTable.vue b/epmet-oper-web/src/views/components/CTable.vue index cafda2a..a20538c 100644 --- a/epmet-oper-web/src/views/components/CTable.vue +++ b/epmet-oper-web/src/views/components/CTable.vue @@ -65,6 +65,7 @@ :style="{width: col.imgWidth?col.imgWidth:'50px',height:col.imgHeight?col.imgHeight:'50px'}" class="function-icon" :fit=" col.fill?col.fill:'fill'"> + -- diff --git a/epmet-oper-web/src/views/components/CTableNoPage.vue b/epmet-oper-web/src/views/components/CTableNoPage.vue index 404058a..10a0d72 100644 --- a/epmet-oper-web/src/views/components/CTableNoPage.vue +++ b/epmet-oper-web/src/views/components/CTableNoPage.vue @@ -37,7 +37,7 @@ + + + + - + + + + @@ -140,17 +185,28 @@ export default { return [{}] } }, + orderOperations: { + type: Array, + default () { + return [{}] + } + }, tableHeight: { type: Number }, pageVisible: Boolean // 是否显示page分页 lyx 20190411 }, + activated () { + // debugger + // this.$nextTick(() => { + // this.$refs.table.doLayout() // 解决表格错位 + // }) + }, computed: { + // 操作列宽度 - operationWidth: function () { - // return this.operations.includes('add') - // ? (this.operations.length - 1) * 80 - // : this.operations.length * 80 + operationWidth: function() { + if (this.operations.includes('add')) { return (this.operations.length - 1) * 80 // 操作列包含add类型按钮时返回 } else if (this.operations.includes('analyze')) { @@ -159,13 +215,24 @@ export default { return this.operations.length * 80 } }, + // 移动操作列宽度 + orderOperationWidth: function() { + + + return this.orderOperations.length * 50 + + }, ...mapGetters(['resolution']) }, methods: { + doLayout () { + this.$refs.table.doLayout() // 解决表格错位 + }, render () { this.loadData() }, loadData () { + this.$refs.table.doLayout() // 解决表格错位 this.templateRadio = '' this.loading = true Object.keys(this.params).forEach(key => { @@ -181,6 +248,7 @@ export default { (data, rspMsg) => { if (data) { this.tableData = data + } this.loading = false }, @@ -256,8 +324,13 @@ export default { handleMethod (index, row, methodName) { this.handleClearSelection() this.$refs['table'].toggleRowSelection(row, true) - this.$emit(methodName, row) + this.$emit(methodName, row, index) + }, + getTableData () { + return this.tableData } + + } } diff --git a/epmet-oper-web/src/views/main-content.vue b/epmet-oper-web/src/views/main-content.vue index 3c85a63..22eb4b6 100644 --- a/epmet-oper-web/src/views/main-content.vue +++ b/epmet-oper-web/src/views/main-content.vue @@ -34,7 +34,8 @@ frameborder="0" scrolling="yes"> - + @@ -56,6 +57,9 @@ export default { } }, methods: { + changeCustomerName (customerName) { + this.$emit('changeCustomerName', customerName) + }, // tabs, 是否通过iframe展示 tabIsIframe (url) { return isURL(url) diff --git a/epmet-oper-web/src/views/main-navbar.vue b/epmet-oper-web/src/views/main-navbar.vue index d1fa10f..f8f936e 100644 --- a/epmet-oper-web/src/views/main-navbar.vue +++ b/epmet-oper-web/src/views/main-navbar.vue @@ -72,7 +72,7 @@ - {{ $t('updatePassword.title') }} + {{ $t('logout') }} @@ -96,7 +96,10 @@ export default { data () { return { i18nMessages: messages, - updatePassowrdVisible: false + updatePassowrdVisible: false, + customerName: localStorage.getItem('customerName') + + } }, components: { @@ -107,13 +110,13 @@ export default { return localStorage.getItem('userType') }, - customerName () { - // console.log(localStorage.getItem('userType')) - return localStorage.getItem('customerName') - } }, methods: { + changeCustomerName (customerName) { + + this.customerName = localStorage.getItem('customerName') + }, // 全屏 fullscreenHandle () { if (!screenfull.enabled) { @@ -139,13 +142,18 @@ export default { cancelButtonText: this.$t('cancel'), type: 'warning' }).then(() => { + //关闭所有标签页 + // tabs, 关闭全部 + this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => item.name === 'home') + + this.$http.post('/auth/login/logout').then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } clearLoginInfo() - console.log('logout:::::' + localStorage.getItem('userType')) + if (localStorage.getItem('userType') === 'work') { this.$router.push({ name: 'loginWork' }) } else { diff --git a/epmet-oper-web/src/views/main-sidebar-sub-menu.vue b/epmet-oper-web/src/views/main-sidebar-sub-menu.vue index cd82f33..fe82986 100644 --- a/epmet-oper-web/src/views/main-sidebar-sub-menu.vue +++ b/epmet-oper-web/src/views/main-sidebar-sub-menu.vue @@ -1,5 +1,5 @@ diff --git a/epmet-oper-web/src/views/main.vue b/epmet-oper-web/src/views/main.vue index 13d2102..65888a5 100644 --- a/epmet-oper-web/src/views/main.vue +++ b/epmet-oper-web/src/views/main.vue @@ -3,10 +3,11 @@ :element-loading-text="$t('loading')" :class="['aui-wrapper', { 'aui-sidebar--fold': $store.state.sidebarFold }]"> @@ -70,6 +71,10 @@ export default { computed: { }, methods: { + changeCustomerName (customerName) { + this.$refs['ref_navbar'].changeCustomerName(customerName) + + }, // 窗口改变大小 windowResizeHandle () { this.$store.state.sidebarFold = document.documentElement['clientWidth'] <= 992 || false diff --git a/epmet-oper-web/src/views/modules/HomeWork.vue b/epmet-oper-web/src/views/modules/HomeWork.vue new file mode 100644 index 0000000..28a0014 --- /dev/null +++ b/epmet-oper-web/src/views/modules/HomeWork.vue @@ -0,0 +1,14 @@ + + + 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 fbde498..06ef032 100644 --- a/epmet-oper-web/src/views/modules/customer/customize/ConfigEdit.vue +++ b/epmet-oper-web/src/views/modules/customer/customize/ConfigEdit.vue @@ -1,6 +1,7 @@ + + diff --git a/epmet-oper-web/src/views/modules/customer/customize/FootbarList.vue b/epmet-oper-web/src/views/modules/customer/customize/FootbarList.vue new file mode 100644 index 0000000..ae6cea3 --- /dev/null +++ b/epmet-oper-web/src/views/modules/customer/customize/FootbarList.vue @@ -0,0 +1,332 @@ + + + + diff --git a/epmet-oper-web/src/views/modules/customer/customize/MiniHome.vue b/epmet-oper-web/src/views/modules/customer/customize/MiniHome.vue index ef3971e..26bb2c3 100644 --- a/epmet-oper-web/src/views/modules/customer/customize/MiniHome.vue +++ b/epmet-oper-web/src/views/modules/customer/customize/MiniHome.vue @@ -539,7 +539,6 @@ export default { return this.cptList.filter(item => this.checkCptRegion(item) === 'ban') }, cntCptList () { - console.log('cntCpt发生了变化') let arr = this.cptList.filter(item => this.checkCptRegion(item) === 'cnt') arr.sort((f, s) => f.displayOrder - s.displayOrder) return arr diff --git a/epmet-oper-web/src/views/modules/customer/init/RegisterList.vue b/epmet-oper-web/src/views/modules/customer/init/RegisterList.vue index 40c1242..f330d24 100644 --- a/epmet-oper-web/src/views/modules/customer/init/RegisterList.vue +++ b/epmet-oper-web/src/views/modules/customer/init/RegisterList.vue @@ -31,7 +31,7 @@
+ +
+ {{tokenForm.customerName}}
+
@@ -134,11 +139,11 @@ export default { plain: false, methodName: 'showToken', // 回调方法名称 isShow: (row) => { - if (this.env !== 'prod') { - return true - } else { - return false - } + // if (this.env !== 'prod') { + return true + // } else { + // return false + // } } } ], @@ -205,32 +210,38 @@ export default { //删除客户,开发和体验服显示 del (row) { - this.startLoading() - const url = 'https://epmet-cloud.elinkservice.cn/third/pacustomer/deletepubliccustomer' - const param = { - customerId: row.customerId, - source: this.env - } - window.app.ajax.post( - url, - param, - (data, rspMsg) => { - this.endLoading() - this.$message.success('删除成功') - this.loadData() - // eslint-disable-next-line - }, - (rspMsg, data) => { - this.endLoading() - this.$message.error(rspMsg) + this.$confirm('确认删除?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.startLoading() + const url = 'https://epmet-cloud.elinkservice.cn/api/third/pacustomer/deletepubliccustomer' + const param = { + customerId: row.customerId, + source: this.env } - ) + window.app.ajax.post( + url, + param, + (data, rspMsg) => { + this.endLoading() + this.$message.success('删除成功') + this.loadData() + // eslint-disable-next-line + }, + (rspMsg, data) => { + this.endLoading() + this.$message.error(rspMsg) + } + ) + }) }, //获取token,开发和体验服显示 showToken (row) { this.startLoading() - const url = 'https://epmet-cloud.elinkservice.cn/third/pacustomer/tokenlist' + const url = 'https://epmet-cloud.elinkservice.cn/api/third/pacustomer/tokenlist' const param = { customerId: row.customerId } @@ -239,7 +250,6 @@ export default { param, (data, rspMsg) => { this.endLoading() - this.$message.success('初始化成功') this.diaVisible = true this.$nextTick(() => { this.tokenForm = data @@ -255,7 +265,6 @@ export default { // 取消 diaCancel () { - this.diaVisible = false }, diff --git a/epmet-oper-web/src/views/modules/customer/manage/CustomerInfo.vue b/epmet-oper-web/src/views/modules/customer/manage/CustomerInfo.vue index 341416d..b86eead 100644 --- a/epmet-oper-web/src/views/modules/customer/manage/CustomerInfo.vue +++ b/epmet-oper-web/src/views/modules/customer/manage/CustomerInfo.vue @@ -80,7 +80,7 @@ 跟管理员信息 + style="width:100%;margin-top:10px">根管理员信息

{ this.endLoading() + localStorage.setItem('customerName', this.dataForm.customerInfoDTO.customerName) + this.$emit('changeCustomerName', this.dataForm.customerInfoDTO.customerName) + this.$message.success('修改成功') this.loadData() }, diff --git a/epmet-oper-web/src/views/modules/customer/miniProAgent/version/SubmitForm.vue b/epmet-oper-web/src/views/modules/customer/miniProAgent/version/SubmitForm.vue index a3d619b..90e2c01 100644 --- a/epmet-oper-web/src/views/modules/customer/miniProAgent/version/SubmitForm.vue +++ b/epmet-oper-web/src/views/modules/customer/miniProAgent/version/SubmitForm.vue @@ -69,7 +69,7 @@ class="el-upload__tip">可上传小程序使用录屏,最多上传1个视频。视频支持mp4格式,视频大小不超过20M
- @@ -77,7 +77,7 @@ 加急
一年3次,不加急:预计在1-7天内完成,加急:预计再2-12小时内完成
-
+ --> @@ -189,6 +189,7 @@ export default { sceneOtherDisabled: true, // 其他场景是否禁用 dataForm: { isSpeed: false, // 是否加急 + isRepeat: false, // 上一次提审是否是加急,初次提审都是false versionDesc: '', // 小程序版本说明和功能解释 ugcDeclare: { // 用户生成内容场景(UGC)信息安全声明 scene: [1, 2, 4], // UGC场景 0,不涉及用户生成内容, 1.用户资料,2.图片,3.视频,4.文本,5其他, 可多选,当scene填0时无需填写下列字段 @@ -231,6 +232,7 @@ export default { reseatDataForm () { this.dataForm = { isSpeed: false, // 是否加急 + isRepeat: false, // 上一次提审是否是加急,初次提审都是false versionDesc: '', // 小程序版本说明和功能解释 ugcDeclare: { // 用户生成内容场景(UGC)信息安全声明 scene: [1, 2, 4], // UGC场景 0,不涉及用户生成内容, 1.用户资料,2.图片,3.视频,4.文本,5其他, 可多选,当scene填0时无需填写下列字段 @@ -436,8 +438,10 @@ export default { // console.log('预览视频:') // console.log(params.previewInfo.videoIdList) } - // 加急 - params.isSpeed = this.dataForm.isSpeed + // 加急 + // params.isSpeed = this.dataForm.isSpeed + params.isSpeed = false + params.isRepeat = false// 上一次提审是否是加急,初次提审都是false // 小程序描述排除空内容 if (this.dataForm.versionDesc !== '') { diff --git a/epmet-oper-web/src/views/modules/customer/miniProAgent/version/SubmitFormReject.vue b/epmet-oper-web/src/views/modules/customer/miniProAgent/version/SubmitFormReject.vue index 2adc916..f60bf8d 100644 --- a/epmet-oper-web/src/views/modules/customer/miniProAgent/version/SubmitFormReject.vue +++ b/epmet-oper-web/src/views/modules/customer/miniProAgent/version/SubmitFormReject.vue @@ -60,8 +60,10 @@ export default { return { loading: false, codeId: '', // 上传代码id,父组件传 + isRepeat: false, // 上一次是否加急,父组件传 dataForm: { + feedbackInfo: '', // 反馈内容 feedbackStuff: '' // 反馈素材 }, @@ -91,8 +93,10 @@ export default { ...mapGetters(['clientHeight']) }, methods: { - initData (codeId) { + initData (codeId, isRepeat) { this.codeId = codeId + this.isRepeat = isRepeat // 是否加急标识,父组件传 + }, reseatDataForm () { this.dataForm = { @@ -165,7 +169,8 @@ export default { submitCode () { let params = { codeId: this.codeId, - isSpeed: false + isSpeed: false,//重新提神一直是false + isRepeat: this.isRepeat, // 判断上一次是否加急,状态同上一次 } // 反馈说明 diff --git a/epmet-oper-web/src/views/modules/customer/miniProAgent/version/VersionItem.vue b/epmet-oper-web/src/views/modules/customer/miniProAgent/version/VersionItem.vue index df56743..9a4743b 100644 --- a/epmet-oper-web/src/views/modules/customer/miniProAgent/version/VersionItem.vue +++ b/epmet-oper-web/src/views/modules/customer/miniProAgent/version/VersionItem.vue @@ -86,11 +86,11 @@ size="mini" type="primary" @click="submitRecall">审核撤回 - 加急申请 + @click="speedupaudit">加急申请 --> {{ audit.commitTime }} + {{ audit.statusShow }} @@ -383,6 +387,12 @@ export default { } else { this.audit.statusShow = '审核延后' } + + // if (this.audit.isSpeed) { + // this.audit.isSpeedShow = '加急' + // } else { + // this.audit.isSpeedShow = '不加急' + // } } this.commit = data.commit @@ -445,10 +455,11 @@ export default { // 审核驳回 打开提交审核窗口 submitCodeRejectShow () { if (this.audit.status === 'audit_failed') { - this.showSubmit = '2' - this.$refs['ref_submit_form_reject'].initData(this.audit.codeId) + this.showSubmit = '2'//显示重新提审div + // this.$refs['ref_submit_form_reject'].initData(this.audit.codeId, this.audit.isSpeed) + this.$refs['ref_submit_form_reject'].initData(this.audit.codeId, false) } else { - this.showSubmit = '1' + this.showSubmit = '1'//显示提审div this.$refs['ref_submit_form'].initData(this.audit.codeId) } }, @@ -552,7 +563,8 @@ export default { cancelButtonText: '取消', type: 'warning' }).then(() => { - const url = 'https://epmet-cloud.elinkservice.cn/api/third/code/release' + this.startLoading() + const url = 'https://epmet-cloud.elinkservice.cn/api/third/code/speedupaudit' // const url = '/third/code/speedupaudit' const param = { codeId: this.audit.codeId @@ -563,6 +575,7 @@ export default { this.refresh() }, (rspMsg, data) => { + this.endLoading() this.$message.error(rspMsg) }) }).catch(() => { }) diff --git a/epmet-oper-web/src/views/modules/home.vue b/epmet-oper-web/src/views/modules/home.vue index 7d50d9b..9837fa5 100644 --- a/epmet-oper-web/src/views/modules/home.vue +++ b/epmet-oper-web/src/views/modules/home.vue @@ -1,15 +1,47 @@ 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 4953006..456de81 100644 --- a/epmet-oper-web/src/views/modules/productConfig/customizeFunction/CustomFun.vue +++ b/epmet-oper-web/src/views/modules/productConfig/customizeFunction/CustomFun.vue @@ -149,9 +149,9 @@ export default { }, computed: { tableHeight () { - return this.clientHeight - 60 - 80 - 80 - 90 + return this.clientHeight - 60 - 80 - 80 - 45 }, - ...mapGetters(['clientHeight', 'env']) + ...mapGetters(['clientHeight']) }, methods: { // 刷新 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 4b49e99..b8d1325 100644 --- a/epmet-oper-web/src/views/modules/productConfig/customizeFunction/Edit.vue +++ b/epmet-oper-web/src/views/modules/productConfig/customizeFunction/Edit.vue @@ -13,9 +13,19 @@ :label-width="'120px'"> - + + + + +
2-5个字
@@ -47,10 +57,12 @@ - + {{dataForm.targetLink}} - -
- +
+
+ + + + - - +
+
+
+
+ {{domainNameList[index]}} +
@@ -184,28 +205,29 @@ export default { dataRule () { return { functionName: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } + { required: true, message: '功能名称不能为空', trigger: 'blur' }, + { min: 2, max: 5, message: '功能名称长度在 2 到 5 个字符', trigger: 'blur' } ], - // domainName: [ - // { required: true, message: this.$t('validate.required'), trigger: 'blur' } + // domainNameList: [ + // { required: true, message: '业务域名不能为空', trigger: 'blur' } // ], iconLargeImg: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } + { required: true, message: '大图标不能为空', trigger: 'blur' } ], iconSmallImg: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } + { required: true, message: '小图标不能为空', trigger: 'blur' } ], fromApp: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } + { required: true, message: '来源不能为空', trigger: 'blur' } ], shoppingStatus: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } + { required: true, message: '上架状态不能为空', trigger: 'blur' } ], functionExplain: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } + { required: true, message: '功能描述不能为空', trigger: 'blur' } ], targetLink: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } + { required: true, message: '外链地址不能为空', trigger: 'blur' } ] } } @@ -290,17 +312,12 @@ export default { }, saveForm () { - this.$refs['dataForm'].validate((valid) => { + this.$refs['dataForm'].validate((valid, messageObj) => { + if (!valid) { - this.$message.error('表单验证失败!') + app.util.validateRule(messageObj) } else { - 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 - } + // eslint-disable-next-line // debugger let domainName = '' diff --git a/epmet-oper-web/src/views/modules/productConfig/footbar/FootbarDefault.vue b/epmet-oper-web/src/views/modules/productConfig/footbar/FootbarDefault.vue new file mode 100644 index 0000000..2c4c1d1 --- /dev/null +++ b/epmet-oper-web/src/views/modules/productConfig/footbar/FootbarDefault.vue @@ -0,0 +1,50 @@ + + + + diff --git a/epmet-oper-web/src/views/modules/productConfig/footbar/FootbarEdit.vue b/epmet-oper-web/src/views/modules/productConfig/footbar/FootbarEdit.vue new file mode 100644 index 0000000..d0a8749 --- /dev/null +++ b/epmet-oper-web/src/views/modules/productConfig/footbar/FootbarEdit.vue @@ -0,0 +1,385 @@ + + + + + diff --git a/epmet-oper-web/src/views/modules/productConfig/footbar/FootbarList.vue b/epmet-oper-web/src/views/modules/productConfig/footbar/FootbarList.vue new file mode 100644 index 0000000..52c3631 --- /dev/null +++ b/epmet-oper-web/src/views/modules/productConfig/footbar/FootbarList.vue @@ -0,0 +1,449 @@ + + + + diff --git a/epmet-oper-web/src/views/modules/productConfig/homeCustom/index.vue b/epmet-oper-web/src/views/modules/productConfig/homeCustom/index.vue index 5d8ede7..d548c4f 100644 --- a/epmet-oper-web/src/views/modules/productConfig/homeCustom/index.vue +++ b/epmet-oper-web/src/views/modules/productConfig/homeCustom/index.vue @@ -4,11 +4,11 @@ shadow="never" class="aui-card--fill"> 居民端 + size="small" + @click="startSetWxIndex('', '', 0)">居民端 工作端 + size="small" + @click="startSetWxIndex('', '', 1)">工作端
this.checkCptRegion(item) === 'ban') }, cntCptList () { - console.log('cntCpt发生了变化') let arr = this.cptList.filter(item => this.checkCptRegion(item) === 'cnt') arr.sort((f, s) => f.displayOrder - s.displayOrder) return arr diff --git a/epmet-oper-web/src/views/modules/wx-mini/index-set.vue b/epmet-oper-web/src/views/modules/wx-mini/index-set.vue index 1f30650..2ca0b4f 100644 --- a/epmet-oper-web/src/views/modules/wx-mini/index-set.vue +++ b/epmet-oper-web/src/views/modules/wx-mini/index-set.vue @@ -562,7 +562,6 @@ export default { return this.cptList.filter(item => this.checkCptRegion(item) === 'ban') }, cntCptList () { - console.log('cntCpt发生了变化') let arr = this.cptList.filter(item => this.checkCptRegion(item) === 'cnt') arr.sort((f, s) => f.displayOrder - s.displayOrder) return arr diff --git a/epmet-oper-web/src/views/pages/login.vue b/epmet-oper-web/src/views/pages/login.vue index df5a429..0a85fc9 100644 --- a/epmet-oper-web/src/views/pages/login.vue +++ b/epmet-oper-web/src/views/pages/login.vue @@ -12,7 +12,7 @@ ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" status-icon> - + @@ -113,13 +113,13 @@ export default { dataRule () { return { phone: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } + { required: true, message: '手机号不能为空', trigger: 'blur' } ], password: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } + { required: true, message: '密码不能为空', trigger: 'blur' } ], captcha: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } + { required: true, message: '验证码不能为空', trigger: 'blur' } ] } } @@ -135,9 +135,9 @@ export default { }, // 表单提交 dataFormSubmitHandle: debounce(function() { - this.$refs['dataForm'].validate((valid) => { + this.$refs['dataForm'].validate((valid, messageObj) => { if (!valid) { - return false + app.util.validateRule(messageObj) } this.$http.post('/auth/login/operweb/loginbypassword', this.dataForm).then(({ data: res }) => { if (res.code !== 0) { diff --git a/epmet-oper-web/src/views/pages/loginWork.vue b/epmet-oper-web/src/views/pages/loginWork.vue index a65bac1..d155329 100644 --- a/epmet-oper-web/src/views/pages/loginWork.vue +++ b/epmet-oper-web/src/views/pages/loginWork.vue @@ -13,7 +13,7 @@ ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" status-icon> - + @@ -178,13 +178,13 @@ export default { dataRule () { return { phone: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } + { required: true, message: '手机号不能为空', trigger: 'blur' } ], password: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } + { required: true, message: '密码不能为空', trigger: 'blur' } ], captcha: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } + { required: true, message: '验证码不能为空', trigger: 'blur' } ] } } @@ -201,9 +201,9 @@ export default { }, // 表单提交 dataFormSubmitHandle () { - this.$refs['dataForm'].validate((valid) => { + this.$refs['dataForm'].validate((valid, messageObj) => { if (!valid) { - return false + app.util.validateRule(messageObj) } this.startLoading() // const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/epmetuser/customerstaff/customerlist'