diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..5b70a77b --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +.DS_Store +node_modules +/dist + +# local env files +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? +/package-lock.json +/lib +.prettierrc +/oms/dist/ +/project/*/index.js +/project/*/dist diff --git a/.npmignore b/.npmignore new file mode 100644 index 00000000..43798247 --- /dev/null +++ b/.npmignore @@ -0,0 +1,13 @@ +# 忽略目录 +examples/ +packages/ +subPackages/ +core/ +public/ +project/ +.idea/ + +# 忽略指定文件 +vue.config.js +babel.config.js +*.map diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..20d82c56 --- /dev/null +++ b/.npmrc @@ -0,0 +1,6 @@ +registry=http://192.168.1.87:4873/ +email=aixianling@sinoecare.com +always-auth=true +_auth="YWRtaW46YWRtaW4xMjM=" +package-lock=false + diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 00000000..1b386177 --- /dev/null +++ b/babel.config.js @@ -0,0 +1,11 @@ +module.exports = { + presets: [ + '@vue/app', + ], + plugins: [ + // 可选链插件, 其他babel插件也是一样的安装方式 + "@babel/plugin-proposal-optional-chaining", + "@babel/plugin-proposal-nullish-coalescing-operator", + "@babel/plugin-proposal-logical-assignment-operators" + ] +} diff --git a/core/.npmignore b/core/.npmignore new file mode 100644 index 00000000..84d1877c --- /dev/null +++ b/core/.npmignore @@ -0,0 +1,4 @@ +apps/ +index.js +*.map +vcapps.import.js diff --git a/core/apps/AppAccount/AppAccount.vue b/core/apps/AppAccount/AppAccount.vue new file mode 100644 index 00000000..3d69dcbc --- /dev/null +++ b/core/apps/AppAccount/AppAccount.vue @@ -0,0 +1,247 @@ + + + + + diff --git a/core/apps/AppDictionary/AppDictionary.vue b/core/apps/AppDictionary/AppDictionary.vue new file mode 100644 index 00000000..ce0e0b16 --- /dev/null +++ b/core/apps/AppDictionary/AppDictionary.vue @@ -0,0 +1,156 @@ + + + + + diff --git a/core/apps/AppDictionary/dictDetail.vue b/core/apps/AppDictionary/dictDetail.vue new file mode 100644 index 00000000..bdd75e6c --- /dev/null +++ b/core/apps/AppDictionary/dictDetail.vue @@ -0,0 +1,202 @@ + + + + + diff --git a/core/apps/AppQyWxConfig/AppQyWxConfig.vue b/core/apps/AppQyWxConfig/AppQyWxConfig.vue new file mode 100644 index 00000000..d145c612 --- /dev/null +++ b/core/apps/AppQyWxConfig/AppQyWxConfig.vue @@ -0,0 +1,344 @@ + + + + + diff --git a/core/apps/AppRightsManager/AppRightsManager.vue b/core/apps/AppRightsManager/AppRightsManager.vue new file mode 100644 index 00000000..515d8549 --- /dev/null +++ b/core/apps/AppRightsManager/AppRightsManager.vue @@ -0,0 +1,443 @@ + + + + + diff --git a/core/apps/AppRightsManager/rightsAdd.vue b/core/apps/AppRightsManager/rightsAdd.vue new file mode 100644 index 00000000..f6980d33 --- /dev/null +++ b/core/apps/AppRightsManager/rightsAdd.vue @@ -0,0 +1,195 @@ + + + diff --git a/core/apps/AppRightsManager/rightsGraph.vue b/core/apps/AppRightsManager/rightsGraph.vue new file mode 100644 index 00000000..8fa99478 --- /dev/null +++ b/core/apps/AppRightsManager/rightsGraph.vue @@ -0,0 +1,192 @@ + + + + + diff --git a/core/apps/AppSystemAccount/AppSystemAccount.vue b/core/apps/AppSystemAccount/AppSystemAccount.vue new file mode 100644 index 00000000..8e0ac079 --- /dev/null +++ b/core/apps/AppSystemAccount/AppSystemAccount.vue @@ -0,0 +1,211 @@ + + + + + diff --git a/core/apps/AppUserInfo/AppUserInfo.vue b/core/apps/AppUserInfo/AppUserInfo.vue new file mode 100644 index 00000000..8e8f99f4 --- /dev/null +++ b/core/apps/AppUserInfo/AppUserInfo.vue @@ -0,0 +1,197 @@ + + + + + diff --git a/core/components/AiAddressBookMenu.vue b/core/components/AiAddressBookMenu.vue new file mode 100644 index 00000000..eaf71f9e --- /dev/null +++ b/core/components/AiAddressBookMenu.vue @@ -0,0 +1,242 @@ + + + + + diff --git a/core/index.js b/core/index.js new file mode 100644 index 00000000..0f987f66 --- /dev/null +++ b/core/index.js @@ -0,0 +1,45 @@ +/** + * 系统业务模块 + * @param Vue 外部接入Vue + * @param params showList:打印加载的应用;apps:加载的应用文件名数组 + */ + +const install = function (Vue, params) { + if (install.installed) return Promise.resolve() + else { + // 遍历工作控件内的应用 + let apps = [] + let contexts = require.context('.', true, /\.(\/.+)\/App[^\/]+\.vue$/) + if (contexts) { + contexts.keys().map(e => { + if (contexts(e).default) { + if (params?.apps) { + if (params?.apps.includes(contexts(e).default.name)) { + apps.push(contexts(e).default) + Vue.component(contexts(e).default.name, contexts(e).default) + } + } else { + apps.push(contexts(e).default) + Vue.component(contexts(e).default.name, contexts(e).default) + } + } + }) + // apps.map(e=>{ + // console.log(e.name,e.label) + // }) + !!params?.showList && console.log(apps.map(e => e.name)) + } + return Promise.resolve(apps) + } + +} + +// 判断是否是直接引入文件 +if (typeof window !== 'undefined' && window.Vue) { + install(window.Vue) +} + +export default { + // 导出的对象必须具有 install,才能被 Vue.use() 方法安装 + install +} diff --git a/core/package.json b/core/package.json new file mode 100644 index 00000000..655252e9 --- /dev/null +++ b/core/package.json @@ -0,0 +1,9 @@ +{ + "name": "cw-core-webapps", + "description": "系统业务模块", + "version": "1.0.13", + "main": "dist/cw-core-webapps.common.js", + "publishConfig": { + "registry": "http://192.168.1.87:4873/" + } +} diff --git a/examples/App.vue b/examples/App.vue new file mode 100644 index 00000000..518b40a2 --- /dev/null +++ b/examples/App.vue @@ -0,0 +1,226 @@ + + + + + diff --git a/examples/assets/building.png b/examples/assets/building.png new file mode 100644 index 00000000..1200fbdf Binary files /dev/null and b/examples/assets/building.png differ diff --git a/examples/entries.js b/examples/entries.js new file mode 100644 index 00000000..3d7290b4 --- /dev/null +++ b/examples/entries.js @@ -0,0 +1,22 @@ +//引入当前工程所有的应用 +const install = function(Vue) { + if (install.installed) return Promise.resolve(); + else { + let contexts = require.context('../packages', true, /(\/.+)\/App[^\/]+\.vue$/); + if (contexts) { + contexts.keys().map((e) => { + if (contexts(e).default) { + Vue.component(contexts(e).default.name, contexts(e).default); + } + }); + } + } +}; +// 判断是否是直接引入文件 +if (typeof window !== 'undefined' && window.Vue) { + install(window.Vue); +} +export default { + // 导出的对象必须具有 install,才能被 Vue.use() 方法安装 + install +}; diff --git a/examples/main.js b/examples/main.js new file mode 100644 index 00000000..5640e853 --- /dev/null +++ b/examples/main.js @@ -0,0 +1,31 @@ +import Vue from 'vue'; +import App from './App.vue'; +import ui from 'element-ui'; +import router from './router/router'; +import apps from './entries'; +import axios from './router/axios'; +import utils from './utils'; +import vcUI from 'dvcp-ui'; +import dvUI from 'dvcp-dv-ui' +import 'dvcp-ui/lib/styles/common.scss'; +import 'dvcp-ui/lib/dvcp-ui.css'; +import store from './store'; +import dataV from '@jiaminghi/data-view'; + +Vue.use(dataV); + +Vue.use(apps); +Vue.use(ui); +Vue.use(vcUI); +Vue.use(dvUI); +//富文本编辑器配置 +Vue.config.productionTip = false; +Vue.prototype.$axios = axios; +Vue.prototype.formatContent = (val) => val.replace(/(\r\n)|(\n)/g, '
'); +Object.keys(utils).map((e) => (Vue.prototype[e] = utils[e])); +utils.$store.init(store); +new Vue({ + router, + store, + render: (h) => h(App) +}).$mount('#app'); diff --git a/examples/router/autoRoutes.js b/examples/router/autoRoutes.js new file mode 100644 index 00000000..2ddecbcc --- /dev/null +++ b/examples/router/autoRoutes.js @@ -0,0 +1,71 @@ +import store from "../store"; + +export default { + routes: () => store.state.apps.map(e => { + return { + ...e, + component: () => import(`../views/apps/${e.entry}`) + } + }), + init() { + //约束正则式 + store.commit("cleanApps") + // 自动化本工程应用 + this.loadApps() + }, + loadApps() { + //新App的自动化格式 + let files = require.context('../../packages', true, /\.(\/.+)\/App[^\/]+\.vue$/) + files.keys().map(path => { + if (files(path).default) { + let {name, label} = files(path).default, + addApp = { + name, label: label || name, + path: path.replace(/\.(\/.+\/App.+)\.vue$/, '$1'), + entry: 'appEntry' + } + //命名规范入口文件必须以App开头 + store.commit("addApp", addApp) + } + }) + let cores = require.context('../../core', true, /\.(\/.+)\/App[^\/]+\.vue$/) + cores.keys().map(path => { + if (cores(path).default) { + let {name, label} = cores(path).default, + addApp = { + name, label: label || name, + path: path.replace(/\.(\/.+\/App.+)\.vue$/, '$1'), + entry: 'appEntry' + } + //命名规范入口文件必须以App开头 + store.commit("addApp", addApp) + } + }) + let oms = require.context('../../oms', true, /\.(\/.+)\/App[^\/]+\.vue$/) + oms.keys().map(path => { + if (oms(path).default) { + let {name, label} = oms(path).default, + addApp = { + name, label: label || name, + path: path.replace(/\.(\/.+\/App.+)\.vue$/, '$1'), + entry: 'appEntry' + } + //命名规范入口文件必须以App开头 + store.commit("addApp", addApp) + } + }) + let project = require.context('../../project', true, /\.(\/.+)\/App[^\/]+\.vue$/) + project.keys().map(path => { + if (project(path).default) { + let {name, label} = project(path).default, + addApp = { + name, label: label || name, + path: path.replace(/\.(\/.+\/App.+)\.vue$/, '$1'), + entry: 'appEntry' + } + //命名规范入口文件必须以App开头 + store.commit("addApp", addApp) + } + }) + } +} diff --git a/examples/router/axios.js b/examples/router/axios.js new file mode 100644 index 00000000..e935da65 --- /dev/null +++ b/examples/router/axios.js @@ -0,0 +1,17 @@ +import instance from 'dvcp-ui/lib/js/request' +import {Message} from 'element-ui' + +let baseURLs = { + production: "/", + development: '/lan', + oms: '/oms' +} +instance.defaults.baseURL = baseURLs[process.env.NODE_ENV] +instance.interceptors.request.eject(0); +instance.interceptors.request.use(config => { + if (!config.withoutToken && localStorage.getItem("ui-token")) { + config.headers['Authorization'] = ["Bearer", localStorage.getItem("ui-token")].join(" ") + } + return config +}, error => Message.error(error)) +export default instance diff --git a/examples/router/router.js b/examples/router/router.js new file mode 100644 index 00000000..2d0cd32f --- /dev/null +++ b/examples/router/router.js @@ -0,0 +1,18 @@ +import Vue from 'vue' +import VueRouter from 'vue-router' +import autoRoutes from './autoRoutes' + +Vue.use(VueRouter) +autoRoutes.init() +export default new VueRouter({ + mode: 'history', + hashbang: false, + routes: autoRoutes.routes(), + scrollBehavior(to) { + if (to.hash) { + return { + selector: to.hash + } + } + } +}) diff --git a/examples/store/index.js b/examples/store/index.js new file mode 100644 index 00000000..14a68967 --- /dev/null +++ b/examples/store/index.js @@ -0,0 +1,50 @@ +import Vue from 'vue' +import Vuex from 'vuex' +import preState from 'vuex-persistedstate' + +Vue.use(Vuex) + +const user = { + state: { + info: {}, + ATime:'' + }, + mutations: { + setUserInfo(state, userInfo) { + state.info = userInfo + }, + SET_TIME(state, pay){ + state.ATime=pay + } + } +} + +export default new Vuex.Store({ + state: { + dicts: [], + apps: [] + }, + mutations: { + setDicts(state, payload) { + if (payload) { + payload.map(p => { + if (state.dicts.some(d => d.key == p.key)) { + const index = state.dicts.findIndex(d => d.key == p.key) + state.dicts.splice(index, 1) + state.dicts.push(p) + } else { + state.dicts.push(p) + } + }) + } + }, + addApp(state, app) { + state.apps.push(app) + }, + cleanApps(state) { + state.apps = [] + } + }, + modules: {user}, + plugins: [preState()] +}) diff --git a/examples/utils/index.js b/examples/utils/index.js new file mode 100644 index 00000000..1e52eaeb --- /dev/null +++ b/examples/utils/index.js @@ -0,0 +1,79 @@ +import {MessageBox} from 'element-ui' +import store from '../store' +import tools from 'dvcp-ui/lib/js/utils' + +const addChildParty = (parent, pending) => { + let doBeforeCount = pending.length + parent["children"] = parent["children"] || [] + pending.map((e, index, arr) => { + if (e.partyOrgParentId == parent.partyOrgId) { + parent.children.push(e) + arr.splice(index, 1) + addChildParty(parent, arr) + } + }) + if (parent.children.length == 0) { + delete parent.children + } + if (pending.length > 0 && doBeforeCount > pending.length) { + parent.children.map(c => addChildParty(c, pending)) + } +} +/** + * 封装提示框 + */ + + +const $confirm = (content, options) => { + return MessageBox.confirm(content, { + type: "warning", + confirmButtonText: "确认", + center: true, + title: "提示", + dangerouslyUseHTMLString: true, + ...options + }) +} + +/** + * 封装权限判断方法 + */ + + +const $permissions = flag => { + const buttons = store.state.user.info.buttons + if (buttons) return buttons.some(b => b.id == flag || b.permission == flag) + else return false +} + +const $decimalCalc = (...arr) => { + //确认提升精度 + let decimalLengthes = arr.map(e => { + let index = ("" + e).indexOf(".") + return ("" + e).length - index + }) + let maxDecimal = Math.max(...decimalLengthes), precision = Math.pow(10, maxDecimal) + //计算 + let intArr = arr.map(e => (Number(e) || 0) * precision) + //返回计算值 + return intArr.reduce((t, a) => t + a) / precision +} +/** + * @param { function } func + + * @param { number } wait 延迟执行毫秒数 + + * @param { boolean } immediate true 表立即执行,false 表非立即执行 + */ + + + +export default { + ...tools, + addChildParty, + $confirm, + $permissions, + $decimalCalc +} + + diff --git a/examples/views/apps/appEntry.vue b/examples/views/apps/appEntry.vue new file mode 100644 index 00000000..81d1ca38 --- /dev/null +++ b/examples/views/apps/appEntry.vue @@ -0,0 +1,32 @@ + + + + + diff --git a/examples/views/index.vue b/examples/views/index.vue new file mode 100644 index 00000000..9bf50526 --- /dev/null +++ b/examples/views/index.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/package.json b/package.json new file mode 100644 index 00000000..f9fa9c9f --- /dev/null +++ b/package.json @@ -0,0 +1,89 @@ +{ + "name": "cw-webapps", + "version": "2.0.0", + "private": false, + "author": "kubbo", + "main": "lib/cw-webapps.common.js", + "scripts": { + "serve": "vue-cli-service serve", + "serve:oms": "npx cross-env NODE_ENV=oms vue-cli-service serve", + "build": "vue-cli-service build", + "lib": "vue-cli-service build --no-clean --target lib --dest lib packages/index.js&npm unpublish --force&npm publish", + "lib:core": "vue-cli-service build --target lib --dest core/dist core/index.js --name vc-app-core&npm unpublish --force&npm publish", + "lib:project": "node project/build.js", + "lib:sass": "node project/sass.js", + "ui": "npm i dvcp-ui@latest dvcp-dv-ui@latest" + }, + "dependencies": { + "@amap/amap-jsapi-loader": "^1.0.1", + "@jiaminghi/data-view": "^2.10.0", + "dayjs": "^1.8.35", + "dvcp-dv": "^1.0.0", + "dvcp-dv-ui": "^2.0.0", + "dvcp-ui": "^1.42.2", + "echarts": "^5.1.2", + "mp4box": "^0.4.1", + "print-js": "^1.0.63", + "serialize-javascript": "^6.0.0", + "sortablejs": "^1.12.0", + "vue-draggable-resizable": "^2.3.0", + "vue-json-editor": "^1.4.3", + "vue-ruler-tool": "^1.2.4", + "vuedraggable": "^2.24.3" + }, + "publishConfig": { + "registry": "http://192.168.1.87:4873/" + }, + "devDependencies": { + "@babel/plugin-proposal-logical-assignment-operators": "^7.10.4", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4", + "@babel/plugin-proposal-optional-chaining": "^7.10.4", + "@vue/cli-plugin-babel": "^3.6.0", + "@vue/cli-plugin-eslint": "^3.6.0", + "@vue/cli-service": "^3.6.0", + "axios": "^0.19.2", + "babel-eslint": "^10.1.0", + "core-js": "^2.6.11", + "element-ui": "^2.13.2", + "eslint": "^5.16.0", + "eslint-plugin-vue": "^5.0.0", + "image-webpack-loader": "^6.0.0", + "inquirer": "^6.5.2", + "node-sass": "npm:sass@^1.43.4", + "sass-loader": "^7.1.0", + "uglifyjs-webpack-plugin": "^2.2.0", + "v-viewer": "^1.6.4", + "vue": "^2.6.11", + "vue-router": "^3.3.4", + "vue-template-compiler": "^2.6.11", + "vuex": "^3.5.1", + "vuex-persistedstate": "^2.7.1" + }, + "vetur": { + "attributes": "./attributes.json" + }, + "eslintConfig": { + "root": true, + "env": { + "node": true + }, + "extends": [ + "plugin:vue/essential", + "eslint:recommended" + ], + "rules": {}, + "parserOptions": { + "parser": "babel-eslint" + } + }, + "postcss": { + "plugins": { + "autoprefixer": {} + } + }, + "browserslist": [ + "> 1%", + "last 2 versions", + "not ie <= 8" + ] +} diff --git a/packages/2.0.5/AppBroadcast/AppBroadcast.vue b/packages/2.0.5/AppBroadcast/AppBroadcast.vue new file mode 100644 index 00000000..5789e31a --- /dev/null +++ b/packages/2.0.5/AppBroadcast/AppBroadcast.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/packages/2.0.5/AppBroadcast/components/Add.vue b/packages/2.0.5/AppBroadcast/components/Add.vue new file mode 100644 index 00000000..d6dcfdba --- /dev/null +++ b/packages/2.0.5/AppBroadcast/components/Add.vue @@ -0,0 +1,333 @@ + + + + + diff --git a/packages/2.0.5/AppBroadcast/components/List.vue b/packages/2.0.5/AppBroadcast/components/List.vue new file mode 100644 index 00000000..e5307ddd --- /dev/null +++ b/packages/2.0.5/AppBroadcast/components/List.vue @@ -0,0 +1,156 @@ + + + + + diff --git a/packages/2.0.5/AppBuildManage/AppBuildManage.vue b/packages/2.0.5/AppBuildManage/AppBuildManage.vue new file mode 100644 index 00000000..a2d05ee0 --- /dev/null +++ b/packages/2.0.5/AppBuildManage/AppBuildManage.vue @@ -0,0 +1,68 @@ + + + + + diff --git a/packages/2.0.5/AppBuildManage/components/Add.vue b/packages/2.0.5/AppBuildManage/components/Add.vue new file mode 100644 index 00000000..60faf8ce --- /dev/null +++ b/packages/2.0.5/AppBuildManage/components/Add.vue @@ -0,0 +1,394 @@ + + + + + diff --git a/packages/2.0.5/AppBuildManage/components/BuildMsg.vue b/packages/2.0.5/AppBuildManage/components/BuildMsg.vue new file mode 100644 index 00000000..e049cd60 --- /dev/null +++ b/packages/2.0.5/AppBuildManage/components/BuildMsg.vue @@ -0,0 +1,750 @@ + + + + + diff --git a/packages/2.0.5/AppBuildManage/components/List.vue b/packages/2.0.5/AppBuildManage/components/List.vue new file mode 100644 index 00000000..6cd2b4c4 --- /dev/null +++ b/packages/2.0.5/AppBuildManage/components/List.vue @@ -0,0 +1,312 @@ + + + + + diff --git a/packages/2.0.5/AppBuildMap/AppBuildMap.vue b/packages/2.0.5/AppBuildMap/AppBuildMap.vue new file mode 100644 index 00000000..3221f9f5 --- /dev/null +++ b/packages/2.0.5/AppBuildMap/AppBuildMap.vue @@ -0,0 +1,1252 @@ + + + + + diff --git a/packages/2.0.5/AppBuildMap/buildingStatistics.vue b/packages/2.0.5/AppBuildMap/buildingStatistics.vue new file mode 100644 index 00000000..00209001 --- /dev/null +++ b/packages/2.0.5/AppBuildMap/buildingStatistics.vue @@ -0,0 +1,443 @@ + + + + + diff --git a/packages/2.0.5/AppBuildMap/buildingToolBar.vue b/packages/2.0.5/AppBuildMap/buildingToolBar.vue new file mode 100644 index 00000000..65c09252 --- /dev/null +++ b/packages/2.0.5/AppBuildMap/buildingToolBar.vue @@ -0,0 +1,95 @@ + + + + + diff --git a/packages/2.0.5/AppBuildMap/toolBar/buildingInfo.vue b/packages/2.0.5/AppBuildMap/toolBar/buildingInfo.vue new file mode 100644 index 00000000..8fb79c26 --- /dev/null +++ b/packages/2.0.5/AppBuildMap/toolBar/buildingInfo.vue @@ -0,0 +1,249 @@ + + + + + diff --git a/packages/2.0.5/AppBuildMap/toolBar/communityOverview.vue b/packages/2.0.5/AppBuildMap/toolBar/communityOverview.vue new file mode 100644 index 00000000..b4a92afe --- /dev/null +++ b/packages/2.0.5/AppBuildMap/toolBar/communityOverview.vue @@ -0,0 +1,116 @@ + + + + + diff --git a/packages/2.0.5/AppBuildMap/toolBar/nearbyGCS.vue b/packages/2.0.5/AppBuildMap/toolBar/nearbyGCS.vue new file mode 100644 index 00000000..a68e67f5 --- /dev/null +++ b/packages/2.0.5/AppBuildMap/toolBar/nearbyGCS.vue @@ -0,0 +1,129 @@ + + + + + diff --git a/packages/2.0.5/AppBuildMap/toolBar/recentEvents.vue b/packages/2.0.5/AppBuildMap/toolBar/recentEvents.vue new file mode 100644 index 00000000..abee470b --- /dev/null +++ b/packages/2.0.5/AppBuildMap/toolBar/recentEvents.vue @@ -0,0 +1,81 @@ + + + + + diff --git a/packages/2.0.5/AppCodeGeneration/AppCodeGeneration.vue b/packages/2.0.5/AppCodeGeneration/AppCodeGeneration.vue new file mode 100644 index 00000000..7312a2be --- /dev/null +++ b/packages/2.0.5/AppCodeGeneration/AppCodeGeneration.vue @@ -0,0 +1,71 @@ + + + diff --git a/packages/2.0.5/AppCodeGeneration/app/visit/Visit.vue b/packages/2.0.5/AppCodeGeneration/app/visit/Visit.vue new file mode 100644 index 00000000..30d33a04 --- /dev/null +++ b/packages/2.0.5/AppCodeGeneration/app/visit/Visit.vue @@ -0,0 +1,179 @@ + + + + + diff --git a/packages/2.0.5/AppCodeGeneration/components/Add.vue b/packages/2.0.5/AppCodeGeneration/components/Add.vue new file mode 100644 index 00000000..47291afc --- /dev/null +++ b/packages/2.0.5/AppCodeGeneration/components/Add.vue @@ -0,0 +1,364 @@ + + + + + diff --git a/packages/2.0.5/AppCodeGeneration/components/Detail.vue b/packages/2.0.5/AppCodeGeneration/components/Detail.vue new file mode 100644 index 00000000..c3165927 --- /dev/null +++ b/packages/2.0.5/AppCodeGeneration/components/Detail.vue @@ -0,0 +1,236 @@ + + + + + diff --git a/packages/2.0.5/AppCodeGeneration/components/List.vue b/packages/2.0.5/AppCodeGeneration/components/List.vue new file mode 100644 index 00000000..f162cc2a --- /dev/null +++ b/packages/2.0.5/AppCodeGeneration/components/List.vue @@ -0,0 +1,302 @@ + + + + + diff --git a/packages/2.0.5/AppCommunityManage/AppCommunityManage.vue b/packages/2.0.5/AppCommunityManage/AppCommunityManage.vue new file mode 100644 index 00000000..b062126b --- /dev/null +++ b/packages/2.0.5/AppCommunityManage/AppCommunityManage.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/packages/2.0.5/AppCommunityManage/components/Add.vue b/packages/2.0.5/AppCommunityManage/components/Add.vue new file mode 100644 index 00000000..1828c665 --- /dev/null +++ b/packages/2.0.5/AppCommunityManage/components/Add.vue @@ -0,0 +1,244 @@ + + + + + diff --git a/packages/2.0.5/AppCommunityManage/components/List.vue b/packages/2.0.5/AppCommunityManage/components/List.vue new file mode 100644 index 00000000..424ffcf3 --- /dev/null +++ b/packages/2.0.5/AppCommunityManage/components/List.vue @@ -0,0 +1,202 @@ + + + + + diff --git a/packages/2.0.5/AppEquipmentManage/AppEquipmentManage.vue b/packages/2.0.5/AppEquipmentManage/AppEquipmentManage.vue new file mode 100644 index 00000000..fb34f2a6 --- /dev/null +++ b/packages/2.0.5/AppEquipmentManage/AppEquipmentManage.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/packages/2.0.5/AppEquipmentManage/components/List.vue b/packages/2.0.5/AppEquipmentManage/components/List.vue new file mode 100644 index 00000000..74c8c4a6 --- /dev/null +++ b/packages/2.0.5/AppEquipmentManage/components/List.vue @@ -0,0 +1,207 @@ + + + + + diff --git a/packages/2.0.5/AppForm/AppForm.vue b/packages/2.0.5/AppForm/AppForm.vue new file mode 100644 index 00000000..b9059e59 --- /dev/null +++ b/packages/2.0.5/AppForm/AppForm.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/packages/2.0.5/AppForm/components/Add.vue b/packages/2.0.5/AppForm/components/Add.vue new file mode 100644 index 00000000..a7c35629 --- /dev/null +++ b/packages/2.0.5/AppForm/components/Add.vue @@ -0,0 +1,277 @@ + + + + + diff --git a/packages/2.0.5/AppForm/components/BasicInfo.vue b/packages/2.0.5/AppForm/components/BasicInfo.vue new file mode 100644 index 00000000..bebf86fe --- /dev/null +++ b/packages/2.0.5/AppForm/components/BasicInfo.vue @@ -0,0 +1,105 @@ + + + + + diff --git a/packages/2.0.5/AppForm/components/FormConfig.vue b/packages/2.0.5/AppForm/components/FormConfig.vue new file mode 100644 index 00000000..eaade007 --- /dev/null +++ b/packages/2.0.5/AppForm/components/FormConfig.vue @@ -0,0 +1,244 @@ + + + + + diff --git a/packages/2.0.5/AppForm/components/FormLayout.vue b/packages/2.0.5/AppForm/components/FormLayout.vue new file mode 100644 index 00000000..e64527ab --- /dev/null +++ b/packages/2.0.5/AppForm/components/FormLayout.vue @@ -0,0 +1,1127 @@ + + + + + diff --git a/packages/2.0.5/AppForm/components/List.vue b/packages/2.0.5/AppForm/components/List.vue new file mode 100644 index 00000000..c14ca516 --- /dev/null +++ b/packages/2.0.5/AppForm/components/List.vue @@ -0,0 +1,182 @@ + + + + + diff --git a/packages/2.0.5/AppForm/components/config.js b/packages/2.0.5/AppForm/components/config.js new file mode 100644 index 00000000..93a64a07 --- /dev/null +++ b/packages/2.0.5/AppForm/components/config.js @@ -0,0 +1,272 @@ +export const components = [ + { + type: 'info', + tips: '(不能重复添加同一元素)', + label: '信息', + children: [ + { + type: 'name', + fieldName: '姓名', + fieldTips: '请输入姓名', + fixedLabel: '姓名', + disable: '0', + grid: 0.5, + defaultValue: '', + icon: 'icontext_box', + mustFill: '1', + maxLength: 20 + }, + { + type: 'idNumber', + fieldName: '身份证号', + fixedLabel: '身份证号', + fieldTips: '请输入身份证号', + defaultValue: '', + icon: 'icontext_area', + mustFill: '1', + maxLength: 20, + disable: '0', + grid: 0.5 + }, + { + type: 'phone', + fieldName: '联系方式', + fixedLabel: '联系方式', + fieldTips: '请输入联系方式', + defaultValue: '', + icon: 'icontext_area', + mustFill: '1', + maxLength: 20, + disable: '0', + grid: 0.5 + }, + { + type: 'area', + fieldName: '地区', + fixedLabel: '地区', + fieldTips: '请选择地区', + defaultValue: '', + icon: 'icontext_area', + mustFill: '1', + areaPattern: '', + disable: '0', + grid: 0.5 + } + ] + }, + { + type: 'options', + tips: '(可重复添加)', + label: '选项', + children: [ + { + type: 'radio', + fieldName: '单选', + fixedLabel: '单选', + fieldTips: '请选择', + grid: 0.5, + icon: 'iconradio', + mustFill: '1', + disable: '0', + defaultValue: '', + options: [ + { + label: '选项1', + value: '' + }, + { + label: '选项2', + value: '' + } + ], + title: '' + }, + { + type: 'checkbox', + fieldName: '多选', + fixedLabel: '多选', + fieldTips: '请选择', + icon: 'iconcheck_box', + mustFill: '1', + grid: 0.5, + disable: '0', + defaultValue: [], + options: [ + { + label: '选项1', + value: '' + }, + { + label: '选项2', + value: '' + } + ], + title: '' + }, + { + type: 'select', + fieldName: '单下拉框', + fixedLabel: '单下拉框', + grid: 0.5, + fieldTips: '请选择', + icon: 'iconSelect', + mustFill: '1', + defaultValue: '', + disable: '0', + options: [ + { + label: '选项1', + value: '' + }, + { + label: '选项2', + value: '' + } + ], + title: '' + }, + { + type: 'onOff', + fieldName: '开关', + fixedLabel: '开关', + grid: 0.5, + fieldTips: '请选择开关', + icon: 'iconSelect', + mustFill: '1', + defaultValue: '0', + disable: '0', + title: '' + }, + { + type: 'date', + fieldName: '日期', + fixedLabel: '日期', + grid: 0.5, + datetimePattern: 'yyyy-MM-dd', + fieldTips: '请选择日期', + icon: 'iconSelect', + mustFill: '1', + disable: '0', + title: '' + }, + { + type: 'time', + fieldName: '时间', + fixedLabel: '时间', + grid: 0.5, + datetimePattern: 'HH:mm:ss', + fieldTips: '请选择时间', + icon: 'iconSelect', + mustFill: '1', + disable: '0', + title: '' + }, + { + type: 'datetime', + fieldName: '日期时间', + fixedLabel: '日期时间', + grid: 0.5, + datetimePattern: 'yyyy-MM-dd HH:mm:ss', + fieldTips: '请选择日期时间', + icon: 'iconSelect', + mustFill: '1', + disable: '0', + title: '' + } + ] + }, + { + type: 'input', + tips: '(可重复添加)', + label: '填空', + children: [ + { + type: 'input', + fieldName: '单行填空', + fieldTips: '请输入', + fixedLabel: '单行填空', + disable: '0', + grid: 0.5, + defaultValue: '', + icon: 'icontext_box', + mustFill: '1', + maxLength: 50 + }, + { + type: 'textarea', + fieldName: '多行填空', + fixedLabel: '多行填空', + fieldTips: '请输入', + lineNumber: 4, + defaultValue: '', + icon: 'icontext_area', + mustFill: '1', + maxLength: 500, + disable: '0', + grid: 1 + }, + { + type: 'number', + fieldName: '数字输入', + fixedLabel: '数字输入', + fieldTips: '请输入数字', + defaultValue: '', + icon: 'icontext_area', + mustFill: '1', + maxValue: 10000, + decimalPlaces: 0, + minValue: 0, + maxLength: 500, + disable: '0', + grid: 0.5 + }, + { + type: 'rtf', + fieldName: '富文本', + fixedLabel: '富文本', + fieldTips: '请输入', + defaultValue: '', + icon: 'icontext_area', + mustFill: '1', + maxLength: 5000, + disable: '0', + grid: 1 + } + ] + }, + { + type: 'annex', + tips: '(可重复添加)', + label: '附件', + children: [ + { + type: 'upload', + fieldTips: '请上传', + fieldName: '上传附件', + fixedLabel: '上传附件', + disable: '0', + fileChoseSize: 10, + fileMaxCount: 9, + defaultValue: '', + icon: 'iconpic', + mustFill: '1', + grid: 1 + } + ] + }, + { + type: 'layout', + tips: '(可重复添加)', + label: '分组', + children: [ + { + type: 'group', + fieldName: '卡片', + fixedLabel: '卡片', + icon: 'iconpic', + groupName: '分组标题', + column: [] + } + ] + } +]; diff --git a/packages/2.0.5/AppGridBlock/AppGridBlock.vue b/packages/2.0.5/AppGridBlock/AppGridBlock.vue new file mode 100644 index 00000000..a18ae435 --- /dev/null +++ b/packages/2.0.5/AppGridBlock/AppGridBlock.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/packages/2.0.5/AppGridBlock/components/add.vue b/packages/2.0.5/AppGridBlock/components/add.vue new file mode 100644 index 00000000..5f140d7e --- /dev/null +++ b/packages/2.0.5/AppGridBlock/components/add.vue @@ -0,0 +1,566 @@ + + + + + \ No newline at end of file diff --git a/packages/2.0.5/AppGridBlock/components/list.vue b/packages/2.0.5/AppGridBlock/components/list.vue new file mode 100644 index 00000000..828fd4e1 --- /dev/null +++ b/packages/2.0.5/AppGridBlock/components/list.vue @@ -0,0 +1,676 @@ + + + + + diff --git a/packages/2.0.5/AppGridBlock/index.js b/packages/2.0.5/AppGridBlock/index.js new file mode 100644 index 00000000..99041895 --- /dev/null +++ b/packages/2.0.5/AppGridBlock/index.js @@ -0,0 +1,6 @@ +import component from './AppGridBlock.vue' + +component.install = function (Vue) { + Vue.component(component.name, component) +} +export default component \ No newline at end of file diff --git a/packages/2.0.5/AppGridMap/AppGridMap.vue b/packages/2.0.5/AppGridMap/AppGridMap.vue new file mode 100644 index 00000000..c6918b54 --- /dev/null +++ b/packages/2.0.5/AppGridMap/AppGridMap.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/packages/2.0.5/AppGridMap/components/list.vue b/packages/2.0.5/AppGridMap/components/list.vue new file mode 100644 index 00000000..744d6a66 --- /dev/null +++ b/packages/2.0.5/AppGridMap/components/list.vue @@ -0,0 +1,710 @@ + + + + + \ No newline at end of file diff --git a/packages/2.0.5/AppGridMember/AppGridMember.vue b/packages/2.0.5/AppGridMember/AppGridMember.vue new file mode 100644 index 00000000..00e3abd7 --- /dev/null +++ b/packages/2.0.5/AppGridMember/AppGridMember.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/packages/2.0.5/AppGridMember/components/add.vue b/packages/2.0.5/AppGridMember/components/add.vue new file mode 100644 index 00000000..5a126d3e --- /dev/null +++ b/packages/2.0.5/AppGridMember/components/add.vue @@ -0,0 +1,451 @@ + + + + + \ No newline at end of file diff --git a/packages/2.0.5/AppGridMember/components/list.vue b/packages/2.0.5/AppGridMember/components/list.vue new file mode 100644 index 00000000..10c614d1 --- /dev/null +++ b/packages/2.0.5/AppGridMember/components/list.vue @@ -0,0 +1,220 @@ + + + + + \ No newline at end of file diff --git a/packages/2.0.5/AppHomesteadManagement/AppHomesteadManagement.vue b/packages/2.0.5/AppHomesteadManagement/AppHomesteadManagement.vue new file mode 100644 index 00000000..b910a093 --- /dev/null +++ b/packages/2.0.5/AppHomesteadManagement/AppHomesteadManagement.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/packages/2.0.5/AppHomesteadManagement/components/Add.vue b/packages/2.0.5/AppHomesteadManagement/components/Add.vue new file mode 100644 index 00000000..1cda6708 --- /dev/null +++ b/packages/2.0.5/AppHomesteadManagement/components/Add.vue @@ -0,0 +1,466 @@ + + + + + diff --git a/packages/2.0.5/AppHomesteadManagement/components/List.vue b/packages/2.0.5/AppHomesteadManagement/components/List.vue new file mode 100644 index 00000000..43fb30c7 --- /dev/null +++ b/packages/2.0.5/AppHomesteadManagement/components/List.vue @@ -0,0 +1,203 @@ + + + + + diff --git a/packages/2.0.5/AppHouseMap/AppHouseMap.vue b/packages/2.0.5/AppHouseMap/AppHouseMap.vue new file mode 100644 index 00000000..5e4f9c70 --- /dev/null +++ b/packages/2.0.5/AppHouseMap/AppHouseMap.vue @@ -0,0 +1,1342 @@ + + + + + diff --git a/packages/2.0.5/AppHouseMap/AppPopulationDV.vue b/packages/2.0.5/AppHouseMap/AppPopulationDV.vue new file mode 100644 index 00000000..3b5283f0 --- /dev/null +++ b/packages/2.0.5/AppHouseMap/AppPopulationDV.vue @@ -0,0 +1,1429 @@ + + + + + diff --git a/packages/2.0.5/AppHouseMap/buildingStatistics.vue b/packages/2.0.5/AppHouseMap/buildingStatistics.vue new file mode 100644 index 00000000..281b70aa --- /dev/null +++ b/packages/2.0.5/AppHouseMap/buildingStatistics.vue @@ -0,0 +1,443 @@ + + + + + diff --git a/packages/2.0.5/AppHouseMap/buildingToolBar.vue b/packages/2.0.5/AppHouseMap/buildingToolBar.vue new file mode 100644 index 00000000..65c09252 --- /dev/null +++ b/packages/2.0.5/AppHouseMap/buildingToolBar.vue @@ -0,0 +1,95 @@ + + + + + diff --git a/packages/2.0.5/AppHouseMap/toolBar/buildingInfo.vue b/packages/2.0.5/AppHouseMap/toolBar/buildingInfo.vue new file mode 100644 index 00000000..8fb79c26 --- /dev/null +++ b/packages/2.0.5/AppHouseMap/toolBar/buildingInfo.vue @@ -0,0 +1,249 @@ + + + + + diff --git a/packages/2.0.5/AppHouseMap/toolBar/communityOverview.vue b/packages/2.0.5/AppHouseMap/toolBar/communityOverview.vue new file mode 100644 index 00000000..b4a92afe --- /dev/null +++ b/packages/2.0.5/AppHouseMap/toolBar/communityOverview.vue @@ -0,0 +1,116 @@ + + + + + diff --git a/packages/2.0.5/AppHouseMap/toolBar/nearbyGCS.vue b/packages/2.0.5/AppHouseMap/toolBar/nearbyGCS.vue new file mode 100644 index 00000000..a68e67f5 --- /dev/null +++ b/packages/2.0.5/AppHouseMap/toolBar/nearbyGCS.vue @@ -0,0 +1,129 @@ + + + + + diff --git a/packages/2.0.5/AppHouseMap/toolBar/recentEvents.vue b/packages/2.0.5/AppHouseMap/toolBar/recentEvents.vue new file mode 100644 index 00000000..abee470b --- /dev/null +++ b/packages/2.0.5/AppHouseMap/toolBar/recentEvents.vue @@ -0,0 +1,81 @@ + + + + + diff --git a/packages/2.0.5/AppMediaManage/AppMediaManage.vue b/packages/2.0.5/AppMediaManage/AppMediaManage.vue new file mode 100644 index 00000000..48488b9c --- /dev/null +++ b/packages/2.0.5/AppMediaManage/AppMediaManage.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/packages/2.0.5/AppMediaManage/components/Add.vue b/packages/2.0.5/AppMediaManage/components/Add.vue new file mode 100644 index 00000000..3350d301 --- /dev/null +++ b/packages/2.0.5/AppMediaManage/components/Add.vue @@ -0,0 +1,189 @@ + + + + + diff --git a/packages/2.0.5/AppMediaManage/components/List.vue b/packages/2.0.5/AppMediaManage/components/List.vue new file mode 100644 index 00000000..4f14159a --- /dev/null +++ b/packages/2.0.5/AppMediaManage/components/List.vue @@ -0,0 +1,178 @@ + + + + + diff --git a/packages/2.0.5/AppMonitoringObject/AppMonitoringObject.vue b/packages/2.0.5/AppMonitoringObject/AppMonitoringObject.vue new file mode 100644 index 00000000..e53b06fa --- /dev/null +++ b/packages/2.0.5/AppMonitoringObject/AppMonitoringObject.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/packages/2.0.5/AppMonitoringObject/components/add.vue b/packages/2.0.5/AppMonitoringObject/components/add.vue new file mode 100644 index 00000000..ef5b1371 --- /dev/null +++ b/packages/2.0.5/AppMonitoringObject/components/add.vue @@ -0,0 +1,797 @@ + + + + + \ No newline at end of file diff --git a/packages/2.0.5/AppMonitoringObject/components/list.vue b/packages/2.0.5/AppMonitoringObject/components/list.vue new file mode 100644 index 00000000..e2accc5d --- /dev/null +++ b/packages/2.0.5/AppMonitoringObject/components/list.vue @@ -0,0 +1,272 @@ + + + + + diff --git a/packages/2.0.5/AppVaccination/AppVaccination.vue b/packages/2.0.5/AppVaccination/AppVaccination.vue new file mode 100644 index 00000000..9f1d1ad2 --- /dev/null +++ b/packages/2.0.5/AppVaccination/AppVaccination.vue @@ -0,0 +1,204 @@ + + + + + diff --git a/packages/2.0.5/AppVaccination/addVaccination.vue b/packages/2.0.5/AppVaccination/addVaccination.vue new file mode 100644 index 00000000..26d42b17 --- /dev/null +++ b/packages/2.0.5/AppVaccination/addVaccination.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/packages/bigscreen/designer/AppDesigner.vue b/packages/bigscreen/designer/AppDesigner.vue new file mode 100644 index 00000000..cb266584 --- /dev/null +++ b/packages/bigscreen/designer/AppDesigner.vue @@ -0,0 +1,97 @@ + + + + + diff --git a/packages/bigscreen/designer/components/Add.vue b/packages/bigscreen/designer/components/Add.vue new file mode 100644 index 00000000..89c394cb --- /dev/null +++ b/packages/bigscreen/designer/components/Add.vue @@ -0,0 +1,285 @@ + + + + + diff --git a/packages/bigscreen/designer/components/AiSwiper.vue b/packages/bigscreen/designer/components/AiSwiper.vue new file mode 100644 index 00000000..b0d209fb --- /dev/null +++ b/packages/bigscreen/designer/components/AiSwiper.vue @@ -0,0 +1,92 @@ + + + + + diff --git a/packages/bigscreen/designer/components/Layout.vue b/packages/bigscreen/designer/components/Layout.vue new file mode 100644 index 00000000..97f1c55d --- /dev/null +++ b/packages/bigscreen/designer/components/Layout.vue @@ -0,0 +1,1104 @@ + + + + + diff --git a/packages/bigscreen/designer/components/List.vue b/packages/bigscreen/designer/components/List.vue new file mode 100644 index 00000000..23970f06 --- /dev/null +++ b/packages/bigscreen/designer/components/List.vue @@ -0,0 +1,141 @@ + + + + + diff --git a/packages/bigscreen/designer/components/RenderElement.vue b/packages/bigscreen/designer/components/RenderElement.vue new file mode 100644 index 00000000..c465f0c2 --- /dev/null +++ b/packages/bigscreen/designer/components/RenderElement.vue @@ -0,0 +1,188 @@ + + + + + diff --git a/packages/bigscreen/designer/components/SourceData.vue b/packages/bigscreen/designer/components/SourceData.vue new file mode 100644 index 00000000..42fd4f4a --- /dev/null +++ b/packages/bigscreen/designer/components/SourceData.vue @@ -0,0 +1,430 @@ + + + + + diff --git a/packages/bigscreen/designer/components/form/DataConfig.vue b/packages/bigscreen/designer/components/form/DataConfig.vue new file mode 100644 index 00000000..bf8210ed --- /dev/null +++ b/packages/bigscreen/designer/components/form/DataConfig.vue @@ -0,0 +1,455 @@ + + + + + diff --git a/packages/bigscreen/designer/config.js b/packages/bigscreen/designer/config.js new file mode 100644 index 00000000..c152dbf6 --- /dev/null +++ b/packages/bigscreen/designer/config.js @@ -0,0 +1,637 @@ +import lineChart1 from 'dvcp-dv-ui/components/AiEchart/template/line/lineChart1' +import lineChart2 from 'dvcp-dv-ui/components/AiEchart/template/line/lineChart2' +import lineChart3 from 'dvcp-dv-ui/components/AiEchart/template/line/lineChart3' +import lineChart4 from 'dvcp-dv-ui/components/AiEchart/template/line/lineChart4' +import lineChart5 from 'dvcp-dv-ui/components/AiEchart/template/line/lineChart5' +import barChart1 from 'dvcp-dv-ui/components/AiEchart/template/bar/barChart1' +import barChart2 from 'dvcp-dv-ui/components/AiEchart/template/bar/barChart2' +import barChart3 from 'dvcp-dv-ui/components/AiEchart/template/bar/barChart3' +import barChart8 from 'dvcp-dv-ui/components/AiEchart/template/bar/barChart8' +import barChart5 from 'dvcp-dv-ui/components/AiEchart/template/bar/barChart5' +import barChart7 from 'dvcp-dv-ui/components/AiEchart/template/bar/barChart7' +import barChart9 from 'dvcp-dv-ui/components/AiEchart/template/bar/barChart9' +import pieChart from 'dvcp-dv-ui/components/AiEchart/template/pie/pieChart2' + +const components = [ + { + type: 'chart', + label: '图表', + list: [ + { + label: '柱状图', + type: 'bar', + list: [ + { + code: 'widget-linechart', + type: 'barChart1', + label: '柱状图1', + title: '柱状图', + border: 'border1', + icon: 'icontext_box', + value: '', + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar1.png', + width: 500, + sourceDataId: '', + height: 300, + dataX: '', + zIndex: 1, + dataY: [], + top: 0, + left: 0, + api: '', + apiData: [], + dataType: 'staticData', + staticData: [ + { name: '阿斯达', v1: 23 }, + { name: '水电费', v1: 12 }, + { name: '凡哥', v1: 67 }, + { name: '党费', v1: 98 } + ], + config: barChart1, + dynamicData: [] + }, + { + code: 'widget-linechart', + type: 'barChart1', + label: '柱状图2', + icon: 'icontext_box', + value: '', + title: '柱状图2', + width: 500, + border: 'border1', + sourceDataId: '', + height: 300, + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar2.png', + dataX: '', + dataY: [], + top: 0, + zIndex: 1, + left: 0, + dataType: 'staticData', + api: '', + apiData: [], + staticData: [ + { name: '阿斯达', v1: 23 }, + { name: '水电费', v1: 12 }, + { name: '凡哥', v1: 67 }, + { name: '党费', v1: 98 } + ], + config: barChart2, + dynamicData: [] + }, + { + code: 'widget-linechart', + type: 'barChart3', + label: '柱状图3', + title: '柱状图3', + icon: 'icontext_box', + value: '', + width: 500, + sourceDataId: '', + height: 300, + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar3.png', + dataX: '', + dataY: [], + border: 'border1', + top: 0, + left: 0, + zIndex: 1, + dataType: 'staticData', + api: '', + apiData: [], + staticData: [ + { name: '阿斯达', v1: 23 }, + { name: '水电费', v1: 12 }, + { name: '凡哥', v1: 67 }, + { name: '党费', v1: 98 } + ], + config: barChart3, + dynamicData: [] + }, + { + code: 'widget-linechart', + type: 'barChart5', + label: '柱状图4', + title: '柱状图4', + icon: 'icontext_box', + value: '', + width: 500, + sourceDataId: '', + height: 300, + dataX: '', + dataY: [], + zIndex: 1, + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar5.png', + top: 0, + left: 0, + border: 'border1', + api: '', + apiData: [], + dataType: 'staticData', + staticData: [ + { name: '阿斯达', v1: 23 }, + { name: '水电费', v1: 12 }, + { name: '凡哥', v1: 67 }, + { name: '党费', v1: 98 } + ], + config: barChart5, + dynamicData: [] + }, + { + code: 'widget-linechart', + type: 'barChart7', + label: '柱状图5', + title: '柱状图5', + icon: 'icontext_box', + value: '', + width: 500, + sourceDataId: '', + height: 300, + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar7.png', + dataX: '', + zIndex: 1, + dataY: [], + top: 0, + left: 0, + api: '', + apiData: [], + dataType: 'staticData', + staticData: [ + { name: '阿斯达', v1: 23 }, + { name: '水电费', v1: 12 }, + { name: '凡哥', v1: 67 }, + { name: '党费', v1: 98 } + ], + config: barChart7, + dynamicData: [] + }, + { + code: 'widget-linechart', + type: 'barChart8', + label: '柱状图6', + title: '柱状图6', + icon: 'icontext_box', + value: '', + width: 500, + sourceDataId: '', + border: 'border1', + height: 300, + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar8.png', + dataX: '', + dataY: [], + zIndex: 1, + top: 0, + left: 0, + api: '', + apiData: [], + dataType: 'staticData', + staticData: [ + { name: '阿斯达', v1: 23 }, + { name: '水电费', v1: 12 }, + { name: '凡哥', v1: 67 }, + { name: '党费', v1: 98 } + ], + config: barChart8, + dynamicData: [] + }, + { + code: 'widget-linechart', + type: 'barChart9', + label: '柱状图7', + title: '柱状图7', + border: 'border1', + icon: 'icontext_box', + value: '', + width: 500, + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar9.png', + sourceDataId: '', + height: 300, + dataX: '', + dataY: [], + zIndex: 1, + top: 0, + left: 0, + api: '', + apiData: [], + dataType: 'staticData', + staticData: [ + { name: '阿斯达', v1: 23 }, + { name: '水电费', v1: 12 }, + { name: '凡哥', v1: 67 }, + { name: '党费', v1: 98 } + ], + config: barChart9, + dynamicData: [] + } + ] + }, + { + label: '折线图', + type: 'line', + list: [ + { + code: 'widget-linechart', + type: 'lineChart1', + label: '折线图1', + title: '折线图1', + border: 'border1', + icon: 'icontext_box', + value: '', + width: 500, + height: 300, + top: 0, + left: 0, + zIndex: 1, + api: '', + apiData: [], + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/line1.png', + dataX: '', + dataY: [], + dataType: 'staticData', + staticData: [ + { name: '阿斯达', v1: 23, v2: 33 }, + { name: '水电费', v1: 12, v2: 34 }, + { name: '凡哥', v1: 67, v2: 25 }, + { name: '党费', v1: 98, v2: 85 } + ], + config: lineChart1, + sourceDataId: '', + dynamicData: [] + }, + { + code: 'widget-linechart', + type: 'lineChart2', + label: '折线图2', + title: '折线图2', + border: 'border1', + icon: 'icontext_box', + value: '', + width: 500, + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/line2.png', + height: 300, + top: 0, + left: 0, + dataX: '', + dataY: [], + zIndex: 1, + api: '', + apiData: [], + dataType: 'staticData', + staticData: [ + { name: '阿斯达', v1: 23, v2: 33 }, + { name: '水电费', v1: 12, v2: 34 }, + { name: '凡哥', v1: 67, v2: 25 }, + { name: '党费', v1: 98, v2: 85 } + ], + config: lineChart2, + sourceDataId: '', + dynamicData: [] + }, + { + code: 'widget-linechart', + type: 'lineChart3', + label: '折线图3', + title: '折线图3', + icon: 'icontext_box', + border: 'border1', + value: '', + width: 500, + height: 300, + zIndex: 1, + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/line3.png', + top: 0, + left: 0, + dataX: '', + dataY: [], + api: '', + apiData: [], + dataType: 'staticData', + staticData: [ + { name: '阿斯达', v1: 23, v2: 33 }, + { name: '水电费', v1: 12, v2: 34 }, + { name: '凡哥', v1: 67, v2: 25 }, + { name: '党费', v1: 98, v2: 85 } + ], + config: lineChart3, + sourceDataId: '', + dynamicData: [] + }, + { + code: 'widget-linechart', + type: 'lineChart4', + label: '折线图4', + title: '折线图4', + icon: 'icontext_box', + value: '', + border: 'border1', + width: 500, + height: 300, + zIndex: 1, + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/line4.png', + top: 0, + left: 0, + dataX: '', + dataY: [], + api: '', + apiData: [], + dataType: 'staticData', + staticData: [ + { name: '阿斯达', v1: 23, v2: 33 }, + { name: '水电费', v1: 12, v2: 34 }, + { name: '凡哥', v1: 67, v2: 25 }, + { name: '党费', v1: 98, v2: 85 } + ], + config: lineChart4, + sourceDataId: '', + dynamicData: [] + }, + { + code: 'widget-linechart', + type: 'lineChart5', + label: '折线图5', + title: '折线图5', + icon: 'icontext_box', + value: '', + border: 'border1', + width: 500, + height: 300, + zIndex: 1, + top: 0, + left: 0, + dataX: '', + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/line5.png', + dataY: [], + api: '', + apiData: [], + dataType: 'staticData', + staticData: [ + { name: '阿斯达', v1: 23, v2: 33 }, + { name: '水电费', v1: 12, v2: 34 }, + { name: '凡哥', v1: 67, v2: 25 }, + { name: '党费', v1: 98, v2: 85 } + ], + config: lineChart5, + sourceDataId: '', + dynamicData: [] + } + ] + }, + { + label: '饼图', + type: 'pie', + list: [ + { + code: 'widget-linechart', + type: 'pieChart', + label: '饼图', + title: '饼图', + icon: 'icontext_box', + value: '', + border: 'border1', + width: 500, + height: 300, + zIndex: 1, + top: 0, + left: 0, + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/pie.png', + dataX: '', + dataY: [], + api: '', + apiData: [], + dataType: 'staticData', + staticData: [ + { name: '阿斯达', v1: 23, v2: 33 }, + { name: '水电费', v1: 12, v2: 34 }, + { name: '凡哥', v1: 67, v2: 25 }, + { name: '党费', v1: 98, v2: 85 } + ], + config: pieChart, + sourceDataId: '', + dynamicData: [] + } + ] + } + ] + }, + { + type: 'table', + label: '表格', + list: [ + { + label: '表格', + type: 'table', + list: [ + { + type: 'table', + label: '表格', + title: '表格', + border: 'border1', + width: 650, + height: 400, + zIndex: 1, + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/table.png', + dataX: '', + dataY: [], + rowNum: 7, + isShowIndex: '1', + sourceDataId: '', + api: '', + apiData: [], + dataType: 'staticData', + dynamicData: [], + staticData: [ + { name: '列1', v: 23, v2: 3 }, + { name: '列2', v: 12, v2: 4 }, + { name: '列2', v: 12, v2: 4 } + ] + } + ] + } + ] + }, + { + type: 'other', + label: '其他', + list: [ + { + label: '地图', + type: 'map', + list: [ + { + type: 'map', + label: '地图', + display: 'map', + width: 840, + height: 534, + left: 0, + top: 0, + mask: '2', + areaId: '', + zIndex: 1, + apiData: [], + dataType: 'staticData', + dynamicData: [], + staticData: [ + { + content: '中卫慧通', + lng: 117.1339399, + lat: 36.7190487 + } + ], + api: '', + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/map.png' + } + ] + }, + { + label: '边框', + type: 'panel', + list: [ + { + type: 'panel', + label: '边框', + title: '边框', + border: 'border0', + width: 400, + height: 400, + isZoom: false, + zIndex: 1, + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/border.png' + } + ] + }, + { + label: '装饰', + type: 'display', + list: [ + { + type: 'display', + label: '装饰', + display: 'display0', + width: 840, + height: 540, + isZoom: false, + zIndex: 1, + title: '标题', + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/display.png', + sourceDataId: '', + dataType: 'staticData', + staticData: [ + { + key: '个人服务办理', + value: 247 + }, + { + key: '同比上月', + value: 247 + } + ] + } + ] + }, + { + label: '轮播图', + type: 'swiper', + list: [ + { + type: 'swiper', + label: '轮播图', + width: 400, + height: 300, + zIndex: 1, + border: 'border2', + dataType: 'staticData', + staticData: [ + { + img: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/pie.png', + title: '湖羊', + content: `歙县众城湖羊养殖专业合作社 + 徐晓红 - 18273645627 + 歙县郑村镇唐跃村碉墅` + } + ], + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/swiper.png' + } + ] + }, + { + label: '视频播放器', + type: 'video', + list: [ + { + type: 'video', + label: '视频播放器', + width: 400, + height: 300, + zIndex: 1, + src: '', + border: 'border2', + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/swiper.png' + } + ] + }, + { + label: '数据统计', + type: 'summary', + list: [ + { + type: 'summary', + label: '数据统计', + display: 'summary0', + width: 480, + height: 240, + zIndex: 1, + top: 0, + left: 0, + dataX: '', + dataY: [], + border: 'border3', + sourceDataId: '', + title: '数据统计', + dataType: 'staticData', + staticData: [ + { + key: '个人服务办理', + value: 247 + }, + { + key: '同比上月', + value: 247 + } + ], + dynamicData: [], + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/total.png' + } + ] + }, + { + label: '视频监控', + type: 'monitor', + list: [ + { + type: 'monitor', + label: '视频监控', + src: '', + width: 480, + height: 240, + zIndex: 1, + top: 0, + left: 0, + title: '', + moniterId: '', + monitorType: 'cmcc', + api: '/app/appzyvideoequipment/list', + border: 'border2', + sourceDataId: '', + dataType: 'staticData', + staticData: '', + dynamicData: '', + thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/video.png' + } + ] + } + ] + } +] + +export { components } diff --git a/packages/bigscreen/ui/AiDataPanel.vue b/packages/bigscreen/ui/AiDataPanel.vue new file mode 100644 index 00000000..11ec9fa8 --- /dev/null +++ b/packages/bigscreen/ui/AiDataPanel.vue @@ -0,0 +1,88 @@ + + + + + diff --git a/packages/bigscreen/ui/AiStaData.vue b/packages/bigscreen/ui/AiStaData.vue new file mode 100644 index 00000000..f225badc --- /dev/null +++ b/packages/bigscreen/ui/AiStaData.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/packages/bigscreen/viewer/AppGigscreenViewer.vue b/packages/bigscreen/viewer/AppGigscreenViewer.vue new file mode 100644 index 00000000..fb177837 --- /dev/null +++ b/packages/bigscreen/viewer/AppGigscreenViewer.vue @@ -0,0 +1,181 @@ + + + + + diff --git a/packages/core.import.js b/packages/core.import.js new file mode 100644 index 00000000..bd366fd8 --- /dev/null +++ b/packages/core.import.js @@ -0,0 +1,7 @@ +export default [ + {label: "账号管理", name: "AppAccount"}, + {label: "数据字典", name: "AppDictionary"}, + {label: "企业微信配置", name: "AppQyWxConfig"}, + {label: "个人中心", name: "AppUserInfo"}, + {label: "权限管理", name: "AppRightsManager"}, +].map(e => ({...e, component: require(`../core/apps/${e.name}/${e.name}`)?.default})) diff --git a/packages/creditScore/scoreFamily/AppScoreFamily.vue b/packages/creditScore/scoreFamily/AppScoreFamily.vue new file mode 100644 index 00000000..5241ec7b --- /dev/null +++ b/packages/creditScore/scoreFamily/AppScoreFamily.vue @@ -0,0 +1,572 @@ + + + + + diff --git a/packages/creditScore/scoreFamily/detail.vue b/packages/creditScore/scoreFamily/detail.vue new file mode 100644 index 00000000..351e702b --- /dev/null +++ b/packages/creditScore/scoreFamily/detail.vue @@ -0,0 +1,212 @@ + + + + + \ No newline at end of file diff --git a/packages/creditScore/scoreManage/AppScoreManage .vue b/packages/creditScore/scoreManage/AppScoreManage .vue new file mode 100644 index 00000000..2ec20a49 --- /dev/null +++ b/packages/creditScore/scoreManage/AppScoreManage .vue @@ -0,0 +1,84 @@ + + + + + diff --git a/packages/creditScore/scoreManage/pointsAppeal.vue b/packages/creditScore/scoreManage/pointsAppeal.vue new file mode 100644 index 00000000..4fbcf1f1 --- /dev/null +++ b/packages/creditScore/scoreManage/pointsAppeal.vue @@ -0,0 +1,611 @@ + + + + + diff --git a/packages/creditScore/scoreManage/pointsDeclaration.vue b/packages/creditScore/scoreManage/pointsDeclaration.vue new file mode 100644 index 00000000..7d0a2bf3 --- /dev/null +++ b/packages/creditScore/scoreManage/pointsDeclaration.vue @@ -0,0 +1,603 @@ + + + + + diff --git a/packages/creditScore/scoreManage/pointsDetails.vue b/packages/creditScore/scoreManage/pointsDetails.vue new file mode 100644 index 00000000..2dc45dee --- /dev/null +++ b/packages/creditScore/scoreManage/pointsDetails.vue @@ -0,0 +1,283 @@ + + + + + diff --git a/packages/creditScore/scoreManage/scoreChange.vue b/packages/creditScore/scoreManage/scoreChange.vue new file mode 100644 index 00000000..6140059d --- /dev/null +++ b/packages/creditScore/scoreManage/scoreChange.vue @@ -0,0 +1,176 @@ + + + + + diff --git a/packages/creditScore/scorePersonal/AppScorePersonal.vue b/packages/creditScore/scorePersonal/AppScorePersonal.vue new file mode 100644 index 00000000..7177e574 --- /dev/null +++ b/packages/creditScore/scorePersonal/AppScorePersonal.vue @@ -0,0 +1,408 @@ + + + + + diff --git a/packages/creditScore/scorePersonal/detail.vue b/packages/creditScore/scorePersonal/detail.vue new file mode 100644 index 00000000..6835645b --- /dev/null +++ b/packages/creditScore/scorePersonal/detail.vue @@ -0,0 +1,207 @@ + + + + + \ No newline at end of file diff --git a/packages/creditScore/scoreRules/AppScoreRules.vue b/packages/creditScore/scoreRules/AppScoreRules.vue new file mode 100644 index 00000000..c227749f --- /dev/null +++ b/packages/creditScore/scoreRules/AppScoreRules.vue @@ -0,0 +1,422 @@ + + + + + diff --git a/packages/creditScore/scoreSupermarket/AppScoreSupermarket.vue b/packages/creditScore/scoreSupermarket/AppScoreSupermarket.vue new file mode 100644 index 00000000..de8dd8c7 --- /dev/null +++ b/packages/creditScore/scoreSupermarket/AppScoreSupermarket.vue @@ -0,0 +1,118 @@ + + + + diff --git a/packages/creditScore/scoreSupermarket/components/addGoods.vue b/packages/creditScore/scoreSupermarket/components/addGoods.vue new file mode 100644 index 00000000..a91c5f33 --- /dev/null +++ b/packages/creditScore/scoreSupermarket/components/addGoods.vue @@ -0,0 +1,375 @@ + + + + + \ No newline at end of file diff --git a/packages/creditScore/scoreSupermarket/components/addOrder.vue b/packages/creditScore/scoreSupermarket/components/addOrder.vue new file mode 100644 index 00000000..c314f437 --- /dev/null +++ b/packages/creditScore/scoreSupermarket/components/addOrder.vue @@ -0,0 +1,621 @@ + + + + + \ No newline at end of file diff --git a/packages/creditScore/scoreSupermarket/goodsManagement.vue b/packages/creditScore/scoreSupermarket/goodsManagement.vue new file mode 100644 index 00000000..35599d08 --- /dev/null +++ b/packages/creditScore/scoreSupermarket/goodsManagement.vue @@ -0,0 +1,336 @@ + + + + + diff --git a/packages/creditScore/scoreSupermarket/orderManagement.vue b/packages/creditScore/scoreSupermarket/orderManagement.vue new file mode 100644 index 00000000..fe9df41d --- /dev/null +++ b/packages/creditScore/scoreSupermarket/orderManagement.vue @@ -0,0 +1,492 @@ + + + + + diff --git a/packages/creditScore/scoreSupermarket/storeManagement.vue b/packages/creditScore/scoreSupermarket/storeManagement.vue new file mode 100644 index 00000000..a974b42a --- /dev/null +++ b/packages/creditScore/scoreSupermarket/storeManagement.vue @@ -0,0 +1,474 @@ + + + + + diff --git a/packages/index.js b/packages/index.js new file mode 100644 index 00000000..fb1360cc --- /dev/null +++ b/packages/index.js @@ -0,0 +1,45 @@ +// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册 +/** + * + * @param Vue 外部接入Vue + * @param params showList:打印加载的应用;apps:加载的应用文件名数组 + */ +import core from './core.import' + +const install = function (Vue, params) { + if (install.installed) return + // 遍历注册全局组件 + let apps = [] + let contexts = require.context('.', true, /\.(\/.+)\/App[^\/]+\.vue$/) + if (contexts) { + contexts.keys().map(e => { + if (contexts(e).default) { + if (params?.apps) { + if (params?.apps.includes(contexts(e).default.name)) { + apps.push(contexts(e).default) + Vue.component(contexts(e).default.name, contexts(e).default) + } + } else { + apps.push(contexts(e).default) + Vue.component(contexts(e).default.name, contexts(e).default) + } + } + }) + !!params?.showList && console.log(apps.map(e => e.name)) + } + core?.map(app => { + apps.push(app.component) + Vue.component(app.name, app.component) + }) + return Promise.resolve(apps) +} + +// 判断是否是直接引入文件 +if (typeof window !== 'undefined' && window.Vue) { + install(window.Vue) +} + +export default { + // 导出的对象必须具有 install,才能被 Vue.use() 方法安装 + install +} diff --git a/packages/meta/AppResident/AppResident.vue b/packages/meta/AppResident/AppResident.vue new file mode 100644 index 00000000..1ef46b3e --- /dev/null +++ b/packages/meta/AppResident/AppResident.vue @@ -0,0 +1,193 @@ + + + diff --git a/packages/meta/AppResident/listTpl.vue b/packages/meta/AppResident/listTpl.vue new file mode 100644 index 00000000..5d37f361 --- /dev/null +++ b/packages/meta/AppResident/listTpl.vue @@ -0,0 +1,350 @@ + + + + + diff --git a/packages/meta/AppResident/localResident.vue b/packages/meta/AppResident/localResident.vue new file mode 100644 index 00000000..65255baf --- /dev/null +++ b/packages/meta/AppResident/localResident.vue @@ -0,0 +1,1124 @@ + + + diff --git a/packages/meta/AppResident/mobileResident.vue b/packages/meta/AppResident/mobileResident.vue new file mode 100644 index 00000000..ef190c0c --- /dev/null +++ b/packages/meta/AppResident/mobileResident.vue @@ -0,0 +1,1116 @@ + + + diff --git a/packages/meta/AppResident/residentSta.vue b/packages/meta/AppResident/residentSta.vue new file mode 100644 index 00000000..3de0971a --- /dev/null +++ b/packages/meta/AppResident/residentSta.vue @@ -0,0 +1,445 @@ + + + + + diff --git a/packages/meta/AppVillageCadres/AppVillageCadres.vue b/packages/meta/AppVillageCadres/AppVillageCadres.vue new file mode 100644 index 00000000..a24949f8 --- /dev/null +++ b/packages/meta/AppVillageCadres/AppVillageCadres.vue @@ -0,0 +1,68 @@ + + + diff --git a/packages/meta/AppVillageCadres/cadreFiles.vue b/packages/meta/AppVillageCadres/cadreFiles.vue new file mode 100644 index 00000000..0d3897eb --- /dev/null +++ b/packages/meta/AppVillageCadres/cadreFiles.vue @@ -0,0 +1,257 @@ + + + + + + + diff --git a/packages/meta/AppVillageCadres/components/functionaryCreate.vue b/packages/meta/AppVillageCadres/components/functionaryCreate.vue new file mode 100644 index 00000000..b7927079 --- /dev/null +++ b/packages/meta/AppVillageCadres/components/functionaryCreate.vue @@ -0,0 +1,591 @@ + + + diff --git a/packages/meta/AppVillageCadres/components/functionaryDetail.vue b/packages/meta/AppVillageCadres/components/functionaryDetail.vue new file mode 100644 index 00000000..1dd1ccbf --- /dev/null +++ b/packages/meta/AppVillageCadres/components/functionaryDetail.vue @@ -0,0 +1,318 @@ + + + + + diff --git a/packages/meta/AppVillageCadres/components/printTpl.vue b/packages/meta/AppVillageCadres/components/printTpl.vue new file mode 100644 index 00000000..3e6548f3 --- /dev/null +++ b/packages/meta/AppVillageCadres/components/printTpl.vue @@ -0,0 +1,148 @@ + + + diff --git a/packages/meta/AppVillageCadres/components/tabsCard.vue b/packages/meta/AppVillageCadres/components/tabsCard.vue new file mode 100644 index 00000000..b6604e7d --- /dev/null +++ b/packages/meta/AppVillageCadres/components/tabsCard.vue @@ -0,0 +1,407 @@ + + + + + diff --git a/packages/monitor/AppMonitorDevice/AppMonitorDevice.vue b/packages/monitor/AppMonitorDevice/AppMonitorDevice.vue new file mode 100644 index 00000000..4ebaa8bd --- /dev/null +++ b/packages/monitor/AppMonitorDevice/AppMonitorDevice.vue @@ -0,0 +1,132 @@ + + + + + diff --git a/packages/monitor/AppMonitorManage/AppMonitorManage.vue b/packages/monitor/AppMonitorManage/AppMonitorManage.vue new file mode 100644 index 00000000..39548872 --- /dev/null +++ b/packages/monitor/AppMonitorManage/AppMonitorManage.vue @@ -0,0 +1,284 @@ + + + + + + + diff --git a/packages/wechat/AppAskForm/components/Statistics.vue b/packages/wechat/AppAskForm/components/Statistics.vue new file mode 100644 index 00000000..8b1941c5 --- /dev/null +++ b/packages/wechat/AppAskForm/components/Statistics.vue @@ -0,0 +1,747 @@ + + + + + diff --git a/packages/wechat/AppAskForm/components/Template.vue b/packages/wechat/AppAskForm/components/Template.vue new file mode 100644 index 00000000..8e4d82f0 --- /dev/null +++ b/packages/wechat/AppAskForm/components/Template.vue @@ -0,0 +1,283 @@ + + + + + diff --git a/packages/wechat/AppAskForm/components/config.js b/packages/wechat/AppAskForm/components/config.js new file mode 100644 index 00000000..9df7bb3b --- /dev/null +++ b/packages/wechat/AppAskForm/components/config.js @@ -0,0 +1,181 @@ +export const components = [ + { + type: 'options', + tips: '(可重复添加)', + label: '选项', + children: [ + { + type: 'radio', + label: '单选', + fixedLabel: '单选', + value: '', + points: '', + icon: 'iconradio', + isShowPoints: false, + required: true, + hasAnswer: false, + answer: '', + pointType: '0', + pointDict: [ + { + dictName: '此题有唯一答案和分值', + dictValue: '0' + }, + { + dictName: '每个选项都有对应分值', + dictValue: '1' + } + ], + options: [ + { + label: '选项1', + value: '', + point: '', + img: [] + }, + { + label: '选项2', + value: '', + point: '', + img: [] + } + ], + title: '' + }, + { + type: 'checkbox', + label: '多选', + fixedLabel: '多选', + points: '', + icon: 'iconcheck_box', + isShowPoints: false, + required: true, + hasAnswer: false, + answer: [], + value: [], + pointType: '0', + pointDict: [ + { + dictName: '此题有唯一答案和分值', + dictValue: '0' + }, + { + dictName: '每个选项都有对应分值', + dictValue: '1' + }, + { + dictName: '答对几项得几分,答错不得分', + dictValue: '2' + } + ], + options: [ + { + label: '选项1', + value: '', + point: '', + img: [] + }, + { + label: '选项2', + point: '', + value: '', + img: [] + } + ], + title: '' + }, + { + type: 'select', + label: '单下拉框', + fixedLabel: '单下拉框', + value: '', + points: '', + icon: 'iconSelect', + isShowPoints: false, + required: true, + hasAnswer: false, + answer: '', + pointType: '0', + pointDict: [ + { + dictName: '此题有唯一答案和分值', + dictValue: '0' + }, + { + dictName: '每个选项都有对应分值', + dictValue: '1' + } + ], + options: [ + { + label: '选项1', + value: '', + point: '', + img: [] + }, + { + label: '选项2', + value: '', + point: '', + img: [] + } + ], + title: '' + } + ] + }, + { + type: 'input', + tips: '(可重复添加)', + label: '填空', + children: [ + { + type: 'input', + label: '单行填空', + fixedLabel: '单行填空', + value: '', + pointType: '0', + icon: 'icontext_box', + isShowPoints: false, + points: '', + required: true, + hasAnswer: false, + placeholder: '请输入...', + answer: '' + }, + { + type: 'textarea', + label: '多行填空', + fixedLabel: '多行填空', + pointType: '0', + icon: 'icontext_area', + points: '', + isShowPoints: false, + required: true, + hasAnswer: false, + answer: '', + placeholder: '请输入...', + value: '' + } + ] + }, + { + type: 'annex', + tips: '(可重复添加)', + label: '附件', + children: [ + { + type: 'upload', + label: '上传图片', + fixedLabel: '上传图片', + value: '', + icon: 'iconpic', + isShowPoints: false, + points: '', + required: true, + hasAnswer: false, + answer: '' + } + ] + } +]; diff --git a/packages/wechat/AppBuddyMessage/AppBuddyMessage.vue b/packages/wechat/AppBuddyMessage/AppBuddyMessage.vue new file mode 100644 index 00000000..d472d51a --- /dev/null +++ b/packages/wechat/AppBuddyMessage/AppBuddyMessage.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/packages/wechat/AppBuddyMessage/components/Add.vue b/packages/wechat/AppBuddyMessage/components/Add.vue new file mode 100644 index 00000000..5602e357 --- /dev/null +++ b/packages/wechat/AppBuddyMessage/components/Add.vue @@ -0,0 +1,378 @@ + + + + + diff --git a/packages/wechat/AppBuddyMessage/components/List.vue b/packages/wechat/AppBuddyMessage/components/List.vue new file mode 100644 index 00000000..ccd1b86a --- /dev/null +++ b/packages/wechat/AppBuddyMessage/components/List.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/packages/wechat/AppCarousel/AppCarousel.vue b/packages/wechat/AppCarousel/AppCarousel.vue new file mode 100644 index 00000000..e8d9ef6f --- /dev/null +++ b/packages/wechat/AppCarousel/AppCarousel.vue @@ -0,0 +1,302 @@ + + + + + diff --git a/packages/wechat/AppClientMassTextin/AppClientMassTextin.vue b/packages/wechat/AppClientMassTextin/AppClientMassTextin.vue new file mode 100644 index 00000000..7323c79f --- /dev/null +++ b/packages/wechat/AppClientMassTextin/AppClientMassTextin.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/packages/wechat/AppClientMassTextin/components/NewClientMass.vue b/packages/wechat/AppClientMassTextin/components/NewClientMass.vue new file mode 100644 index 00000000..6bb262d5 --- /dev/null +++ b/packages/wechat/AppClientMassTextin/components/NewClientMass.vue @@ -0,0 +1,342 @@ + + + + + diff --git a/packages/wechat/AppClientMassTextin/components/TableList.vue b/packages/wechat/AppClientMassTextin/components/TableList.vue new file mode 100644 index 00000000..e8b2ee7f --- /dev/null +++ b/packages/wechat/AppClientMassTextin/components/TableList.vue @@ -0,0 +1,141 @@ + + + + + diff --git a/packages/wechat/AppConference/AppConference.vue b/packages/wechat/AppConference/AppConference.vue new file mode 100644 index 00000000..ea72a9fc --- /dev/null +++ b/packages/wechat/AppConference/AppConference.vue @@ -0,0 +1,101 @@ + + + diff --git a/packages/wechat/AppConference/addMeeting.vue b/packages/wechat/AppConference/addMeeting.vue new file mode 100644 index 00000000..dfc31435 --- /dev/null +++ b/packages/wechat/AppConference/addMeeting.vue @@ -0,0 +1,244 @@ + + + diff --git a/packages/wechat/AppConference/detail.vue b/packages/wechat/AppConference/detail.vue new file mode 100644 index 00000000..4e7a1aa0 --- /dev/null +++ b/packages/wechat/AppConference/detail.vue @@ -0,0 +1,605 @@ + + + diff --git a/packages/wechat/AppConference/list.vue b/packages/wechat/AppConference/list.vue new file mode 100644 index 00000000..4bf1d7c6 --- /dev/null +++ b/packages/wechat/AppConference/list.vue @@ -0,0 +1,256 @@ + + + + + diff --git a/packages/wechat/AppDispatchManagement/AppDispatchManagement.vue b/packages/wechat/AppDispatchManagement/AppDispatchManagement.vue new file mode 100644 index 00000000..cbf19341 --- /dev/null +++ b/packages/wechat/AppDispatchManagement/AppDispatchManagement.vue @@ -0,0 +1,68 @@ + + + + + diff --git a/packages/wechat/AppDispatchManagement/components/Add.vue b/packages/wechat/AppDispatchManagement/components/Add.vue new file mode 100644 index 00000000..d904ff5d --- /dev/null +++ b/packages/wechat/AppDispatchManagement/components/Add.vue @@ -0,0 +1,388 @@ + + + + + \ No newline at end of file diff --git a/packages/wechat/AppDispatchManagement/components/Detail.vue b/packages/wechat/AppDispatchManagement/components/Detail.vue new file mode 100644 index 00000000..50a4424c --- /dev/null +++ b/packages/wechat/AppDispatchManagement/components/Detail.vue @@ -0,0 +1,563 @@ + + + + + \ No newline at end of file diff --git a/packages/wechat/AppDispatchManagement/components/List.vue b/packages/wechat/AppDispatchManagement/components/List.vue new file mode 100644 index 00000000..27337adf --- /dev/null +++ b/packages/wechat/AppDispatchManagement/components/List.vue @@ -0,0 +1,310 @@ + + + + + diff --git a/packages/wechat/AppDispatchManagement/components/statistics.vue b/packages/wechat/AppDispatchManagement/components/statistics.vue new file mode 100644 index 00000000..96fe7feb --- /dev/null +++ b/packages/wechat/AppDispatchManagement/components/statistics.vue @@ -0,0 +1,766 @@ + + + + + diff --git a/packages/wechat/AppHotTopic/AppHotTopic.vue b/packages/wechat/AppHotTopic/AppHotTopic.vue new file mode 100644 index 00000000..63642570 --- /dev/null +++ b/packages/wechat/AppHotTopic/AppHotTopic.vue @@ -0,0 +1,158 @@ + + + + + diff --git a/packages/wechat/AppHotTopic/components/addHot.vue b/packages/wechat/AppHotTopic/components/addHot.vue new file mode 100644 index 00000000..680d3f2c --- /dev/null +++ b/packages/wechat/AppHotTopic/components/addHot.vue @@ -0,0 +1,313 @@ + + + + + diff --git a/packages/wechat/AppHotTopic/components/hotDetail.vue b/packages/wechat/AppHotTopic/components/hotDetail.vue new file mode 100644 index 00000000..b7bc42ea --- /dev/null +++ b/packages/wechat/AppHotTopic/components/hotDetail.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/packages/wechat/AppInterview/AppInterview.vue b/packages/wechat/AppInterview/AppInterview.vue new file mode 100644 index 00000000..474dd7ee --- /dev/null +++ b/packages/wechat/AppInterview/AppInterview.vue @@ -0,0 +1,169 @@ + + + + + diff --git a/packages/wechat/AppInterview/interviewDetail.vue b/packages/wechat/AppInterview/interviewDetail.vue new file mode 100644 index 00000000..b472b13e --- /dev/null +++ b/packages/wechat/AppInterview/interviewDetail.vue @@ -0,0 +1,97 @@ + + + + + diff --git a/packages/wechat/AppJob/AppJob.vue b/packages/wechat/AppJob/AppJob.vue new file mode 100644 index 00000000..8285bd59 --- /dev/null +++ b/packages/wechat/AppJob/AppJob.vue @@ -0,0 +1,68 @@ + + + + + diff --git a/packages/wechat/AppJob/components/Add.vue b/packages/wechat/AppJob/components/Add.vue new file mode 100644 index 00000000..51e9b49d --- /dev/null +++ b/packages/wechat/AppJob/components/Add.vue @@ -0,0 +1,203 @@ + + + + + diff --git a/packages/wechat/AppJob/components/List.vue b/packages/wechat/AppJob/components/List.vue new file mode 100644 index 00000000..b74932f6 --- /dev/null +++ b/packages/wechat/AppJob/components/List.vue @@ -0,0 +1,291 @@ + + + + + diff --git a/packages/wechat/AppMsgTemplate/AppMsgTemplate.vue b/packages/wechat/AppMsgTemplate/AppMsgTemplate.vue new file mode 100644 index 00000000..40c77596 --- /dev/null +++ b/packages/wechat/AppMsgTemplate/AppMsgTemplate.vue @@ -0,0 +1,119 @@ + + + + + diff --git a/packages/wechat/AppMsgTemplate/components/Detail.vue b/packages/wechat/AppMsgTemplate/components/Detail.vue new file mode 100644 index 00000000..e4e0df8f --- /dev/null +++ b/packages/wechat/AppMsgTemplate/components/Detail.vue @@ -0,0 +1,194 @@ + + + + + diff --git a/packages/wechat/AppMsgTemplate/components/commonList.vue b/packages/wechat/AppMsgTemplate/components/commonList.vue new file mode 100644 index 00000000..6a449685 --- /dev/null +++ b/packages/wechat/AppMsgTemplate/components/commonList.vue @@ -0,0 +1,511 @@ + + + + + diff --git a/packages/wechat/AppMsgTemplate/components/detailSystem.vue b/packages/wechat/AppMsgTemplate/components/detailSystem.vue new file mode 100644 index 00000000..7c2b8edb --- /dev/null +++ b/packages/wechat/AppMsgTemplate/components/detailSystem.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/packages/wechat/AppMsgTemplate/components/systemList.vue b/packages/wechat/AppMsgTemplate/components/systemList.vue new file mode 100644 index 00000000..ba759a5a --- /dev/null +++ b/packages/wechat/AppMsgTemplate/components/systemList.vue @@ -0,0 +1,733 @@ + + + + + diff --git a/packages/wechat/AppNotification/AppNotification.vue b/packages/wechat/AppNotification/AppNotification.vue new file mode 100644 index 00000000..f520059f --- /dev/null +++ b/packages/wechat/AppNotification/AppNotification.vue @@ -0,0 +1,81 @@ + + + diff --git a/packages/wechat/AppNotification/components/add.vue b/packages/wechat/AppNotification/components/add.vue new file mode 100644 index 00000000..9ff8ae62 --- /dev/null +++ b/packages/wechat/AppNotification/components/add.vue @@ -0,0 +1,183 @@ + + + + + diff --git a/packages/wechat/AppNotification/components/detail.vue b/packages/wechat/AppNotification/components/detail.vue new file mode 100644 index 00000000..3e5f0a8b --- /dev/null +++ b/packages/wechat/AppNotification/components/detail.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/packages/wechat/AppNotification/components/manageDetail.vue b/packages/wechat/AppNotification/components/manageDetail.vue new file mode 100644 index 00000000..fb07ce51 --- /dev/null +++ b/packages/wechat/AppNotification/components/manageDetail.vue @@ -0,0 +1,202 @@ + + + + + diff --git a/packages/wechat/AppNotification/components/noticeManage.vue b/packages/wechat/AppNotification/components/noticeManage.vue new file mode 100644 index 00000000..5effd5af --- /dev/null +++ b/packages/wechat/AppNotification/components/noticeManage.vue @@ -0,0 +1,264 @@ + + + + + diff --git a/packages/wechat/AppNotification/components/recentNotice.vue b/packages/wechat/AppNotification/components/recentNotice.vue new file mode 100644 index 00000000..8222844e --- /dev/null +++ b/packages/wechat/AppNotification/components/recentNotice.vue @@ -0,0 +1,217 @@ + + + + + diff --git a/packages/wechat/AppPressCenter/AppPressCenter.vue b/packages/wechat/AppPressCenter/AppPressCenter.vue new file mode 100644 index 00000000..aef6be4f --- /dev/null +++ b/packages/wechat/AppPressCenter/AppPressCenter.vue @@ -0,0 +1,134 @@ + + + + + diff --git a/packages/wechat/AppPressCenter/components/addArticle.vue b/packages/wechat/AppPressCenter/components/addArticle.vue new file mode 100644 index 00000000..73bd1ded --- /dev/null +++ b/packages/wechat/AppPressCenter/components/addArticle.vue @@ -0,0 +1,154 @@ + + + + + diff --git a/packages/wechat/AppPressCenter/components/addVideo.vue b/packages/wechat/AppPressCenter/components/addVideo.vue new file mode 100644 index 00000000..fc8bbe8e --- /dev/null +++ b/packages/wechat/AppPressCenter/components/addVideo.vue @@ -0,0 +1,262 @@ + + + + + diff --git a/packages/wechat/AppPressCenter/components/commentList.vue b/packages/wechat/AppPressCenter/components/commentList.vue new file mode 100644 index 00000000..6067cdea --- /dev/null +++ b/packages/wechat/AppPressCenter/components/commentList.vue @@ -0,0 +1,123 @@ + + + + + diff --git a/packages/wechat/AppPressCenter/components/index.js b/packages/wechat/AppPressCenter/components/index.js new file mode 100644 index 00000000..f8d4b5fd --- /dev/null +++ b/packages/wechat/AppPressCenter/components/index.js @@ -0,0 +1,6 @@ +export {default as newsList} from "./newsList"; +export {default as commentList} from "./commentList"; +export {default as addVideo} from "./addVideo"; +export {default as addArticle} from "./addArticle"; +export {default as newsDetail} from "./newsDetail"; +export {default as videoDetail} from "./videoDetail"; diff --git a/packages/wechat/AppPressCenter/components/newsDetail.vue b/packages/wechat/AppPressCenter/components/newsDetail.vue new file mode 100644 index 00000000..19acaed4 --- /dev/null +++ b/packages/wechat/AppPressCenter/components/newsDetail.vue @@ -0,0 +1,143 @@ + + + + + diff --git a/packages/wechat/AppPressCenter/components/newsList.vue b/packages/wechat/AppPressCenter/components/newsList.vue new file mode 100644 index 00000000..936f9167 --- /dev/null +++ b/packages/wechat/AppPressCenter/components/newsList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/packages/wechat/AppPressCenter/components/videoDetail.vue b/packages/wechat/AppPressCenter/components/videoDetail.vue new file mode 100644 index 00000000..58e69234 --- /dev/null +++ b/packages/wechat/AppPressCenter/components/videoDetail.vue @@ -0,0 +1,90 @@ + + + + + diff --git a/packages/wechat/AppProjectActivities/AppProjectActivities.vue b/packages/wechat/AppProjectActivities/AppProjectActivities.vue new file mode 100644 index 00000000..7f877e63 --- /dev/null +++ b/packages/wechat/AppProjectActivities/AppProjectActivities.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/packages/wechat/AppProjectActivities/components/Add.vue b/packages/wechat/AppProjectActivities/components/Add.vue new file mode 100644 index 00000000..d51ae4be --- /dev/null +++ b/packages/wechat/AppProjectActivities/components/Add.vue @@ -0,0 +1,148 @@ + + + + + diff --git a/packages/wechat/AppProjectActivities/components/Comments.vue b/packages/wechat/AppProjectActivities/components/Comments.vue new file mode 100644 index 00000000..491fc93e --- /dev/null +++ b/packages/wechat/AppProjectActivities/components/Comments.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/packages/wechat/AppProjectActivities/components/Detail.vue b/packages/wechat/AppProjectActivities/components/Detail.vue new file mode 100644 index 00000000..69826738 --- /dev/null +++ b/packages/wechat/AppProjectActivities/components/Detail.vue @@ -0,0 +1,100 @@ + + + + + diff --git a/packages/wechat/AppProjectActivities/components/Event.vue b/packages/wechat/AppProjectActivities/components/Event.vue new file mode 100644 index 00000000..11f7a5cf --- /dev/null +++ b/packages/wechat/AppProjectActivities/components/Event.vue @@ -0,0 +1,197 @@ + + + + + diff --git a/packages/wechat/AppReportAiWill/AppReportAtWill.vue b/packages/wechat/AppReportAiWill/AppReportAtWill.vue new file mode 100644 index 00000000..697ea8c7 --- /dev/null +++ b/packages/wechat/AppReportAiWill/AppReportAtWill.vue @@ -0,0 +1,294 @@ + + + + + diff --git a/packages/wechat/AppReportAiWill/reportAtWillDetail.vue b/packages/wechat/AppReportAiWill/reportAtWillDetail.vue new file mode 100644 index 00000000..616762cc --- /dev/null +++ b/packages/wechat/AppReportAiWill/reportAtWillDetail.vue @@ -0,0 +1,608 @@ + + + + + diff --git a/packages/wechat/AppReportServe/AppReportServe.vue b/packages/wechat/AppReportServe/AppReportServe.vue new file mode 100644 index 00000000..a50f0b3d --- /dev/null +++ b/packages/wechat/AppReportServe/AppReportServe.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/packages/wechat/AppReportServe/components/ActiveAdd.vue b/packages/wechat/AppReportServe/components/ActiveAdd.vue new file mode 100644 index 00000000..1623a73a --- /dev/null +++ b/packages/wechat/AppReportServe/components/ActiveAdd.vue @@ -0,0 +1,232 @@ + + + + + diff --git a/packages/wechat/AppReportServe/components/ActiveDetail.vue b/packages/wechat/AppReportServe/components/ActiveDetail.vue new file mode 100644 index 00000000..86117f22 --- /dev/null +++ b/packages/wechat/AppReportServe/components/ActiveDetail.vue @@ -0,0 +1,391 @@ + + + + + diff --git a/packages/wechat/AppReportServe/components/ActiveEdit.vue b/packages/wechat/AppReportServe/components/ActiveEdit.vue new file mode 100644 index 00000000..4adfa215 --- /dev/null +++ b/packages/wechat/AppReportServe/components/ActiveEdit.vue @@ -0,0 +1,247 @@ + + + + + diff --git a/packages/wechat/AppReportServe/components/ActiveList.vue b/packages/wechat/AppReportServe/components/ActiveList.vue new file mode 100644 index 00000000..a838f3c7 --- /dev/null +++ b/packages/wechat/AppReportServe/components/ActiveList.vue @@ -0,0 +1,190 @@ + + + + + diff --git a/packages/wechat/AppReportServe/components/DataList.vue b/packages/wechat/AppReportServe/components/DataList.vue new file mode 100644 index 00000000..d22eee58 --- /dev/null +++ b/packages/wechat/AppReportServe/components/DataList.vue @@ -0,0 +1,485 @@ + + + + + diff --git a/packages/wechat/AppResidentGroupManage/AppResidentGroupManage.vue b/packages/wechat/AppResidentGroupManage/AppResidentGroupManage.vue new file mode 100644 index 00000000..211adb5e --- /dev/null +++ b/packages/wechat/AppResidentGroupManage/AppResidentGroupManage.vue @@ -0,0 +1,89 @@ + + + + + diff --git a/packages/wechat/AppResidentGroupManage/components/Detail.vue b/packages/wechat/AppResidentGroupManage/components/Detail.vue new file mode 100644 index 00000000..f59c0251 --- /dev/null +++ b/packages/wechat/AppResidentGroupManage/components/Detail.vue @@ -0,0 +1,377 @@ + + + + + diff --git a/packages/wechat/AppResidentGroupManage/components/List.vue b/packages/wechat/AppResidentGroupManage/components/List.vue new file mode 100644 index 00000000..05561119 --- /dev/null +++ b/packages/wechat/AppResidentGroupManage/components/List.vue @@ -0,0 +1,401 @@ + + + + + diff --git a/packages/wechat/AppResidentGroupManage/components/Statistics.vue b/packages/wechat/AppResidentGroupManage/components/Statistics.vue new file mode 100644 index 00000000..880f8100 --- /dev/null +++ b/packages/wechat/AppResidentGroupManage/components/Statistics.vue @@ -0,0 +1,207 @@ + + + + + diff --git a/packages/wechat/AppResidentGroupManage/components/Tags.vue b/packages/wechat/AppResidentGroupManage/components/Tags.vue new file mode 100644 index 00000000..ae45064c --- /dev/null +++ b/packages/wechat/AppResidentGroupManage/components/Tags.vue @@ -0,0 +1,201 @@ + + + + + diff --git a/packages/wechat/AppResidentManage/AppResidentManage.vue b/packages/wechat/AppResidentManage/AppResidentManage.vue new file mode 100644 index 00000000..24952925 --- /dev/null +++ b/packages/wechat/AppResidentManage/AppResidentManage.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/packages/wechat/AppResidentManage/components/Detail.vue b/packages/wechat/AppResidentManage/components/Detail.vue new file mode 100644 index 00000000..8a866310 --- /dev/null +++ b/packages/wechat/AppResidentManage/components/Detail.vue @@ -0,0 +1,465 @@ + + + + + diff --git a/packages/wechat/AppResidentManage/components/List.vue b/packages/wechat/AppResidentManage/components/List.vue new file mode 100644 index 00000000..7ca152fe --- /dev/null +++ b/packages/wechat/AppResidentManage/components/List.vue @@ -0,0 +1,441 @@ + + + + + diff --git a/packages/wechat/AppResidentManage/components/Statistics.vue b/packages/wechat/AppResidentManage/components/Statistics.vue new file mode 100644 index 00000000..1fb31af9 --- /dev/null +++ b/packages/wechat/AppResidentManage/components/Statistics.vue @@ -0,0 +1,201 @@ + + + + + diff --git a/packages/wechat/AppResidentManage/components/Tags.vue b/packages/wechat/AppResidentManage/components/Tags.vue new file mode 100644 index 00000000..cd83ff56 --- /dev/null +++ b/packages/wechat/AppResidentManage/components/Tags.vue @@ -0,0 +1,201 @@ + + + + + diff --git a/packages/wechat/AppRuralTourism/AppRuralTourism.vue b/packages/wechat/AppRuralTourism/AppRuralTourism.vue new file mode 100644 index 00000000..683613b9 --- /dev/null +++ b/packages/wechat/AppRuralTourism/AppRuralTourism.vue @@ -0,0 +1,365 @@ + + + + + + + diff --git a/packages/wechat/AppRuralTourism/components/addProducts.vue b/packages/wechat/AppRuralTourism/components/addProducts.vue new file mode 100644 index 00000000..5a3c365a --- /dev/null +++ b/packages/wechat/AppRuralTourism/components/addProducts.vue @@ -0,0 +1,202 @@ + + + diff --git a/packages/wechat/AppRuralTourism/components/addRural.vue b/packages/wechat/AppRuralTourism/components/addRural.vue new file mode 100644 index 00000000..4dda0f55 --- /dev/null +++ b/packages/wechat/AppRuralTourism/components/addRural.vue @@ -0,0 +1,374 @@ + + + + + diff --git a/packages/wechat/AppRuralTourism/components/ruralList.vue b/packages/wechat/AppRuralTourism/components/ruralList.vue new file mode 100644 index 00000000..6fd7ea07 --- /dev/null +++ b/packages/wechat/AppRuralTourism/components/ruralList.vue @@ -0,0 +1,314 @@ + + + + diff --git a/packages/wechat/AppVerbalTrick/AppVerbalTrick.vue b/packages/wechat/AppVerbalTrick/AppVerbalTrick.vue new file mode 100644 index 00000000..9abcb81d --- /dev/null +++ b/packages/wechat/AppVerbalTrick/AppVerbalTrick.vue @@ -0,0 +1,617 @@ + + + + + + + diff --git a/packages/wechat/AppVillageCode/AppVillageCode.vue b/packages/wechat/AppVillageCode/AppVillageCode.vue new file mode 100644 index 00000000..2e67c91c --- /dev/null +++ b/packages/wechat/AppVillageCode/AppVillageCode.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/packages/wechat/AppVillageCode/components/Add.vue b/packages/wechat/AppVillageCode/components/Add.vue new file mode 100644 index 00000000..299235c3 --- /dev/null +++ b/packages/wechat/AppVillageCode/components/Add.vue @@ -0,0 +1,135 @@ + + + + + diff --git a/packages/wechat/AppVillageCode/components/List.vue b/packages/wechat/AppVillageCode/components/List.vue new file mode 100644 index 00000000..45e80022 --- /dev/null +++ b/packages/wechat/AppVillageCode/components/List.vue @@ -0,0 +1,422 @@ + + + + + diff --git a/packages/wechat/AppVillageInfo/AppVillageInfo.vue b/packages/wechat/AppVillageInfo/AppVillageInfo.vue new file mode 100644 index 00000000..3e7583ee --- /dev/null +++ b/packages/wechat/AppVillageInfo/AppVillageInfo.vue @@ -0,0 +1,134 @@ + + + + + diff --git a/packages/wechat/AppVillageInfo/components/Add.vue b/packages/wechat/AppVillageInfo/components/Add.vue new file mode 100644 index 00000000..d89acf2b --- /dev/null +++ b/packages/wechat/AppVillageInfo/components/Add.vue @@ -0,0 +1,254 @@ + + + + + diff --git a/packages/wechat/AppVillageInfo/components/Comments.vue b/packages/wechat/AppVillageInfo/components/Comments.vue new file mode 100644 index 00000000..e27d1335 --- /dev/null +++ b/packages/wechat/AppVillageInfo/components/Comments.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/packages/wechat/AppVillageInfo/components/Detail.vue b/packages/wechat/AppVillageInfo/components/Detail.vue new file mode 100644 index 00000000..87c25909 --- /dev/null +++ b/packages/wechat/AppVillageInfo/components/Detail.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/packages/wechat/AppVillageInfo/components/Event.vue b/packages/wechat/AppVillageInfo/components/Event.vue new file mode 100644 index 00000000..b350ad61 --- /dev/null +++ b/packages/wechat/AppVillageInfo/components/Event.vue @@ -0,0 +1,226 @@ + + + + + diff --git a/packages/wechat/AppWhereabouts/AppWhereabouts.vue b/packages/wechat/AppWhereabouts/AppWhereabouts.vue new file mode 100644 index 00000000..aef4d9f6 --- /dev/null +++ b/packages/wechat/AppWhereabouts/AppWhereabouts.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/packages/wechat/AppWorkTask/AppWorkTask.vue b/packages/wechat/AppWorkTask/AppWorkTask.vue new file mode 100644 index 00000000..fe4c0f17 --- /dev/null +++ b/packages/wechat/AppWorkTask/AppWorkTask.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/packages/wechat/AppWorkTask/components/Add.vue b/packages/wechat/AppWorkTask/components/Add.vue new file mode 100644 index 00000000..a73dd830 --- /dev/null +++ b/packages/wechat/AppWorkTask/components/Add.vue @@ -0,0 +1,290 @@ + + + + + diff --git a/packages/wechat/AppWorkTask/components/Detail.vue b/packages/wechat/AppWorkTask/components/Detail.vue new file mode 100644 index 00000000..0f8c1de8 --- /dev/null +++ b/packages/wechat/AppWorkTask/components/Detail.vue @@ -0,0 +1,378 @@ + + + + + diff --git a/packages/wechat/AppWorkTask/components/ExecuteList.vue b/packages/wechat/AppWorkTask/components/ExecuteList.vue new file mode 100644 index 00000000..8d1c8c76 --- /dev/null +++ b/packages/wechat/AppWorkTask/components/ExecuteList.vue @@ -0,0 +1,168 @@ + + + + + diff --git a/packages/wechat/AppWorkTask/components/InitiatorList.vue b/packages/wechat/AppWorkTask/components/InitiatorList.vue new file mode 100644 index 00000000..561e3224 --- /dev/null +++ b/packages/wechat/AppWorkTask/components/InitiatorList.vue @@ -0,0 +1,171 @@ + + + + + diff --git a/packages/wechat/AppWorkTask/components/SonDetail.vue b/packages/wechat/AppWorkTask/components/SonDetail.vue new file mode 100644 index 00000000..db4c3bc3 --- /dev/null +++ b/packages/wechat/AppWorkTask/components/SonDetail.vue @@ -0,0 +1,1065 @@ + + + + + diff --git a/project/build.js b/project/build.js new file mode 100644 index 00000000..7670dfe5 --- /dev/null +++ b/project/build.js @@ -0,0 +1,218 @@ +const fsExtra = require('fs-extra') +const path = require('path') +const {exec} = require('child_process') +const inquirer = require("inquirer"); +const chalk = require('chalk') +const fs = require('fs') +/** + * 将函数封装成promise + */ +const promisify = fn => { + return function () { + let args = arguments; + return new Promise(function (resolve, reject) { + [].push.call(args, function (err, result) { + if (err) { + console.log(err) + reject(err); + } else { + resolve(result); + } + }); + fn.apply(null, args); + }); + } +} + +const readdir = promisify(fs.readdir) +const stat = promisify(fs.stat) + +/** + * 封装打印工具 + */ +const {log} = console +const chalkTag = { + info: msg => log([chalk.bgBlue.black(' INFO '), msg].join(' ')), + done: msg => log([chalk.bgGreen.black(' DONE '), msg].join(' ')), + warn: msg => log([chalk.bgYellow.black(' WARN '), msg].join(' ')), + error: msg => log([chalk.bgRed.black(' ERROR '), msg].join(' ')), +} + +const start = () => { + let cores, apps + //询问打包哪个项目 + init().then(async choices => { + return await inquirer.prompt([{ + name: "PROJECT", + type: 'list', + message: "要打包发布哪一个项目?", + choices + }]) + }).then(res => new Promise(resolve => { + const {PROJECT} = res + let install = path.join(__dirname, PROJECT, 'index.js') + fsExtra.ensureFile(install) + const coreLib = path.join(__dirname, PROJECT, 'core.import.json') + fsExtra.readJson(coreLib, (err, data) => { + chalkTag.info("加载核心库配置..") + cores = [] + if (data) { + findApp('core/apps', file => { + let fileName = file.replace(/.*\\(.+)\.vue/g, '$1') + if (Object.keys(data).includes(fileName)) { + cores.push({name: fileName, component: file.replace(/\\/g, "/")}) + log(">>>正在打包核心库...%s", fileName) + } + }).then(() => { + chalkTag.done('核心库打包完毕') + resolve(PROJECT) + }) + } else { + chalkTag.done('核心库无打包') + resolve(PROJECT) + } + }) + })).then(prj => new Promise(resolve => { + const appLib = path.join(__dirname, prj.toString(), 'apps.import.json') + fsExtra.readJson(appLib, (err, data) => { + chalkTag.info('加载业务应用配置...') + apps = [] + let appDir = "packages" + if (data) { + findApp(appDir, file => { + let fileName = file.replace(/.*\\(.+)\.vue/g, '$1') + if (Object.keys(data).includes(fileName)) { + apps.push({name: fileName, component: file.replace(/\\/g, "/")}) + log(">>>正在打包业务应用...%s", fileName) + } + }).then(() => { + chalkTag.done('业务应用打包完毕') + resolve(prj) + }) + } else { + inquirer.prompt([{ + name: "CONFIRM", + type: 'confirm', + message: "未读取到业务应用配置文件,是否要打包整个packages?", + }]).then(res => { + if (res.CONFIRM) { + findApp(appDir, file => { + if (/.*\\(App[^\\]+)\.vue/g.test(file)) { + let fileName = file.replace(/.*\\(App[^\\]+)\.vue/g, '$1') + apps.push({name: fileName, component: file.replace(/\\/g, "/")}) + log(">>>正在打包业务应用...%s", fileName) + } + }).then(() => { + chalkTag.done('业务应用打包完毕') + resolve(prj) + }) + } else { + chalkTag.done('业务应用无打包') + resolve(prj) + } + }) + } + }) + })).then(prj => new Promise(resolve => { + chalkTag.info('正在生成打包文件...') + let bin = path.join(__dirname, prj.toString(), 'index.js'), + coreApps = cores.map(e => `{name:'${e.name}',component:require('../../${e.component}').default}`), + bizApps = apps.map(e => `{name:'${e.name}',component:require('../../${e.component}').default}`), + comps = [...coreApps, ...bizApps], + content = ` + const apps = [${comps.toString()}] + const install = function (Vue) { + if (install.installed) return Promise.resolve() + else{ + let contexts = require.context('.', true, /(\\/.+)\\/App[^\\/]+\\.vue$/) + if (contexts) { + contexts.keys().map(e => { + if (contexts(e).default) { + let mod = apps.find(a=>a.name==contexts(e).default.name) + if(mod){ + mod.component = contexts(e).default + }else{ + apps.push({name:contexts(e).default.name,component:contexts(e).default}) + } + } + }) + } + apps.map(e=>{ + Vue.component(e.name,e.component) + }) + } + } + // 判断是否是直接引入文件 + if (typeof window !== 'undefined' && window.Vue) { + install(window.Vue) + } + export default { + // 导出的对象必须具有 install,才能被 Vue.use() 方法安装 + install + } + ` + fsExtra.outputFile(bin, content, err => { + if (err) { + chalkTag.error(err) + reject() + } else chalkTag.done('生成打包文件') + resolve(prj) + }) + })).then(project => new Promise((resolve, reject) => { + fsExtra.readJson(path.join(__dirname, project.toString(), 'package.json'), (err, json) => { + let cmd = `vue-cli-service build --target lib --dest project/${project}/dist project/${project}/index.js --name ${json.name}` + chalkTag.info('正在压缩文件中...') + exec(cmd, { + cwd: path.join(__dirname, '..') + }, (err, stdout) => { + log(stdout); + if (!err) { + chalkTag.done('打包成功!') + resolve(project) + } else { + chalkTag.error(err) + reject() + } + }) + }) + })).then(project => { + chalkTag.info('正在发布中...') + let cmd = `cd ${project}&npm unpublish --force&npm publish` + exec(cmd, { + cwd: path.join(__dirname, '.') + }, (err, stdout) => { + log(stdout); + if (!err) { + chalkTag.done('发布成功!') + } else chalkTag.error(err) + }) + }) +} +/** + * 遍历应用的方法 + */ +const findApp = (dir, cb) => { + return readdir(dir).then(apps => { + return Promise.all(apps.map(e => { + let cPath = path.join(dir, e) + return stat(cPath).then(state => { + if (state.isDirectory()) { + return findApp(cPath, cb) + } else if (state.isFile()) { + cb && cb(cPath) + } + }) + }) || []) + }) +} +/** + * 初始化打包配置文件 + */ +const init = () => { + chalkTag.info('开始运行项目打包工具...') + return new Promise(resolve => fs.readdir('./project', (err, files) => { + resolve(files.filter(e => e.indexOf('.') < 0)) + })) +} +start(); + diff --git a/project/dv/apps.import.json b/project/dv/apps.import.json new file mode 100644 index 00000000..b59b1c6f --- /dev/null +++ b/project/dv/apps.import.json @@ -0,0 +1,4 @@ +{ + "AppGigscreenViewer": "大屏预览组件", + "AppDesigner": "大屏设计" +} diff --git a/project/dv/apps/AppCentralTaskDV.vue b/project/dv/apps/AppCentralTaskDV.vue new file mode 100644 index 00000000..d3ac5ddb --- /dev/null +++ b/project/dv/apps/AppCentralTaskDV.vue @@ -0,0 +1,133 @@ + + + + + diff --git a/project/dv/apps/AppGovInteractionDV.vue b/project/dv/apps/AppGovInteractionDV.vue new file mode 100644 index 00000000..d115ebbe --- /dev/null +++ b/project/dv/apps/AppGovInteractionDV.vue @@ -0,0 +1,479 @@ + + + + + diff --git a/project/dv/apps/AppHomesteadDV.vue b/project/dv/apps/AppHomesteadDV.vue new file mode 100644 index 00000000..7404a22b --- /dev/null +++ b/project/dv/apps/AppHomesteadDV.vue @@ -0,0 +1,1467 @@ + + + + + diff --git a/project/dv/apps/AppSpecialPeopleDV.vue b/project/dv/apps/AppSpecialPeopleDV.vue new file mode 100644 index 00000000..092c87b1 --- /dev/null +++ b/project/dv/apps/AppSpecialPeopleDV.vue @@ -0,0 +1,1233 @@ + + + + + diff --git a/project/dv/apps/AppVideoMonitoringDV.vue b/project/dv/apps/AppVideoMonitoringDV.vue new file mode 100644 index 00000000..e9450779 --- /dev/null +++ b/project/dv/apps/AppVideoMonitoringDV.vue @@ -0,0 +1,522 @@ + + + + + diff --git a/project/dv/assets/centralTask/bg.png b/project/dv/assets/centralTask/bg.png new file mode 100644 index 00000000..20bdca7e Binary files /dev/null and b/project/dv/assets/centralTask/bg.png differ diff --git a/project/dv/assets/centralTask/box.png b/project/dv/assets/centralTask/box.png new file mode 100644 index 00000000..c1e0143c Binary files /dev/null and b/project/dv/assets/centralTask/box.png differ diff --git a/project/dv/assets/centralTask/titleBox.png b/project/dv/assets/centralTask/titleBox.png new file mode 100644 index 00000000..45453330 Binary files /dev/null and b/project/dv/assets/centralTask/titleBox.png differ diff --git a/project/dv/assets/govInteraction/globe_map.png b/project/dv/assets/govInteraction/globe_map.png new file mode 100644 index 00000000..66d522d5 Binary files /dev/null and b/project/dv/assets/govInteraction/globe_map.png differ diff --git a/project/dv/assets/govInteraction/kuaikuai.png b/project/dv/assets/govInteraction/kuaikuai.png new file mode 100644 index 00000000..30aca3d9 Binary files /dev/null and b/project/dv/assets/govInteraction/kuaikuai.png differ diff --git a/project/dv/assets/govInteraction/title.png b/project/dv/assets/govInteraction/title.png new file mode 100644 index 00000000..63de5b11 Binary files /dev/null and b/project/dv/assets/govInteraction/title.png differ diff --git a/project/dv/assets/videoMonitor/bg.png b/project/dv/assets/videoMonitor/bg.png new file mode 100644 index 00000000..f4defcad Binary files /dev/null and b/project/dv/assets/videoMonitor/bg.png differ diff --git a/project/dv/assets/videoMonitor/box1.png b/project/dv/assets/videoMonitor/box1.png new file mode 100644 index 00000000..2d08318a Binary files /dev/null and b/project/dv/assets/videoMonitor/box1.png differ diff --git a/project/dv/assets/videoMonitor/box2.png b/project/dv/assets/videoMonitor/box2.png new file mode 100644 index 00000000..86b9e6fa Binary files /dev/null and b/project/dv/assets/videoMonitor/box2.png differ diff --git a/project/dv/assets/videoMonitor/box3.png b/project/dv/assets/videoMonitor/box3.png new file mode 100644 index 00000000..ae6b5452 Binary files /dev/null and b/project/dv/assets/videoMonitor/box3.png differ diff --git a/project/dv/assets/videoMonitor/box4.png b/project/dv/assets/videoMonitor/box4.png new file mode 100644 index 00000000..01c526e3 Binary files /dev/null and b/project/dv/assets/videoMonitor/box4.png differ diff --git a/project/dv/assets/videoMonitor/card.png b/project/dv/assets/videoMonitor/card.png new file mode 100644 index 00000000..4ced8fdd Binary files /dev/null and b/project/dv/assets/videoMonitor/card.png differ diff --git a/project/dv/assets/videoMonitor/middlebox.png b/project/dv/assets/videoMonitor/middlebox.png new file mode 100644 index 00000000..d803975a Binary files /dev/null and b/project/dv/assets/videoMonitor/middlebox.png differ diff --git a/project/dv/assets/videoMonitor/titlebox.png b/project/dv/assets/videoMonitor/titlebox.png new file mode 100644 index 00000000..b0cd43dc Binary files /dev/null and b/project/dv/assets/videoMonitor/titlebox.png differ diff --git a/project/dv/package.json b/project/dv/package.json new file mode 100644 index 00000000..e45ce15d --- /dev/null +++ b/project/dv/package.json @@ -0,0 +1,12 @@ +{ + "name": "dvcp-dv", + "description": "大屏应用", + "version": "1.0.0", + "main": "dist/dvcp-dv.common.js", + "publishConfig": { + "registry": "http://192.168.1.87:4873/" + }, + "dependencies": { + "dvcp-dv-ui": "^2.0.0" + } +} diff --git a/project/sass.js b/project/sass.js new file mode 100644 index 00000000..50d91ae9 --- /dev/null +++ b/project/sass.js @@ -0,0 +1,167 @@ +const fsExtra = require('fs-extra') +const path = require('path') +const {exec} = require('child_process') +const chalk = require('chalk') +const fs = require('fs') +/** + * 将函数封装成promise + */ +const promisify = fn => { + return function () { + let args = arguments; + return new Promise(function (resolve, reject) { + [].push.call(args, function (err, result) { + if (err) { + console.log(err) + reject(err); + } else { + resolve(result); + } + }); + fn.apply(null, args); + }); + } +} +const readdir = promisify(fs.readdir) +const stat = promisify(fs.stat) +/** + * 封装打印工具 + */ +const {log} = console +const chalkTag = { + info: msg => log([chalk.bgBlue.black(' INFO '), msg].join(' ')), + done: msg => log([chalk.bgGreen.black(' DONE '), msg].join(' ')), + warn: msg => log([chalk.bgYellow.black(' WARN '), msg].join(' ')), + error: msg => log([chalk.bgRed.black(' ERROR '), msg].join(' ')), +} +/** + * 遍历应用的方法 + */ +const findApp = (dir, cb) => { + return readdir(dir).then(apps => { + return Promise.all(apps.map(e => { + let cPath = path.join(dir, e) + return stat(cPath).then(state => { + if (state.isDirectory()) { + return findApp(cPath, cb) + } else if (state.isFile()) { + cb && cb(cPath) + } + }) + }) || []) + }) +} +const start = () => { + chalkTag.info("开始运行sass应用打包工具") + let cores, apps, PROJECT = "sass" + new Promise(resolve => { + let install = path.join(__dirname, PROJECT, 'index.js') + fsExtra.ensureFile(install) + const coreLib = path.join(__dirname, PROJECT, 'core.import.json') + + fsExtra.readJson(coreLib, (err, data) => { + chalkTag.info("加载核心库配置..") + cores = [] + if (data) { + findApp('core/apps', file => { + let fileName = file.replace(/.*(App\w+)\.vue/g, '$1') + if (Object.keys(data).includes(fileName)) { + cores.push({name: fileName, component: file.replace(/\\/g, "/")}) + log(">>>正在打包核心库...%s", fileName) + } + }).then(() => { + chalkTag.done('核心库打包完毕') + resolve(PROJECT) + }) + } else { + chalkTag.done('核心库无打包') + resolve(PROJECT) + } + }) + }).then(prj => { + apps = [] + // return findApp("packages", file => { + // if (/.*\\(App[^\\]+)\.vue/g.test(file)) { + // let fileName = file.replace(/.*\\(App[^\\]+)\.vue/g, '$1') + // apps.push({name: fileName, component: file.replace(/\\/g, "/")}) + // log(">>>正在打包业务应用...%s", fileName) + // } + // }).then(() => { + // chalkTag.done('业务应用打包完毕') + // return prj + // }) + return prj + }).then(prj => new Promise(resolve => { + chalkTag.info('正在生成打包文件...') + let bin = path.join(__dirname, prj.toString(), 'index.js'), + coreApps = cores.map(e => `{name:'${e.name}',component:require('../../${e.component}').default}`), + bizApps = apps.map(e => `{name:'${e.name}',component:require('../../${e.component}').default}`), + comps = [...coreApps, ...bizApps], + content = ` + const apps = [${comps.toString()}] + const install = function (Vue) { + if (install.installed) return Promise.resolve() + else{ + let contexts = require.context('.', true, /(\\/.+)\\/App[^\\/]+\\.vue$/) + if (contexts) { + contexts.keys().map(e => { + if (contexts(e).default) { + let mod = apps.find(a=>a.name==contexts(e).default.name) + if(mod){ + mod.component = contexts(e).default + }else{ + apps.push({name:contexts(e).default.name,component:contexts(e).default}) + } + } + }) + } + apps.map(e=>{ + Vue.component(e.name,e.component) + }) + } + } + // 判断是否是直接引入文件 + if (typeof window !== 'undefined' && window.Vue) { + install(window.Vue) + } + export default { + // 导出的对象必须具有 install,才能被 Vue.use() 方法安装 + install + } + ` + fsExtra.outputFile(bin, content, err => { + if (err) { + chalkTag.error(err) + } else chalkTag.done('生成打包文件') + resolve(prj) + }) + })).then(project => new Promise(resolve => { + fsExtra.readJson(path.join(__dirname, project.toString(), 'package.json'), (err, json) => { + let cmd = `vue-cli-service build --target lib --dest project/${project}/dist project/${project}/index.js --name ${json.name}` + chalkTag.info('正在压缩文件中...') + exec(cmd, { + cwd: path.join(__dirname, '..') + }, (err, stdout) => { + log(stdout); + if (!err) { + chalkTag.done('打包成功!') + resolve(project) + } else { + chalkTag.error(err) + } + }) + }) + })).then(project => { + chalkTag.info('正在发布中...') + let cmd = `npm unpublish dvcp-sass-apps@1.0.0 --force&&npm publish` + exec(cmd, { + cwd: path.join(__dirname, project) + }, (err, stdout) => { + log(stdout); + if (!err) { + chalkTag.done('发布成功!') + } else chalkTag.error(err) + }) + }) +} +start() diff --git a/project/sass/.npmrc b/project/sass/.npmrc new file mode 100644 index 00000000..20d82c56 --- /dev/null +++ b/project/sass/.npmrc @@ -0,0 +1,6 @@ +registry=http://192.168.1.87:4873/ +email=aixianling@sinoecare.com +always-auth=true +_auth="YWRtaW46YWRtaW4xMjM=" +package-lock=false + diff --git a/project/sass/apps/AppAddressBook/AppAddressBook.vue b/project/sass/apps/AppAddressBook/AppAddressBook.vue new file mode 100644 index 00000000..ef0f3301 --- /dev/null +++ b/project/sass/apps/AppAddressBook/AppAddressBook.vue @@ -0,0 +1,67 @@ + + + + + diff --git a/project/sass/apps/AppAddressBook/components/Add.vue b/project/sass/apps/AppAddressBook/components/Add.vue new file mode 100644 index 00000000..90f56987 --- /dev/null +++ b/project/sass/apps/AppAddressBook/components/Add.vue @@ -0,0 +1,211 @@ + + + + + diff --git a/project/sass/apps/AppAddressBook/components/List.vue b/project/sass/apps/AppAddressBook/components/List.vue new file mode 100644 index 00000000..5c97063d --- /dev/null +++ b/project/sass/apps/AppAddressBook/components/List.vue @@ -0,0 +1,990 @@ + + + + + diff --git a/project/sass/apps/AppAskForm/AppAskForm.vue b/project/sass/apps/AppAskForm/AppAskForm.vue new file mode 100644 index 00000000..117a0fa5 --- /dev/null +++ b/project/sass/apps/AppAskForm/AppAskForm.vue @@ -0,0 +1,113 @@ + + + + + diff --git a/project/sass/apps/AppAskForm/components/Add.vue b/project/sass/apps/AppAskForm/components/Add.vue new file mode 100644 index 00000000..f392e4a3 --- /dev/null +++ b/project/sass/apps/AppAskForm/components/Add.vue @@ -0,0 +1,1741 @@ + + + + + diff --git a/project/sass/apps/AppAskForm/components/FormList.vue b/project/sass/apps/AppAskForm/components/FormList.vue new file mode 100644 index 00000000..48c87112 --- /dev/null +++ b/project/sass/apps/AppAskForm/components/FormList.vue @@ -0,0 +1,1081 @@ + + + + + diff --git a/project/sass/apps/AppAskForm/components/Statistics.vue b/project/sass/apps/AppAskForm/components/Statistics.vue new file mode 100644 index 00000000..c6f8f006 --- /dev/null +++ b/project/sass/apps/AppAskForm/components/Statistics.vue @@ -0,0 +1,731 @@ + + + + + diff --git a/project/sass/apps/AppAskForm/components/Template.vue b/project/sass/apps/AppAskForm/components/Template.vue new file mode 100644 index 00000000..ce72f773 --- /dev/null +++ b/project/sass/apps/AppAskForm/components/Template.vue @@ -0,0 +1,283 @@ + + + + + diff --git a/project/sass/apps/AppAskForm/components/config.js b/project/sass/apps/AppAskForm/components/config.js new file mode 100644 index 00000000..9df7bb3b --- /dev/null +++ b/project/sass/apps/AppAskForm/components/config.js @@ -0,0 +1,181 @@ +export const components = [ + { + type: 'options', + tips: '(可重复添加)', + label: '选项', + children: [ + { + type: 'radio', + label: '单选', + fixedLabel: '单选', + value: '', + points: '', + icon: 'iconradio', + isShowPoints: false, + required: true, + hasAnswer: false, + answer: '', + pointType: '0', + pointDict: [ + { + dictName: '此题有唯一答案和分值', + dictValue: '0' + }, + { + dictName: '每个选项都有对应分值', + dictValue: '1' + } + ], + options: [ + { + label: '选项1', + value: '', + point: '', + img: [] + }, + { + label: '选项2', + value: '', + point: '', + img: [] + } + ], + title: '' + }, + { + type: 'checkbox', + label: '多选', + fixedLabel: '多选', + points: '', + icon: 'iconcheck_box', + isShowPoints: false, + required: true, + hasAnswer: false, + answer: [], + value: [], + pointType: '0', + pointDict: [ + { + dictName: '此题有唯一答案和分值', + dictValue: '0' + }, + { + dictName: '每个选项都有对应分值', + dictValue: '1' + }, + { + dictName: '答对几项得几分,答错不得分', + dictValue: '2' + } + ], + options: [ + { + label: '选项1', + value: '', + point: '', + img: [] + }, + { + label: '选项2', + point: '', + value: '', + img: [] + } + ], + title: '' + }, + { + type: 'select', + label: '单下拉框', + fixedLabel: '单下拉框', + value: '', + points: '', + icon: 'iconSelect', + isShowPoints: false, + required: true, + hasAnswer: false, + answer: '', + pointType: '0', + pointDict: [ + { + dictName: '此题有唯一答案和分值', + dictValue: '0' + }, + { + dictName: '每个选项都有对应分值', + dictValue: '1' + } + ], + options: [ + { + label: '选项1', + value: '', + point: '', + img: [] + }, + { + label: '选项2', + value: '', + point: '', + img: [] + } + ], + title: '' + } + ] + }, + { + type: 'input', + tips: '(可重复添加)', + label: '填空', + children: [ + { + type: 'input', + label: '单行填空', + fixedLabel: '单行填空', + value: '', + pointType: '0', + icon: 'icontext_box', + isShowPoints: false, + points: '', + required: true, + hasAnswer: false, + placeholder: '请输入...', + answer: '' + }, + { + type: 'textarea', + label: '多行填空', + fixedLabel: '多行填空', + pointType: '0', + icon: 'icontext_area', + points: '', + isShowPoints: false, + required: true, + hasAnswer: false, + answer: '', + placeholder: '请输入...', + value: '' + } + ] + }, + { + type: 'annex', + tips: '(可重复添加)', + label: '附件', + children: [ + { + type: 'upload', + label: '上传图片', + fixedLabel: '上传图片', + value: '', + icon: 'iconpic', + isShowPoints: false, + points: '', + required: true, + hasAnswer: false, + answer: '' + } + ] + } +]; diff --git a/project/sass/apps/AppConference/AppConference.vue b/project/sass/apps/AppConference/AppConference.vue new file mode 100644 index 00000000..ea72a9fc --- /dev/null +++ b/project/sass/apps/AppConference/AppConference.vue @@ -0,0 +1,101 @@ + + + diff --git a/project/sass/apps/AppConference/addMeeting.vue b/project/sass/apps/AppConference/addMeeting.vue new file mode 100644 index 00000000..a6565760 --- /dev/null +++ b/project/sass/apps/AppConference/addMeeting.vue @@ -0,0 +1,244 @@ + + + diff --git a/project/sass/apps/AppConference/detail.vue b/project/sass/apps/AppConference/detail.vue new file mode 100644 index 00000000..84d5ec8c --- /dev/null +++ b/project/sass/apps/AppConference/detail.vue @@ -0,0 +1,603 @@ + + + diff --git a/project/sass/apps/AppConference/list.vue b/project/sass/apps/AppConference/list.vue new file mode 100644 index 00000000..e81dbbc9 --- /dev/null +++ b/project/sass/apps/AppConference/list.vue @@ -0,0 +1,256 @@ + + + + + diff --git a/project/sass/apps/AppInterview/AppInterview.vue b/project/sass/apps/AppInterview/AppInterview.vue new file mode 100644 index 00000000..0f18d8f6 --- /dev/null +++ b/project/sass/apps/AppInterview/AppInterview.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/project/sass/apps/AppInterview/interviewDetail.vue b/project/sass/apps/AppInterview/interviewDetail.vue new file mode 100644 index 00000000..54fbfeb1 --- /dev/null +++ b/project/sass/apps/AppInterview/interviewDetail.vue @@ -0,0 +1,97 @@ + + + + + diff --git a/project/sass/apps/AppNotification/AppNotification.vue b/project/sass/apps/AppNotification/AppNotification.vue new file mode 100644 index 00000000..f520059f --- /dev/null +++ b/project/sass/apps/AppNotification/AppNotification.vue @@ -0,0 +1,81 @@ + + + diff --git a/project/sass/apps/AppNotification/components/add.vue b/project/sass/apps/AppNotification/components/add.vue new file mode 100644 index 00000000..f1a1ba21 --- /dev/null +++ b/project/sass/apps/AppNotification/components/add.vue @@ -0,0 +1,195 @@ + + + + + diff --git a/project/sass/apps/AppNotification/components/detail.vue b/project/sass/apps/AppNotification/components/detail.vue new file mode 100644 index 00000000..91fd73ef --- /dev/null +++ b/project/sass/apps/AppNotification/components/detail.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/project/sass/apps/AppNotification/components/manageDetail.vue b/project/sass/apps/AppNotification/components/manageDetail.vue new file mode 100644 index 00000000..9854f87d --- /dev/null +++ b/project/sass/apps/AppNotification/components/manageDetail.vue @@ -0,0 +1,211 @@ + + + + + diff --git a/project/sass/apps/AppNotification/components/noticeManage.vue b/project/sass/apps/AppNotification/components/noticeManage.vue new file mode 100644 index 00000000..665d3394 --- /dev/null +++ b/project/sass/apps/AppNotification/components/noticeManage.vue @@ -0,0 +1,265 @@ + + + + + diff --git a/project/sass/apps/AppNotification/components/recentNotice.vue b/project/sass/apps/AppNotification/components/recentNotice.vue new file mode 100644 index 00000000..38a2b391 --- /dev/null +++ b/project/sass/apps/AppNotification/components/recentNotice.vue @@ -0,0 +1,217 @@ + + + + + diff --git a/project/sass/core.import.json b/project/sass/core.import.json new file mode 100644 index 00000000..2a861905 --- /dev/null +++ b/project/sass/core.import.json @@ -0,0 +1,7 @@ +{ + "AppAccount": "账号管理", + "AppDictionary": "数据字典", + "AppQyWxConfig": "企业微信配置", + "AppUserInfo": "个人中心", + "AppRightsManager": "权限管理" +} diff --git a/project/sass/package.json b/project/sass/package.json new file mode 100644 index 00000000..ec4d163b --- /dev/null +++ b/project/sass/package.json @@ -0,0 +1,15 @@ +{ + "name": "dvcp-sass-apps", + "description": "sass版本应用", + "version": "1.0.0", + "main": "dist/dvcp-sass-apps.common.js", + "files": [ + "dist" + ], + "publishConfig": { + "registry": "http://192.168.1.87:4873/" + }, + "dependencies": { + "dvcp-dv-ui": "^2.0.0" + } +} diff --git a/public/assets/country-icon1.svg b/public/assets/country-icon1.svg new file mode 100644 index 00000000..3bac2f87 --- /dev/null +++ b/public/assets/country-icon1.svg @@ -0,0 +1,11 @@ + + + + Icon/Nav/Application备份 3 + Created with Sketch. + + + + + + \ No newline at end of file diff --git a/public/assets/country-icon2.svg b/public/assets/country-icon2.svg new file mode 100644 index 00000000..10f4cf28 --- /dev/null +++ b/public/assets/country-icon2.svg @@ -0,0 +1,10 @@ + + + + Icon/Nav/Application备份 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/public/assets/country-icon3.svg b/public/assets/country-icon3.svg new file mode 100644 index 00000000..f17356b6 --- /dev/null +++ b/public/assets/country-icon3.svg @@ -0,0 +1,10 @@ + + + + Icon/Nav/Application备份 2 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/public/assets/country-icon4.svg b/public/assets/country-icon4.svg new file mode 100644 index 00000000..7445f845 --- /dev/null +++ b/public/assets/country-icon4.svg @@ -0,0 +1,9 @@ + + + + Icon/Nav/Application备份 5 + Created with Sketch. + + + + \ No newline at end of file diff --git a/public/assets/country-icon5.svg b/public/assets/country-icon5.svg new file mode 100644 index 00000000..74feec69 --- /dev/null +++ b/public/assets/country-icon5.svg @@ -0,0 +1,11 @@ + + + + Icon/Nav/Application备份 6 + Created with Sketch. + + + + + + \ No newline at end of file diff --git a/public/assets/country-icon6.svg b/public/assets/country-icon6.svg new file mode 100644 index 00000000..19f58802 --- /dev/null +++ b/public/assets/country-icon6.svg @@ -0,0 +1,13 @@ + + + + Icon/Nav/Application备份 4 + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/public/assets/upload-icon.png b/public/assets/upload-icon.png new file mode 100644 index 00000000..e5ff16a0 Binary files /dev/null and b/public/assets/upload-icon.png differ diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 00000000..df36fcfb Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/index.html b/public/index.html new file mode 100644 index 00000000..6955e48c --- /dev/null +++ b/public/index.html @@ -0,0 +1,19 @@ + + + + + + + + 村务云应用库-展示页面 + + + + + +
+ + + diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 00000000..6c2853db --- /dev/null +++ b/vue.config.js @@ -0,0 +1,93 @@ +const path = require('path'); +module.exports = { + lintOnSave: false, + productionSourceMap: false, + // css: { + // loaderOptions: { + // sass: {data: `@import './lib/app-common.scss';`} + // } + // }, + //多页面配置 + pages: { + index: { + entry: 'examples/main.js', + template: 'public/index.html', + filename: 'index.html' + } + }, + transpileDependencies: [/node_modules[/\\]dvcp-dv-ui/, /node_modules[/\\]dvcp-ui(.+)utils.js/], + chainWebpack: (config) => { + //webpack配置 packages为组件源码根目录 增加packages进入编译 + // config.module + // .rule('images') + // .use('image-webpack-loader') + // .loader('image-webpack-loader') + // .options({bypassOnDebug: true}) + // .end(); + config.module + .rule('js') + .include.add(path.resolve(__dirname, 'packages')) + .add(path.resolve(__dirname, 'subPackages')) + .add(path.resolve(__dirname, 'core')) + .add(path.resolve(__dirname, 'project')) + .add(path.resolve(__dirname, 'oms')) + .add(path.resolve(__dirname, 'node_modules/dvcp-dv-ui')) + .add(path.resolve(__dirname, 'node_modules/dvcp-ui')) + .end() + .use('babel') + .loader('babel-loader') + .tap((options) => options); + if (process.env.NODE_ENV == 'production') { + //生产环境,打包压缩js + config.plugin('uglifyjs-plugin').use('uglifyjs-webpack-plugin', [ + { + include: /\/(packages|subPackages|core)/, + uglifyOptions: { + compress: { + drop_debugger: true, // console + drop_console: true, + pure_funcs: ['console.log'] // 移除console + }, + warnings: false + }, + sourceMap: false, + parallel: true + } + ]); + } + }, + devServer: { + host: '0.0.0.0', //主机地址 + port: 8666, //端口号 + open: true, + // devtool: 'cheap-module-eval-source-map', + proxy: { + //设置代理,可解决跨5 + '/lan': { + // target: "https://gsgate.cunwuyun.cn/", + target: 'http://192.168.1.87:9000/', + // target: "http://192.168.1.113:9998/", + // target: "http://192.168.1.245:9000/", + // target: "http://192.168.1.34:19898/", + changeOrigin: true, + pathRewrite: { + //地址重写 + '^/lan': '/' + } + }, + '/oms': { + target: 'http://192.168.1.87:19898', + changeOrigin: true, + pathRewrite: { + //地址重写 + '^/oms/app/': '/', + '^/oms/auth/': '/', + '^/oms/admin/': '/', + '^/oms': '/' + } + } + }, + disableHostCheck: true + } +}; +