From 7bdff21f0e72e1f6f2a7f198b24f26e1311afa12 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E5=8A=B2=E9=BE=99?= <2860996570@qq.com>
Date: Tue, 10 Dec 2024 13:38:38 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9C=80=E6=96=B0bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 2 +-
src/api/renwuApi/index.js | 17 +
src/assets/styles/public.scss | 23 +-
src/layout/components/AppMain.vue | 4 +-
.../auditPages/taskManagement/auditList.vue | 2 +-
src/views/auditPages/taskManagement/index.vue | 152 ++++--
src/views/auditPages/taskManagement/info.vue | 239 ++++++--
src/views/components/renwuType/butongguo.vue | 1 +
src/views/components/renwuType/webType1.vue | 1 +
src/views/components/renwuType/webType2DW.vue | 508 +++++++++---------
src/views/unitPages/myTask/index.vue | 7 +-
src/views/unitPages/myTask/info.vue | 4 +-
12 files changed, 610 insertions(+), 350 deletions(-)
diff --git a/package.json b/package.json
index 81a3ed7..4792d90 100644
--- a/package.json
+++ b/package.json
@@ -40,7 +40,7 @@
"axios": "0.28.1",
"clipboard": "2.0.8",
"core-js": "3.37.1",
- "echarts": "5.4.0",
+ "echarts": "^5.4.0",
"element-ui": "2.15.14",
"file-saver": "2.0.5",
"fuse.js": "6.4.3",
diff --git a/src/api/renwuApi/index.js b/src/api/renwuApi/index.js
index 20c41dc..16e644d 100644
--- a/src/api/renwuApi/index.js
+++ b/src/api/renwuApi/index.js
@@ -179,4 +179,21 @@ export function assetTaskgzhjyTj(data) {
method: "post",
data,
})
+}
+//关闭任务
+export function assetTaskclose(params) {
+ return request({
+ url: `/unit/assetTask/close`,
+ method: "get",
+ params,
+ })
+}
+
+//管理端-单位核查比例图
+export function assetTaskdwHcBl(data) {
+ return request({
+ url: `/unit/assetTask/dwHcBl`,
+ method: "post",
+ data,
+ })
}
\ No newline at end of file
diff --git a/src/assets/styles/public.scss b/src/assets/styles/public.scss
index 8f2c2ed..ae08178 100644
--- a/src/assets/styles/public.scss
+++ b/src/assets/styles/public.scss
@@ -155,13 +155,17 @@
height: 100%;
background-color: #fff;
border-radius: 5px;
+ overflow: hidden;
}
- .info-left{
+
+ .info-left {
flex: 5;
}
- .info-right{
+
+ .info-right {
flex: 1;
}
+
.info-right {
margin-left: 10px;
@@ -196,12 +200,15 @@
display: flex;
align-items: center;
margin-bottom: 40px;
+
.left-box {
position: relative;
+
.main-img {
width: 45px;
margin-right: 20px;
}
+
.icon-jt {
position: absolute;
width: 15px;
@@ -215,6 +222,7 @@
display: flex;
flex-direction: column;
justify-content: space-between;
+
.span-title {
font-family: Alibaba PuHuiTi;
font-weight: 500;
@@ -222,6 +230,7 @@
color: #192734;
margin-bottom: 8px;
}
+
.span-time {
font-family: Alibaba PuHuiTiR;
font-weight: 400;
@@ -310,13 +319,13 @@
div {
padding: 10px;
padding: 5px 15px;
- border: 1px solid #F5F5F5;
+ border: 1px solid #e0dddd;
font-weight: 400;
font-family: Alibaba PuHuiTiR;
font-size: 14px;
- color: #192733;
+ color: #000000;
border-bottom: none;
- background-color: #F5F5F5;
+ background-color: #e0dddd;
cursor: pointer;
margin-right: 10px;
}
@@ -512,7 +521,7 @@ input[aria-hidden="true"] {
box-shadow: none;
}
-.bottomclass{
+.bottomclass {
text-align: center;
background-color: #fff;
-}
+}
\ No newline at end of file
diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue
index 881f8b4..e98fc2b 100644
--- a/src/layout/components/AppMain.vue
+++ b/src/layout/components/AppMain.vue
@@ -63,8 +63,8 @@ export default {
}
::-webkit-scrollbar {
- width: 4px;
- height: 4px;
+ width: 6px;
+ height: 8px;
}
::-webkit-scrollbar-track {
diff --git a/src/views/auditPages/taskManagement/auditList.vue b/src/views/auditPages/taskManagement/auditList.vue
index 0535e46..c86fc11 100644
--- a/src/views/auditPages/taskManagement/auditList.vue
+++ b/src/views/auditPages/taskManagement/auditList.vue
@@ -27,7 +27,7 @@
diff --git a/src/views/auditPages/taskManagement/index.vue b/src/views/auditPages/taskManagement/index.vue
index 434a9e5..5e9a4ae 100644
--- a/src/views/auditPages/taskManagement/index.vue
+++ b/src/views/auditPages/taskManagement/index.vue
@@ -10,10 +10,12 @@
-
+
+
+
@@ -36,7 +38,7 @@
-
+
@@ -79,6 +81,9 @@
+
+ 已关闭
+
进行中
@@ -87,7 +92,7 @@
超期完成
-
+
审核不通过
@@ -101,14 +106,20 @@

-
查看
+
查看
-
+

-
审核
+
审核
+
+
+
+
+
+ 关闭
@@ -130,12 +141,12 @@
web资产
小程序资产
公众号资产
-
电子邮件资产
-
移动应用程序资产
+
电子邮件资产
+
移动应用程序资产
-
+
@@ -144,8 +155,8 @@
-
+
取消
@@ -169,14 +180,14 @@
import myPagination from "@/views/components/Pagination/index.vue"
import myDialog from "@/views/components/myDialog/index.vue"
import danweiList from "@/views/system/user/danweiList.vue"
-import { addassetTaskadd, getassetTask, getassetTaskid } from "@/api/renwuApi/index.js"
+import { addassetTaskadd, getassetTask, getassetTaskid, assetTaskclose } from "@/api/renwuApi/index.js"
export default {
// dicts: ['jjh_project_type', 'bms_approval_status', "project_middle_type", "project_small_type", "project_categories"],
components: { myPagination, myDialog, danweiList },
data() {
return {
- btnloading:false,
+ btnloading: false,
formInline: {
name: "",
type: "",
@@ -198,7 +209,7 @@ export default {
taskName: "",
dwmc: [],
taskDeadline: "",
- type:[]
+ type: []
},
rules: {
taskName: [
@@ -210,32 +221,32 @@ export default {
taskDeadline: [
{ required: true, message: '请选择日期', trigger: 'change' }
],
- type:[
- { required: true, message: '请选择', trigger: 'change' }
+ type: [
+ { required: true, message: '请选择', trigger: 'change' }
]
},
tabclicklist: [],
-
- chanckList:[
+
+ chanckList: [
{
- lable:"0",
- conent:"web资产"
+ lable: "0",
+ conent: "web资产"
},
{
- lable:"1",
- conent:"小程序资产"
+ lable: "1",
+ conent: "小程序资产"
},
{
- lable:"2",
- conent:"公众号资产"
+ lable: "2",
+ conent: "公众号资产"
},
{
- lable:"3",
- conent:"电子邮件资产"
+ lable: "3",
+ conent: "电子邮件资产"
},
{
- lable:"4",
- conent:"移动应用程序资产"
+ lable: "4",
+ conent: "移动应用程序资产"
},
]
}
@@ -256,7 +267,7 @@ export default {
dwmc: [],
taskName: "",
taskDeadline: "",
- type:[]
+ type: []
}
this.$refs.taskDialog.close()
@@ -264,7 +275,7 @@ export default {
},
submitForm(formName) {
console.log(this.ruleForm);
-
+
this.$refs[formName].validate((valid) => {
if (valid) {
this.btnloading = true
@@ -274,14 +285,14 @@ export default {
this.resetForm()
this.getInfo();
this.$modal.msgSuccess("新增成功");
- this.btnloading = false
+ this.btnloading = false
})
setTimeout(() => {
this.ruleForm.dwmc = this.ruleForm.dwmc.split(",")
- this.ruleForm.type = this.ruleForm.type.split(",")
+ this.ruleForm.type = this.ruleForm.type.split(",")
}, 0);
} else {
@@ -330,24 +341,24 @@ export default {
//打开列表
addliebiao() {
console.log(this.ruleForm.type);
-
- if(this.ruleForm.type.length >0){
- this.$refs.liebiaoDialog.open()
- setTimeout(() => {
- this.$refs.danweiList.getType(this.ruleForm.type)
- this.$refs.danweiList.getList()
-
- }, 100);
- if (this.tabclicklist) {
+ if (this.ruleForm.type.length > 0) {
+ this.$refs.liebiaoDialog.open()
setTimeout(() => {
- this.$refs.danweiList.dakai(this.tabclicklist)
+ this.$refs.danweiList.getType(this.ruleForm.type)
+
+ this.$refs.danweiList.getList()
+
}, 100);
- }
- }else{
+ if (this.tabclicklist) {
+ setTimeout(() => {
+ this.$refs.danweiList.dakai(this.tabclicklist)
+ }, 100);
+ }
+ } else {
this.$message('请先选择核查资产类型');
}
-
+
},
liebiaoClose() {
@@ -358,7 +369,7 @@ export default {
nickName: undefined,
dwlx: undefined,
},
- this.$refs.liebiaoDialog.close()
+ this.$refs.liebiaoDialog.close()
},
// 查询
@@ -389,8 +400,8 @@ export default {
this.$refs.taskDialog.open()
setTimeout(() => {
this.$refs.ruleForm.clearValidate()
-
- }, 100);
+
+ }, 100);
},
// 关闭弹框
importClose() {
@@ -402,7 +413,7 @@ export default {
this.$router.push({
name: 'TaskInfo', query: {
pageType: "look",
- id:row.id
+ id: row.id
}
})
},
@@ -411,15 +422,43 @@ export default {
this.$router.push({
name: 'TaskInfo', query: {
pageType: "info",
- id:row.id
+ id: row.id
}
})
},
+ // 关闭
+ guanbijiekou(row) {
+ console.log(row);
+
+ this.$confirm('此操作将关闭改任务, 是否继续?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+
+ assetTaskclose({ taskId: row.id }).then(res => {
+ if (res.code == 200) {
+ this.$message({
+ type: 'success',
+ message: '关闭成功!'
+ });
+ this.getInfo();
+
+ }
+ })
+
+ }).catch(() => {
+ this.$message({
+ type: 'info',
+ message: '已取消关闭'
+ });
+ });
+ },
// 编辑
edit() {
},
// 审核
-
+
// 修改table背景色
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 !== 0) {
@@ -445,7 +484,14 @@ export default {
.el-icon-s-unfold {
font-size: 16px;
}
+
// ::v-deep .el-dialog__body{
// padding-left: 80px;
// }
+.el-icon-delete {
+ color: #409EFF;
+ font-size: 16px;
+ font-weight: 600;
+ margin-right: 5px;
+}
diff --git a/src/views/auditPages/taskManagement/info.vue b/src/views/auditPages/taskManagement/info.vue
index 73af3b2..b38ef37 100644
--- a/src/views/auditPages/taskManagement/info.vue
+++ b/src/views/auditPages/taskManagement/info.vue
@@ -32,12 +32,12 @@
-
+
@@ -51,7 +51,7 @@
-->
-
+
@@ -90,6 +90,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
查询
@@ -120,7 +133,7 @@
-
+
待核查
@@ -162,24 +175,56 @@
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.checkedRatio }}%
-
-
-
+
+
+
+
+
+ {{ scope.row.checkedRatio }}%
+
+
+
+
+ {{ isshow ? "收起" : '展开' }}>>
+
+
+
@@ -197,7 +242,6 @@
-
{{ item.assetName }}:
{{ item.xfTime }}
@@ -216,9 +260,9 @@
+
diff --git a/src/views/unitPages/myTask/index.vue b/src/views/unitPages/myTask/index.vue
index 04aa22b..2d9ce93 100644
--- a/src/views/unitPages/myTask/index.vue
+++ b/src/views/unitPages/myTask/index.vue
@@ -18,6 +18,8 @@
+
+
@@ -54,6 +56,9 @@
+
+ 已关闭
+
进行中
@@ -80,7 +85,7 @@
style="color: #1485EF;cursor: pointer;">查看
-
+
开始核查
diff --git a/src/views/unitPages/myTask/info.vue b/src/views/unitPages/myTask/info.vue
index 972106c..d56fce5 100644
--- a/src/views/unitPages/myTask/info.vue
+++ b/src/views/unitPages/myTask/info.vue
@@ -36,7 +36,7 @@
-
+
@@ -50,7 +50,7 @@
-->
-
+