+
+
@@ -400,7 +374,7 @@
查看更多数据>>
-
+
@@ -425,18 +399,17 @@
diff --git a/src/views/entLogin.vue b/src/views/entLogin.vue
new file mode 100644
index 0000000..0dd908b
--- /dev/null
+++ b/src/views/entLogin.vue
@@ -0,0 +1,317 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 记住密码
+
+
+ 登 录
+ 登 录 中...
+
+
+ 政务通统一身份认证登录
+
+
+
+ 立即注册
+
+
+
+
+
+ 企业登录
+ 登 录 中...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/index.vue b/src/views/index.vue
index 3efe4a8..36ec5cd 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -16,4 +16,4 @@ export default {
};
-
+
\ No newline at end of file
diff --git a/src/views/login.vue b/src/views/login.vue
index 7745c15..2b43296 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -111,7 +111,7 @@
-->
-
+
diff --git a/src/views/onlineDeclaration/components/Parser.vue b/src/views/onlineDeclaration/components/Parser.vue
deleted file mode 100644
index f8f4cb1..0000000
--- a/src/views/onlineDeclaration/components/Parser.vue
+++ /dev/null
@@ -1,186 +0,0 @@
-
diff --git a/src/views/onlineDeclaration/components/render/package.json b/src/views/onlineDeclaration/components/render/package.json
deleted file mode 100644
index 96bffcf..0000000
--- a/src/views/onlineDeclaration/components/render/package.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "name": "form-gen-render",
- "version": "1.0.4",
- "description": "表单核心render",
- "main": "lib/form-gen-render.umd.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/JakHuang/form-generator.git"
- },
- "author": "jakhuang",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/JakHuang/form-generator/issues"
- },
- "homepage": "https://github.com/JakHuang/form-generator#readme"
-}
diff --git a/src/views/onlineDeclaration/components/render/render.js b/src/views/onlineDeclaration/components/render/render.js
deleted file mode 100644
index f3325dc..0000000
--- a/src/views/onlineDeclaration/components/render/render.js
+++ /dev/null
@@ -1,122 +0,0 @@
-import { deepClone } from '@/utils/index'
-
-const componentChild = {}
-/**
- * 将./slots中的文件挂载到对象componentChild上
- * 文件名为key,对应JSON配置中的__config__.tag
- * 文件内容为value,解析JSON配置中的__slot__
- */
-const slotsFiles = require.context('./slots', false, /\.js$/)
-const keys = slotsFiles.keys() || []
-keys.forEach(key => {
- const tag = key.replace(/^\.\/(.*)\.\w+$/, '$1')
- const value = slotsFiles(key).default
- componentChild[tag] = value
-})
-
-function vModel(dataObject, defaultValue) {
- dataObject.props.value = defaultValue
-
- dataObject.on.input = val => {
- this.$emit('input', val)
- }
-}
-
-function mountSlotFiles(h, confClone, children) {
- const childObjs = componentChild[confClone.__config__.tag]
- if (childObjs) {
- Object.keys(childObjs).forEach(key => {
- const childFunc = childObjs[key]
- if (confClone.__slot__ && confClone.__slot__[key]) {
- children.push(childFunc(h, confClone, key))
- }
- })
- }
-}
-
-function emitEvents(confClone) {
- ['on', 'nativeOn'].forEach(attr => {
- const eventKeyList = Object.keys(confClone[attr] || {})
- eventKeyList.forEach(key => {
- const val = confClone[attr][key]
- if (typeof val === 'string') {
- confClone[attr][key] = event => this.$emit(val, event)
- }
- })
- })
-}
-
-function buildDataObject(confClone, dataObject) {
- Object.keys(confClone).forEach(key => {
- const val = confClone[key]
- if (key === '__vModel__') {
- vModel.call(this, dataObject, confClone.__config__.defaultValue)
- } else if (dataObject[key] !== undefined) {
- if (dataObject[key] === null
- || dataObject[key] instanceof RegExp
- || ['boolean', 'string', 'number', 'function'].includes(typeof dataObject[key])) {
- dataObject[key] = val
- } else if (Array.isArray(dataObject[key])) {
- dataObject[key] = [...dataObject[key], ...val]
- } else {
- dataObject[key] = { ...dataObject[key], ...val }
- }
- } else {
- dataObject.attrs[key] = val
- }
- })
-
- // 清理属性
- clearAttrs(dataObject)
-}
-
-function clearAttrs(dataObject) {
- delete dataObject.attrs.__config__
- delete dataObject.attrs.__slot__
- delete dataObject.attrs.__methods__
-}
-
-function makeDataObject() {
- // 深入数据对象:
- // https://cn.vuejs.org/v2/guide/render-function.html#%E6%B7%B1%E5%85%A5%E6%95%B0%E6%8D%AE%E5%AF%B9%E8%B1%A1
- return {
- class: {},
- attrs: {},
- props: {},
- domProps: {},
- nativeOn: {},
- on: {},
- style: {},
- directives: [],
- scopedSlots: {},
- slot: null,
- key: null,
- ref: null,
- refInFor: true
- }
-}
-
-export default {
- props: {
- conf: {
- type: Object,
- required: true
- }
- },
- render(h) {
- const dataObject = makeDataObject()
- const confClone = deepClone(this.conf)
- const children = this.$slots.default || []
-
- // 如果slots文件夹存在与当前tag同名的文件,则执行文件中的代码
- mountSlotFiles.call(this, h, confClone, children)
-
- // 将字符串类型的事件,发送为消息
- emitEvents.call(this, confClone)
-
- // 将json表单配置转化为vue render可以识别的 “数据对象(dataObject)”
- buildDataObject.call(this, confClone, dataObject)
-
- return h(this.conf.__config__.tag, dataObject, children)
- }
-}
diff --git a/src/views/onlineDeclaration/components/render/slots/el-button.js b/src/views/onlineDeclaration/components/render/slots/el-button.js
deleted file mode 100644
index a2d9684..0000000
--- a/src/views/onlineDeclaration/components/render/slots/el-button.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default {
- default(h, conf, key) {
- return conf.__slot__[key]
- }
-}
diff --git a/src/views/onlineDeclaration/components/render/slots/el-checkbox-group.js b/src/views/onlineDeclaration/components/render/slots/el-checkbox-group.js
deleted file mode 100644
index 0a85c8e..0000000
--- a/src/views/onlineDeclaration/components/render/slots/el-checkbox-group.js
+++ /dev/null
@@ -1,13 +0,0 @@
-export default {
- options(h, conf, key) {
- const list = []
- conf.__slot__.options.forEach(item => {
- if (conf.__config__.optionType === 'button') {
- list.push(
{item.label})
- } else {
- list.push(
{item.label})
- }
- })
- return list
- }
-}
diff --git a/src/views/onlineDeclaration/components/render/slots/el-input.js b/src/views/onlineDeclaration/components/render/slots/el-input.js
deleted file mode 100644
index 8bd02db..0000000
--- a/src/views/onlineDeclaration/components/render/slots/el-input.js
+++ /dev/null
@@ -1,8 +0,0 @@
-export default {
- prepend(h, conf, key) {
- return
{conf.__slot__[key]}
- },
- append(h, conf, key) {
- return
{conf.__slot__[key]}
- }
-}
diff --git a/src/views/onlineDeclaration/components/render/slots/el-radio-group.js b/src/views/onlineDeclaration/components/render/slots/el-radio-group.js
deleted file mode 100644
index c78506f..0000000
--- a/src/views/onlineDeclaration/components/render/slots/el-radio-group.js
+++ /dev/null
@@ -1,13 +0,0 @@
-export default {
- options(h, conf, key) {
- const list = []
- conf.__slot__.options.forEach(item => {
- if (conf.__config__.optionType === 'button') {
- list.push(
{item.label})
- } else {
- list.push(
{item.label})
- }
- })
- return list
- }
-}
diff --git a/src/views/onlineDeclaration/components/render/slots/el-select.js b/src/views/onlineDeclaration/components/render/slots/el-select.js
deleted file mode 100644
index cbf4a20..0000000
--- a/src/views/onlineDeclaration/components/render/slots/el-select.js
+++ /dev/null
@@ -1,9 +0,0 @@
-export default {
- options(h, conf, key) {
- const list = []
- conf.__slot__.options.forEach(item => {
- list.push(
)
- })
- return list
- }
-}
diff --git a/src/views/onlineDeclaration/components/render/slots/el-upload.js b/src/views/onlineDeclaration/components/render/slots/el-upload.js
deleted file mode 100644
index 8ce3c35..0000000
--- a/src/views/onlineDeclaration/components/render/slots/el-upload.js
+++ /dev/null
@@ -1,17 +0,0 @@
-export default {
- 'list-type': (h, conf, key) => {
- const list = []
- const config = conf.__config__
- if (conf['list-type'] === 'picture-card') {
- list.push(
)
- } else {
- list.push(
{config.buttonText})
- }
- if (config.showTip) {
- list.push(
-
只能上传不超过 {config.fileSize}{config.sizeUnit} 的{conf.accept}文件
- )
- }
- return list
- }
-}
diff --git a/src/views/onlineDeclaration/declarationManagement/index.vue b/src/views/onlineDeclaration/declarationManagement/index.vue
index 19f9a72..365b437 100644
--- a/src/views/onlineDeclaration/declarationManagement/index.vue
+++ b/src/views/onlineDeclaration/declarationManagement/index.vue
@@ -65,7 +65,7 @@
>
- {{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}
+ {{(queryParams.current - 1) * queryParams.size + scope.$index + 1}}
@@ -114,8 +114,8 @@
id="L-pagination"
v-show="total>0"
:total="total"
- :page.sync="queryParams.pageNum"
- :limit.sync="queryParams.pageSize"
+ :page.sync="queryParams.current"
+ :limit.sync="queryParams.size"
@pagination="getList"
/>
@@ -188,8 +188,8 @@ export default {
queryParams: {
menuName: undefined,
visible: undefined,
- ageNum: 1,
- pageSize: 20,
+ current: 1,
+ size: 10,
},
enterpriseId: '',
templateDataList: [],
@@ -234,8 +234,8 @@ export default {
getList() {
this.loading = true;
listInfo(this.queryParams).then(response => {
- this.InfoList = response.rows;
- this.total = response.total
+ this.InfoList = response.data.records;
+ this.total = response.data.total
this.loading = false;
});
},
diff --git a/src/views/onlineDeclaration/template/index.vue b/src/views/onlineDeclaration/template/index.vue
index 0dac5f9..59d54be 100644
--- a/src/views/onlineDeclaration/template/index.vue
+++ b/src/views/onlineDeclaration/template/index.vue
@@ -35,7 +35,7 @@
- 创建新模板
+ 创建新模板
@@ -100,7 +100,7 @@
{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
-
+
下载表单
+ 流程设计
+ 表单自定义
@@ -123,15 +136,24 @@
:limit.sync="queryParams.size"
@pagination="getList"
/>
+
+
+