mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 11:58:01 +08:00
fix
This commit is contained in:
parent
6a793fa5fc
commit
ab5302e953
@ -81,7 +81,8 @@ public abstract class BaseDbService<T extends BaseDbModel> extends BaseDbCommonS
|
|||||||
*/
|
*/
|
||||||
private static final Order[] DEFAULT_ORDERS = new Order[]{
|
private static final Order[] DEFAULT_ORDERS = new Order[]{
|
||||||
new Order("createTimeMillis", Direction.DESC),
|
new Order("createTimeMillis", Direction.DESC),
|
||||||
new Order("modifyTimeMillis", Direction.DESC)
|
new Order("modifyTimeMillis", Direction.DESC),
|
||||||
|
new Order("id", Direction.DESC)
|
||||||
};
|
};
|
||||||
|
|
||||||
public BaseDbService() {
|
public BaseDbService() {
|
||||||
|
@ -66,7 +66,8 @@ public abstract class BaseWorkspaceService<T extends BaseWorkspaceModel> extends
|
|||||||
private static final Order[] SORT_DEFAULT_ORDERS = new Order[]{
|
private static final Order[] SORT_DEFAULT_ORDERS = new Order[]{
|
||||||
new Order("sortValue", Direction.DESC),
|
new Order("sortValue", Direction.DESC),
|
||||||
new Order("createTimeMillis", Direction.DESC),
|
new Order("createTimeMillis", Direction.DESC),
|
||||||
new Order("modifyTimeMillis", Direction.DESC)
|
new Order("modifyTimeMillis", Direction.DESC),
|
||||||
|
new Order("id", Direction.DESC)
|
||||||
};
|
};
|
||||||
|
|
||||||
public BaseWorkspaceService() {
|
public BaseWorkspaceService() {
|
||||||
|
@ -225,6 +225,7 @@ const theme = [
|
|||||||
{ name: '深色 dracula', theme: 'dracula' },
|
{ name: '深色 dracula', theme: 'dracula' },
|
||||||
{ name: '浅色 eclipse', theme: 'eclipse' },
|
{ name: '浅色 eclipse', theme: 'eclipse' },
|
||||||
{ name: '深色2 blackboard', theme: 'blackboard' },
|
{ name: '深色2 blackboard', theme: 'blackboard' },
|
||||||
|
{ name: '浅色 idea', theme: 'idea' },
|
||||||
{ name: 'ayu-dark', theme: 'ayu-dark' },
|
{ name: 'ayu-dark', theme: 'ayu-dark' },
|
||||||
{ name: 'ayu-mirage', theme: 'ayu-mirage' },
|
{ name: 'ayu-mirage', theme: 'ayu-mirage' },
|
||||||
{ name: 'base16-dark', theme: 'base16-dark' },
|
{ name: 'base16-dark', theme: 'base16-dark' },
|
||||||
@ -242,7 +243,7 @@ const theme = [
|
|||||||
{ name: 'gruvbox-dark', theme: 'gruvbox-dark' },
|
{ name: 'gruvbox-dark', theme: 'gruvbox-dark' },
|
||||||
{ name: 'hopscotch', theme: 'hopscotch' },
|
{ name: 'hopscotch', theme: 'hopscotch' },
|
||||||
{ name: 'icecoder', theme: 'icecoder' },
|
{ name: 'icecoder', theme: 'icecoder' },
|
||||||
{ name: 'idea', theme: 'idea' },
|
|
||||||
{ name: 'isotope', theme: 'isotope' },
|
{ name: 'isotope', theme: 'isotope' },
|
||||||
{ name: 'juejin', theme: 'juejin' },
|
{ name: 'juejin', theme: 'juejin' },
|
||||||
{ name: 'lesser-dark', theme: 'lesser-dark' },
|
{ name: 'lesser-dark', theme: 'lesser-dark' },
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<template v-if="inputData.indexOf(refTag) == -1 && type == 'password'">
|
<template v-if="inputData.indexOf(refTag) === -1 && type == 'password'">
|
||||||
<a-input-password :placeholder="placeholder" v-model:value="inputData" @change="inputChange">
|
<a-input-password
|
||||||
|
:placeholder="placeholder"
|
||||||
|
:disabled="!!selectData"
|
||||||
|
v-model:value="inputData"
|
||||||
|
@change="inputChange"
|
||||||
|
>
|
||||||
<template v-slot:addonBefore>
|
<template v-slot:addonBefore>
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>
|
<template #title>
|
||||||
@ -11,7 +16,7 @@
|
|||||||
当前没有可以引用的环境变量
|
当前没有可以引用的环境变量
|
||||||
</ul>
|
</ul>
|
||||||
</template>
|
</template>
|
||||||
<a-select placeholder="引用环境变量" style="width: 120px" @change="selectChange">
|
<a-select placeholder="引用环境变量" style="width: 120px" v-model:value="selectData" @change="selectChange">
|
||||||
<a-select-option value="">不引用环境变量</a-select-option>
|
<a-select-option value="">不引用环境变量</a-select-option>
|
||||||
<a-select-option v-for="item in envList" :key="item.id" :value="item.name"
|
<a-select-option v-for="item in envList" :key="item.id" :value="item.name"
|
||||||
>{{ item.name }}
|
>{{ item.name }}
|
||||||
@ -22,7 +27,7 @@
|
|||||||
</a-input-password>
|
</a-input-password>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<a-input :placeholder="placeholder" v-model:value="inputData" @change="inputChange">
|
<a-input :placeholder="placeholder" :disabled="!!selectData" v-model:value="inputData" @change="inputChange">
|
||||||
<template v-slot:addonBefore>
|
<template v-slot:addonBefore>
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>
|
<template #title>
|
||||||
@ -31,7 +36,7 @@
|
|||||||
当前没有可以引用的环境变量
|
当前没有可以引用的环境变量
|
||||||
</ul>
|
</ul>
|
||||||
</template>
|
</template>
|
||||||
<a-select placeholder="引用环境变量" style="width: 120px" @change="selectChange">
|
<a-select placeholder="引用环境变量" style="width: 120px" v-model:value="selectData" @change="selectChange">
|
||||||
<a-select-option value="">引用环境变量</a-select-option>
|
<a-select-option value="">引用环境变量</a-select-option>
|
||||||
<a-select-option v-for="item in envList" :key="item.id" :value="item.name"
|
<a-select-option v-for="item in envList" :key="item.id" :value="item.name"
|
||||||
>{{ item.name }}
|
>{{ item.name }}
|
||||||
@ -50,7 +55,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
inputData: '',
|
inputData: '',
|
||||||
refTag: '$ref.wEnv.'
|
refTag: '$ref.wEnv.',
|
||||||
|
selectData: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@ -77,6 +83,11 @@ export default {
|
|||||||
|
|
||||||
handler(v) {
|
handler(v) {
|
||||||
this.inputData = v
|
this.inputData = v
|
||||||
|
if (v.indexOf(this.refTag) == -1) {
|
||||||
|
this.selectData = null
|
||||||
|
} else {
|
||||||
|
// this.selectData = v.replace(this.refTag)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
immediate: true
|
immediate: true
|
||||||
@ -84,6 +95,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
selectChange(v) {
|
selectChange(v) {
|
||||||
|
this.selectData = v
|
||||||
const newV = v ? this.refTag + v : ''
|
const newV = v ? this.refTag + v : ''
|
||||||
this.$emit('change', newV)
|
this.$emit('change', newV)
|
||||||
},
|
},
|
||||||
|
@ -100,6 +100,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
selectChange(v) {
|
selectChange(v) {
|
||||||
this.$emit('update:value', v)
|
this.$emit('update:value', v)
|
||||||
|
this.$emit('change', v)
|
||||||
},
|
},
|
||||||
addInput(v) {
|
addInput(v) {
|
||||||
if (!v) {
|
if (!v) {
|
||||||
@ -113,11 +114,12 @@ export default {
|
|||||||
this.selected = v
|
this.selected = v
|
||||||
//
|
//
|
||||||
this.selectChange(v)
|
this.selectChange(v)
|
||||||
|
this.$emit('addOption', this.optionList)
|
||||||
},
|
},
|
||||||
refreshSelect() {
|
refreshSelect() {
|
||||||
this.$emit('onRefreshSelect')
|
this.$emit('onRefreshSelect')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
emits: ['update:value', 'onRefreshSelect']
|
emits: ['update:value', 'onRefreshSelect', 'change', 'addOption']
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -1327,6 +1327,7 @@ export default {
|
|||||||
}
|
}
|
||||||
:deep(.ant-statistic div) {
|
:deep(.ant-statistic div) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
:deep(.ant-statistic-content-value, .ant-statistic-content) {
|
:deep(.ant-statistic-content-value, .ant-statistic-content) {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
@ -975,6 +975,7 @@ export default {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
:deep(.ant-statistic div) {
|
:deep(.ant-statistic div) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
:deep(.ant-statistic-content-value, .ant-statistic-content) {
|
:deep(.ant-statistic-content-value, .ant-statistic-content) {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
@ -1186,6 +1186,7 @@ export default {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.header-statistic :deep(.ant-statistic div) {
|
.header-statistic :deep(.ant-statistic div) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
.header-statistic :deep(.ant-statistic-content-value, .ant-statistic-content) {
|
.header-statistic :deep(.ant-statistic-content-value, .ant-statistic-content) {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
@ -8,7 +8,11 @@
|
|||||||
banner
|
banner
|
||||||
/>
|
/>
|
||||||
<a-form-item class="node-content-config">
|
<a-form-item class="node-content-config">
|
||||||
<code-editor v-model:content="temp.content" :options="{ mode: 'yaml', tabSize: 2 }"></code-editor>
|
<code-editor
|
||||||
|
v-model:content="temp.content"
|
||||||
|
:options="{ mode: 'yaml', tabSize: 2 }"
|
||||||
|
:showTool="true"
|
||||||
|
></code-editor>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :wrapper-col="{ span: 14, offset: 2 }">
|
<a-form-item :wrapper-col="{ span: 14, offset: 2 }">
|
||||||
<a-button type="primary" class="btn" :disabled="submitAble" @click="onSubmit(false)">保存</a-button>
|
<a-button type="primary" class="btn" :disabled="submitAble" @click="onSubmit(false)">保存</a-button>
|
||||||
|
@ -624,6 +624,12 @@ export default {
|
|||||||
customRender: ({ text }) => parseTime(text),
|
customRender: ({ text }) => parseTime(text),
|
||||||
width: '170px'
|
width: '170px'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '排序值',
|
||||||
|
dataIndex: 'sortValue',
|
||||||
|
sorter: true,
|
||||||
|
width: '80px'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'operation',
|
dataIndex: 'operation',
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
v-model:content="temp.content"
|
v-model:content="temp.content"
|
||||||
fileSuffix="conf.yml"
|
fileSuffix="conf.yml"
|
||||||
:options="{ mode: 'yaml', tabSize: 2 }"
|
:options="{ mode: 'yaml', tabSize: 2 }"
|
||||||
|
:showTool="true"
|
||||||
></code-editor>
|
></code-editor>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :wrapper-col="{ span: 14, offset: 2 }">
|
<a-form-item :wrapper-col="{ span: 14, offset: 2 }">
|
||||||
|
Loading…
Reference in New Issue
Block a user