ruleEdit 追加
This commit is contained in:
@@ -108,7 +108,9 @@ module.exports = configure(function (/* ctx */) {
|
|||||||
// directives: [],
|
// directives: [],
|
||||||
|
|
||||||
// Quasar plugins
|
// Quasar plugins
|
||||||
plugins: []
|
plugins: [
|
||||||
|
'Notify'
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
// animations: 'all', // --- includes all animations
|
// animations: 'all', // --- includes all animations
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
:url="uploadUrl"
|
:url="uploadUrl"
|
||||||
:label="title"
|
:label="title"
|
||||||
accept=".csv,.xlsx"
|
accept=".csv,.xlsx"
|
||||||
:on-rejected="onRejected"
|
v-on:rejected="onRejected"
|
||||||
|
v-on:finish="onUploadFinish"
|
||||||
field-name="file"
|
field-name="file"
|
||||||
></q-uploader>
|
></q-uploader>
|
||||||
</div>
|
</div>
|
||||||
@@ -35,7 +36,16 @@
|
|||||||
$q.notify({
|
$q.notify({
|
||||||
type: 'negative',
|
type: 'negative',
|
||||||
message: `CSVおよびExcelファイルを選択してください。`
|
message: `CSVおよびExcelファイルを選択してください。`
|
||||||
})
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function onUploadFinish(){
|
||||||
|
$q.notify({
|
||||||
|
message:"ファイルアップロードしました!",
|
||||||
|
caption:"通知",
|
||||||
|
type:"positive"
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|||||||
27
frontend/src/components/Rule.json
Normal file
27
frontend/src/components/Rule.json
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"name":"保存ボタン押す際、入力値チェック",
|
||||||
|
"condtion":{
|
||||||
|
"logic":{
|
||||||
|
"logicType":"And",
|
||||||
|
"condtions":[
|
||||||
|
{
|
||||||
|
"compareType":"event",
|
||||||
|
"compareItem":"Record-Save"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"compareType":"field",
|
||||||
|
"compareItem":"テキスト",
|
||||||
|
"op":"!==",
|
||||||
|
"compareValue":"{value}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"compareType":"field",
|
||||||
|
"compareItem":"テキスト",
|
||||||
|
"op":"!==",
|
||||||
|
"compareValue":"isZengaku('{value}')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
9
frontend/src/components/Rules.ts
Normal file
9
frontend/src/components/Rules.ts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
export interface Rule{
|
||||||
|
id:number;
|
||||||
|
name:string;
|
||||||
|
condtion:CondtionTree
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CondtionTree{
|
||||||
|
|
||||||
|
}
|
||||||
17
frontend/src/pages/RuleEditor.vue
Normal file
17
frontend/src/pages/RuleEditor.vue
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<template>
|
||||||
|
<q-page>
|
||||||
|
<div class="q-pa-md">
|
||||||
|
<div class="q-gutter-sm row items-start">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</q-page>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { Todo, Meta } from 'components/models';
|
||||||
|
import DocUploader from 'components/DocUpload.vue';
|
||||||
|
// import ExampleComponent from 'components/ExampleComponent.vue';
|
||||||
|
import { ref } from 'vue';
|
||||||
|
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user