学 赵
1 year ago
7 changed files with 5164 additions and 19 deletions
@ -1,31 +1,24 @@ |
|||
import AppList from "../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../models/job-item.js"; |
|||
import { ref, nextTick, onMounted, onUnmounted } from "vue"; |
|||
import { ref, onMounted, onUnmounted } from "vue"; |
|||
import useConfig2 from "../../models/job-log.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list v-if="refresh" :config="config" @command="onCommand" />`, |
|||
template: html`<app-list ref="appListRef" :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows, load, showList) => { |
|||
console.log(item.path, item, rows); |
|||
console.log(showList); |
|||
const config = useConfig2(); |
|||
config.query.schema.properties.filters.default[0].value = rows[0].id; |
|||
showList({ test: "test" }, "/base-data/job-log", config); |
|||
}; |
|||
const refresh = ref(true); |
|||
onMounted(async () => { |
|||
PubSub.subscribe("JobItem", () => { |
|||
refresh.value = false; |
|||
nextTick(() => (refresh.value = true)); |
|||
}); |
|||
}); |
|||
onUnmounted(() => { |
|||
PubSub.unsubscribe(onMonitor); |
|||
}); |
|||
return { config, onCommand, refresh }; |
|||
//
|
|||
const appListRef = ref(null); |
|||
const event = "JobItem"; |
|||
onMounted(() => PubSub.subscribe(event, async () => await appListRef.value.load())); |
|||
onUnmounted(() => PubSub.unsubscribe(event)); |
|||
return { config, onCommand, appListRef }; |
|||
}, |
|||
}; |
|||
|
File diff suppressed because it is too large
@ -0,0 +1,38 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class vmi10 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "HeartBeat", |
|||
table: "Set_JobItem", |
|||
type: "datetime2", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|||
column: "ConcurrencyStamp", |
|||
value: "2cc9803a5a8e420b80134104653ecde0"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "HeartBeat", |
|||
table: "Set_JobItem"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|||
column: "ConcurrencyStamp", |
|||
value: "887ca64c266c48ac82dca90534f64225"); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue