diff --git a/epmet-oper-web/.env.development b/epmet-oper-web/.env.development
index 4f5c1a9..aca9324 100644
--- a/epmet-oper-web/.env.development
+++ b/epmet-oper-web/.env.development
@@ -1,8 +1,9 @@
NODE_ENV=development
# VUE_APP_API_SERVER = http://118.190.150.119:41080/api
+# VUE_APP_API_SERVER = http://192.168.1.144/api
VUE_APP_API_SERVER = http://192.168.1.144/api
-# VUE_APP_API_SERVER = http://192.168.51.36:8080/api
# VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn/api
+
VUE_APP_NODE_ENV=dev
#项目根路径
VUE_APP_PUBLIC_PATH=epmet-oper
diff --git a/epmet-oper-web/src/js/columns/miniPro/partnerApp.js b/epmet-oper-web/src/js/columns/miniPro/partnerApp.js
index f3d1056..846e427 100644
--- a/epmet-oper-web/src/js/columns/miniPro/partnerApp.js
+++ b/epmet-oper-web/src/js/columns/miniPro/partnerApp.js
@@ -38,12 +38,12 @@ export default [{
block: true,
width: 40
},
-{
- key: 'secret',
- title: '秘钥',
- display: ['formA', 'formU', 'table', 'model'],
- fixed: false,
- block: true,
- width: 200
-},
+// {
+// key: 'secret',
+// title: '秘钥',
+// display: ['formA', 'formU', 'table', 'model'],
+// fixed: false,
+// block: true,
+// width: 200
+// },
]
diff --git a/epmet-oper-web/src/utils/loadTinymce.js b/epmet-oper-web/src/utils/loadTinymce.js
index ff84740..f3704d6 100644
--- a/epmet-oper-web/src/utils/loadTinymce.js
+++ b/epmet-oper-web/src/utils/loadTinymce.js
@@ -17,7 +17,8 @@ export default function loadTinymce(cb) {
background: 'rgba(255, 255, 255, 0.5)'
})
- loadScript('https://lib.baomitu.com/tinymce/latest/tinymce.min.js', () => {
+ // loadScript('https://lib.baomitu.com/tinymce/latest/tinymce.min.js', () => {
+ loadScript('http://lib.baomitu.com/tinymce/4.9.2/tinymce.min.js', () => {
loading.close()
// eslint-disable-next-line no-undef
tinymceObj = tinymce
diff --git a/epmet-oper-web/src/views/modules/customer/customize/menu-customer-add-or-update.vue b/epmet-oper-web/src/views/modules/customer/customize/menu-customer-add-or-update.vue
index be2a5e0..83e0c50 100644
--- a/epmet-oper-web/src/views/modules/customer/customize/menu-customer-add-or-update.vue
+++ b/epmet-oper-web/src/views/modules/customer/customize/menu-customer-add-or-update.vue
@@ -49,10 +49,10 @@ export default {
iconList: [],
iconListVisible: false,
dataForm: {
- id: '',
+ id: '', // 菜单id
type: 0,
name: '',
- pid: '0',
+ pid: '0', // 菜单pid
customerId:'',
parentName: '',
url: '',
@@ -91,16 +91,38 @@ export default {
},
// 获取信息
- getInfo () {
- this.$http.get(`/gov/access/govMenuCustomerRelation/${this.dataForm.id}`).then(({ data: res }) => {
- if (res.code !== 0) {
- return this.$message.error(res.msg)
- }
- this.dataForm = {
- ...this.dataForm,
- ...res.data
- }
- }).catch(() => {})
+ async getInfo () {
+ let {data: epmetRelationResult} = await this.$http.get(`/gov/access/govMenuCustomerRelation/getCustomizedMenuInfo?menuId=${this.dataForm.id}&customerId=${this.dataForm.customerId}`)
+
+ if (epmetRelationResult.code !== 0) {
+ this.$message.error("网络错误")
+ return
+ }
+
+ if (epmetRelationResult.data !== null) {
+ // 如果有该菜单的自定义信息
+ this.dataForm.type = epmetRelationResult.data.type
+ this.dataForm.name = epmetRelationResult.data.name
+ this.dataForm.pid = epmetRelationResult.data.pid
+ this.dataForm.parentName = epmetRelationResult.data.parentName
+ this.dataForm.url = epmetRelationResult.data.url
+ this.dataForm.useFlag = epmetRelationResult.data.useFlag
+ this.dataForm.sort = epmetRelationResult.data.sort
+ this.dataForm.icon = epmetRelationResult.data.icon
+ } else {
+ // 如果没有该菜单的自定义信息,
+ let { data: epmeMenuResult } = await this.$http.get(`/gov/access/menu/${this.dataForm.id}`)
+
+ this.dataForm.type = epmeMenuResult.data.type
+ this.dataForm.name = epmeMenuResult.data.name
+ this.dataForm.pid = epmeMenuResult.data.pid
+ this.dataForm.parentName = epmeMenuResult.data.parentName
+ this.dataForm.url = epmeMenuResult.data.url
+ this.dataForm.useFlag = 1
+ this.dataForm.sort = epmeMenuResult.data.sort
+ this.dataForm.icon = epmeMenuResult.data.icon
+ }
+
},
// 图标, 选中
iconListCurrentChangeHandle (icon) {
diff --git a/epmet-oper-web/src/views/modules/customer/customize/menuCustomer.vue b/epmet-oper-web/src/views/modules/customer/customize/menuCustomer.vue
index fa4c3e1..31dd98f 100644
--- a/epmet-oper-web/src/views/modules/customer/customize/menuCustomer.vue
+++ b/epmet-oper-web/src/views/modules/customer/customize/menuCustomer.vue
@@ -33,6 +33,7 @@
+
@@ -49,7 +50,7 @@
- {{ $t('update') }}
+ {{ $t('update') }}
{{ '开启' }}
{{ '关闭' }}
@@ -298,13 +299,13 @@ export default {
});
},
- open(id) {
+ open(menuId) {
let menuIds = [];
this.multipleSelection = [];
this.getData(this.dataList);
- if (id != '') {
- menuIds = [id];
+ if (menuId != '') {
+ menuIds = [menuId];
} else {
if (this.multipleSelection.length > 0) {
menuIds = this.multipleSelection;
@@ -314,8 +315,9 @@ export default {
}
let params = {
- ids: menuIds,
- use: '1'
+ menuIds: menuIds,
+ use: '1',
+ customerId: this.customerId
};
this.$http.post('/gov/access/govMenuCustomerRelation/useUpdate/', params).then(({ data: res }) => {
console.log(res);
@@ -325,13 +327,13 @@ export default {
}
});
},
- close(id) {
+ close(menuId) {
let menuIds = [];
this.multipleSelection = [];
this.getData(this.dataList);
- if (id != '') {
- menuIds = [id];
+ if (menuId != '') {
+ menuIds = [menuId];
} else {
if (this.multipleSelection.length > 0) {
menuIds = this.multipleSelection;
@@ -340,8 +342,9 @@ export default {
}
}
let params = {
- ids: menuIds,
- use: '0'
+ menuIds: menuIds,
+ use: '0',
+ customerId: this.customerId
};
this.$http.post('/gov/access/govMenuCustomerRelation/useUpdate/', params).then(({ data: res }) => {
console.log(res);
@@ -407,7 +410,16 @@ export default {
// 取消
diaCancel() {
this.$emit('cancleBack');
- }
+ },
+
+ onAddOrUpdateClick(menuId) {
+ this.addOrUpdateVisible = true
+ this.$nextTick(() => {
+ this.$refs.addOrUpdate.dataForm.customerId = this.customerId
+ this.$refs.addOrUpdate.dataForm.id = menuId
+ this.$refs.addOrUpdate.init()
+ })
+ }
}
};
diff --git a/epmet-oper-web/src/views/modules/customer/manage/customer-add-or-update.vue b/epmet-oper-web/src/views/modules/customer/manage/customer-add-or-update.vue
index 40a9622..fa7ff93 100644
--- a/epmet-oper-web/src/views/modules/customer/manage/customer-add-or-update.vue
+++ b/epmet-oper-web/src/views/modules/customer/manage/customer-add-or-update.vue
@@ -110,13 +110,19 @@
-
+
+
+
+
@@ -142,6 +148,7 @@ export default {
visible: false,
dataForm: {
id: "",
+ houseQrcodePre: "",
paAgency: {
logo: "",
agencyName: "",
@@ -192,19 +199,10 @@ export default {
],
functionList: [],
- };
- },
- components: {
- CForm,
- CDialog,
- },
- created() {
- this.queryFunctionList();
- },
- computed: {
- dataRule() {
- return {
- logo: [
+
+ // 校验规则
+ dataRule: {
+ "logo": [
{
required: false,
message: this.$t("validate.required"),
@@ -215,14 +213,14 @@ export default {
{
required: true,
message: "客户名称必填",
- trigger: "blue",
+ trigger: "blur",
},
],
"paAgency.agencyName": [
{
required: true,
message: '根级组织名称必填',
- trigger: 'blue'
+ trigger: 'blur'
}
],
"paAgency.level": [
@@ -236,46 +234,63 @@ export default {
{
required: true,
message: '组织地区码必填',
- trigger: 'blue'
+ trigger: 'blur'
}
],
"paAgency.province": [
{
required: true,
message: '组织省份必填',
- trigger: 'blue'
+ trigger: 'blur'
}
],
"paUser.realName": [
{
required: true,
message: '管理员姓名必填',
- trigger: 'blue'
+ trigger: 'blur'
}
],
"paUser.phone": [
{
required: true,
message: '管理员电话必填',
- trigger: 'blue'
+ trigger: 'blur'
}
],
"paUser.idCard": [
{
required: true,
message: '管理员证件号必填',
- trigger: 'blue'
+ trigger: 'blur'
}
],
"paAgency.validityTime": [
{
required: true,
- message: '必填',
- trigger: 'change'
+ message: '有效期必填',
+ trigger: 'blur'
+ }
+ ],
+ "houseQrcodePre": [
+ {
+ required: true,
+ message: '二维码uri前缀必填',
+ trigger: 'blur'
}
]
- };
- },
+ }
+ };
+ },
+ components: {
+ CForm,
+ CDialog,
+ },
+ created() {
+ // this.queryFunctionList();
+ },
+ computed: {
+
},
methods: {
// 上传logo成功
@@ -319,11 +334,6 @@ export default {
return false;
}
- if (true) {
- this.$message.info("成功");
- return;
- }
-
console.log(this.dataForm);
this.$http["post"]("/oper/crm/customer/initLocally", this.dataForm)
.then(({ data: res }) => {
diff --git a/epmet-oper-web/src/views/modules/dyform/formList.vue b/epmet-oper-web/src/views/modules/dyform/formList.vue
index efd0935..d193e88 100644
--- a/epmet-oper-web/src/views/modules/dyform/formList.vue
+++ b/epmet-oper-web/src/views/modules/dyform/formList.vue
@@ -137,7 +137,7 @@ export default {
} else {
this.$message({
type: 'error',
- nessage: res.msg
+ message: res.msg
})
}
diff --git a/epmet-oper-web/src/views/modules/partner/app/index.vue b/epmet-oper-web/src/views/modules/partner/app/index.vue
index 4eac9e1..737c16b 100644
--- a/epmet-oper-web/src/views/modules/partner/app/index.vue
+++ b/epmet-oper-web/src/views/modules/partner/app/index.vue
@@ -51,14 +51,41 @@
:operationWidth="80"
:operations="operations"
@editShow="editShow"
- @copySecret="copySecret"
- @resetSecret="resetSecret"
+ @showSecrets="showSecrets"
@del="del">
+
+
+
+
+
+
+
+ 重置
+
+
+
+
+ 重置
+
+
+
@@ -78,6 +105,7 @@ import { requestPost } from "@/js/dai/request";
import { envIsDev, mockUrlPrefix } from "@/js/dai/config";
import { Loading } from "element-ui";
import nextTick from "dai-js/tools/nextTick";
+import params from "@/views/modules/sys/params.vue";
// 当前是否是开发环境
const isMockEnv = envIsDev && false;
@@ -89,11 +117,19 @@ export default {
data () {
return {
+ // 当前操作的appId
+ currAppId: null,
+ // 是否显示密钥对话框
+ isShowSecretsDlgShow: false,
+ secrets: {
+ symSecret: null,
+ asymSecretPublic: null
+ },
tableUrl: requestUrlPrefix + "/commonservice/externalapp/list",
// 查询条件
tableParams: {
customerId: "",
- customerType: "internal",
+ customerType: "external",
},
operations: [
@@ -110,30 +146,42 @@ export default {
},
},
{
- lable: "复制秘钥", // 按钮显示名称
- size: "mini",
- style: "margin: 0 6px;",
- type: "text",
- slot: "",
- plain: false,
- methodName: "copySecret", // 回调方法名称
- isShow: (row) => {
- return true;
- },
- },
- {
- lable: "重置秘钥", // 按钮显示名称
+ lable: "查看秘钥", // 按钮显示名称
size: "mini",
style: "margin: 0 6px;",
type: "text",
slot: "",
plain: false,
- methodName: "resetSecret", // 回调方法名称
+ methodName: "showSecrets", // 回调方法名称
isShow: (row) => {
return true;
},
},
// {
+ // lable: "复制秘钥", // 按钮显示名称
+ // size: "mini",
+ // style: "margin: 0 6px;",
+ // type: "text",
+ // slot: "",
+ // plain: false,
+ // methodName: "copySecret", // 回调方法名称
+ // isShow: (row) => {
+ // return true;
+ // },
+ // },
+ // {
+ // lable: "重置秘钥", // 按钮显示名称
+ // size: "mini",
+ // style: "margin: 0 6px;",
+ // type: "text",
+ // slot: "",
+ // plain: false,
+ // methodName: "resetSecret", // 回调方法名称
+ // isShow: (row) => {
+ // return true;
+ // },
+ // },
+ // {
// lable: "删除", // 按钮显示名称
// size: "mini",
// style: "margin: 0 6px;",
@@ -280,6 +328,80 @@ export default {
editDiaOK () {
this.refresh();
},
+
+ /**
+ * 显示密钥
+ */
+ showSecrets(row) {
+ // 查询密钥
+ this.currAppId = row.appId
+ let url = `/commonservice/externalapp/getSecrets`;
+ let params = {
+ appId: row.appId
+ }
+ window.app.ajax.get(
+ url,
+ params,
+ (data, msg) => {
+ this.secrets.symSecret = data.symSecret
+ this.secrets.asymSecretPublic = data.asymSecretPublic
+ },
+ (data, msg) => {
+
+ })
+
+ this.isShowSecretsDlgShow = true
+ },
+
+ /**
+ * 重置对称加密密钥
+ */
+ resetSymSecret() {
+ this.$confirm('确认重置?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ let url = "/commonservice/externalapp/resetSymSecret";
+ let params = {
+ appId: this.currAppId
+ }
+
+ window.app.ajax.post(url, params,
+ (data, msg) => {
+ this.$message.success('重置成功')
+ this.secrets.symSecret = data;
+ },
+ (msg, data) => {
+ this.$message.info('重置失败')
+ })
+ })
+ },
+
+ /**
+ * 重置非对称加密密钥
+ */
+ resetAsymSecret() {
+ this.$confirm('确认重置?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ let url = "/commonservice/externalapp/resetAsymSecrets";
+ let params = {
+ appId: this.currAppId
+ }
+
+ window.app.ajax.post(url, params,
+ (data, msg) => {
+ this.$message.success('重置成功')
+ this.secrets.asymSecretPublic = data.publicKey;
+ },
+ (msg, data) => {
+ this.$message.info('重置失败')
+ })
+ })
+ }
},
};
diff --git a/epmet-oper-web/src/views/modules/sys/upgrade-version-history.vue b/epmet-oper-web/src/views/modules/sys/upgrade-version-history.vue
new file mode 100644
index 0000000..27ae6e9
--- /dev/null
+++ b/epmet-oper-web/src/views/modules/sys/upgrade-version-history.vue
@@ -0,0 +1,275 @@
+
+
+
+
+
+
+ 新增
+ 修改
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ $t('upload.button')
+ }}
+
+
+
+ 提交
+ 取消
+
+
+
+
+
+
+
+
+