-
转办
+
+
+
+ 同意
+ 驳回
+ 转办
+
+
@@ -89,15 +89,18 @@
审批
-
+
-
转办
-
同意
-
驳回
+
+
+ 同意
+ 驳回
+ 转办
+
@@ -107,14 +110,14 @@
-
-
+ -->
@@ -169,6 +172,7 @@ export default {
this.$http.get('/sys/user/info').then(({ data: res }) => {
res.data.roleIdList.map(val => {
this.$http.get('/sys/role/' + val).then(role => {
+ console.log('role', role)
if (role.data.data.name === '流程管理员') {
this.taskEntrustFlag = true
}
@@ -278,7 +282,7 @@ export default {
.get(
`/act/task/getTaskVariables?${params}&variableName=allowEntrust`
).then(entrust => {
- if (entrust.data.data.allowEntrust === true) {
+ if (entrust.data.data && entrust.data.data.allowEntrust === true) {
this.taskEntrustFlag2 = true
if (this.taskEntrustFlag && this.taskEntrustFlag2) {
this.$alert('当前审核部门为' + res.data.tAbilityApplicationDTOList[0].resourceOwnerDept.name + ',该部门未配置审核人,请联系运维工程师配置完成后进行流程转办!', '流程提醒', {
@@ -410,45 +414,47 @@ export default {
},
// 同意与退回
agreeOrNot: debounce(
- function (data) {
- if (this.dialogType === '同意') {
- if (this.input !== '') {
- console.log('this.dataForm', this.dataForm)
- const params = qs.stringify({
- taskId: this.dataForm.taskId,
- comment: this.input
- })
- console.log(params)
- this.$http
- .post('/act/task/complete?' + params)
- .then(({ data: res }) => {
- if (res.code !== 0) {
- this.$message.error(res.msg)
- if (this.callbacks.taskHandleErrorCallback) {
- this.callbacks.taskHandleErrorCallback(res)
- }
- return
+ function (data, type) {
+ // console.log('datadata',data);
+ // console.log('tttttt',type);
+ // if (type === '同意') {
+ if (this.input !== '') {
+ console.log('this.dataForm', this.dataForm)
+ const params = qs.stringify({
+ taskId: this.dataForm.taskId,
+ comment: this.input || '同意'
+ })
+ console.log(params)
+ this.$http
+ .post('/act/task/complete?' + params)
+ .then(({ data: res }) => {
+ if (res.code !== 0) {
+ this.$message.error(res.msg)
+ if (this.callbacks.taskHandleErrorCallback) {
+ this.callbacks.taskHandleErrorCallback(res)
}
- bus.$emit('competencyApplicationInit')
- this.$message({
- message: this.$t('prompt.success'),
- type: 'success',
- duration: 500,
- onClose: () => {
- this.visible = false
- this.dialogVisible = false
- if (this.callbacks.taskHandleSuccessCallback) {
- this.callbacks.taskHandleSuccessCallback(res)
- }
+ return
+ }
+ bus.$emit('competencyApplicationInit')
+ this.$message({
+ message: this.$t('prompt.success'),
+ type: 'success',
+ duration: 500,
+ onClose: () => {
+ this.visible = false
+ this.dialogVisible = false
+ if (this.callbacks.taskHandleSuccessCallback) {
+ this.callbacks.taskHandleSuccessCallback(res)
}
- })
+ }
})
- .catch(() => { })
- this.tabRemoveHandle(data)
- } else {
- this.$message.error('请输入审批意见!')
- }
- } else if (this.dialogType === '驳回') {
+ })
+ .catch(() => { })
+ this.tabRemoveHandle(data)
+ // } else {
+ // this.$message.error('请输入审批意见!')
+ // }
+ } else if (type === '驳回') {
if (this.input !== '') {
const params = qs.stringify({
taskId: this.dataForm.taskId,
@@ -670,7 +676,7 @@ export default {
::v-deep .agreeOr > div {
display: flex;
- align-items: center;
+ //align-items: center;
.el-input {
margin-right: 10px;
@@ -737,4 +743,99 @@ export default {
.blueInput {
width: 55px;
}
+.approvalOperation{
+ display: flex;
+ flex-direction: column;
+ .contentOperation{
+ display: flex;
+ flex-direction: row;
+ margin-bottom: 10px;
+ .el-input{
+ margin-left: 0px;
+ width: 500px;
+ height: 32px;
+ ::v-deep.el-input__inner{
+ height: 32px;
+ }
+ }
+ .agreeButton{
+ display: inline-block;
+ line-height: 8px;
+ width:80px;
+ height: 32px;
+ white-space: nowrap;
+ cursor: pointer;
+ color: #ffffff;
+ -webkit-appearance: none;
+ text-align: center;
+ -webkit-box-sizing: border-box;
+ box-sizing: border-box;
+ outline: 0;
+ margin: 0;
+ -webkit-transition: .1s;
+ transition: .1s;
+ font-weight: 500;
+ //padding: 12px 20px;
+ font-size: 14px;
+ border-radius: 4px;
+ background-color: #0058e1;
+ }
+ .agreeButton:hover{
+ background: #65a5f9;
+ border-color: #65a5f9;
+ color: #FFF;
+ }
+ .rejectButton{
+ display: inline-block;
+ line-height: 8px;
+ width:80px;
+ height: 32px;
+ white-space: nowrap;
+ cursor: pointer;
+ color: #F56C6C;
+ -webkit-appearance: none;
+ text-align: center;
+ -webkit-box-sizing: border-box;
+ box-sizing: border-box;
+ outline: 0;
+ margin: 0;
+ -webkit-transition: .1s;
+ transition: .1s;
+ font-weight: 500;
+ //padding: 12px 20px;
+ font-size: 14px;
+ border-radius: 4px;
+ border-color: #F56C6C;
+ margin-left: 12px;
+ }
+ .rejectButton:hover{
+ background-color: #F56C6C;
+ border-color: #F56C6C;
+ color: #ffffff;
+ }
+ .transferButton{
+ display: inline-block;
+ line-height: 8px;
+ width:80px;
+ height: 32px;
+ white-space: nowrap;
+ cursor: pointer;
+ color: #0058e1;
+ -webkit-appearance: none;
+ text-align: center;
+ -webkit-box-sizing: border-box;
+ box-sizing: border-box;
+ outline: 0;
+ margin: 0;
+ -webkit-transition: .1s;
+ transition: .1s;
+ font-weight: 500;
+ //padding: 12px 20px;
+ font-size: 14px;
+ border-radius: 4px;
+ border-color: #0058e1;
+ margin-left: 12px;
+ }
+ }
+}
diff --git a/back/src/views/modules/notice/notice-user.vue b/back/src/views/modules/notice/notice-user.vue
index 09aff9e0..765ee20e 100644
--- a/back/src/views/modules/notice/notice-user.vue
+++ b/back/src/views/modules/notice/notice-user.vue
@@ -6,7 +6,7 @@
- {{ $t('query') }}
+ {{ $t('query') }}
diff --git a/back/src/views/modules/notice/notice.vue b/back/src/views/modules/notice/notice.vue
index a89c69f8..4e6d10ed 100644
--- a/back/src/views/modules/notice/notice.vue
+++ b/back/src/views/modules/notice/notice.vue
@@ -6,13 +6,13 @@
- {{ $t('query') }}
+ {{ $t('query') }}
{{ $t('add') }}
- {{ $t('deleteBatch') }}
+ {{ $t('deleteBatch') }}
{{ $t('oss.upload') }}
- {{ $t('deleteBatch') }}
+ {{ $t('deleteBatch') }}
- {{ $t('query') }}
+ {{ $t('query') }}
diff --git a/back/src/views/modules/pay/order.vue b/back/src/views/modules/pay/order.vue
index 6f110498..47f1f396 100644
--- a/back/src/views/modules/pay/order.vue
+++ b/back/src/views/modules/pay/order.vue
@@ -12,7 +12,7 @@
- {{ $t('query') }}
+ {{ $t('query') }}
{{ $t('add') }}
diff --git a/back/src/views/modules/project/contribute.vue b/back/src/views/modules/project/contribute.vue
index 5afee272..644eaf59 100644
--- a/back/src/views/modules/project/contribute.vue
+++ b/back/src/views/modules/project/contribute.vue
@@ -9,7 +9,7 @@
- {{ $t('query') }}
+ {{ $t('query') }}
重置
diff --git a/back/src/views/modules/project/list.vue b/back/src/views/modules/project/list.vue
index ee292abe..2f0d2b23 100644
--- a/back/src/views/modules/project/list.vue
+++ b/back/src/views/modules/project/list.vue
@@ -15,7 +15,7 @@
- {{ $t('query') }}
+ {{ $t('query') }}
{{ $t('reset') }}
diff --git a/back/src/views/modules/project/use.vue b/back/src/views/modules/project/use.vue
index 916d3290..90032d47 100644
--- a/back/src/views/modules/project/use.vue
+++ b/back/src/views/modules/project/use.vue
@@ -22,7 +22,7 @@
查询
- 重置
+ 重置
diff --git a/back/src/views/modules/sys/dict-type.vue b/back/src/views/modules/sys/dict-type.vue
index 82249b3b..ee19b187 100644
--- a/back/src/views/modules/sys/dict-type.vue
+++ b/back/src/views/modules/sys/dict-type.vue
@@ -9,13 +9,13 @@
- {{ $t('query') }}
+ {{ $t('query') }}
- {{ $t('add') }}
+ {{ $t('add') }}
- {{ $t('deleteBatch') }}
+ {{ $t('deleteBatch') }}
- {{ $t('query') }}
+ {{ $t('query') }}
- 重置
+ 重置
@@ -13,56 +13,138 @@
diff --git a/front/src/api/home.js b/front/src/api/home.js
index 93e088d1..4851a2f0 100644
--- a/front/src/api/home.js
+++ b/front/src/api/home.js
@@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian
* @Date: 2022-04-01 19:19:40
* @LastEditors: Light
- * @LastEditTime: 2022-10-31 15:52:57
+ * @LastEditTime: 2022-11-18 14:09:20
* @Description: 告诉大家这是什么
*/
import request from '@/utils/request'
@@ -526,3 +526,10 @@ export function getGisByArea(data) {
data,
})
}
+export function getPolicyCloudService(data) {
+ return request({
+ url: '/resource/getPolicyCloudService',
+ method: 'post',
+ data,
+ })
+}
diff --git a/front/src/assets/abilityStatistics/four.png b/front/src/assets/abilityStatistics/four.png
index d42b1fd0..70c10009 100644
Binary files a/front/src/assets/abilityStatistics/four.png and b/front/src/assets/abilityStatistics/four.png differ
diff --git a/front/src/assets/abilityStatistics/fours.png b/front/src/assets/abilityStatistics/fours.png
index 227cb98a..8a7d0884 100644
Binary files a/front/src/assets/abilityStatistics/fours.png and b/front/src/assets/abilityStatistics/fours.png differ
diff --git a/front/src/assets/abilityStatistics/three.png b/front/src/assets/abilityStatistics/three.png
index 70c10009..d33192ec 100644
Binary files a/front/src/assets/abilityStatistics/three.png and b/front/src/assets/abilityStatistics/three.png differ
diff --git a/front/src/assets/abilityStatistics/threes.png b/front/src/assets/abilityStatistics/threes.png
index 8a7d0884..b892248f 100644
Binary files a/front/src/assets/abilityStatistics/threes.png and b/front/src/assets/abilityStatistics/threes.png differ
diff --git a/front/src/assets/abilityStatistics/two.png b/front/src/assets/abilityStatistics/two.png
index d33192ec..d42b1fd0 100644
Binary files a/front/src/assets/abilityStatistics/two.png and b/front/src/assets/abilityStatistics/two.png differ
diff --git a/front/src/assets/abilityStatistics/twos.png b/front/src/assets/abilityStatistics/twos.png
index b892248f..227cb98a 100644
Binary files a/front/src/assets/abilityStatistics/twos.png and b/front/src/assets/abilityStatistics/twos.png differ
diff --git a/front/src/assets/home/searchInner.png b/front/src/assets/home/searchInner.png
new file mode 100644
index 00000000..1ee46d37
Binary files /dev/null and b/front/src/assets/home/searchInner.png differ
diff --git a/front/src/utils/waterMark.js b/front/src/utils/waterMark.js
new file mode 100644
index 00000000..edc0c21e
--- /dev/null
+++ b/front/src/utils/waterMark.js
@@ -0,0 +1,69 @@
+/*
+ * @Author: Light
+ * @Date: 2022-11-14 15:01:54
+ * @LastEditors: Light
+ * @LastEditTime: 2022-11-16 09:57:28
+ * @Description: 水印
+ */
+const watermark = {
+ timer: null,
+ set: () => {},
+}
+const setWatermark = (str, width, height, size, top, index) => {
+ console.log('生成水印')
+ const id = str.charCodeAt()
+ if (document.getElementById(id) !== null) {
+ document.body.removeChild(document.getElementById(id))
+ }
+ const can = document.createElement('canvas')
+ can.width = width
+ can.height = height
+
+ const cans = can.getContext('2d')
+ cans.rotate((-20 * Math.PI) / 180)
+ cans.font = size + 'px Microsoft YaHei'
+ cans.fillStyle = 'rgba(200, 200, 200, 0.4)'
+ cans.textAlign = 'left'
+ cans.textBaseline = 'middle'
+ cans.fillText(str, can.width / 3, can.height / 2)
+
+ const WATER_MARK = document.createElement('div')
+ const ALL_WIDTH = document.documentElement.clientWidth + 'px'
+ const ALL_HEIGHT = document.documentElement.clientHeight + 'px'
+
+ WATER_MARK.id = id
+ WATER_MARK.style.cssText = `
+ position: fixed;
+ top: ${index * top}px;
+ left: 0;
+ zIndex: 99999999;
+ pointer-events: none;
+ width: ${ALL_WIDTH};
+ height: ${ALL_HEIGHT};
+ background: url(${can.toDataURL('image/png')}) left top repeat;
+ opacity: 0;
+ `
+ document.body.appendChild(WATER_MARK)
+ return id
+}
+
+// 该方法只允许调用一次
+watermark.set = (str, width, height, size, top, index) => {
+ let id = setWatermark(str, width, height, size, top, index)
+ watermark.timer && clearTimeout(watermark.timer)
+ watermark.timer = setTimeout(() => {
+ if (document.getElementById(id) === null) {
+ id = setWatermark(str, width, height, size, top, index)
+ }
+ }, 300)
+ window.onresize = () => {
+ setWatermark(str, width, height, size, top, index)
+ }
+}
+
+const onWholeWaterMark = (arr, width, height, size, top) => {
+ arr.map((str, index) => {
+ watermark.set(str, width, height, size, top, index)
+ })
+}
+export default onWholeWaterMark
diff --git a/front/src/views/abilityStatistics/components/AbilityRanking.vue b/front/src/views/abilityStatistics/components/AbilityRanking.vue
index 12197f78..33aaac78 100644
--- a/front/src/views/abilityStatistics/components/AbilityRanking.vue
+++ b/front/src/views/abilityStatistics/components/AbilityRanking.vue
@@ -259,7 +259,7 @@
padding-bottom: 0;
.main {
width: 100%;
- margin-top: 10px;
+ margin-top: 60px;
display: flex;
flex-direction: column;
align-items: center;
@@ -273,7 +273,7 @@
flex-wrap: wrap;
justify-content: center;
align-items: center;
- margin-bottom: 26px;
+ margin-bottom: -10px;
.line {
width: 34px;
height: 3px;
@@ -356,6 +356,8 @@
color: #734204;
}
.content-neirong {
+ font-size: 18px;
+ font-weight: 600;
width: 215px;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
diff --git a/front/src/views/abilityStatistics/components/CapabilityRequirements.vue b/front/src/views/abilityStatistics/components/CapabilityRequirements.vue
index b2d4c45c..a87451ea 100644
--- a/front/src/views/abilityStatistics/components/CapabilityRequirements.vue
+++ b/front/src/views/abilityStatistics/components/CapabilityRequirements.vue
@@ -31,7 +31,11 @@
查看更多
-
+
@@ -92,6 +96,7 @@
dataList.value[index].photo = photo.value[4]
break
}
+ dataList.value = []
})
console.log('123123123qwee', dataList.value)
diff --git a/front/src/views/abilityStatistics/components/ResourceAggregation.vue b/front/src/views/abilityStatistics/components/ResourceAggregation.vue
index 3d9d4741..93158c84 100644
--- a/front/src/views/abilityStatistics/components/ResourceAggregation.vue
+++ b/front/src/views/abilityStatistics/components/ResourceAggregation.vue
@@ -240,8 +240,8 @@
},
legend: {
icon: 'emptyCircle',
- height: 3,
- itemGap: 40,
+ itemGap: 20,
+ padding: 20,
// orient: 'horizontal',
bottom: 0,
formatter: function (name) {
@@ -261,8 +261,7 @@
{
center: ['50%', '40%'],
type: 'pie',
- selectedMode: 'single',
- silent: true,
+ // selectedMode: 'single',
radius: ['50%', '30%'],
color: ['#fe845e', '#6cc95a', '#02d1b0', '#1772ff', '#FAC858'],
top: '0',
@@ -290,7 +289,6 @@
type: 'pie',
center: ['50%', '40%'],
radius: ['58%', '50%'],
- silent: true,
itemStyle: {
normal: {
color: '#c2c7d6',
@@ -477,7 +475,7 @@
barGap: '-100%',
itemStyle: {
normal: {
- color: '#C1232B',
+ color: '#ECB53F',
},
},
// data: [5, 20, 36, 10, 10, 20]
@@ -490,7 +488,7 @@
barGap: '-100%',
itemStyle: {
normal: {
- color: '#B5C334',
+ color: '#FE845E',
},
},
// data: [5, 20, 36, 10, 10, 20]
@@ -503,7 +501,7 @@
barGap: '-100%',
itemStyle: {
normal: {
- color: '#FCCE10',
+ color: '#6CC95A',
},
},
// data: [5, 20, 36, 10, 10, 20]
@@ -516,7 +514,7 @@
barGap: '-100%',
itemStyle: {
normal: {
- color: '#E87C25',
+ color: '#02D1B0',
},
},
// data: [5, 20, 36, 10, 10, 20]
@@ -529,20 +527,7 @@
barGap: '-100%',
itemStyle: {
normal: {
- color: '#27727B',
- },
- },
- // data: [5, 20, 36, 10, 10, 20]
- data: [],
- },
- {
- name: '',
- type: 'bar',
- barWidth: 35,
- barGap: '-100%',
- itemStyle: {
- normal: {
- color: '#FE8463',
+ color: '#1772FF',
},
},
// data: [5, 20, 36, 10, 10, 20]
@@ -560,6 +545,7 @@
for (let i = 0; i < 5; i++) {
if (i == index) {
arr.push(val.value)
+ // arr.push(10) // 方便更改样式
} else {
arr.push(0)
}
diff --git a/front/src/views/abilityStatistics/components/SharingSituation.vue b/front/src/views/abilityStatistics/components/SharingSituation.vue
index 9bc27605..54fe719b 100644
--- a/front/src/views/abilityStatistics/components/SharingSituation.vue
+++ b/front/src/views/abilityStatistics/components/SharingSituation.vue
@@ -8,9 +8,17 @@
-
日平均浏览量 {{ browseAvg }}次
+
+ 日平均浏览量
+ {{ browseAvg }}
+ 次
+
-
日最大浏览量{{ browseMax }}次
+
+ 日最大浏览量
+ {{ browseMax }}
+ 次
+
@@ -61,12 +72,12 @@
backgroundImage: `url(${item.photo}) `,
}"
>
-
{{ item.type }}
-
{{ item.amount }}
+
{{ item.type }}
+
{{ item.amount }}
-
{{ item.amount }}
-
{{ item.type }}
+
{{ item.amount }}
+
{{ item.type }}
-
-
+
-
- {{ index + 1 }}
-
-
{{ nav.name }}
+
+
+ {{ index + 1 }}
+
+ {{ nav.name }}
+
@@ -80,37 +81,10 @@
:required="required"
:notFilled="notFilled"
>
-
-
-
+
-
+
-
+
@@ -149,7 +124,7 @@
@confirm="changeYycj('上一步')"
@cancel="cancel"
>
-
+
-
diff --git a/front/src/views/capacityOnTheShelf/Application.vue b/front/src/views/capacityOnTheShelf/Application.vue
index 168072fc..ac710a6c 100644
--- a/front/src/views/capacityOnTheShelf/Application.vue
+++ b/front/src/views/capacityOnTheShelf/Application.vue
@@ -7,17 +7,19 @@
-->
-
+
-
- {{ index + 1 }}
-
-
{{ nav.name }}
+
+
+ {{ index + 1 }}
+
+ {{ nav.name }}
+
@@ -101,7 +103,7 @@
> -->
-
取消
+
- 上一步
+ 上一步
-
+
上一步
@@ -141,12 +144,12 @@
@confirm="changeBs('预览')"
@cancel="cancel"
>
- 预览
+ 预览
-
+
预览
- 下一步
+ 下一步
- 下一步
+ 下一步
-
+
下一步
- 提交
+ 提交
-
+
提交
+ 取消
@@ -374,7 +378,7 @@
// ) {
// notFilled.value.push('共享条件')
// }
-
+
if (notFilled.value.length > 0) {
message.warning('请填写必填字段')
console.log(notFilled.value)
@@ -476,7 +480,7 @@
getCategoryTree().then((res) => {
// console.clear()
res.data.data = res.data.data.filter(
- (item) => item.name === '应用资源一'
+ (item) => item.name === '应用资源'
)[0]
navList.value = []
navList2.value = []
@@ -715,85 +719,120 @@
diff --git a/front/src/views/capacityOnTheShelf/BusinessComponent.vue b/front/src/views/capacityOnTheShelf/BusinessComponent.vue
index 9434c895..ec6acddc 100644
--- a/front/src/views/capacityOnTheShelf/BusinessComponent.vue
+++ b/front/src/views/capacityOnTheShelf/BusinessComponent.vue
@@ -7,17 +7,19 @@
-->
-
+
-
- {{ index + 1 }}
-
-
{{ nav.name }}
+
+
+ {{ index + 1 }}
+
+ {{ nav.name }}
+
@@ -80,7 +82,7 @@
>
-
取消
+
- 上一步
+ 上一步
- 上一步
+ 上一步
+
上一步
- 预览
+ 预览
-
+
预览
- 下一步
+ 下一步
- 下一步
+ 下一步
+
下一步
- 提交
+ 提交
-
+
提交
+ 取消
@@ -572,7 +579,7 @@
getCategoryTree().then((res) => {
// console.clear()
res.data.data = res.data.data
- .filter((item) => item.name === '组件服务一')[0]
+ .filter((item) => item.name === '组件服务')[0]
.children.filter((item) => item.name === '业务组件')[0]
navList.value = []
navList2.value = []
@@ -802,86 +809,121 @@
})
diff --git a/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue b/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue
index 88669d0a..20929efe 100644
--- a/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue
+++ b/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue
@@ -7,17 +7,19 @@
-->
-
+
-
- {{ index + 1 }}
-
-
{{ nav.name }}
+
+
+ {{ index + 1 }}
+
+ {{ nav.name }}
+
@@ -79,7 +81,7 @@
>
-
取消
+
- 上一步
+ 上一步
- 上一步
+ 上一步
+
上一步
- 预览
+ 预览
-
+
预览
- 下一步
+ 下一步
- 下一步
+ 下一步
+
下一步
- 提交
+ 提交
-
+
提交
+ 取消
@@ -570,7 +577,7 @@
getCategoryTree().then((res) => {
// console.clear()
res.data.data = res.data.data
- .filter((item) => item.name === '组件服务一')[0]
+ .filter((item) => item.name === '组件服务')[0]
.children.filter((item) => item.name === '开发组件')[0]
navList.value = []
navList2.value = []
@@ -800,85 +807,120 @@
diff --git a/front/src/views/capacityOnTheShelf/LayerServices.vue b/front/src/views/capacityOnTheShelf/LayerServices.vue
index ea073a23..f0ba0d1c 100644
--- a/front/src/views/capacityOnTheShelf/LayerServices.vue
+++ b/front/src/views/capacityOnTheShelf/LayerServices.vue
@@ -7,17 +7,19 @@
-->