Merge branch 'huyt' of http://ufidahz.com.cn:9015/root/middleground_code_v2 into huyt
Conflicts: vue.config.js
This commit is contained in:
commit
bfa0b1ca6b
|
@ -49,25 +49,26 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import vueJsonEditor from "vue-json-editor";
|
import vueJsonEditor from 'vue-json-editor'
|
||||||
import baseRightDialog from "@/components/base/baseRightDialog";
|
import baseRightDialog from '@/components/base/baseRightDialog'
|
||||||
import baseForm from "@/components/base/baseNewForm";
|
import baseForm from '@/components/base/baseNewForm'
|
||||||
import baseTable from "@/components/base/baseTable";
|
import baseTable from '@/components/base/baseTable'
|
||||||
import configData from "./configData";
|
import configData from './configData'
|
||||||
import { authApi } from "@/api/apis/auth";
|
import { authApi } from '@/api/apis/auth'
|
||||||
import {getApiModuleApi} from "@/api/apiChunks/index.js";
|
import { getApiModuleApi } from '@/api/apiChunks/index.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
baseRightDialog,
|
baseRightDialog,
|
||||||
baseForm,
|
baseForm,
|
||||||
baseTable,
|
baseTable,
|
||||||
vueJsonEditor,
|
vueJsonEditor
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
dialogTitle: "",
|
dialogTitle: '',
|
||||||
dialogType: "",
|
dialogType: '',
|
||||||
formRow: configData.formRow,
|
formRow: configData.formRow,
|
||||||
basicsRules: configData.basicsRules,
|
basicsRules: configData.basicsRules,
|
||||||
vLoading: false,
|
vLoading: false,
|
||||||
|
@ -75,136 +76,137 @@ export default {
|
||||||
sourceData: {},
|
sourceData: {},
|
||||||
sourceDataFlag: true,
|
sourceDataFlag: true,
|
||||||
targetData: {},
|
targetData: {},
|
||||||
targetDataFlag: true,
|
targetDataFlag: true
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openDialog(type, row) {
|
openDialog(type, row) {
|
||||||
this.querysysAppService();
|
this.querysysAppService()
|
||||||
// this.querysysAppApiService();
|
// this.querysysAppApiService();
|
||||||
this.formRow = configData.formRow;
|
this.formRow = configData.formRow
|
||||||
this.submitShow = true;
|
this.submitShow = true
|
||||||
// 编辑
|
// 编辑
|
||||||
if (type == "edit") {
|
if (type == 'edit') {
|
||||||
this.dialogTitle = "编辑";
|
this.dialogTitle = '编辑'
|
||||||
this.dialogType = "edit";
|
this.dialogType = 'edit'
|
||||||
this.messageLogGetById(row.id);
|
this.messageLogGetById(row.id)
|
||||||
}
|
}
|
||||||
// 查看
|
// 查看
|
||||||
if (type == "show") {
|
if (type == 'show') {
|
||||||
this.submitShow = false;
|
this.submitShow = false
|
||||||
this.formRow = configData.formRowShow;
|
this.formRow = configData.formRowShow
|
||||||
this.dialogTitle = "查看";
|
this.dialogTitle = '查看'
|
||||||
this.dialogType = "show";
|
this.dialogType = 'show'
|
||||||
this.messageLogGetById(row.id);
|
this.messageLogGetById(row.id, row)
|
||||||
}
|
}
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true
|
||||||
},
|
},
|
||||||
// 编辑详情
|
// 编辑详情
|
||||||
async messageLogGetById(id) {
|
async messageLogGetById(id, row) {
|
||||||
let params = {
|
let params = {
|
||||||
id: id,
|
id: id,
|
||||||
};
|
status: row.status
|
||||||
|
}
|
||||||
let res = await authApi(
|
let res = await authApi(
|
||||||
"sysMessageManageLogService",
|
'sysMessageManageLogService',
|
||||||
"messageManage",
|
'messageManage',
|
||||||
"thirdInterfacequeryEntity",
|
'thirdInterfacequeryEntity',
|
||||||
"",
|
'',
|
||||||
params
|
params
|
||||||
);
|
)
|
||||||
if (res.status == "200") {
|
if (res.status == '200') {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.basicsForm.incomingParameters(res.attribute);
|
this.$refs.basicsForm.incomingParameters(res.attribute)
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 实时保存 源数据
|
// 实时保存 源数据
|
||||||
onSourceDataJsonChange(value) {
|
onSourceDataJsonChange(value) {
|
||||||
this.onSourceDataSave(value);
|
this.onSourceDataSave(value)
|
||||||
},
|
},
|
||||||
onSourceDataSave(value) {
|
onSourceDataSave(value) {
|
||||||
this.sourceData = value;
|
this.sourceData = value
|
||||||
this.sourceDataFlag = true;
|
this.sourceDataFlag = true
|
||||||
},
|
},
|
||||||
onSourceDataError(value) {
|
onSourceDataError(value) {
|
||||||
this.sourceDataFlag = false;
|
this.sourceDataFlag = false
|
||||||
},
|
},
|
||||||
checkSourceDataJson() {
|
checkSourceDataJson() {
|
||||||
if (this.sourceDataFlag === false) {
|
if (this.sourceDataFlag === false) {
|
||||||
return false;
|
return false
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 实时保存 目标数据
|
// 实时保存 目标数据
|
||||||
onTargetDataChange(value) {
|
onTargetDataChange(value) {
|
||||||
this.onTargetDataSave(value);
|
this.onTargetDataSave(value)
|
||||||
},
|
},
|
||||||
onTargetDataSave(value) {
|
onTargetDataSave(value) {
|
||||||
this.targetData = value;
|
this.targetData = value
|
||||||
this.targetDataFlag = true;
|
this.targetDataFlag = true
|
||||||
},
|
},
|
||||||
onTargetDataError(value) {
|
onTargetDataError(value) {
|
||||||
this.targetDataFlag = false;
|
this.targetDataFlag = false
|
||||||
},
|
},
|
||||||
checkTargetDataJson() {
|
checkTargetDataJson() {
|
||||||
if (this.targetDataFlag === false) {
|
if (this.targetDataFlag === false) {
|
||||||
return false;
|
return false
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 弹窗关闭
|
// 弹窗关闭
|
||||||
handleDialogClose() {
|
handleDialogClose() {
|
||||||
this.$refs.basicsForm.resetFields();
|
this.$refs.basicsForm.resetFields()
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false
|
||||||
},
|
},
|
||||||
// 弹窗确认按钮
|
// 弹窗确认按钮
|
||||||
handleConfirmClick() {
|
handleConfirmClick() {
|
||||||
let checkSource = this.checkSourceDataJson();
|
let checkSource = this.checkSourceDataJson()
|
||||||
if (!checkSource) {
|
if (!checkSource) {
|
||||||
this.$vmNews("源数据格式应为JSON格式!", "warning");
|
this.$vmNews('源数据格式应为JSON格式!', 'warning')
|
||||||
return;
|
return
|
||||||
}
|
}
|
||||||
let checkTarget = this.checkTargetDataJson();
|
let checkTarget = this.checkTargetDataJson()
|
||||||
if (!checkTarget) {
|
if (!checkTarget) {
|
||||||
this.$vmNews("目标数据格式应为JSON格式!", "warning");
|
this.$vmNews('目标数据格式应为JSON格式!', 'warning')
|
||||||
return;
|
return
|
||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
...this.$refs.basicsForm.ruleForm,
|
...this.$refs.basicsForm.ruleForm,
|
||||||
sourceData: this.sourceData,
|
sourceData: this.sourceData,
|
||||||
targetData: this.targetData,
|
targetData: this.targetData
|
||||||
};
|
}
|
||||||
if (this.dialogType == "edit") {
|
if (this.dialogType == 'edit') {
|
||||||
this.openLoading("submit");
|
this.openLoading('submit')
|
||||||
this.messageLogUpdateDto(params);
|
this.messageLogUpdateDto(params)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 编辑保存
|
// 编辑保存
|
||||||
async messageLogUpdateDto(params) {
|
async messageLogUpdateDto(params) {
|
||||||
let res = await authApi(
|
let res = await authApi(
|
||||||
"sysMessageManageLogService",
|
'sysMessageManageLogService',
|
||||||
"messageManage",
|
'messageManage',
|
||||||
"updateEntity",
|
'updateEntity',
|
||||||
"",
|
'',
|
||||||
params
|
params
|
||||||
);
|
)
|
||||||
if (res.status == "200") {
|
if (res.status == '200') {
|
||||||
this.handleDialogClose();
|
this.handleDialogClose()
|
||||||
this.$vmNews("更新成功", "success");
|
this.$vmNews('更新成功', 'success')
|
||||||
this.$emit("resetTable");
|
this.$emit('resetTable')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 应用
|
// 应用
|
||||||
async querysysAppService() {
|
async querysysAppService() {
|
||||||
const res = await getApiModuleApi({
|
const res = await getApiModuleApi({
|
||||||
tl: "sysApplicationService",
|
tl: 'sysApplicationService',
|
||||||
as: "application",
|
as: 'application',
|
||||||
dj: "thirdInterfacequeryApp"
|
dj: 'thirdInterfacequeryApp'
|
||||||
}, {
|
}, {
|
||||||
"pageNum": 1,
|
'pageNum': 1,
|
||||||
"pageSize": 999
|
'pageSize': 999
|
||||||
})
|
})
|
||||||
this.formRow[0].elCol[0].options = res.attribute.list
|
this.formRow[0].elCol[0].options = res.attribute.list
|
||||||
// if (res.status == "200") {
|
// if (res.status == "200") {
|
||||||
|
@ -216,29 +218,31 @@ export default {
|
||||||
async querysysAppApiService() {
|
async querysysAppApiService() {
|
||||||
let params = {
|
let params = {
|
||||||
pageSize: 9999,
|
pageSize: 9999,
|
||||||
pageNum: 1,
|
pageNum: 1
|
||||||
};
|
}
|
||||||
let res = await authApi(
|
let res = await authApi(
|
||||||
"appApiService",
|
'appApiService',
|
||||||
"appApi",
|
'appApi',
|
||||||
"queryPage",
|
'queryPage',
|
||||||
"",
|
'',
|
||||||
params
|
params
|
||||||
);
|
)
|
||||||
if (res.status == "200") {
|
if (res.status == '200') {
|
||||||
// this.formRow[1].elCol[1].options = res.attribute.list;
|
// this.formRow[1].elCol[1].options = res.attribute.list;
|
||||||
// this.formRow[2].elCol[1].options = res.attribute.list;
|
// this.formRow[2].elCol[1].options = res.attribute.list;
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.code-json-editor {
|
.code-json-editor {
|
||||||
/* jsoneditor右上角默认有一个链接,加css去掉 */
|
/* jsoneditor右上角默认有一个链接,加css去掉 */
|
||||||
|
|
||||||
/deep/ .jsoneditor-poweredBy {
|
/deep/ .jsoneditor-poweredBy {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/ .ace-jsoneditor {
|
/deep/ .ace-jsoneditor {
|
||||||
height: 150px !important;
|
height: 150px !important;
|
||||||
}
|
}
|
||||||
|
@ -249,6 +253,7 @@ export default {
|
||||||
::v-deep textarea.el-textarea__inner {
|
::v-deep textarea.el-textarea__inner {
|
||||||
min-height: 150px !important;
|
min-height: 150px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialogList {
|
.dialogList {
|
||||||
padding: 16px 0;
|
padding: 16px 0;
|
||||||
border-top: 1px solid #dcdfe6;
|
border-top: 1px solid #dcdfe6;
|
||||||
|
|
|
@ -49,25 +49,26 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import vueJsonEditor from "vue-json-editor";
|
import vueJsonEditor from 'vue-json-editor'
|
||||||
import baseRightDialog from "@/components/base/baseRightDialog";
|
import baseRightDialog from '@/components/base/baseRightDialog'
|
||||||
import baseForm from "@/components/base/baseNewForm";
|
import baseForm from '@/components/base/baseNewForm'
|
||||||
import baseTable from "@/components/base/baseTable";
|
import baseTable from '@/components/base/baseTable'
|
||||||
import configData from "./configData";
|
import configData from './configData'
|
||||||
import { authApi } from "@/api/apis/auth";
|
import { authApi } from '@/api/apis/auth'
|
||||||
import {getApiModuleApi} from "@/api/apiChunks/index.js";
|
import { getApiModuleApi } from '@/api/apiChunks/index.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
baseRightDialog,
|
baseRightDialog,
|
||||||
baseForm,
|
baseForm,
|
||||||
baseTable,
|
baseTable,
|
||||||
vueJsonEditor,
|
vueJsonEditor
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
dialogTitle: "",
|
dialogTitle: '',
|
||||||
dialogType: "",
|
dialogType: '',
|
||||||
formRow: configData.formRow,
|
formRow: configData.formRow,
|
||||||
basicsRules: configData.basicsRules,
|
basicsRules: configData.basicsRules,
|
||||||
vLoading: false,
|
vLoading: false,
|
||||||
|
@ -75,136 +76,137 @@ export default {
|
||||||
sourceData: {},
|
sourceData: {},
|
||||||
sourceDataFlag: true,
|
sourceDataFlag: true,
|
||||||
targetData: {},
|
targetData: {},
|
||||||
targetDataFlag: true,
|
targetDataFlag: true
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openDialog(type, row) {
|
openDialog(type, row) {
|
||||||
this.querysysAppService();
|
this.querysysAppService()
|
||||||
// this.querysysAppApiService();
|
// this.querysysAppApiService();
|
||||||
this.formRow = configData.formRow;
|
this.formRow = configData.formRow
|
||||||
this.submitShow = true;
|
this.submitShow = true
|
||||||
// 编辑
|
// 编辑
|
||||||
if (type == "edit") {
|
if (type == 'edit') {
|
||||||
this.dialogTitle = "编辑";
|
this.dialogTitle = '编辑'
|
||||||
this.dialogType = "edit";
|
this.dialogType = 'edit'
|
||||||
this.messageLogGetById(row.id);
|
this.messageLogGetById(row.id, row)
|
||||||
}
|
}
|
||||||
// 查看
|
// 查看
|
||||||
if (type == "show") {
|
if (type == 'show') {
|
||||||
this.submitShow = false;
|
this.submitShow = false
|
||||||
this.formRow = configData.formRowShow;
|
this.formRow = configData.formRowShow
|
||||||
this.dialogTitle = "查看";
|
this.dialogTitle = '查看'
|
||||||
this.dialogType = "show";
|
this.dialogType = 'show'
|
||||||
this.messageLogGetById(row.id);
|
this.messageLogGetById(row.id, row)
|
||||||
}
|
}
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true
|
||||||
},
|
},
|
||||||
// 编辑详情
|
// 编辑详情
|
||||||
async messageLogGetById(id) {
|
async messageLogGetById(id, row) {
|
||||||
let params = {
|
let params = {
|
||||||
id: id,
|
id: id,
|
||||||
};
|
status: row.status
|
||||||
|
}
|
||||||
let res = await authApi(
|
let res = await authApi(
|
||||||
"sysMessageManageLogService",
|
'sysMessageManageLogService',
|
||||||
"messageManage",
|
'messageManage',
|
||||||
"thirdInterfacequeryEntity",
|
'thirdInterfacequeryEntity',
|
||||||
"",
|
'',
|
||||||
params
|
params
|
||||||
);
|
)
|
||||||
if (res.status == "200") {
|
if (res.status == '200') {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.basicsForm.incomingParameters(res.attribute);
|
this.$refs.basicsForm.incomingParameters(res.attribute)
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 实时保存 源数据
|
// 实时保存 源数据
|
||||||
onSourceDataJsonChange(value) {
|
onSourceDataJsonChange(value) {
|
||||||
this.onSourceDataSave(value);
|
this.onSourceDataSave(value)
|
||||||
},
|
},
|
||||||
onSourceDataSave(value) {
|
onSourceDataSave(value) {
|
||||||
this.sourceData = value;
|
this.sourceData = value
|
||||||
this.sourceDataFlag = true;
|
this.sourceDataFlag = true
|
||||||
},
|
},
|
||||||
onSourceDataError(value) {
|
onSourceDataError(value) {
|
||||||
this.sourceDataFlag = false;
|
this.sourceDataFlag = false
|
||||||
},
|
},
|
||||||
checkSourceDataJson() {
|
checkSourceDataJson() {
|
||||||
if (this.sourceDataFlag === false) {
|
if (this.sourceDataFlag === false) {
|
||||||
return false;
|
return false
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 实时保存 目标数据
|
// 实时保存 目标数据
|
||||||
onTargetDataChange(value) {
|
onTargetDataChange(value) {
|
||||||
this.onTargetDataSave(value);
|
this.onTargetDataSave(value)
|
||||||
},
|
},
|
||||||
onTargetDataSave(value) {
|
onTargetDataSave(value) {
|
||||||
this.targetData = value;
|
this.targetData = value
|
||||||
this.targetDataFlag = true;
|
this.targetDataFlag = true
|
||||||
},
|
},
|
||||||
onTargetDataError(value) {
|
onTargetDataError(value) {
|
||||||
this.targetDataFlag = false;
|
this.targetDataFlag = false
|
||||||
},
|
},
|
||||||
checkTargetDataJson() {
|
checkTargetDataJson() {
|
||||||
if (this.targetDataFlag === false) {
|
if (this.targetDataFlag === false) {
|
||||||
return false;
|
return false
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 弹窗关闭
|
// 弹窗关闭
|
||||||
handleDialogClose() {
|
handleDialogClose() {
|
||||||
this.$refs.basicsForm.resetFields();
|
this.$refs.basicsForm.resetFields()
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false
|
||||||
},
|
},
|
||||||
// 弹窗确认按钮
|
// 弹窗确认按钮
|
||||||
handleConfirmClick() {
|
handleConfirmClick() {
|
||||||
let checkSource = this.checkSourceDataJson();
|
let checkSource = this.checkSourceDataJson()
|
||||||
if (!checkSource) {
|
if (!checkSource) {
|
||||||
this.$vmNews("源数据格式应为JSON格式!", "warning");
|
this.$vmNews('源数据格式应为JSON格式!', 'warning')
|
||||||
return;
|
return
|
||||||
}
|
}
|
||||||
let checkTarget = this.checkTargetDataJson();
|
let checkTarget = this.checkTargetDataJson()
|
||||||
if (!checkTarget) {
|
if (!checkTarget) {
|
||||||
this.$vmNews("目标数据格式应为JSON格式!", "warning");
|
this.$vmNews('目标数据格式应为JSON格式!', 'warning')
|
||||||
return;
|
return
|
||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
...this.$refs.basicsForm.ruleForm,
|
...this.$refs.basicsForm.ruleForm,
|
||||||
sourceData: this.sourceData,
|
sourceData: this.sourceData,
|
||||||
targetData: this.targetData,
|
targetData: this.targetData
|
||||||
};
|
}
|
||||||
if (this.dialogType == "edit") {
|
if (this.dialogType == 'edit') {
|
||||||
this.openLoading("submit");
|
this.openLoading('submit')
|
||||||
this.messageLogUpdateDto(params);
|
this.messageLogUpdateDto(params)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 编辑保存
|
// 编辑保存
|
||||||
async messageLogUpdateDto(params) {
|
async messageLogUpdateDto(params) {
|
||||||
let res = await authApi(
|
let res = await authApi(
|
||||||
"sysMessageManageLogService",
|
'sysMessageManageLogService',
|
||||||
"messageManage",
|
'messageManage',
|
||||||
"updateEntity",
|
'updateEntity',
|
||||||
"",
|
'',
|
||||||
params
|
params
|
||||||
);
|
)
|
||||||
if (res.status == "200") {
|
if (res.status == '200') {
|
||||||
this.handleDialogClose();
|
this.handleDialogClose()
|
||||||
this.$vmNews("更新成功", "success");
|
this.$vmNews('更新成功', 'success')
|
||||||
this.$emit("resetTable");
|
this.$emit('resetTable')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 应用
|
// 应用
|
||||||
async querysysAppService() {
|
async querysysAppService() {
|
||||||
const res = await getApiModuleApi({
|
const res = await getApiModuleApi({
|
||||||
tl: "sysApplicationService",
|
tl: 'sysApplicationService',
|
||||||
as: "application",
|
as: 'application',
|
||||||
dj: "thirdInterfacequeryApp"
|
dj: 'thirdInterfacequeryApp'
|
||||||
}, {
|
}, {
|
||||||
"pageNum": 1,
|
'pageNum': 1,
|
||||||
"pageSize": 999
|
'pageSize': 999
|
||||||
})
|
})
|
||||||
this.formRow[0].elCol[0].options = res.attribute.list
|
this.formRow[0].elCol[0].options = res.attribute.list
|
||||||
// if (res.status == "200") {
|
// if (res.status == "200") {
|
||||||
|
@ -216,29 +218,31 @@ export default {
|
||||||
async querysysAppApiService() {
|
async querysysAppApiService() {
|
||||||
let params = {
|
let params = {
|
||||||
pageSize: 9999,
|
pageSize: 9999,
|
||||||
pageNum: 1,
|
pageNum: 1
|
||||||
};
|
}
|
||||||
let res = await authApi(
|
let res = await authApi(
|
||||||
"appApiService",
|
'appApiService',
|
||||||
"appApi",
|
'appApi',
|
||||||
"queryPage",
|
'queryPage',
|
||||||
"",
|
'',
|
||||||
params
|
params
|
||||||
);
|
)
|
||||||
if (res.status == "200") {
|
if (res.status == '200') {
|
||||||
// this.formRow[1].elCol[1].options = res.attribute.list;
|
// this.formRow[1].elCol[1].options = res.attribute.list;
|
||||||
// this.formRow[2].elCol[1].options = res.attribute.list;
|
// this.formRow[2].elCol[1].options = res.attribute.list;
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.code-json-editor {
|
.code-json-editor {
|
||||||
/* jsoneditor右上角默认有一个链接,加css去掉 */
|
/* jsoneditor右上角默认有一个链接,加css去掉 */
|
||||||
|
|
||||||
/deep/ .jsoneditor-poweredBy {
|
/deep/ .jsoneditor-poweredBy {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/ .ace-jsoneditor {
|
/deep/ .ace-jsoneditor {
|
||||||
height: 150px !important;
|
height: 150px !important;
|
||||||
}
|
}
|
||||||
|
@ -249,6 +253,7 @@ export default {
|
||||||
::v-deep textarea.el-textarea__inner {
|
::v-deep textarea.el-textarea__inner {
|
||||||
min-height: 150px !important;
|
min-height: 150px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialogList {
|
.dialogList {
|
||||||
padding: 16px 0;
|
padding: 16px 0;
|
||||||
border-top: 1px solid #dcdfe6;
|
border-top: 1px solid #dcdfe6;
|
||||||
|
|
|
@ -49,24 +49,25 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import vueJsonEditor from "vue-json-editor";
|
import vueJsonEditor from 'vue-json-editor'
|
||||||
import baseRightDialog from "@/components/base/baseRightDialog";
|
import baseRightDialog from '@/components/base/baseRightDialog'
|
||||||
import baseForm from "@/components/base/baseNewForm";
|
import baseForm from '@/components/base/baseNewForm'
|
||||||
import baseTable from "@/components/base/baseTable";
|
import baseTable from '@/components/base/baseTable'
|
||||||
import configData from "./configData";
|
import configData from './configData'
|
||||||
import { authApi } from "@/api/apis/auth";
|
import { authApi } from '@/api/apis/auth'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
baseRightDialog,
|
baseRightDialog,
|
||||||
baseForm,
|
baseForm,
|
||||||
baseTable,
|
baseTable,
|
||||||
vueJsonEditor,
|
vueJsonEditor
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
dialogTitle: "",
|
dialogTitle: '',
|
||||||
dialogType: "",
|
dialogType: '',
|
||||||
formRow: configData.formRow,
|
formRow: configData.formRow,
|
||||||
basicsRules: configData.basicsRules,
|
basicsRules: configData.basicsRules,
|
||||||
vLoading: false,
|
vLoading: false,
|
||||||
|
@ -74,180 +75,183 @@ export default {
|
||||||
sourceData: {},
|
sourceData: {},
|
||||||
sourceDataFlag: true,
|
sourceDataFlag: true,
|
||||||
targetData: {},
|
targetData: {},
|
||||||
targetDataFlag: true,
|
targetDataFlag: true
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openDialog(type, row) {
|
openDialog(type, row) {
|
||||||
this.querysysAppService();
|
this.querysysAppService()
|
||||||
this.querysysAppApiService();
|
this.querysysAppApiService()
|
||||||
this.formRow = configData.formRow;
|
this.formRow = configData.formRow
|
||||||
this.submitShow = true;
|
this.submitShow = true
|
||||||
// 编辑
|
// 编辑
|
||||||
if (type == "edit") {
|
if (type == 'edit') {
|
||||||
this.dialogTitle = "编辑";
|
this.dialogTitle = '编辑'
|
||||||
this.dialogType = "edit";
|
this.dialogType = 'edit'
|
||||||
this.messageLogGetById(row.id);
|
this.messageLogGetById(row.id, row)
|
||||||
}
|
}
|
||||||
// 查看
|
// 查看
|
||||||
if (type == "show") {
|
if (type == 'show') {
|
||||||
this.submitShow = false;
|
this.submitShow = false
|
||||||
this.formRow = configData.formRowShow;
|
this.formRow = configData.formRowShow
|
||||||
this.dialogTitle = "查看";
|
this.dialogTitle = '查看'
|
||||||
this.dialogType = "show";
|
this.dialogType = 'show'
|
||||||
this.messageLogGetById(row.id);
|
this.messageLogGetById(row.id, row)
|
||||||
}
|
}
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true
|
||||||
},
|
},
|
||||||
// 编辑详情
|
// 编辑详情
|
||||||
async messageLogGetById(id) {
|
async messageLogGetById(id, row) {
|
||||||
let params = {
|
let params = {
|
||||||
id: id,
|
id: id,
|
||||||
};
|
status: row.status
|
||||||
|
}
|
||||||
let res = await authApi(
|
let res = await authApi(
|
||||||
"sysMessageManageLogService",
|
'sysMessageManageLogService',
|
||||||
"messageManage",
|
'messageManage',
|
||||||
"queryEntity",
|
'queryEntity',
|
||||||
"",
|
'',
|
||||||
params
|
params
|
||||||
);
|
)
|
||||||
if (res.status == "200") {
|
if (res.status == '200') {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.basicsForm.incomingParameters(res.attribute);
|
this.$refs.basicsForm.incomingParameters(res.attribute)
|
||||||
this.sourceData = res.attribute.sourceData
|
this.sourceData = res.attribute.sourceData
|
||||||
? JSON.parse(res.attribute.sourceData)
|
? JSON.parse(res.attribute.sourceData)
|
||||||
: {};
|
: {}
|
||||||
this.targetData = res.attribute.targetData
|
this.targetData = res.attribute.targetData
|
||||||
? JSON.parse(res.attribute.targetData)
|
? JSON.parse(res.attribute.targetData)
|
||||||
: {};
|
: {}
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 实时保存 源数据
|
// 实时保存 源数据
|
||||||
onSourceDataJsonChange(value) {
|
onSourceDataJsonChange(value) {
|
||||||
this.onSourceDataSave(value);
|
this.onSourceDataSave(value)
|
||||||
},
|
},
|
||||||
onSourceDataSave(value) {
|
onSourceDataSave(value) {
|
||||||
this.sourceData = value;
|
this.sourceData = value
|
||||||
this.sourceDataFlag = true;
|
this.sourceDataFlag = true
|
||||||
},
|
},
|
||||||
onSourceDataError(value) {
|
onSourceDataError(value) {
|
||||||
this.sourceDataFlag = false;
|
this.sourceDataFlag = false
|
||||||
},
|
},
|
||||||
checkSourceDataJson() {
|
checkSourceDataJson() {
|
||||||
if (this.sourceDataFlag === false) {
|
if (this.sourceDataFlag === false) {
|
||||||
return false;
|
return false
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 实时保存 目标数据
|
// 实时保存 目标数据
|
||||||
onTargetDataChange(value) {
|
onTargetDataChange(value) {
|
||||||
this.onTargetDataSave(value);
|
this.onTargetDataSave(value)
|
||||||
},
|
},
|
||||||
onTargetDataSave(value) {
|
onTargetDataSave(value) {
|
||||||
this.targetData = value;
|
this.targetData = value
|
||||||
this.targetDataFlag = true;
|
this.targetDataFlag = true
|
||||||
},
|
},
|
||||||
onTargetDataError(value) {
|
onTargetDataError(value) {
|
||||||
this.targetDataFlag = false;
|
this.targetDataFlag = false
|
||||||
},
|
},
|
||||||
checkTargetDataJson() {
|
checkTargetDataJson() {
|
||||||
if (this.targetDataFlag === false) {
|
if (this.targetDataFlag === false) {
|
||||||
return false;
|
return false
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 弹窗关闭
|
// 弹窗关闭
|
||||||
handleDialogClose() {
|
handleDialogClose() {
|
||||||
this.sourceData = {};
|
this.sourceData = {}
|
||||||
this.targetData = {};
|
this.targetData = {}
|
||||||
this.$refs.basicsForm.resetFields();
|
this.$refs.basicsForm.resetFields()
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false
|
||||||
},
|
},
|
||||||
// 弹窗确认按钮
|
// 弹窗确认按钮
|
||||||
handleConfirmClick() {
|
handleConfirmClick() {
|
||||||
let checkSource = this.checkSourceDataJson();
|
let checkSource = this.checkSourceDataJson()
|
||||||
if (!checkSource) {
|
if (!checkSource) {
|
||||||
this.$vmNews("源数据格式应为JSON格式!", "warning");
|
this.$vmNews('源数据格式应为JSON格式!', 'warning')
|
||||||
return;
|
return
|
||||||
}
|
}
|
||||||
let checkTarget = this.checkTargetDataJson();
|
let checkTarget = this.checkTargetDataJson()
|
||||||
if (!checkTarget) {
|
if (!checkTarget) {
|
||||||
this.$vmNews("目标数据格式应为JSON格式!", "warning");
|
this.$vmNews('目标数据格式应为JSON格式!', 'warning')
|
||||||
return;
|
return
|
||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
...this.$refs.basicsForm.ruleForm,
|
...this.$refs.basicsForm.ruleForm,
|
||||||
sourceData: this.sourceData,
|
sourceData: this.sourceData,
|
||||||
targetData: this.targetData,
|
targetData: this.targetData
|
||||||
};
|
}
|
||||||
if (this.dialogType == "edit") {
|
if (this.dialogType == 'edit') {
|
||||||
this.openLoading("submit");
|
this.openLoading('submit')
|
||||||
this.messageLogUpdateDto(params);
|
this.messageLogUpdateDto(params)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 编辑保存
|
// 编辑保存
|
||||||
async messageLogUpdateDto(params) {
|
async messageLogUpdateDto(params) {
|
||||||
let res = await authApi(
|
let res = await authApi(
|
||||||
"sysMessageManageLogService",
|
'sysMessageManageLogService',
|
||||||
"messageManage",
|
'messageManage',
|
||||||
"updateEntity",
|
'updateEntity',
|
||||||
"",
|
'',
|
||||||
params
|
params
|
||||||
);
|
)
|
||||||
if (res.status == "200") {
|
if (res.status == '200') {
|
||||||
this.handleDialogClose();
|
this.handleDialogClose()
|
||||||
this.$vmNews("更新成功", "success");
|
this.$vmNews('更新成功', 'success')
|
||||||
this.$emit("resetTable");
|
this.$emit('resetTable')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 应用
|
// 应用
|
||||||
async querysysAppService() {
|
async querysysAppService() {
|
||||||
let params = {
|
let params = {
|
||||||
pageSize: 9999,
|
pageSize: 9999,
|
||||||
pageNum: 1,
|
pageNum: 1
|
||||||
};
|
}
|
||||||
let res = await authApi(
|
let res = await authApi(
|
||||||
"sysAppService",
|
'sysAppService',
|
||||||
"app",
|
'app',
|
||||||
"queryPageApp",
|
'queryPageApp',
|
||||||
"",
|
'',
|
||||||
params
|
params
|
||||||
);
|
)
|
||||||
if (res.status == "200") {
|
if (res.status == '200') {
|
||||||
this.formRow[1].elCol[0].options = res.attribute.list;
|
this.formRow[1].elCol[0].options = res.attribute.list
|
||||||
this.formRow[2].elCol[0].options = res.attribute.list;
|
this.formRow[2].elCol[0].options = res.attribute.list
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 应用者
|
// 应用者
|
||||||
async querysysAppApiService() {
|
async querysysAppApiService() {
|
||||||
let params = {
|
let params = {
|
||||||
pageSize: 9999,
|
pageSize: 9999,
|
||||||
pageNum: 1,
|
pageNum: 1
|
||||||
};
|
|
||||||
let res = await authApi(
|
|
||||||
"appApiService",
|
|
||||||
"appApi",
|
|
||||||
"queryPage",
|
|
||||||
"",
|
|
||||||
params
|
|
||||||
);
|
|
||||||
if (res.status == "200") {
|
|
||||||
this.formRow[1].elCol[1].options = res.attribute.list;
|
|
||||||
this.formRow[2].elCol[1].options = res.attribute.list;
|
|
||||||
}
|
}
|
||||||
},
|
let res = await authApi(
|
||||||
},
|
'appApiService',
|
||||||
};
|
'appApi',
|
||||||
|
'queryPage',
|
||||||
|
'',
|
||||||
|
params
|
||||||
|
)
|
||||||
|
if (res.status == '200') {
|
||||||
|
this.formRow[1].elCol[1].options = res.attribute.list
|
||||||
|
this.formRow[2].elCol[1].options = res.attribute.list
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.code-json-editor {
|
.code-json-editor {
|
||||||
/* jsoneditor右上角默认有一个链接,加css去掉 */
|
/* jsoneditor右上角默认有一个链接,加css去掉 */
|
||||||
|
|
||||||
/deep/ .jsoneditor-poweredBy {
|
/deep/ .jsoneditor-poweredBy {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/ .ace-jsoneditor {
|
/deep/ .ace-jsoneditor {
|
||||||
height: 150px !important;
|
height: 150px !important;
|
||||||
}
|
}
|
||||||
|
@ -257,6 +261,7 @@ export default {
|
||||||
::v-deep textarea.el-textarea__inner {
|
::v-deep textarea.el-textarea__inner {
|
||||||
min-height: 150px !important;
|
min-height: 150px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialogList {
|
.dialogList {
|
||||||
padding: 16px 0;
|
padding: 16px 0;
|
||||||
border-top: 1px solid #dcdfe6;
|
border-top: 1px solid #dcdfe6;
|
||||||
|
|
|
@ -173,6 +173,8 @@ import BasePage from './compoments/basePage.vue'
|
||||||
import baseDialog from '@/views/integrationOption/compoments/baseDialog'
|
import baseDialog from '@/views/integrationOption/compoments/baseDialog'
|
||||||
import BaseTableForm from './compoments/baseTableForm_v2.vue'
|
import BaseTableForm from './compoments/baseTableForm_v2.vue'
|
||||||
import BaseMenuTree from '@/views/intergrationTask/compoments/baseMenuTree.vue'
|
import BaseMenuTree from '@/views/intergrationTask/compoments/baseMenuTree.vue'
|
||||||
|
import { getInfo } from '@/utils/auth'
|
||||||
|
import { authApi } from '@/api/apis/auth'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
@ -302,6 +304,31 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 拿按钮顺序
|
||||||
|
async getBtn() {
|
||||||
|
let userId = JSON.parse(getInfo()).id
|
||||||
|
const res = await authApi('sysButtonConfigService', '', 'getUserButton', '', {
|
||||||
|
menuId: this.$route.meta.id,
|
||||||
|
userId: userId
|
||||||
|
})
|
||||||
|
let dist_arr = ['new', 'resize', 'search']
|
||||||
|
console.log(res, 'res')
|
||||||
|
this.searchButton = []
|
||||||
|
this.mainFunData = []
|
||||||
|
res.attribute.forEach(item => {
|
||||||
|
if (dist_arr.includes(item.nameEn)) {
|
||||||
|
this.searchButton.push({
|
||||||
|
buttonType: item.nameEn,
|
||||||
|
buttonName: item.nameCh
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.mainFunData.push({
|
||||||
|
text: item.nameCh,
|
||||||
|
type: item.nameEn
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
async init() {
|
async init() {
|
||||||
this.mainLoading = true
|
this.mainLoading = true
|
||||||
const res = await getUserModuleApi({
|
const res = await getUserModuleApi({
|
||||||
|
@ -903,6 +930,7 @@ export default {
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.init()
|
this.init()
|
||||||
|
this.getBtn()
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -45,6 +45,7 @@ module.exports = {
|
||||||
// target: `http://192.168.2.78:9999`,
|
// target: `http://192.168.2.78:9999`,
|
||||||
target: `http://192.168.2.85:9999`,
|
target: `http://192.168.2.85:9999`,
|
||||||
// target: `http://192.168.2.78:8080`,
|
// target: `http://192.168.2.78:8080`,
|
||||||
|
target: `http://192.168.2.78:9999`,
|
||||||
// target: `http://192.168.2.83:9999`,
|
// target: `http://192.168.2.83:9999`,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
|
|
Loading…
Reference in New Issue