-
@@ -29,6 +29,10 @@ export default {
placeholder: {
type: String,
default: '请输入内容...'
+ },
+ disabled: {
+ type: Boolean,
+ default: false
}
},
data() {
@@ -47,11 +51,11 @@ export default {
[{ align: [] }],
[{ direction: "rtl" }],
["clean"],
- ["link", "image"],
+ // ["link", "image"],
]
},
theme: 'snow',
- placeholder: this.placeholder
+ placeholder: this.placeholder,
}
}
},
diff --git a/src/components/SizeSelect/index.vue b/src/components/SizeSelect/index.vue
new file mode 100644
index 0000000..86f45c3
--- /dev/null
+++ b/src/components/SizeSelect/index.vue
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+ {{
+ item.label }}
+
+
+
+
+
+
diff --git a/src/components/VisualPortal/CommonFunc/index.vue b/src/components/VisualPortal/CommonFunc/index.vue
new file mode 100644
index 0000000..1fcb3ba
--- /dev/null
+++ b/src/components/VisualPortal/CommonFunc/index.vue
@@ -0,0 +1,66 @@
+
+
+
+ {{title}}
+
+
+
+
+ {{item.fullName}}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/VisualPortal/DataBoard/index.vue b/src/components/VisualPortal/DataBoard/index.vue
new file mode 100644
index 0000000..7580f93
--- /dev/null
+++ b/src/components/VisualPortal/DataBoard/index.vue
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+
+
{{item.num}}
+
{{item.fullName}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/VisualPortal/HAnnularChart/index.vue b/src/components/VisualPortal/HAnnularChart/index.vue
new file mode 100644
index 0000000..91c9b57
--- /dev/null
+++ b/src/components/VisualPortal/HAnnularChart/index.vue
@@ -0,0 +1,20 @@
+
+
+
+ {{title}}
+
+
+
+
+

+
暂无数据
+
+
+
+
+
diff --git a/src/components/VisualPortal/HAreaChart/index.vue b/src/components/VisualPortal/HAreaChart/index.vue
new file mode 100644
index 0000000..91c9b57
--- /dev/null
+++ b/src/components/VisualPortal/HAreaChart/index.vue
@@ -0,0 +1,20 @@
+
+
+
+ {{title}}
+
+
+
+
+

+
暂无数据
+
+
+
+
+
diff --git a/src/components/VisualPortal/HBarChart/index.vue b/src/components/VisualPortal/HBarChart/index.vue
new file mode 100644
index 0000000..ea50dc1
--- /dev/null
+++ b/src/components/VisualPortal/HBarChart/index.vue
@@ -0,0 +1,59 @@
+
+
+
+ {{title}}
+
+
+
+
+

+
暂无数据
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/VisualPortal/HEmail/index.vue b/src/components/VisualPortal/HEmail/index.vue
new file mode 100644
index 0000000..3511756
--- /dev/null
+++ b/src/components/VisualPortal/HEmail/index.vue
@@ -0,0 +1,42 @@
+
+
+
+ {{title}}
+
+
+
+
+ {{item.fullName}}
+ {{item.creatorTime | toDateText()}}
+
+
+
+

+
暂无数据
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/VisualPortal/HLineChart/index.vue b/src/components/VisualPortal/HLineChart/index.vue
new file mode 100644
index 0000000..8422188
--- /dev/null
+++ b/src/components/VisualPortal/HLineChart/index.vue
@@ -0,0 +1,20 @@
+
+
+
+ {{title}}
+
+
+
+
+

+
暂无数据
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/VisualPortal/HNotice/index.vue b/src/components/VisualPortal/HNotice/index.vue
new file mode 100644
index 0000000..61ceb71
--- /dev/null
+++ b/src/components/VisualPortal/HNotice/index.vue
@@ -0,0 +1,42 @@
+
+
+
+ {{title}}
+
+
+
+
+ {{item.fullName}}
+ {{item.creatorTime | toDate('yyyy-MM-dd')}}
+
+
+
+

+
暂无数据
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/VisualPortal/HPieChart/index.vue b/src/components/VisualPortal/HPieChart/index.vue
new file mode 100644
index 0000000..8422188
--- /dev/null
+++ b/src/components/VisualPortal/HPieChart/index.vue
@@ -0,0 +1,20 @@
+
+
+
+ {{title}}
+
+
+
+
+

+
暂无数据
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/VisualPortal/HRadarChart/index.vue b/src/components/VisualPortal/HRadarChart/index.vue
new file mode 100644
index 0000000..8422188
--- /dev/null
+++ b/src/components/VisualPortal/HRadarChart/index.vue
@@ -0,0 +1,20 @@
+
+
+
+ {{title}}
+
+
+
+
+

+
暂无数据
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/VisualPortal/Layout/index.vue b/src/components/VisualPortal/Layout/index.vue
new file mode 100644
index 0000000..4a3b7f2
--- /dev/null
+++ b/src/components/VisualPortal/Layout/index.vue
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

+
暂无数据
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/VisualPortal/Todo/index.vue b/src/components/VisualPortal/Todo/index.vue
new file mode 100644
index 0000000..ff070f4
--- /dev/null
+++ b/src/components/VisualPortal/Todo/index.vue
@@ -0,0 +1,109 @@
+
+
+
+ {{title}}
+
+
+
+
+
+
{{toBeReviewed}}
+
待我审核
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/VisualPortal/TodoList/index.vue b/src/components/VisualPortal/TodoList/index.vue
new file mode 100644
index 0000000..ad69765
--- /dev/null
+++ b/src/components/VisualPortal/TodoList/index.vue
@@ -0,0 +1,42 @@
+
+
+
+ {{title}}
+
+
+
+
+ {{item.fullName}}
+ {{item.creatorTime | toDate('yyyy-MM-dd')}}
+
+
+
+

+
暂无数据
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/VisualPortal/index.js b/src/components/VisualPortal/index.js
new file mode 100644
index 0000000..7c06492
--- /dev/null
+++ b/src/components/VisualPortal/index.js
@@ -0,0 +1,13 @@
+// 门户设计专供
+export { default as Todo } from '@/components/VisualPortal/Todo'
+export { default as CommonFunc } from '@/components/VisualPortal/CommonFunc'
+export { default as TodoList } from '@/components/VisualPortal/TodoList'
+export { default as HNotice } from '@/components/VisualPortal/HNotice'
+export { default as HEmail } from '@/components/VisualPortal/HEmail'
+export { default as DataBoard } from '@/components/VisualPortal/DataBoard'
+export { default as HBarChart } from '@/components/VisualPortal/HBarChart'
+export { default as HAnnularChart } from '@/components/VisualPortal/HAnnularChart'
+export { default as HAreaChart } from '@/components/VisualPortal/HAreaChart'
+export { default as HLineChart } from '@/components/VisualPortal/HLineChart'
+export { default as HPieChart } from '@/components/VisualPortal/HPieChart'
+export { default as HRadarChart } from '@/components/VisualPortal/HRadarChart'
\ No newline at end of file
diff --git a/src/components/VisualPortal/mixins/index.js b/src/components/VisualPortal/mixins/index.js
new file mode 100644
index 0000000..124fff6
--- /dev/null
+++ b/src/components/VisualPortal/mixins/index.js
@@ -0,0 +1,77 @@
+import echarts from 'echarts'
+import resize from '@/components/Charts/mixins/resize'
+import { previewDataInterface } from '@/api/systemData/dataInterface'
+
+export default {
+ mixins: [resize],
+ props: {
+ title: { type: String, default: '' },
+ dataType: { type: String, default: 'static' },
+ propsApi: { type: String, default: '' },
+ option: { type: Object, default: () => {} }
+ },
+ data() {
+ return {
+ chart: null,
+ currOption: {},
+ isEmpty: false
+ }
+ },
+ mounted() {
+ if (this.dataType === 'dynamic') {
+ if (!this.propsApi) return
+ previewDataInterface(this.propsApi).then(res => {
+ this.currOption = res.data
+ this.resetChart()
+ })
+ } else {
+ this.currOption = this.option
+ this.initChart()
+ }
+ },
+ watch: {
+ option: {
+ handler(val) {
+ this.currOption = val
+ this.resetChart()
+ },
+ deep: true
+ },
+ dataType(val) {
+ if (val !== 'dynamic') {
+ this.currOption = this.option
+ this.resetChart()
+ }
+ },
+ propsApi(val) {
+ if (this.dataType === 'static') return
+ if (!val) return
+ previewDataInterface(val).then(res => {
+ this.currOption = res.data
+ this.resetChart()
+ })
+ }
+ },
+ methods: {
+ initChart() {
+ this.chart = echarts.init(this.$refs.chart)
+ this.chart.setOption(this.currOption)
+ setTimeout(() => {
+ this.$nextTick(() => {
+ this.chart.resize();
+ })
+ }, 50);
+ },
+ resetChart() {
+ this.isEmpty = JSON.stringify(this.currOption) === "{}"
+ this.chart && this.chart.dispose()
+ this.chart = null
+ if (!this.isEmpty) this.initChart()
+ }
+ },
+ beforeDestroy() {
+ if (!this.chart) return
+ this.chart.dispose()
+ this.chart = null
+ }
+}
\ No newline at end of file
diff --git a/src/components/index.js b/src/components/index.js
index 40cc8fc..5867ebf 100644
--- a/src/components/index.js
+++ b/src/components/index.js
@@ -12,6 +12,28 @@ import Screenfull from '@/components/Screenfull'
import NCCTreeSelect from '@/components/NCC-treeSelect'
import NCCAddress from '@/components/Generator/components/Address'
import SelsctLoad from '@/components/SelsctLoad'
+import topOperation from '@/components/NCC-topOperation/index'
+import tableOperation from '@/components/NCC-tableOperation'
+import UserBox from '@/components/NCC-userBox'
+import ColumnSettings from '@/components/ColumnSettings'
+import UserSelect from '@/components/NCC-userSelect'
+import uploadBtn from '@/components/NCC-uploadBtn'
+// 代码生成器专供
+import NCCText from '@/components/Generator/components/NCCText'
+import NCCUploadImg from '@/components/Generator/components/Upload/UploadImg'
+import PopupSelect from '@/components/Generator/components/PopupSelect'
+import NumRange from '@/components/Generator/components/NumRange'
+import ComSelect from '@/components/Generator/components/ComSelect'
+import PosSelect from '@/components/Generator/components/PosSelect'
+import DicSelect from '@/components/Generator/components/DicSelect'
+import BillRule from '@/components/Generator/components/BillRule'
+import NCCInputTable from '@/components/Generator/components/InputTable'
+import GroupTitle from '@/components/Generator/components/GroupTitle'
+import RelationForm from '@/components/Generator/components/RelationForm'
+import RelationFormAttr from '@/components/Generator/components/RelationFormAttr'
+import RelationFlow from '@/components/Generator/components/RelationFlow'
+import RelationFlowAttr from '@/components/Generator/components/RelationFlowAttr'
+import Calculate from '@/components/Generator/components/Calculate'
export default {
install(Vue, options) {
@@ -22,13 +44,34 @@ export default {
Vue.component('InfoEditRecord', InfoEditRecord)
Vue.component('Pagination', Pagination)
Vue.component('NCCTable', NCCTable)
+ Vue.component('SelsctLoad', SelsctLoad)
+ Vue.component('NCCTreeSelect', NCCTreeSelect)
+ Vue.component('topOpts', topOperation)
+ Vue.component('tableOpts', tableOperation)
+ Vue.component('uploadBtn', uploadBtn)
+ Vue.component('UserBox', UserBox)
+ Vue.component('NCCText', NCCText)
Vue.component('NCCUploadFz', NCCUploadFz)
- Vue.component('NCCQuill', NCCQuill)
+ Vue.component('NCCUploadImg', NCCUploadImg)
+ Vue.component('PopupSelect', PopupSelect)
+ Vue.component('NumRange', NumRange)
+ Vue.component('ComSelect', ComSelect)
Vue.component('DepSelect', DepSelect)
- Vue.component('NCCTreeSelect', NCCTreeSelect)
- Vue.component('Screenfull', Screenfull)
+ Vue.component('PosSelect', PosSelect)
+ Vue.component('UserSelect', UserSelect)
+ Vue.component('DicSelect', DicSelect)
+ Vue.component('BillRule', BillRule)
+ Vue.component('NCCInputTable', NCCInputTable)
Vue.component('NCCAddress', NCCAddress)
- Vue.component('SelsctLoad', SelsctLoad)
+ Vue.component('GroupTitle', GroupTitle)
+ Vue.component('RelationForm', RelationForm)
+ Vue.component('RelationFormAttr', RelationFormAttr)
+ Vue.component('RelationFlow', RelationFlow)
+ Vue.component('RelationFlowAttr', RelationFlowAttr)
+ Vue.component('Calculate', Calculate)
+ Vue.component('NCCQuill', NCCQuill)
+ Vue.component('Screenfull', Screenfull)
+ Vue.component('ColumnSettings', ColumnSettings)
}
}
\ No newline at end of file
diff --git a/src/views/baseSpecialAction/dynamicModel/list/Form.vue b/src/views/baseSpecialAction/dynamicModel/list/Form.vue
index 66866c1..31069c8 100644
--- a/src/views/baseSpecialAction/dynamicModel/list/Form.vue
+++ b/src/views/baseSpecialAction/dynamicModel/list/Form.vue
@@ -51,6 +51,7 @@ import Parser from '@/components/Generator/parser/Parser'
import ParserMixin from '@/components/Generator/parser/mixin'
import PrintBrowse from '@/components/PrintBrowse'
import { deepClone } from '@/utils'
+import request from "@/utils/request";
export default {
components: { Parser, PrintBrowse },
mixins: [ParserMixin],
@@ -69,6 +70,7 @@ export default {
useFormPermission: false,
printBrowseVisible: false,
formOperates: [],
+ taskId: '',
}
},
methods: {
@@ -79,12 +81,13 @@ export default {
if (this.isPreview) return this.$message({ message: '功能预览不支持打印', type: 'warning' })
this.printBrowseVisible = true
},
- init(formConf, modelId, id, isPreview, useFormPermission) {
+ init(formConf, modelId, id, isPreview, useFormPermission, taskId) {
this.formConf = deepClone(JSON.parse(formConf))
this.modelId = modelId
this.isPreview = isPreview
this.useFormPermission = useFormPermission
this.dataForm.id = id || ''
+ this.taskId = taskId
this.getFormOperates()
this.loading = true
this.$nextTick(() => {
@@ -150,20 +153,33 @@ export default {
const formMethod = this.dataForm.id ? updateModel : createModel
formMethod(this.modelId, this.dataForm).then(res => {
console.info(res);
- alert(res.data.Id);
+ let itemId = !this.dataForm.id ? res.data.Id : '';
this.$message({
message: res.msg,
type: 'success',
duration: 1500,
- onClose: () => {
+ onClose: async () => {
if (callback && typeof callback === "function") callback()
this.visible = false
this.btnLoading = false
+ !this.dataForm.id && this.toSaveItemid(itemId)
this.$emit('refreshDataList', true)
}
})
}).catch(() => { this.btnLoading = false })
},
+ async toSaveItemid(itemId) {
+ console.log(11);
+ let res = await request({
+ url: '/Extend/BaseSpecialActionInfo/UpdateState',
+ method: "PUT",
+ data: {
+ id: this.taskId,
+ itemId
+ },
+ })
+ return res
+ },
dataFormSubmit() {
if (this.isPreview) return this.$message({ message: '功能预览不支持数据保存', type: 'warning' })
this.$refs.dynamicForm && this.$refs.dynamicForm.submitForm()
diff --git a/src/views/baseSpecialAction/index.vue b/src/views/baseSpecialAction/index.vue
index 30783cd..c36a424 100644
--- a/src/views/baseSpecialAction/index.vue
+++ b/src/views/baseSpecialAction/index.vue
@@ -49,10 +49,10 @@
-
+
- 发布任务
- 行动情况
+ 发布任务
+ 处理情况
diff --git a/src/views/baseSpecialhandle/index.vue b/src/views/baseSpecialhandle/index.vue
index a16a8cd..d948ff2 100644
--- a/src/views/baseSpecialhandle/index.vue
+++ b/src/views/baseSpecialhandle/index.vue
@@ -39,7 +39,8 @@
show-overflow-tooltip />
- 处理
+ {{scope.row.state == '已填写' ? '修改' : '处理'}}
+
@@ -49,7 +50,7 @@
-