Browse Source

update

master
wanggang 1 year ago
parent
commit
ecc72fb28e
  1. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/app.js
  2. 5
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js
  3. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-item.js
  4. 6
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/index.js
  5. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/app.js

@ -2,10 +2,10 @@ import html from "html";
import { ElConfigProvider } from "element-plus";
import zh from "./lib/element-plus/locale/zh-cn.min.mjs";
import en from "./lib/element-plus/locale/en.min.mjs";
import { Suspense, reactive, onMounted } from "vue";
import { reactive, onMounted } from "vue";
export default {
components: { ElConfigProvider, Suspense },
components: { ElConfigProvider },
template: html`
<el-config-provider :locale="localeMap.get($i18n.locale)">
<router-view></router-view>

5
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js

@ -1,7 +1,7 @@
import html from "html";
import { ref, reactive, watch, onMounted } from "vue";
import { dayjs } from "element-plus";
import request, { post } from "../../request/index.js";
import request from "../../request/index.js";
import { importFunction } from "../../utils/index.js";
export default {
@ -127,6 +127,9 @@ export default {
value: o[props.schema.value],
label: o[props.schema.label],
}));
if (!props.schema.selected && options.value.length) {
model[props.prop] = options.value[0].value;
}
} catch (error) {
console.log(error);
}

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-item.js

@ -4,7 +4,9 @@ import { getRules } from "../../utils/validation.js";
export default {
name: "formItem",
components: { AppFormInput: defineAsyncComponent(() => import("./form-input.js")) },
components: {
AppFormInput: defineAsyncComponent(() => import("./form-input.js")),
},
template: html`
<template v-if="!schema.hidden">
<template v-if="schema.type==='object'"></template>

6
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/index.js

@ -1,8 +1,10 @@
import html from "html";
import { defineAsyncComponent, ref, reactive, watch } from "vue";
import { defineAsyncComponent, ref, reactive, watch, onMounted } from "vue";
export default {
components: { AppFormItem: defineAsyncComponent(() => import("./form-item.js")) },
components: {
AppFormItem: defineAsyncComponent(() => import("./form-item.js")),
},
name: "AppForm",
template: html`<div v-loading="loading">
<el-form ref="formRef" :model="model" label-width="auto" :inline="inline">

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js

@ -832,8 +832,6 @@ export default {
if (props.query) {
Object.assign(queryModel.value.query, props.query);
}
// getSortModel(data.value);
// getColumns(vm.schema.properties.query);
await load();
});
context.expose({ load });

Loading…
Cancel
Save