yc-agent-ui 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/es/components/data-table/src/data-table-pagination.vue.d.ts +3 -3
- package/es/components/data-table/src/data-table-toolbar.vue.d.ts +1 -1
- package/es/components/data-table/src/data-table.vue.d.ts +3 -3
- package/es/components/dialog-form/index.d.ts +4 -4
- package/es/components/dialog-form/src/index.vue.d.ts +4 -4
- package/es/components/display-item/index.d.ts +12 -12
- package/es/components/display-item/src/index.vue.d.ts +12 -12
- package/es/components/drawer-form/index.d.ts +10 -10
- package/es/components/drawer-form/src/index.vue.d.ts +6 -6
- package/es/components/form/index.d.ts +36 -36
- package/es/components/form/src/form-content.vue.d.ts +15 -15
- package/es/components/form/src/index.vue.d.ts +18 -18
- package/es/components/form-item/index.d.ts +37 -37
- package/es/components/form-item/src/index.vue.d.ts +16 -16
- package/es/components/index.d.ts +4 -0
- package/es/components/page/index.d.ts +897 -897
- package/es/components/page/src/index.vue.d.ts +302 -302
- package/es/components/search/index.d.ts +242 -242
- package/es/components/search/src/index.vue.d.ts +84 -84
- package/es/components/table/index.d.ts +18 -18
- package/es/components/table/src/index.vue.d.ts +2 -2
- package/es/components/table/src/table-column.vue.d.ts +24 -24
- package/es/components/virtual-table/index.d.ts +10 -10
- package/es/components/virtual-table/src/index.vue.d.ts +3 -3
- package/es/components/yc-controls/capability.d.ts +4 -0
- package/es/components/yc-controls/index.d.ts +17 -0
- package/es/components/yc-controls/src/choice-cards.vue.d.ts +16 -0
- package/es/components/yc-controls/src/segmented.vue.d.ts +16 -0
- package/es/components/yc-controls/src/switch-row.vue.d.ts +13 -0
- package/es/components/yc-controls/src/type.d.ts +39 -0
- package/es/components/yc-coss-table/src/coss-table.vue.d.ts +2 -2
- package/es/components/yc-coss-table/src/table-head.vue.d.ts +1 -1
- package/es/components/yc-date-picker/src/date-picker.vue.d.ts +1 -1
- package/es/components/yc-feedback/capability.d.ts +4 -0
- package/es/components/yc-feedback/index.d.ts +21 -0
- package/es/components/yc-feedback/src/banner.vue.d.ts +22 -0
- package/es/components/yc-feedback/src/empty-state.vue.d.ts +20 -0
- package/es/components/yc-feedback/src/key-value-list.vue.d.ts +22 -0
- package/es/components/yc-feedback/src/timeline.vue.d.ts +7 -0
- package/es/components/yc-feedback/src/type.d.ts +46 -0
- package/es/components/yc-input/capability.d.ts +4 -0
- package/es/components/yc-input/index.d.ts +21 -0
- package/es/components/yc-input/src/input.vue.d.ts +50 -0
- package/es/components/yc-input/src/money-input.vue.d.ts +26 -0
- package/es/components/yc-input/src/stepper-input.vue.d.ts +18 -0
- package/es/components/yc-input/src/textarea.vue.d.ts +35 -0
- package/es/components/yc-input/src/type.d.ts +82 -0
- package/es/components/yc-plus-page/src/header-filter-cell.vue.d.ts +8 -8
- package/es/components/yc-plus-page/src/index.vue.d.ts +917 -917
- package/es/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- package/es/components/yc-property-table/capability.d.ts +4 -0
- package/es/components/yc-property-table/index.d.ts +30 -0
- package/es/components/yc-property-table/src/asset-table.vue.d.ts +17 -0
- package/es/components/yc-property-table/src/bill-table.vue.d.ts +18 -0
- package/es/components/yc-property-table/src/device-table.vue.d.ts +17 -0
- package/es/components/yc-property-table/src/order-table.vue.d.ts +18 -0
- package/es/components/yc-property-table/src/property-table.vue.d.ts +91 -0
- package/es/components/yc-property-table/src/type.d.ts +214 -0
- package/es/components/yc-questionnaire/src/index.vue.d.ts +1 -1
- package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/es/hooks/usePlusFormReset.d.ts +66 -66
- package/es/index.css +9 -9
- package/es/index.mjs +4 -0
- package/es/packages/components/index.mjs +4 -0
- package/es/packages/components/table/capability.mjs +10 -29
- package/es/packages/components/yc-card/capability.mjs +53 -13
- package/es/packages/components/yc-controls/capability.mjs +100 -0
- package/es/packages/components/yc-controls/index.mjs +13 -0
- package/es/packages/components/yc-controls/src/choice-cards.vue.mjs +5 -0
- package/es/packages/components/yc-controls/src/choice-cards2.vue.mjs +157 -0
- package/es/packages/components/yc-controls/src/segmented.vue.mjs +5 -0
- package/es/packages/components/yc-controls/src/segmented2.vue.mjs +78 -0
- package/es/packages/components/yc-controls/src/switch-row.vue.mjs +5 -0
- package/es/packages/components/yc-controls/src/switch-row2.vue.mjs +95 -0
- package/es/packages/components/yc-controls/src/type.mjs +1 -0
- package/es/packages/components/yc-feedback/capability.mjs +109 -0
- package/es/packages/components/yc-feedback/index.mjs +16 -0
- package/es/packages/components/yc-feedback/src/banner.vue.mjs +5 -0
- package/es/packages/components/yc-feedback/src/banner2.vue.mjs +230 -0
- package/es/packages/components/yc-feedback/src/empty-state.vue.mjs +5 -0
- package/es/packages/components/yc-feedback/src/empty-state2.vue.mjs +97 -0
- package/es/packages/components/yc-feedback/src/key-value-list.vue.mjs +5 -0
- package/es/packages/components/yc-feedback/src/key-value-list2.vue.mjs +194 -0
- package/es/packages/components/yc-feedback/src/timeline.vue.mjs +5 -0
- package/es/packages/components/yc-feedback/src/timeline2.vue.mjs +134 -0
- package/es/packages/components/yc-feedback/src/type.mjs +1 -0
- package/es/packages/components/yc-input/capability.mjs +112 -0
- package/es/packages/components/yc-input/index.mjs +16 -0
- package/es/packages/components/yc-input/src/input.vue.mjs +5 -0
- package/es/packages/components/yc-input/src/input2.vue.mjs +427 -0
- package/es/packages/components/yc-input/src/money-input.vue.mjs +5 -0
- package/es/packages/components/yc-input/src/money-input2.vue.mjs +242 -0
- package/es/packages/components/yc-input/src/stepper-input.vue.mjs +5 -0
- package/es/packages/components/yc-input/src/stepper-input2.vue.mjs +211 -0
- package/es/packages/components/yc-input/src/textarea.vue.mjs +5 -0
- package/es/packages/components/yc-input/src/textarea2.vue.mjs +158 -0
- package/es/packages/components/yc-input/src/type.mjs +1 -0
- package/es/packages/components/yc-property-table/capability.mjs +350 -0
- package/es/packages/components/yc-property-table/index.mjs +24 -0
- package/es/packages/components/yc-property-table/src/asset-table.vue.mjs +5 -0
- package/es/packages/components/yc-property-table/src/asset-table2.vue.mjs +405 -0
- package/es/packages/components/yc-property-table/src/bill-table.vue.mjs +5 -0
- package/es/packages/components/yc-property-table/src/bill-table2.vue.mjs +654 -0
- package/es/packages/components/yc-property-table/src/device-table.vue.mjs +5 -0
- package/es/packages/components/yc-property-table/src/device-table2.vue.mjs +324 -0
- package/es/packages/components/yc-property-table/src/order-table.vue.mjs +5 -0
- package/es/packages/components/yc-property-table/src/order-table2.vue.mjs +363 -0
- package/es/packages/components/yc-property-table/src/property-table.vue.mjs +5 -0
- package/es/packages/components/yc-property-table/src/property-table2.vue.mjs +1228 -0
- package/es/packages/components/yc-property-table/src/type.mjs +1 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/index.css +1 -1
- package/index.js +6385 -1362
- package/index.min.js +24 -24
- package/index.min.mjs +26 -26
- package/index.mjs +6341 -1355
- package/lib/components/data-table/src/data-table-pagination.vue.d.ts +3 -3
- package/lib/components/data-table/src/data-table-toolbar.vue.d.ts +1 -1
- package/lib/components/data-table/src/data-table.vue.d.ts +3 -3
- package/lib/components/dialog-form/index.d.ts +4 -4
- package/lib/components/dialog-form/src/index.vue.d.ts +4 -4
- package/lib/components/display-item/index.d.ts +12 -12
- package/lib/components/display-item/src/index.vue.d.ts +12 -12
- package/lib/components/drawer-form/index.d.ts +10 -10
- package/lib/components/drawer-form/src/index.vue.d.ts +6 -6
- package/lib/components/form/index.d.ts +36 -36
- package/lib/components/form/src/form-content.vue.d.ts +15 -15
- package/lib/components/form/src/index.vue.d.ts +18 -18
- package/lib/components/form-item/index.d.ts +37 -37
- package/lib/components/form-item/src/index.vue.d.ts +16 -16
- package/lib/components/index.d.ts +4 -0
- package/lib/components/page/index.d.ts +897 -897
- package/lib/components/page/src/index.vue.d.ts +302 -302
- package/lib/components/search/index.d.ts +242 -242
- package/lib/components/search/src/index.vue.d.ts +84 -84
- package/lib/components/table/index.d.ts +18 -18
- package/lib/components/table/src/index.vue.d.ts +2 -2
- package/lib/components/table/src/table-column.vue.d.ts +24 -24
- package/lib/components/virtual-table/index.d.ts +10 -10
- package/lib/components/virtual-table/src/index.vue.d.ts +3 -3
- package/lib/components/yc-controls/capability.d.ts +4 -0
- package/lib/components/yc-controls/index.d.ts +17 -0
- package/lib/components/yc-controls/src/choice-cards.vue.d.ts +16 -0
- package/lib/components/yc-controls/src/segmented.vue.d.ts +16 -0
- package/lib/components/yc-controls/src/switch-row.vue.d.ts +13 -0
- package/lib/components/yc-controls/src/type.d.ts +39 -0
- package/lib/components/yc-coss-table/src/coss-table.vue.d.ts +2 -2
- package/lib/components/yc-coss-table/src/table-head.vue.d.ts +1 -1
- package/lib/components/yc-date-picker/src/date-picker.vue.d.ts +1 -1
- package/lib/components/yc-feedback/capability.d.ts +4 -0
- package/lib/components/yc-feedback/index.d.ts +21 -0
- package/lib/components/yc-feedback/src/banner.vue.d.ts +22 -0
- package/lib/components/yc-feedback/src/empty-state.vue.d.ts +20 -0
- package/lib/components/yc-feedback/src/key-value-list.vue.d.ts +22 -0
- package/lib/components/yc-feedback/src/timeline.vue.d.ts +7 -0
- package/lib/components/yc-feedback/src/type.d.ts +46 -0
- package/lib/components/yc-input/capability.d.ts +4 -0
- package/lib/components/yc-input/index.d.ts +21 -0
- package/lib/components/yc-input/src/input.vue.d.ts +50 -0
- package/lib/components/yc-input/src/money-input.vue.d.ts +26 -0
- package/lib/components/yc-input/src/stepper-input.vue.d.ts +18 -0
- package/lib/components/yc-input/src/textarea.vue.d.ts +35 -0
- package/lib/components/yc-input/src/type.d.ts +82 -0
- package/lib/components/yc-plus-page/src/header-filter-cell.vue.d.ts +8 -8
- package/lib/components/yc-plus-page/src/index.vue.d.ts +917 -917
- package/lib/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- package/lib/components/yc-property-table/capability.d.ts +4 -0
- package/lib/components/yc-property-table/index.d.ts +30 -0
- package/lib/components/yc-property-table/src/asset-table.vue.d.ts +17 -0
- package/lib/components/yc-property-table/src/bill-table.vue.d.ts +18 -0
- package/lib/components/yc-property-table/src/device-table.vue.d.ts +17 -0
- package/lib/components/yc-property-table/src/order-table.vue.d.ts +18 -0
- package/lib/components/yc-property-table/src/property-table.vue.d.ts +91 -0
- package/lib/components/yc-property-table/src/type.d.ts +214 -0
- package/lib/components/yc-questionnaire/src/index.vue.d.ts +1 -1
- package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/lib/hooks/usePlusFormReset.d.ts +66 -66
- package/lib/index.css +11 -11
- package/lib/index.js +176 -135
- package/lib/packages/components/index.js +172 -131
- package/lib/packages/components/table/capability.js +10 -29
- package/lib/packages/components/yc-card/capability.js +53 -13
- package/lib/packages/components/yc-controls/capability.js +104 -0
- package/lib/packages/components/yc-controls/index.js +23 -0
- package/lib/packages/components/yc-controls/src/choice-cards.vue.js +9 -0
- package/lib/packages/components/yc-controls/src/choice-cards2.vue.js +161 -0
- package/lib/packages/components/yc-controls/src/segmented.vue.js +9 -0
- package/lib/packages/components/yc-controls/src/segmented2.vue.js +82 -0
- package/lib/packages/components/yc-controls/src/switch-row.vue.js +9 -0
- package/lib/packages/components/yc-controls/src/switch-row2.vue.js +99 -0
- package/lib/packages/components/yc-controls/src/type.js +2 -0
- package/lib/packages/components/yc-feedback/capability.js +113 -0
- package/lib/packages/components/yc-feedback/index.js +28 -0
- package/lib/packages/components/yc-feedback/src/banner.vue.js +9 -0
- package/lib/packages/components/yc-feedback/src/banner2.vue.js +234 -0
- package/lib/packages/components/yc-feedback/src/empty-state.vue.js +9 -0
- package/lib/packages/components/yc-feedback/src/empty-state2.vue.js +101 -0
- package/lib/packages/components/yc-feedback/src/key-value-list.vue.js +9 -0
- package/lib/packages/components/yc-feedback/src/key-value-list2.vue.js +198 -0
- package/lib/packages/components/yc-feedback/src/timeline.vue.js +9 -0
- package/lib/packages/components/yc-feedback/src/timeline2.vue.js +138 -0
- package/lib/packages/components/yc-feedback/src/type.js +2 -0
- package/lib/packages/components/yc-input/capability.js +116 -0
- package/lib/packages/components/yc-input/index.js +28 -0
- package/lib/packages/components/yc-input/src/input.vue.js +9 -0
- package/lib/packages/components/yc-input/src/input2.vue.js +431 -0
- package/lib/packages/components/yc-input/src/money-input.vue.js +9 -0
- package/lib/packages/components/yc-input/src/money-input2.vue.js +246 -0
- package/lib/packages/components/yc-input/src/stepper-input.vue.js +9 -0
- package/lib/packages/components/yc-input/src/stepper-input2.vue.js +215 -0
- package/lib/packages/components/yc-input/src/textarea.vue.js +9 -0
- package/lib/packages/components/yc-input/src/textarea2.vue.js +162 -0
- package/lib/packages/components/yc-input/src/type.js +2 -0
- package/lib/packages/components/yc-property-table/capability.js +354 -0
- package/lib/packages/components/yc-property-table/index.js +43 -0
- package/lib/packages/components/yc-property-table/src/asset-table.vue.js +9 -0
- package/lib/packages/components/yc-property-table/src/asset-table2.vue.js +409 -0
- package/lib/packages/components/yc-property-table/src/bill-table.vue.js +9 -0
- package/lib/packages/components/yc-property-table/src/bill-table2.vue.js +658 -0
- package/lib/packages/components/yc-property-table/src/device-table.vue.js +9 -0
- package/lib/packages/components/yc-property-table/src/device-table2.vue.js +328 -0
- package/lib/packages/components/yc-property-table/src/order-table.vue.js +9 -0
- package/lib/packages/components/yc-property-table/src/order-table2.vue.js +367 -0
- package/lib/packages/components/yc-property-table/src/property-table.vue.js +9 -0
- package/lib/packages/components/yc-property-table/src/property-table2.vue.js +1232 -0
- package/lib/packages/components/yc-property-table/src/type.js +2 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-yc-controls.css +1 -0
- package/theme-chalk/plus-yc-feedback.css +1 -0
- package/theme-chalk/plus-yc-input.css +1 -0
- package/theme-chalk/plus-yc-property-table.css +1 -0
- package/theme-chalk/src/index.scss +4 -0
- package/theme-chalk/src/yc-controls.scss +316 -0
- package/theme-chalk/src/yc-feedback.scss +452 -0
- package/theme-chalk/src/yc-input.scss +473 -0
- package/theme-chalk/src/yc-property-table.scss +1700 -0
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, normalizeClass, createCommentVNode, toDisplayString, createTextVNode, withModifiers, Fragment, renderList } from 'vue';
|
|
2
|
+
import _sfc_main$1 from './property-table2.vue.mjs';
|
|
3
|
+
|
|
4
|
+
const _hoisted_1 = { class: "yc-asset-table-container" };
|
|
5
|
+
const _hoisted_2 = ["onClick"];
|
|
6
|
+
const _hoisted_3 = { class: "yc-asset-card__header" };
|
|
7
|
+
const _hoisted_4 = { class: "yc-asset-card__room-badge" };
|
|
8
|
+
const _hoisted_5 = { class: "yc-asset-card__room-building" };
|
|
9
|
+
const _hoisted_6 = { class: "yc-asset-card__room-no" };
|
|
10
|
+
const _hoisted_7 = { class: "yc-asset-card__status" };
|
|
11
|
+
const _hoisted_8 = { class: "yc-asset-card__specs" };
|
|
12
|
+
const _hoisted_9 = { class: "yc-asset-card__spec-item" };
|
|
13
|
+
const _hoisted_10 = { class: "yc-asset-card__spec-val" };
|
|
14
|
+
const _hoisted_11 = { class: "yc-asset-card__spec-desc" };
|
|
15
|
+
const _hoisted_12 = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "yc-asset-card__spec-pill"
|
|
18
|
+
};
|
|
19
|
+
const _hoisted_13 = {
|
|
20
|
+
key: 1,
|
|
21
|
+
class: "yc-asset-card__spec-pill"
|
|
22
|
+
};
|
|
23
|
+
const _hoisted_14 = { class: "yc-asset-card__owner" };
|
|
24
|
+
const _hoisted_15 = { class: "yc-asset-card__owner-info" };
|
|
25
|
+
const _hoisted_16 = { class: "yc-asset-card__owner-name" };
|
|
26
|
+
const _hoisted_17 = ["href"];
|
|
27
|
+
const _hoisted_18 = {
|
|
28
|
+
key: 0,
|
|
29
|
+
class: "yc-asset-card__tags"
|
|
30
|
+
};
|
|
31
|
+
const _hoisted_19 = { class: "yc-asset-card__links" };
|
|
32
|
+
const _hoisted_20 = ["onClick"];
|
|
33
|
+
const _hoisted_21 = ["onClick"];
|
|
34
|
+
const _hoisted_22 = ["onClick"];
|
|
35
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
36
|
+
...{
|
|
37
|
+
name: "YcAssetTable"
|
|
38
|
+
},
|
|
39
|
+
__name: "asset-table",
|
|
40
|
+
props: {
|
|
41
|
+
data: { default: () => [] },
|
|
42
|
+
layout: { default: "auto" },
|
|
43
|
+
breakpoint: { default: 768 },
|
|
44
|
+
title: {},
|
|
45
|
+
subtitle: {},
|
|
46
|
+
card: { type: Boolean, default: true },
|
|
47
|
+
searchable: { type: Boolean, default: true },
|
|
48
|
+
pagination: { type: [Boolean, Object] },
|
|
49
|
+
loading: { type: Boolean },
|
|
50
|
+
customClass: {}
|
|
51
|
+
},
|
|
52
|
+
emits: ["action", "rowClick"],
|
|
53
|
+
setup(__props, { emit: __emit }) {
|
|
54
|
+
const emit = __emit;
|
|
55
|
+
const occupancyMap = {
|
|
56
|
+
self: "\u4E1A\u4E3B\u81EA\u4F4F",
|
|
57
|
+
rent: "\u6574\u79DF\u5165\u4F4F",
|
|
58
|
+
sublet: "\u5408\u79DF\u6258\u7BA1",
|
|
59
|
+
vacant: "\u623F\u5C4B\u7A7A\u7F6E",
|
|
60
|
+
renovating: "\u88C5\u4FEE\u65BD\u5DE5\u4E2D"
|
|
61
|
+
};
|
|
62
|
+
const assetColumns = [
|
|
63
|
+
{
|
|
64
|
+
prop: "roomNo",
|
|
65
|
+
label: "\u697C\u680B\u623F\u53F7",
|
|
66
|
+
width: 130,
|
|
67
|
+
primary: true
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
prop: "occupancyStatus",
|
|
71
|
+
label: "\u5C45\u4F4F\u72B6\u6001",
|
|
72
|
+
width: 110,
|
|
73
|
+
type: "tag",
|
|
74
|
+
tagMap: {
|
|
75
|
+
self: { label: "\u4E1A\u4E3B\u81EA\u4F4F", type: "success", dot: true },
|
|
76
|
+
rent: { label: "\u6574\u79DF\u5165\u4F4F", type: "primary", dot: true },
|
|
77
|
+
sublet: { label: "\u5408\u79DF\u6258\u7BA1", type: "warning", dot: true },
|
|
78
|
+
vacant: { label: "\u623F\u5C4B\u7A7A\u7F6E", type: "info", dot: false },
|
|
79
|
+
renovating: { label: "\u88C5\u4FEE\u65BD\u5DE5", type: "warning", dot: true }
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
prop: "area",
|
|
84
|
+
label: "\u5EFA\u7B51\u9762\u79EF",
|
|
85
|
+
width: 100,
|
|
86
|
+
align: "right",
|
|
87
|
+
sortable: true,
|
|
88
|
+
formatter: (val) => `${val} \u33A1`
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
prop: "layoutDesc",
|
|
92
|
+
label: "\u6237\u578B\u683C\u5C40",
|
|
93
|
+
width: 120,
|
|
94
|
+
subPrimary: true
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
prop: "ownerName",
|
|
98
|
+
label: "\u4E1A\u4E3B\u59D3\u540D",
|
|
99
|
+
width: 100
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
prop: "ownerPhone",
|
|
103
|
+
label: "\u8054\u7CFB\u7535\u8BDD",
|
|
104
|
+
width: 130,
|
|
105
|
+
type: "phone"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
prop: "residentsCount",
|
|
109
|
+
label: "\u5E38\u4F4F\u4EBA\u53E3",
|
|
110
|
+
width: 90,
|
|
111
|
+
align: "center",
|
|
112
|
+
formatter: (val) => val ? `${val}\u4EBA` : "-"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
prop: "vehiclesCount",
|
|
116
|
+
label: "\u8F66\u8F86\u7ED1\u5B9A",
|
|
117
|
+
width: 90,
|
|
118
|
+
align: "center",
|
|
119
|
+
formatter: (val) => val ? `${val}\u8F86` : "\u65E0"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
prop: "tags",
|
|
123
|
+
label: "\u5173\u6000\u7279\u5F81\u6807\u7B7E",
|
|
124
|
+
minWidth: 160,
|
|
125
|
+
formatter: (tags) => tags && tags.length ? tags.join(" \xB7 ") : "\u5E38\u89C4\u4F4F\u6237"
|
|
126
|
+
}
|
|
127
|
+
];
|
|
128
|
+
const assetActions = [
|
|
129
|
+
{
|
|
130
|
+
name: "visit",
|
|
131
|
+
label: "\u8D70\u8BBF",
|
|
132
|
+
type: "primary"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: "resident",
|
|
136
|
+
label: "\u53D8\u66F4",
|
|
137
|
+
type: "warning",
|
|
138
|
+
plain: true
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: "archive",
|
|
142
|
+
label: "\u4E00\u623F\u4E00\u6863",
|
|
143
|
+
type: "info",
|
|
144
|
+
plain: true
|
|
145
|
+
}
|
|
146
|
+
];
|
|
147
|
+
const handleAction = (action, row) => {
|
|
148
|
+
emit("action", action, row);
|
|
149
|
+
};
|
|
150
|
+
const handleRowClick = (row, index) => {
|
|
151
|
+
emit("rowClick", row, index);
|
|
152
|
+
};
|
|
153
|
+
return (_ctx, _cache) => {
|
|
154
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
155
|
+
createVNode(_sfc_main$1, {
|
|
156
|
+
data: __props.data,
|
|
157
|
+
columns: assetColumns,
|
|
158
|
+
layout: __props.layout,
|
|
159
|
+
breakpoint: __props.breakpoint,
|
|
160
|
+
title: __props.title || "\u623F\u5C4B\u8D44\u4EA7\u4E0E\u4F4F\u6237\u6863\u6848\u7F51\u683C\u53F0\u8D26",
|
|
161
|
+
subtitle: __props.subtitle || "\u697C\u680B\u4E00\u623F\u4E00\u6863\u7F51\u683C\u5316\u753B\u50CF\u3001\u81EA\u4F4F/\u51FA\u79DF\u72B6\u6001\u4E0E\u4F4F\u6237\u5173\u6000\u4FE1\u606F\u53F0\u8D26",
|
|
162
|
+
card: __props.card,
|
|
163
|
+
searchable: __props.searchable,
|
|
164
|
+
pagination: __props.pagination,
|
|
165
|
+
loading: __props.loading,
|
|
166
|
+
actions: assetActions,
|
|
167
|
+
"custom-class": __props.customClass,
|
|
168
|
+
onAction: handleAction,
|
|
169
|
+
onRowClick: handleRowClick
|
|
170
|
+
}, {
|
|
171
|
+
card: withCtx(({ row, index }) => [
|
|
172
|
+
createElementVNode("div", {
|
|
173
|
+
class: normalizeClass(["yc-asset-card", `is-occupancy-${row.occupancyStatus}`]),
|
|
174
|
+
onClick: ($event) => handleRowClick(row, index)
|
|
175
|
+
}, [
|
|
176
|
+
createCommentVNode(" \u5361\u7247\u5934\u90E8: \u623F\u53F7\u5FBD\u6807 + \u5165\u4F4F\u72B6\u6001 "),
|
|
177
|
+
createElementVNode("div", _hoisted_3, [
|
|
178
|
+
createElementVNode("div", _hoisted_4, [
|
|
179
|
+
createElementVNode(
|
|
180
|
+
"span",
|
|
181
|
+
_hoisted_5,
|
|
182
|
+
toDisplayString(row.building) + "-" + toDisplayString(row.unit),
|
|
183
|
+
1
|
|
184
|
+
/* TEXT */
|
|
185
|
+
),
|
|
186
|
+
createElementVNode(
|
|
187
|
+
"span",
|
|
188
|
+
_hoisted_6,
|
|
189
|
+
toDisplayString(row.roomNo),
|
|
190
|
+
1
|
|
191
|
+
/* TEXT */
|
|
192
|
+
)
|
|
193
|
+
]),
|
|
194
|
+
createElementVNode("div", _hoisted_7, [
|
|
195
|
+
createElementVNode(
|
|
196
|
+
"span",
|
|
197
|
+
{
|
|
198
|
+
class: normalizeClass(["yc-property-tag", `occupancy-${row.occupancyStatus}`])
|
|
199
|
+
},
|
|
200
|
+
[
|
|
201
|
+
_cache[2] || (_cache[2] = createElementVNode(
|
|
202
|
+
"span",
|
|
203
|
+
{ class: "yc-property-tag__dot" },
|
|
204
|
+
null,
|
|
205
|
+
-1
|
|
206
|
+
/* CACHED */
|
|
207
|
+
)),
|
|
208
|
+
createTextVNode(
|
|
209
|
+
" " + toDisplayString(occupancyMap[row.occupancyStatus] || row.occupancyStatus),
|
|
210
|
+
1
|
|
211
|
+
/* TEXT */
|
|
212
|
+
)
|
|
213
|
+
],
|
|
214
|
+
2
|
|
215
|
+
/* CLASS */
|
|
216
|
+
)
|
|
217
|
+
])
|
|
218
|
+
]),
|
|
219
|
+
createElementVNode("div", _hoisted_8, [
|
|
220
|
+
createElementVNode("div", _hoisted_9, [
|
|
221
|
+
createElementVNode(
|
|
222
|
+
"span",
|
|
223
|
+
_hoisted_10,
|
|
224
|
+
toDisplayString(row.area),
|
|
225
|
+
1
|
|
226
|
+
/* TEXT */
|
|
227
|
+
),
|
|
228
|
+
_cache[3] || (_cache[3] = createElementVNode(
|
|
229
|
+
"span",
|
|
230
|
+
{ class: "yc-asset-card__spec-unit" },
|
|
231
|
+
"\u33A1",
|
|
232
|
+
-1
|
|
233
|
+
/* CACHED */
|
|
234
|
+
))
|
|
235
|
+
]),
|
|
236
|
+
_cache[6] || (_cache[6] = createElementVNode(
|
|
237
|
+
"div",
|
|
238
|
+
{ class: "yc-asset-card__spec-divider" },
|
|
239
|
+
"/",
|
|
240
|
+
-1
|
|
241
|
+
/* CACHED */
|
|
242
|
+
)),
|
|
243
|
+
createElementVNode(
|
|
244
|
+
"div",
|
|
245
|
+
_hoisted_11,
|
|
246
|
+
toDisplayString(row.layoutDesc),
|
|
247
|
+
1
|
|
248
|
+
/* TEXT */
|
|
249
|
+
),
|
|
250
|
+
row.residentsCount ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
251
|
+
_cache[4] || (_cache[4] = createElementVNode(
|
|
252
|
+
"svg",
|
|
253
|
+
{
|
|
254
|
+
class: "yc-asset-card__spec-icon",
|
|
255
|
+
viewBox: "0 0 24 24",
|
|
256
|
+
width: "12",
|
|
257
|
+
height: "12",
|
|
258
|
+
fill: "none",
|
|
259
|
+
stroke: "currentColor",
|
|
260
|
+
"stroke-width": "1.8",
|
|
261
|
+
"stroke-linecap": "round",
|
|
262
|
+
"stroke-linejoin": "round",
|
|
263
|
+
"aria-hidden": "true"
|
|
264
|
+
},
|
|
265
|
+
[
|
|
266
|
+
createElementVNode("path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }),
|
|
267
|
+
createElementVNode("circle", {
|
|
268
|
+
cx: "9",
|
|
269
|
+
cy: "7",
|
|
270
|
+
r: "4"
|
|
271
|
+
}),
|
|
272
|
+
createElementVNode("path", { d: "M22 21v-2a4 4 0 0 0-3-3.87" }),
|
|
273
|
+
createElementVNode("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })
|
|
274
|
+
],
|
|
275
|
+
-1
|
|
276
|
+
/* CACHED */
|
|
277
|
+
)),
|
|
278
|
+
createElementVNode(
|
|
279
|
+
"span",
|
|
280
|
+
null,
|
|
281
|
+
toDisplayString(row.residentsCount) + "\u4EBA\u5E38\u4F4F",
|
|
282
|
+
1
|
|
283
|
+
/* TEXT */
|
|
284
|
+
)
|
|
285
|
+
])) : createCommentVNode("v-if", true),
|
|
286
|
+
row.vehiclesCount ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
287
|
+
_cache[5] || (_cache[5] = createElementVNode(
|
|
288
|
+
"svg",
|
|
289
|
+
{
|
|
290
|
+
class: "yc-asset-card__spec-icon",
|
|
291
|
+
viewBox: "0 0 24 24",
|
|
292
|
+
width: "12",
|
|
293
|
+
height: "12",
|
|
294
|
+
fill: "none",
|
|
295
|
+
stroke: "currentColor",
|
|
296
|
+
"stroke-width": "1.8",
|
|
297
|
+
"stroke-linecap": "round",
|
|
298
|
+
"stroke-linejoin": "round",
|
|
299
|
+
"aria-hidden": "true"
|
|
300
|
+
},
|
|
301
|
+
[
|
|
302
|
+
createElementVNode("path", { d: "M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9L18 10l-2.1-3.4A2 2 0 0 0 14.2 5.6H9.8a2 2 0 0 0-1.7 1L6 10l-2.5 1.1C2.7 11.3 2 12.1 2 13v3c0 .6.4 1 1 1h2" }),
|
|
303
|
+
createElementVNode("circle", {
|
|
304
|
+
cx: "7",
|
|
305
|
+
cy: "17",
|
|
306
|
+
r: "2"
|
|
307
|
+
}),
|
|
308
|
+
createElementVNode("path", { d: "M9 17h6" }),
|
|
309
|
+
createElementVNode("circle", {
|
|
310
|
+
cx: "17",
|
|
311
|
+
cy: "17",
|
|
312
|
+
r: "2"
|
|
313
|
+
})
|
|
314
|
+
],
|
|
315
|
+
-1
|
|
316
|
+
/* CACHED */
|
|
317
|
+
)),
|
|
318
|
+
createElementVNode(
|
|
319
|
+
"span",
|
|
320
|
+
null,
|
|
321
|
+
toDisplayString(row.vehiclesCount) + "\u8F86\u8F66",
|
|
322
|
+
1
|
|
323
|
+
/* TEXT */
|
|
324
|
+
)
|
|
325
|
+
])) : createCommentVNode("v-if", true)
|
|
326
|
+
]),
|
|
327
|
+
createElementVNode("div", _hoisted_14, [
|
|
328
|
+
createElementVNode("div", _hoisted_15, [
|
|
329
|
+
_cache[7] || (_cache[7] = createElementVNode(
|
|
330
|
+
"span",
|
|
331
|
+
{ class: "yc-asset-card__owner-label" },
|
|
332
|
+
"\u4E1A\u4E3B",
|
|
333
|
+
-1
|
|
334
|
+
/* CACHED */
|
|
335
|
+
)),
|
|
336
|
+
createElementVNode(
|
|
337
|
+
"span",
|
|
338
|
+
_hoisted_16,
|
|
339
|
+
toDisplayString(row.ownerName),
|
|
340
|
+
1
|
|
341
|
+
/* TEXT */
|
|
342
|
+
)
|
|
343
|
+
]),
|
|
344
|
+
row.ownerPhone ? (openBlock(), createElementBlock("a", {
|
|
345
|
+
key: 0,
|
|
346
|
+
href: `tel:${row.ownerPhone}`,
|
|
347
|
+
class: "yc-asset-card__call-btn",
|
|
348
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
349
|
+
}, ["stop"]))
|
|
350
|
+
}, toDisplayString(row.ownerPhone), 9, _hoisted_17)) : createCommentVNode("v-if", true)
|
|
351
|
+
]),
|
|
352
|
+
row.tags && row.tags.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
353
|
+
(openBlock(true), createElementBlock(
|
|
354
|
+
Fragment,
|
|
355
|
+
null,
|
|
356
|
+
renderList(row.tags, (tag) => {
|
|
357
|
+
return openBlock(), createElementBlock(
|
|
358
|
+
"span",
|
|
359
|
+
{
|
|
360
|
+
key: tag,
|
|
361
|
+
class: normalizeClass(["yc-asset-card__tag", { "is-highlight": tag.includes("\u8001\u4EBA") || tag.includes("\u7279\u6B8A") }])
|
|
362
|
+
},
|
|
363
|
+
toDisplayString(tag),
|
|
364
|
+
3
|
|
365
|
+
/* TEXT, CLASS */
|
|
366
|
+
);
|
|
367
|
+
}),
|
|
368
|
+
128
|
|
369
|
+
/* KEYED_FRAGMENT */
|
|
370
|
+
))
|
|
371
|
+
])) : createCommentVNode("v-if", true),
|
|
372
|
+
createElementVNode("div", {
|
|
373
|
+
class: "yc-asset-card__actions",
|
|
374
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
375
|
+
}, ["stop"]))
|
|
376
|
+
}, [
|
|
377
|
+
createElementVNode("div", _hoisted_19, [
|
|
378
|
+
createElementVNode("button", {
|
|
379
|
+
type: "button",
|
|
380
|
+
class: "yc-asset-card__link",
|
|
381
|
+
onClick: ($event) => handleAction("resident", row)
|
|
382
|
+
}, " \u4F4F\u6237\u53D8\u66F4 ", 8, _hoisted_20),
|
|
383
|
+
createElementVNode("button", {
|
|
384
|
+
type: "button",
|
|
385
|
+
class: "yc-asset-card__link",
|
|
386
|
+
onClick: ($event) => handleAction("archive", row)
|
|
387
|
+
}, " \u4E00\u623F\u4E00\u6863 ", 8, _hoisted_21)
|
|
388
|
+
]),
|
|
389
|
+
createElementVNode("button", {
|
|
390
|
+
type: "button",
|
|
391
|
+
class: "yc-asset-card__btn is-visit",
|
|
392
|
+
onClick: ($event) => handleAction("visit", row)
|
|
393
|
+
}, " \u5165\u6237\u8D70\u8BBF ", 8, _hoisted_22)
|
|
394
|
+
])
|
|
395
|
+
], 10, _hoisted_2)
|
|
396
|
+
]),
|
|
397
|
+
_: 1
|
|
398
|
+
/* STABLE */
|
|
399
|
+
}, 8, ["data", "layout", "breakpoint", "title", "subtitle", "card", "searchable", "pagination", "loading", "custom-class"])
|
|
400
|
+
]);
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
|
|
405
|
+
export { _sfc_main as default };
|