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

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

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