ruleEdit 追加

This commit is contained in:
2023-07-13 13:00:17 +09:00
parent c623155d86
commit fc25e55c9f
5 changed files with 68 additions and 3 deletions

View File

@@ -108,7 +108,9 @@ module.exports = configure(function (/* ctx */) {
// directives: [],
// Quasar plugins
plugins: []
plugins: [
'Notify'
]
},
// animations: 'all', // --- includes all animations

View File

@@ -5,7 +5,8 @@
:url="uploadUrl"
:label="title"
accept=".csv,.xlsx"
:on-rejected="onRejected"
v-on:rejected="onRejected"
v-on:finish="onUploadFinish"
field-name="file"
></q-uploader>
</div>
@@ -35,7 +36,16 @@
$q.notify({
type: 'negative',
message: `CSVおよびExcelファイルを選択してください。`
})
});
}
function onUploadFinish(){
$q.notify({
message:"ファイルアップロードしました!",
caption:"通知",
type:"positive"
})
}
interface Props {

View 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}')"
}
]
}
}
}

View File

@@ -0,0 +1,9 @@
export interface Rule{
id:number;
name:string;
condtion:CondtionTree
}
export interface CondtionTree{
}

View 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>