fix ts lint warning: Strings must use singlequote
This commit is contained in:
@@ -130,15 +130,15 @@ const route = useRoute()
|
||||
const appDg = ref();
|
||||
const prevNodeIfo = ref({
|
||||
prevNode: {} as IActionNode,
|
||||
inputPoint: ""
|
||||
inputPoint: ''
|
||||
});
|
||||
// const refFlow = ref<ActionFlow|null>(null);
|
||||
const showAddAction = ref(false);
|
||||
const saveVersionAction = ref(false);
|
||||
const versionInputRef = ref();
|
||||
const drawerRight = ref(false);
|
||||
const filter=ref("");
|
||||
const model = ref("");
|
||||
const filter=ref('');
|
||||
const model = ref('');
|
||||
|
||||
const rootNode = computed(()=>{
|
||||
return store.currentFlow?.getRoot();
|
||||
@@ -148,11 +148,11 @@ const minPanelWidth=computed(()=>{
|
||||
if(store.currentFlow && root){
|
||||
return store.currentFlow?.getColumns(root) * 300 + 'px';
|
||||
}else{
|
||||
return "300px";
|
||||
return '300px';
|
||||
}
|
||||
});
|
||||
const fixedLeftPosition = computed(()=>{
|
||||
return drawerLeft.value?"300px":"0px";
|
||||
return drawerLeft.value?'300px':'0px';
|
||||
});
|
||||
|
||||
const addNode = (node: IActionNode, inputPoint: string) => {
|
||||
@@ -195,12 +195,12 @@ const onDeleteAllNextNodes = (node: IActionNode) => {
|
||||
store.currentFlow?.removeAllNext(node.id);
|
||||
}
|
||||
const closeDg = (val: any) => {
|
||||
console.log("Dialog closed->", val);
|
||||
console.log('Dialog closed->', val);
|
||||
if (val == 'OK' && appDg?.value?.selected?.length > 0) {
|
||||
const data = appDg.value.selected[0];
|
||||
const actionProps = JSON.parse(data.property);
|
||||
const outputPoint = JSON.parse(data.outputPoints);
|
||||
const action = new ActionNode(data.name, data.desc, "", outputPoint, actionProps);
|
||||
const action = new ActionNode(data.name, data.desc, '', outputPoint, actionProps);
|
||||
store.currentFlow?.addNode(action, prevNodeIfo.value.prevNode, prevNodeIfo.value.inputPoint);
|
||||
}
|
||||
}
|
||||
@@ -227,8 +227,8 @@ const onDeploy = async () => {
|
||||
if (store.appInfo === undefined || store.flows?.length === 0) {
|
||||
$q.notify({
|
||||
type: 'negative',
|
||||
caption: "エラー",
|
||||
message: `設定されたフローがありません。`
|
||||
caption: 'エラー',
|
||||
message: '設定されたフローがありません。'
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -238,16 +238,16 @@ const onDeploy = async () => {
|
||||
deployLoading.value = false;
|
||||
$q.notify({
|
||||
type: 'positive',
|
||||
caption: "通知",
|
||||
message: `デプロイを成功しました。`
|
||||
caption: '通知',
|
||||
message: 'デプロイを成功しました。'
|
||||
});
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
deployLoading.value = false;
|
||||
$q.notify({
|
||||
type: 'negative',
|
||||
caption: "エラー",
|
||||
message: `デプロイが失敗しました。`
|
||||
caption: 'エラー',
|
||||
message: 'デプロイが失敗しました。'
|
||||
})
|
||||
}
|
||||
return;
|
||||
@@ -258,7 +258,7 @@ const onSaveActionProps=(props:IActionProperty[])=>{
|
||||
store.activeNode.actionProps=props;
|
||||
$q.notify({
|
||||
type: 'positive',
|
||||
caption: "通知",
|
||||
caption: '通知',
|
||||
message: `${store.activeNode?.subTitle}の属性を設定しました。(保存はされていません)`
|
||||
});
|
||||
}
|
||||
@@ -291,7 +291,7 @@ const onSaveFlow = async () => {
|
||||
$q.notify({
|
||||
type: 'negative',
|
||||
caption: 'エラー',
|
||||
message: `選択中のフローがありません。`
|
||||
message: '選択中のフローがありません。'
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -301,7 +301,7 @@ const onSaveFlow = async () => {
|
||||
saveLoading.value = false;
|
||||
$q.notify({
|
||||
type: 'positive',
|
||||
caption: "通知",
|
||||
caption: '通知',
|
||||
message: `${targetFlow.getRoot()?.subTitle}のフロー設定を保存しました。`
|
||||
});
|
||||
} catch (error) {
|
||||
@@ -309,7 +309,7 @@ const onSaveFlow = async () => {
|
||||
saveLoading.value = false;
|
||||
$q.notify({
|
||||
type: 'negative',
|
||||
caption: "エラー",
|
||||
caption: 'エラー',
|
||||
message: `${targetFlow.getRoot()?.subTitle}のフローの設定の保存が失敗しました。`
|
||||
})
|
||||
}
|
||||
@@ -324,7 +324,7 @@ const onSaveAllFlow= async ()=>{
|
||||
$q.notify({
|
||||
type: 'negative',
|
||||
caption: 'エラー',
|
||||
message: `設定されたフローがありません。`
|
||||
message: '設定されたフローがありません。'
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -338,8 +338,8 @@ const onSaveAllFlow= async ()=>{
|
||||
}
|
||||
$q.notify({
|
||||
type: 'positive',
|
||||
caption: "通知",
|
||||
message: `すべてのフロー設定を保存しました。`
|
||||
caption: '通知',
|
||||
message: 'すべてのフロー設定を保存しました。'
|
||||
});
|
||||
saveLoading.value = false;
|
||||
}catch (error) {
|
||||
@@ -347,8 +347,8 @@ const onSaveAllFlow= async ()=>{
|
||||
saveLoading.value = false;
|
||||
$q.notify({
|
||||
type: 'negative',
|
||||
caption: "エラー",
|
||||
message: `フローの設定の保存が失敗しました。`
|
||||
caption: 'エラー',
|
||||
message: 'フローの設定の保存が失敗しました。'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,23 +27,23 @@ import ActionSelect from 'components/ActionSelect.vue';
|
||||
import PropertyPanel from 'components/right/PropertyPanel.vue';
|
||||
|
||||
|
||||
const rootNode:RootAction =new RootAction("app.record.create.submit","レコード追加画面","保存するとき");
|
||||
const rootNode:RootAction =new RootAction('app.record.create.submit','レコード追加画面','保存するとき');
|
||||
const actionFlow: ActionFlow = new ActionFlow(rootNode);
|
||||
const saibanProps:IActionProperty[]=[{
|
||||
component:"InputText",
|
||||
component:'InputText',
|
||||
props:{
|
||||
displayName:"フォーマット",
|
||||
modelValue:"",
|
||||
name:"format",
|
||||
placeholder:"フォーマットを入力してください",
|
||||
displayName:'フォーマット',
|
||||
modelValue:'',
|
||||
name:'format',
|
||||
placeholder:'フォーマットを入力してください',
|
||||
}
|
||||
},{
|
||||
component:"FieldInput",
|
||||
component:'FieldInput',
|
||||
props:{
|
||||
displayName:"採番項目",
|
||||
modelValue:"",
|
||||
name:"field",
|
||||
placeholder:"採番項目を選択してください",
|
||||
displayName:'採番項目',
|
||||
modelValue:'',
|
||||
name:'field',
|
||||
placeholder:'採番項目を選択してください',
|
||||
}
|
||||
}];
|
||||
|
||||
@@ -91,7 +91,7 @@ const onDeleteAllNextNodes=(node:IActionNode)=>{
|
||||
refFlow.value.removeAllNext(node.id);
|
||||
}
|
||||
const closeDg=(val :any)=>{
|
||||
console.log("Dialog closed->",val);
|
||||
console.log('Dialog closed->',val);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -66,8 +66,8 @@ interface Props {
|
||||
actions: string[];
|
||||
}
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
title: "ルールエディター",
|
||||
actions: () => ["フィールド制御", "一覧画面", "その他"]
|
||||
title: 'ルールエディター',
|
||||
actions: () => ['フィールド制御', '一覧画面', 'その他']
|
||||
});
|
||||
function onItemClick(evt: Event) {
|
||||
return;
|
||||
|
||||
@@ -250,7 +250,7 @@ const isOwner = (row: IDomainOwnerDisplay) => row.owner.id === Number(authStore.
|
||||
|
||||
const getDomain = async (filter?: (row: IDomainOwnerDisplay) => boolean) => {
|
||||
loading.value = true;
|
||||
const { data } = await api.get<{data:IDomain[]}>(`api/domains`);
|
||||
const { data } = await api.get<{data:IDomain[]}>('api/domains');
|
||||
rows.value = data.data.map((item) => {
|
||||
return {
|
||||
id: item.id,
|
||||
@@ -350,7 +350,7 @@ const onSubmit = () => {
|
||||
'ownerid': authStore.userId || ''
|
||||
}
|
||||
// for search: api.put(`api/domain`)、api.post(`api/domain`)
|
||||
api[method].apply(api, [`api/domain`, param]).then(async (resp: any) => {
|
||||
api[method].apply(api, ['api/domain', param]).then(async (resp: any) => {
|
||||
const res = resp.data;
|
||||
if (res.data.id === currentDomainId.value && !res.data.is_active) {
|
||||
await authStore.setCurrentDomain();
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<q-btn class="q-mx-none" color="primary" label="追加" @click="clickAddDomain()" />
|
||||
<q-space />
|
||||
<div class="row q-gutter-md">
|
||||
<q-input borderless dense filled debounce="300" v-model="userDomainTableFilter" placeholder="Search">
|
||||
<q-input borderless dense filled debounce="300" v-model="userDomainTableFilter" placeholder="検索">
|
||||
<template v-slot:append>
|
||||
<q-icon name="search" />
|
||||
</template>
|
||||
@@ -114,7 +114,7 @@ const addUserDomainFinished = async (val: string) => {
|
||||
const selected = addDomainRef.value.selected;
|
||||
if (val == 'OK' && selected.length > 0) {
|
||||
addUserDomainLoading.value = true;
|
||||
const { data } = await api.post(`api/userdomain`, {
|
||||
const { data } = await api.post('api/userdomain', {
|
||||
userid: authStore.userId,
|
||||
domainid: selected[0].id,
|
||||
});
|
||||
@@ -169,9 +169,9 @@ const isActive = computed(() => (id: number) => {
|
||||
|
||||
const getDomain = async (userId? : string) => {
|
||||
rowIds.clear();
|
||||
const resp = await api.get(`api/defaultdomain`);
|
||||
const resp = await api.get('api/defaultdomain');
|
||||
activeDomainId.value = resp?.data?.data?.id;
|
||||
const domainResult = userId ? await api.get(`api/domain?userId=${userId}`) : await api.get(`api/domain`);
|
||||
const domainResult = userId ? await api.get(`api/domain?userId=${userId}`) : await api.get('api/domain');
|
||||
const domains = domainResult.data as any[];
|
||||
rows.value = domains.sort((a, b) => a.id - b.id).reduce((acc, item) => {
|
||||
rowIds.add(item.id);
|
||||
|
||||
@@ -54,8 +54,8 @@ const mouseenter = (event: Event) => {
|
||||
let oDivs = oDiv1?.getElementsByClassName('add');
|
||||
if (oDivs.length === 0) {
|
||||
let oDiv2 = document.createElement('div');
|
||||
oDiv2.className = "add";
|
||||
oDiv2.setAttribute("style", "display:table-row;height:inherit;position: absolute;left:calc(50% - 19px);");
|
||||
oDiv2.className = 'add';
|
||||
oDiv2.setAttribute('style', 'display:table-row;height:inherit;position: absolute;left:calc(50% - 19px);');
|
||||
oDiv2.innerHTML = oAdd;
|
||||
oDiv1?.append(oDiv2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user