提交 994e0119 编写于 作者: ibizdev's avatar ibizdev

tony001 发布系统代码 [后台服务,演示应用]

上级 c060f436
......@@ -15,7 +15,7 @@
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import qs from "qs";
import * as dd from "dingtalk-jsapi";
// import * as dd from "dingtalk-jsapi";
import axios from "axios";
import { Util } from "@/utils";
@Component({})
......@@ -232,24 +232,24 @@ export default class AppThirdLogin extends Vue {
if (corpId.indexOf("#") > -1) {
corpId = corpId.split("#")[0];
}
dd.runtime.permission
.requestAuthCode({ corpId })
.then((res: any) => {
if (res && res.code) {
this.getData(`/uaa/open/dingtalk/auth/${res.code}`, {}, false, headers).then((res: any) => {
if (res.status == 200 && (res.data.token || res.data.user)) {
resolve({ state: "SUCCESS", data: res.data });
} else {
resolve({ state: "ERROR", message: `${res.data.message}` });
}
});
} else {
resolve({ state: "ERROR", message: `钉钉用户信息获取失败` });
}
})
.catch((error: any) => {
resolve({ state: "ERROR", message: `钉钉用户信息获取失败` });
});
// dd.runtime.permission
// .requestAuthCode({ corpId })
// .then((res: any) => {
// if (res && res.code) {
// this.getData(`/uaa/open/dingtalk/auth/${res.code}`, {}, false, headers).then((res: any) => {
// if (res.status == 200 && (res.data.token || res.data.user)) {
// resolve({ state: "SUCCESS", data: res.data });
// } else {
// resolve({ state: "ERROR", message: `${res.data.message}` });
// }
// });
// } else {
// resolve({ state: "ERROR", message: `钉钉用户信息获取失败` });
// }
// })
// .catch((error: any) => {
// resolve({ state: "ERROR", message: `钉钉用户信息获取失败` });
// });
} else {
resolve({ state: "ERROR", message: `获取企业ID失败` });
}
......
......@@ -621,7 +621,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -657,7 +657,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -278,7 +278,7 @@
<!--输出实体[IBIZCUSTOMER]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizcustomer-42-10">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizcustomer-46-10">
<createTable tableName="T_IBIZCUSTOMER">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......
......@@ -19,7 +19,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZCUSTOMER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_LAB01_df847bdfd" id="view-ibizcustomer-42-4" runOnChange="true">
<changeSet author="a_LAB01_df847bdfd" id="view-ibizcustomer-46-4" runOnChange="true">
<createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZCUSTOMER">
<![CDATA[ SELECT t1.[ADDRESS], t1.[CREATEDATE], t1.[CREATEMAN], t1.[CUSTOMERUID], t1.[IBIZCUSTOMERID], t1.[IBIZCUSTOMERNAME], t1.[SN], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZCUSTOMER] t1 ]]>
</createView>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册