[MOD] run task
This commit is contained in:
parent
9516cf0d83
commit
c7090cdc74
@ -38,7 +38,7 @@
|
|||||||
</field>
|
</field>
|
||||||
</fields>
|
</fields>
|
||||||
|
|
||||||
<views iconclass="fa fa-file">
|
<views iconclass="topic">
|
||||||
<view name="filter">name</view>
|
<view name="filter">name</view>
|
||||||
</views>
|
</views>
|
||||||
<data type="element(image)">collection($cfg:DB-IMAGE || "/image")/image</data>
|
<data type="element(image)">collection($cfg:DB-IMAGE || "/image")/image</data>
|
||||||
|
@ -36,11 +36,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-slot:default="props">
|
<template v-slot:default="props">
|
||||||
<v-layout wrap>
|
<v-layout wrap >
|
||||||
<v-flex
|
<v-flex
|
||||||
v-for="item in props.items"
|
v-for="item in props.items"
|
||||||
:key="item.name"
|
:key="item.name" align-items="flex-start"
|
||||||
|
|
||||||
>
|
>
|
||||||
|
|
||||||
<v-card :hover="true" active-class="default-class qd-active" max-width="20em" min-width="20em">
|
<v-card :hover="true" active-class="default-class qd-active" max-width="20em" min-width="20em">
|
||||||
|
@ -68,14 +68,27 @@ function vue-rest:runtask($task)
|
|||||||
{ map:keys($params)!<param name="{.}">{map:get($params,.)}</param> }
|
{ map:keys($params)!<param name="{.}">{map:get($params,.)}</param> }
|
||||||
</task>
|
</task>
|
||||||
return (
|
return (
|
||||||
query-a:run($url, $params, map{}),
|
query-a:run($url, $params, map{}),
|
||||||
hlog:save($log),
|
hlog:save($log),
|
||||||
let $a:=update:cache(true())
|
vue-rest:result()
|
||||||
let $r:=<json type="object">
|
)
|
||||||
<result>{$a[1]}</result>
|
};
|
||||||
|
|
||||||
|
(:~ massage update:output
|
||||||
|
update:cache = (results,id)
|
||||||
|
:)
|
||||||
|
declare
|
||||||
|
%updating
|
||||||
|
function vue-rest:result(){
|
||||||
|
let $a:=update:cache(true())
|
||||||
|
let $r:=$a[1]
|
||||||
|
let $r:=typeswitch($r)
|
||||||
|
case element(json) return <result type="{$r/@type}">{$r/*}</result>
|
||||||
|
default return <result>{$r}</result>
|
||||||
|
|
||||||
|
let $r:=<json type="object">
|
||||||
|
{$r}
|
||||||
<id>{$a[2]}</id>
|
<id>{$a[2]}</id>
|
||||||
</json>
|
</json>
|
||||||
return update:output($r)
|
return update:output($r)
|
||||||
)
|
};
|
||||||
};
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
// generated 2020-10-25T12:28:22.114Z
|
// generated 2020-10-25T22:11:28.368Z
|
||||||
|
|
||||||
// src: file:///C:/Users/andy/git/vue-poc/src/vue-poc/components/qd-autoheight.vue
|
// src: file:///C:/Users/andy/git/vue-poc/src/vue-poc/components/qd-autoheight.vue
|
||||||
Vue.component('qd-autoheight',{template:`
|
Vue.component('qd-autoheight',{template:`
|
||||||
@ -5914,7 +5914,7 @@ const Entity=Vue.extend({template:`
|
|||||||
|
|
||||||
<template v-slot:default="props">
|
<template v-slot:default="props">
|
||||||
<v-layout wrap>
|
<v-layout wrap>
|
||||||
<v-flex v-for="item in props.items" :key="item.name">
|
<v-flex v-for="item in props.items" :key="item.name" align-items="flex-start">
|
||||||
|
|
||||||
<v-card :hover="true" active-class="default-class qd-active" max-width="20em" min-width="20em">
|
<v-card :hover="true" active-class="default-class qd-active" max-width="20em" min-width="20em">
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user