top权限信息修改,删除web端控制台信息输出

This commit is contained in:
clay 2021-08-05 14:14:28 +08:00
parent c8a3149a62
commit daef1c9abd
12 changed files with 20 additions and 49 deletions

View File

@ -4,8 +4,7 @@ ENV = 'development'
# EBTS/开发环境 # EBTS/开发环境
#VUE_APP_BASE_API = '/dev-api' #VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_API = 'http://localhost:8085/dev-api' VUE_APP_BASE_API = 'http://localhost:8085/dev-api'
#VUE_APP_BASE_API = 'http://apibase.hchyun.com/dev-api' #VUE_APP_BASE_API = 'https://api.ebts.top/dev-api'
#VUE_APP_BASE_API = 'http://apig.odliken.top/dev-api'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

View File

@ -3,5 +3,4 @@ ENV = 'production'
# EBTS/生产环境 # EBTS/生产环境
#VUE_APP_BASE_API = '/prod-api' #VUE_APP_BASE_API = '/prod-api'
VUE_APP_BASE_API = 'http://apibase.hchyun.com/dev-api' VUE_APP_BASE_API = 'https://api.ebts.top/dev-api'
#VUE_APP_BASE_API = '/dev-api'

View File

@ -35,8 +35,6 @@ export default {
if (typeof val !== 'string') return if (typeof val !== 'string') return
const themeCluster = this.getThemeCluster(val.replace('#', '')) const themeCluster = this.getThemeCluster(val.replace('#', ''))
const originalCluster = this.getThemeCluster(oldVal.replace('#', '')) const originalCluster = this.getThemeCluster(oldVal.replace('#', ''))
console.log(themeCluster, originalCluster)
const $message = this.$message({ const $message = this.$message({
message: ' Compiling the theme', message: ' Compiling the theme',
customClass: 'theme-message', customClass: 'theme-message',

View File

@ -442,7 +442,6 @@ export default {
this.changeArray() this.changeArray()
this.fileForm.open = true; this.fileForm.open = true;
this.fileForm.title = "修改文件信息"; this.fileForm.title = "修改文件信息";
console.log(this.form)
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */

View File

@ -120,7 +120,6 @@ export default {
this.info = response.data.info this.info = response.data.info
}) })
} }
console.log(apiclassId)
}, },
methods: { methods: {
/** 删除按钮 */ /** 删除按钮 */
@ -170,12 +169,10 @@ export default {
} }
} }
if (validateResult) { if (validateResult) {
console.log(apiclassForm.model)
const interTableDto = { const interTableDto = {
apiclass: apiclassForm.model, apiclass: apiclassForm.model,
interTables: this.cloumns, interTables: this.cloumns,
}; };
console.log(interTableDto)
updateIntertable(interTableDto).then(res => { updateIntertable(interTableDto).then(res => {
this.msgSuccess(res.msg); this.msgSuccess(res.msg);
if (res.code === 200) { if (res.code === 200) {

View File

@ -311,7 +311,6 @@
methods: { methods: {
/** 预览代码 */ /** 预览代码 */
handlePreview(id){ handlePreview(id){
console.log(id)
getClassPreview(id).then(res =>{ getClassPreview(id).then(res =>{
this.preview.data = res.data; this.preview.data = res.data;
this.preview.open = true; this.preview.open = true;
@ -327,7 +326,6 @@
highlightedCode(code, key) { highlightedCode(code, key) {
const vmName = key; const vmName = key;
var language = vmName.substring(vmName.indexOf(".") + 1, vmName.length); var language = vmName.substring(vmName.indexOf(".") + 1, vmName.length);
console.log(language)
const result = hljs.highlight(language, code || "", true); const result = hljs.highlight(language, code || "", true);
return result.value || ' '; return result.value || ' ';
}, },

View File

@ -134,7 +134,6 @@
}) })
queryListApiclass().then(res => { queryListApiclass().then(res => {
this.apiclassOptions = res.data this.apiclassOptions = res.data
console.log(res)
}) })
} }
}, },

View File

@ -255,10 +255,7 @@ export default {
}, },
methods: { methods: {
changUniCon(list) { changUniCon(list) {
console.log(list[0])
console.log(list.length)
for (let i = 0; i < list.length; i++) { for (let i = 0; i < list.length; i++) {
console.log(list[0].ucName)
if (list[i].ucName == "") { if (list[i].ucName == "") {
Message({ Message({
message: "序号" + i + "查询名称不能为空!", message: "序号" + i + "查询名称不能为空!",
@ -290,7 +287,6 @@ export default {
isRelease: release, isRelease: release,
} }
Release(data).then(res=>{ Release(data).then(res=>{
console.log(res)
this.info.isRelease = (this.info.isRelease==1)?2:1 this.info.isRelease = (this.info.isRelease==1)?2:1
Message({ Message({
message:res.msg, message:res.msg,
@ -337,7 +333,6 @@ export default {
// //
this.sqlconfig.coder.on('change', (coder) => { this.sqlconfig.coder.on('change', (coder) => {
this.info.uqSql = coder.getValue() this.info.uqSql = coder.getValue()
console.log(this.info.uqSql)
if (this.$emit) { if (this.$emit) {
this.$emit('input', this.info.uqSql) this.$emit('input', this.info.uqSql)
} }
@ -349,7 +344,6 @@ export default {
this.cloumns.splice(index, 1); this.cloumns.splice(index, 1);
}, },
ucTypeChang(index, row) { ucTypeChang(index, row) {
console.log(typeof this.cloumns[index].ucMock)
if (row.ucType == 'input' && row.ucCon != 'BETWEEN') { if (row.ucType == 'input' && row.ucCon != 'BETWEEN') {
this.cloumns[index].type = 1 this.cloumns[index].type = 1
if (typeof (this.cloumns[index].ucMock) != 'string') { if (typeof (this.cloumns[index].ucMock) != 'string') {
@ -390,7 +384,6 @@ export default {
data.uniCons = list data.uniCons = list
} }
editQueryInfo(data).then(res => { editQueryInfo(data).then(res => {
console.log(res)
this.cloumns = JSONparse(list) this.cloumns = JSONparse(list)
Message({ Message({
message: res.msg, message: res.msg,
@ -422,7 +415,6 @@ export default {
} }
return exportMock(data) return exportMock(data)
}).then(response => { }).then(response => {
console.log(response)
that.cloumns = JSONparse(list) that.cloumns = JSONparse(list)
this.download(response.msg); this.download(response.msg);
}) })

View File

@ -61,14 +61,14 @@ export default {
if (nodes) { if (nodes) {
nodes.forEach((node) => { nodes.forEach((node) => {
const model = node.getModel(); const model = node.getModel();
if (model.column.length < 9 ) { if (model.columns.length < 9 ) {
return; return;
} }
const idx = model.startIndex || 0; const idx = model.startIndex || 0;
this.start=idx this.start=idx
let startX = model.startX || 0.5; let startX = model.startX || 0.5;
let startIndex = idx + e.deltaY * 0.02; let startIndex = idx + e.deltaY * 0.02;
if ((model.column.length-idx)<10 && startIndex > idx){ if ((model.columns.length-idx)<10 && startIndex > idx){
return; return;
} }
startX -= e.deltaX; startX -= e.deltaX;
@ -78,8 +78,8 @@ export default {
if (startX > 0) { if (startX > 0) {
startX = 0; startX = 0;
} }
if (startIndex > model.column.length - 1) { if (startIndex > model.columns.length - 1) {
startIndex = model.column.length - 1; startIndex = model.columns.length - 1;
} }
graph.update(node, { graph.update(node, {
startIndex, startIndex,

View File

@ -490,7 +490,6 @@ export default {
created() { created() {
}, },
mounted() { mounted() {
console.log(this.topId)
Node.obj.diceErBox.sendThis(this) Node.obj.diceErBox.sendThis(this)
Behavior.obj.dragAddEdge.sendThis(this) Behavior.obj.dragAddEdge.sendThis(this)
Behavior.obj.dragEventEdit.sendThis(this) Behavior.obj.dragEventEdit.sendThis(this)
@ -521,7 +520,6 @@ export default {
methods: { methods: {
//todo //todo
ucTypeChang(index, row) { ucTypeChang(index, row) {
console.log(typeof this.selectedNodeParams.columns[index].ucMock)
if (row.ucType == 'input' && row.ucCon != 'BETWEEN') { if (row.ucType == 'input' && row.ucCon != 'BETWEEN') {
this.selectedNodeParams.columns[index].type = 1 this.selectedNodeParams.columns[index].type = 1
if (typeof (this.selectedNodeParams.columns[index].ucMock) != 'string') { if (typeof (this.selectedNodeParams.columns[index].ucMock) != 'string') {
@ -1173,7 +1171,6 @@ export default {
this.addHistoryData(key, historyData) this.addHistoryData(key, historyData)
// ************** end ************** // ************** end **************
let graphData = graph.save(); let graphData = graph.save();
console.log(graphData)
let relational = [] let relational = []
let starts = false let starts = false
if (graphData.nodes.length > 0){ if (graphData.nodes.length > 0){
@ -1202,15 +1199,13 @@ export default {
let columns = [] let columns = []
for (let i = 0; i < nodeType.topSearchColumnList.length; i++) { for (let i = 0; i < nodeType.topSearchColumnList.length; i++) {
let item = nodeType.topSearchColumnList[i] let item = nodeType.topSearchColumnList[i]
if (item.isUse === 1) { item.isQuery = 0
item.isQuery = 0 item.ucCon = ''
item.ucCon = '' item.ucType = ''
item.ucType = '' item.type = 1
item.type = 1 item.ucMock = ''
item.ucMock = '' item.ucName = item.columnComment
item.ucName = item.columnComment columns.push(item)
columns.push(item)
}
} }
let node = graph.addItem('node', { let node = graph.addItem('node', {
@ -1420,7 +1415,6 @@ export default {
// todo // todo
searchPreview(){ searchPreview(){
let graphData = this.getGraphData() let graphData = this.getGraphData()
// console.log(graphData)
this.$emit('doPreview', graphData) this.$emit('doPreview', graphData)
}, },
// //

View File

@ -232,14 +232,13 @@ export default {
this.randomChange() this.randomChange()
}, },
doSaveData(graphData) { doSaveData(graphData) {
console.log(JSON.stringify(graphData))
let data = { let data = {
id : this.topId, id : this.topId,
topJson:JSON.stringify(graphData) topJson:JSON.stringify(graphData)
} }
//todo //todo
updateQuery(data).then(res =>{ updateQuery(data).then(res =>{
console.log(res) this.msgSuccess(res.msg)
}) })
}, },
doPreview(graphData){ doPreview(graphData){

View File

@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="columnComment" column="column_comment" /> <result property="columnComment" column="column_comment" />
<result property="columnType" column="column_type" /> <result property="columnType" column="column_type" />
<result property="isPk" column="is_pk" /> <result property="isPk" column="is_pk" />
<result property="isUse" column="is_use" /> <result property="isUse" column="is_use_column" />
<result property="sort" column="sort" /> <result property="sort" column="sort" />
<result property="createBy" column="create_by" /> <result property="createBy" column="create_by" />
<result property="createTime" column="create_time" /> <result property="createTime" column="create_time" />
@ -70,7 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectTopSearchTableById" parameterType="Long" resultMap="TopSearchTableTopSearchColumnResult"> <select id="selectTopSearchTableById" parameterType="Long" resultMap="TopSearchTableTopSearchColumnResult">
select gtst.id, gtst.table_name, gtst.table_comment, gtst.remark, gtst.create_by, gtst.create_time, gtst.update_by, gtst.update_time, select gtst.id, gtst.table_name, gtst.table_comment, gtst.remark, gtst.create_by, gtst.create_time, gtst.update_by, gtst.update_time,
gtsc.id as column_id, gtsc.search_table_id, gtsc.column_name, gtsc.column_comment, gtsc.column_type, gtsc.is_use, gtsc.create_by, gtsc.create_time, gtsc.update_by, gtsc.update_time, gtsc.id as column_id, gtsc.search_table_id, gtsc.column_name, gtsc.column_comment, gtsc.column_type, gtsc.is_use as is_use_column, gtsc.create_by, gtsc.create_time, gtsc.update_by, gtsc.update_time,
grm.main_id, grm.child_id, grm.main_key, grm.child_key, grm.type grm.main_id, grm.child_id, grm.main_key, grm.child_key, grm.type
from gen_top_search_table gtst from gen_top_search_table gtst
left join gen_top_search_column gtsc on gtsc.search_table_id = gtst.id left join gen_top_search_column gtsc on gtsc.search_table_id = gtst.id
@ -80,20 +80,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectTopSearchTables" resultMap="TopSearchTableTopSearchColumnResult" parameterType="String"> <select id="selectTopSearchTables" resultMap="TopSearchTableTopSearchColumnResult" parameterType="String">
select gtst.id, gtst.table_name, gtst.table_comment, gtst.remark, gtst.create_by, gtst.create_time, gtst.update_by, gtst.update_time, select gtst.id, gtst.table_name, gtst.table_comment, gtst.remark, gtst.create_by, gtst.create_time, gtst.update_by, gtst.update_time,
gtsc.id as column_id, gtsc.search_table_id, gtsc.column_name, gtsc.column_comment, gtsc.column_type, gtsc.is_use, gtsc.create_by, gtsc.create_time, gtsc.update_by, gtsc.update_time, gtsc.id as column_id, gtsc.search_table_id, gtsc.column_name, gtsc.column_comment, gtsc.column_type, gtsc.is_use as is_use_column, gtsc.create_by, gtsc.create_time, gtsc.update_by, gtsc.update_time,
grm.main_id, grm.child_id, grm.main_key, grm.child_key, grm.type grm.main_id, grm.child_id, grm.main_key, grm.child_key, grm.type
from gen_top_search_table gtst from gen_top_search_table gtst
left join gen_top_search_column gtsc on gtsc.search_table_id = gtst.id left join gen_top_search_column gtsc on gtsc.search_table_id = gtst.id
left join gen_relational_mapping grm on grm.main_id = gtst.id left join gen_relational_mapping grm on grm.main_id = gtst.id
where gtst.id IN (SELECT search_table_id FROM gen_search_table_role WHERE role_id IN where gtsc.is_use = 1 and gtst.id IN (SELECT search_table_id FROM gen_search_table_role WHERE role_id IN
<foreach collection="array" item="roleId" open="(" separator="," close=")"> <foreach collection="array" item="roleId" open="(" separator="," close=")">
#{roleId} #{roleId}
</foreach>) and gtsc.is_use = 1 </foreach>)
</select> </select>
<!-- <foreach collection="array" item="name" open="(" separator="," close=")">-->
<!-- #{name}#{roleIds}-->
<!-- </foreach>-->
<!--AND table_name NOT LIKE 'gen_%'-->
<select id="selectDbTableList" resultType="java.util.Map"> <select id="selectDbTableList" resultType="java.util.Map">
select table_name, table_comment, create_time, update_time from information_schema.tables select table_name, table_comment, create_time, update_time from information_schema.tables
where table_schema = (select database()) where table_schema = (select database())