From 37441ceec6ff8c7481660339be7d47f920cf56ae Mon Sep 17 00:00:00 2001
From: liushilong <2224574157@qq.com>
Date: Fri, 29 Mar 2024 11:53:54 +0800
Subject: [PATCH 001/143] =?UTF-8?q?feat:=20=E7=BB=BC=E5=90=88=E6=90=9C?=
=?UTF-8?q?=E7=B4=A2=E6=A8=A1=E6=9D=BF=E5=8E=BB=E9=99=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
patches/naive-ui+2.38.1.patch | 91 ++++++++++++++++++++
src/components/Search/Search.vue | 2 +-
src/layout/components/Header/SearchModal.vue | 2 +-
3 files changed, 93 insertions(+), 2 deletions(-)
diff --git a/patches/naive-ui+2.38.1.patch b/patches/naive-ui+2.38.1.patch
index 8748dc4..83ce776 100644
--- a/patches/naive-ui+2.38.1.patch
+++ b/patches/naive-ui+2.38.1.patch
@@ -27,6 +27,29 @@ index 3aacec9..a63ab54 100644
key: "controlled-success",
class: `${mergedClsPrefix}-form-item-feedback ${mergedClsPrefix}-form-item-feedback--success`
}, feedbackNodes) : h("div", {
+diff --git a/node_modules/naive-ui/es/modal/src/Modal.mjs b/node_modules/naive-ui/es/modal/src/Modal.mjs
+index 9508b72..63f417b 100644
+--- a/node_modules/naive-ui/es/modal/src/Modal.mjs
++++ b/node_modules/naive-ui/es/modal/src/Modal.mjs
+@@ -13,6 +13,10 @@ import { modalInjectionKey, modalProviderInjectionKey } from "./interface.mjs";
+ import style from "./styles/index.cssr.mjs";
+ export const modalProps = Object.assign(Object.assign(Object.assign(Object.assign({}, useTheme.props), {
+ show: Boolean,
++ showMask: {
++ type: Boolean,
++ default: true
++ },
+ unstableShowMask: {
+ type: Boolean,
+ default: true
+@@ -309,6 +313,7 @@ export default defineComponent({
+ "aria-hidden": true,
+ ref: "containerRef",
+ class: `${mergedClsPrefix}-modal-mask`,
++ style: this.showMask ? '' : {background:'none'},
+ onClick: this.handleClickoutside
+ }) : null;
+ }
diff --git a/node_modules/naive-ui/es/pagination/src/Pagination.mjs b/node_modules/naive-ui/es/pagination/src/Pagination.mjs
index 5bd975b..e1c6ebc 100644
--- a/node_modules/naive-ui/es/pagination/src/Pagination.mjs
@@ -161,3 +184,71 @@ index 4f47aad..6dae078 100644
});
}
}))) : null));
+diff --git a/node_modules/naive-ui/lib/modal/src/Modal.js b/node_modules/naive-ui/lib/modal/src/Modal.js
+index 47f6ac2..801e8e7 100644
+--- a/node_modules/naive-ui/lib/modal/src/Modal.js
++++ b/node_modules/naive-ui/lib/modal/src/Modal.js
+@@ -17,7 +17,11 @@ const presetProps_1 = require("./presetProps");
+ const BodyWrapper_1 = __importDefault(require("./BodyWrapper"));
+ const interface_1 = require("./interface");
+ const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
+-exports.modalProps = Object.assign(Object.assign(Object.assign(Object.assign({}, _mixins_1.useTheme.props), { show: Boolean, unstableShowMask: {
++exports.modalProps = Object.assign(Object.assign(Object.assign(Object.assign({}, _mixins_1.useTheme.props), {
++ show: Boolean, showMask: {
++ type: Boolean,
++ default: true,
++ }, unstableShowMask: {
+ type: Boolean,
+ default: true
+ }, maskClosable: {
+@@ -38,7 +42,8 @@ exports.modalProps = Object.assign(Object.assign(Object.assign(Object.assign({},
+ }, closeOnEsc: {
+ type: Boolean,
+ default: true
+- }, blockScroll: { type: Boolean, default: true } }), presetProps_1.presetProps), {
++ }, blockScroll: { type: Boolean, default: true }
++}), presetProps_1.presetProps), {
+ // events
+ onEsc: Function, 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], onAfterEnter: Function, onBeforeLeave: Function, onAfterLeave: Function, onClose: Function, onPositiveClick: Function, onNegativeClick: Function, onMaskClick: Function,
+ // private
+@@ -47,7 +52,8 @@ exports.modalProps = Object.assign(Object.assign(Object.assign(Object.assign({},
+ default: undefined
+ },
+ // deprecated
+- overlayStyle: [String, Object], onBeforeHide: Function, onAfterHide: Function, onHide: Function });
++ overlayStyle: [String, Object], onBeforeHide: Function, onAfterHide: Function, onHide: Function
++});
+ exports.default = (0, vue_1.defineComponent)({
+ name: 'Modal',
+ inheritAttrs: false,
+@@ -226,21 +232,25 @@ exports.default = (0, vue_1.defineComponent)({
+ var _a;
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
+ const { unstableShowMask } = this;
+- return (0, vue_1.withDirectives)((0, vue_1.h)("div", { role: "none", ref: "containerRef", class: [
++ return (0, vue_1.withDirectives)((0, vue_1.h)("div", {
++ role: "none", ref: "containerRef", class: [
+ `${mergedClsPrefix}-modal-container`,
+ this.themeClass,
+ this.namespace
+- ], style: this.cssVars },
+- (0, vue_1.h)(BodyWrapper_1.default, Object.assign({ style: this.overlayStyle }, this.$attrs, { ref: "bodyWrapper", displayDirective: this.displayDirective, show: this.show, preset: this.preset, autoFocus: this.autoFocus, trapFocus: this.trapFocus, blockScroll: this.blockScroll }, this.presetProps, { onEsc: this.handleEsc, onClose: this.handleCloseClick, onNegativeClick: this.handleNegativeClick, onPositiveClick: this.handlePositiveClick, onBeforeLeave: this.handleBeforeLeave, onAfterEnter: this.onAfterEnter, onAfterLeave: this.handleAfterLeave, onClickoutside: unstableShowMask ? undefined : this.handleClickoutside, renderMask: unstableShowMask
++ ], style: this.cssVars
++ },
++ (0, vue_1.h)(BodyWrapper_1.default, Object.assign({ style: this.overlayStyle }, this.$attrs, { ref: "bodyWrapper", displayDirective: this.displayDirective, show: this.show, preset: this.preset, autoFocus: this.autoFocus, trapFocus: this.trapFocus, blockScroll: this.blockScroll }, this.presetProps, {
++ onEsc: this.handleEsc, onClose: this.handleCloseClick, onNegativeClick: this.handleNegativeClick, onPositiveClick: this.handlePositiveClick, onBeforeLeave: this.handleBeforeLeave, onAfterEnter: this.onAfterEnter, onAfterLeave: this.handleAfterLeave, onClickoutside: unstableShowMask ? undefined : this.handleClickoutside, renderMask: unstableShowMask
+ ? () => {
+ var _a;
+ return ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-transition", key: "mask", appear: (_a = this.internalAppear) !== null && _a !== void 0 ? _a : this.isMounted }, {
+ default: () => {
+- return this.show ? ((0, vue_1.h)("div", { "aria-hidden": true, ref: "containerRef", class: `${mergedClsPrefix}-modal-mask`, onClick: this.handleClickoutside })) : null;
++ return this.show ? ((0, vue_1.h)("div", { "aria-hidden": true, ref: "containerRef", class: `${mergedClsPrefix}-modal-mask` ,style:this.showMask ? '' : {background:'none'}, onClick: this.handleClickoutside })) : null;
+ }
+ }));
+ }
+- : undefined }), this.$slots)), [
++ : undefined
++ }), this.$slots)), [
+ [
+ vdirs_1.zindexable,
+ {
diff --git a/src/components/Search/Search.vue b/src/components/Search/Search.vue
index b628761..ebd6294 100644
--- a/src/components/Search/Search.vue
+++ b/src/components/Search/Search.vue
@@ -115,7 +115,7 @@ function highlightText(text, query) {
历史搜索
-
+
{{ item.historyname }}
diff --git a/src/layout/components/Header/SearchModal.vue b/src/layout/components/Header/SearchModal.vue
index 9f45470..729194a 100644
--- a/src/layout/components/Header/SearchModal.vue
+++ b/src/layout/components/Header/SearchModal.vue
@@ -14,7 +14,7 @@ defineExpose({
-
+
--
2.39.3
From 19a53076c03d4ac98de4b8c304418f2244cd87ee Mon Sep 17 00:00:00 2001
From: Dragon <>
Date: Fri, 29 Mar 2024 13:35:38 +0800
Subject: [PATCH 002/143] =?UTF-8?q?=E4=B8=8D=E9=80=9A=E8=BF=87=E5=BC=B9?=
=?UTF-8?q?=E7=AA=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/task/task.ts | 5 +-
src/components/Approval/NotPassed.vue | 228 ++++++++++++++------------
src/store/modules/dictonary.ts | 2 +-
src/views/task/content/Content.vue | 40 ++---
4 files changed, 149 insertions(+), 126 deletions(-)
diff --git a/src/api/task/task.ts b/src/api/task/task.ts
index 8692465..5dc1654 100644
--- a/src/api/task/task.ts
+++ b/src/api/task/task.ts
@@ -25,12 +25,11 @@ export async function getApprovalList(page: PageParam) {
* 审核
* @param param
*/
-export async function audit(params: ApprovalParam) {
+export async function audit(params) {
return http.request({
url: `/flow/task/completeBatchFlow?`,
method: 'post',
- params: qs.stringify(params, { indices: false }),
- headers: { 'Content-Type': ContentTypeEnum.FORM_DATA },
+ params,
})
}
diff --git a/src/components/Approval/NotPassed.vue b/src/components/Approval/NotPassed.vue
index baef5f7..e2d4031 100644
--- a/src/components/Approval/NotPassed.vue
+++ b/src/components/Approval/NotPassed.vue
@@ -1,19 +1,20 @@
@@ -98,27 +128,33 @@ async function selectChange(id) {
-
- 处理方式
-
-
-
- 不通过原因
-
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--
2.39.3
From f6aefd96fad2e0f2fe5d6072a0735504aada226e Mon Sep 17 00:00:00 2001
From: liushilong <2224574157@qq.com>
Date: Fri, 29 Mar 2024 15:44:27 +0800
Subject: [PATCH 007/143] =?UTF-8?q?feat:=20=E6=89=80=E6=9C=89=E5=88=86?=
=?UTF-8?q?=E9=A1=B5=E8=B7=B3=E8=BD=AC=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/final/comp/FilterModal.vue | 2 +-
src/views/final/comp/RepeatTaskTableModal.vue | 2 +-
src/views/final/content/Content.vue | 2 +-
src/views/home/aside/comp/modals/FilterModal.vue | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/views/final/comp/FilterModal.vue b/src/views/final/comp/FilterModal.vue
index 749f695..7923eaa 100644
--- a/src/views/final/comp/FilterModal.vue
+++ b/src/views/final/comp/FilterModal.vue
@@ -194,7 +194,7 @@ function deleteSelection() {
async function handlePageChange(currentPage) {
if (loading.value) return;
-
+ pagination.page = currentPage;
const { pageSize } = pagination;
await query(currentPage, pageSize);
}
diff --git a/src/views/final/comp/RepeatTaskTableModal.vue b/src/views/final/comp/RepeatTaskTableModal.vue
index 1a6d42a..d0f6d99 100644
--- a/src/views/final/comp/RepeatTaskTableModal.vue
+++ b/src/views/final/comp/RepeatTaskTableModal.vue
@@ -148,7 +148,7 @@ async function query(page: number, pageSize: number) {
async function handlePageChange(currentPage) {
if (loading.value) return;
-
+ pagination.page = currentPage;
const { pageSize } = pagination;
await query(currentPage, pageSize);
}
diff --git a/src/views/final/content/Content.vue b/src/views/final/content/Content.vue
index 20624e6..d0b8596 100644
--- a/src/views/final/content/Content.vue
+++ b/src/views/final/content/Content.vue
@@ -419,8 +419,8 @@ async function query(page: number, pageSize: number, filterId?: any) {
async function handlePageChange(currentPage) {
if (loading.value) return;
-
const { pageSize } = pagination;
+ pagination.page = currentPage;
await query(currentPage, pageSize);
}
async function handlePageSizeChange(currentPageSize) {
diff --git a/src/views/home/aside/comp/modals/FilterModal.vue b/src/views/home/aside/comp/modals/FilterModal.vue
index 2296008..5bb7cf9 100644
--- a/src/views/home/aside/comp/modals/FilterModal.vue
+++ b/src/views/home/aside/comp/modals/FilterModal.vue
@@ -186,7 +186,7 @@ function deleteSelection() {
async function handlePageChange(currentPage) {
if (loading.value) return;
-
+ pagination.page = currentPage;
const { pageSize } = pagination;
await query(currentPage, pageSize);
}
--
2.39.3
From 656ea3b2b410ca483f06b6625a2fd37d097bf83e Mon Sep 17 00:00:00 2001
From: liushilong <2224574157@qq.com>
Date: Fri, 29 Mar 2024 16:27:23 +0800
Subject: [PATCH 008/143] =?UTF-8?q?feat:=20bug2786=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/login/components/Forget.vue | 101 +++++++++++++++++++++++---
1 file changed, 92 insertions(+), 9 deletions(-)
diff --git a/src/views/login/components/Forget.vue b/src/views/login/components/Forget.vue
index 3137f70..5588ac0 100644
--- a/src/views/login/components/Forget.vue
+++ b/src/views/login/components/Forget.vue
@@ -50,14 +50,86 @@ const formSure: FormSure = reactive({
loginname: "13311111111",
});
const tab = ref(0);
+const loginSuccess = ref(true);
+const loginRejectMessge = ref("");
const countTime = ref("获取验证码");
const rules = {
- enterprisecode: { required: true, message: "请输入企业编码", trigger: "blur" },
- agentcode: { required: true, message: "请输入企业编码", trigger: "blur" },
- loginname: { required: true, message: "请输入用户名", trigger: "blur" },
- phone: { required: true, message: "请输入手机号", trigger: "blur" },
+ enterprisecode: [
+ { required: true, message: "请输入企业编码", trigger: "blur" },
+ {
+ trigger: ["blur", "input", "change"],
+ level: "error",
+ validator(_rule, value) {
+ if (loginSuccess.value || !value) {
+ return true;
+ }
+ if (loginRejectMessge.value.indexOf("企业") > -1) {
+ return new Error(loginRejectMessge.value);
+ }
+ },
+ },
+ ],
+ agentcode: [
+ { required: true, message: "请输入企业编码", trigger: "blur" },
+ {
+ trigger: ["blur", "input", "change"],
+ level: "error",
+ validator(_rule, value) {
+ if (loginSuccess.value || !value) {
+ return true;
+ }
+ if (loginRejectMessge.value.indexOf("企业") > -1) {
+ return new Error(loginRejectMessge.value);
+ }
+ },
+ },
+ ],
+ loginname: [
+ { required: true, message: "请输入用户名", trigger: "blur" },
+ {
+ trigger: ["blur", "input", "change"],
+ level: "error",
+ validator(_rule, value) {
+ if (loginSuccess.value || !value) {
+ return true;
+ }
+ if (loginRejectMessge.value.indexOf("用户名") > -1) {
+ return new Error(loginRejectMessge.value);
+ }
+ },
+ },
+ ],
+ phone: [
+ { required: true, message: "请输入手机号", trigger: "blur" },
+ {
+ trigger: ["blur", "input", "change"],
+ level: "error",
+ validator(_rule, value) {
+ if (loginSuccess.value || !value) {
+ return true;
+ }
+ if (loginRejectMessge.value.indexOf("手机号") > -1) {
+ return new Error(loginRejectMessge.value);
+ }
+ },
+ },
+ ],
password: { required: true, message: "请输入密码", trigger: "blur" },
- phonecode: { required: true, message: "请输入验证码", trigger: "blur" },
+ phonecode: [
+ { required: true, message: "请输入验证码", trigger: "blur" },
+ {
+ trigger: ["blur", "input", "change"],
+ level: "error",
+ validator(_rule, value) {
+ if (loginSuccess.value || !value) {
+ return true;
+ }
+ if (loginRejectMessge.value.indexOf("验证码") > -1) {
+ return new Error(loginRejectMessge.value);
+ }
+ },
+ },
+ ],
newPassword: { required: true, message: "请输入新密码", trigger: "blur" },
rePasswrod: [
{
@@ -74,35 +146,46 @@ const rules = {
};
function validatePasswordSame(rule: any, value: string): boolean {
- return value === formSure.newPassword;
+ if (Boolean(formSure.rePasswrod)) {
+ if (value == formSure.newPassword) {
+ return true;
+ } else {
+ return false;
+ }
+ } else {
+ return true;
+ }
}
function handleSubmit(e) {
e.preventDefault();
+ loginSuccess.value = true;
formRef.value.validate(async (errors) => {
if (!errors) {
const { loginname, phone, phonecode, agentcode } = formForget;
loading.value = true;
-
const params = {
loginname,
phone,
phonecode,
agentcode,
};
-
try {
const res = await forgetPassword(params);
if (res.code === "OK") {
+ loginSuccess.value = true;
formSure.loginname = res.data?.loginname;
tab.value = 1;
} else {
+ loginSuccess.value = false;
message.error(res.message);
+ loginRejectMessge.value = res.message;
+ formRef.value.validate();
}
} finally {
loading.value = false;
}
- }
+ }
});
}
--
2.39.3
From ab4adcb70f6c08df2b1a5e28376aa3646831c9d6 Mon Sep 17 00:00:00 2001
From: liushilong <2224574157@qq.com>
Date: Fri, 29 Mar 2024 16:32:18 +0800
Subject: [PATCH 009/143] =?UTF-8?q?fix:=202785=E3=80=812786=E4=BF=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/login/components/Forget.vue | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/views/login/components/Forget.vue b/src/views/login/components/Forget.vue
index 5588ac0..e6c4e10 100644
--- a/src/views/login/components/Forget.vue
+++ b/src/views/login/components/Forget.vue
@@ -237,6 +237,9 @@ function computedFormSure() {
async function sendCode(value) {
if (!flag.value) return;
flag.value = false;
+ if(!(formForget.phone.length == 11)){
+ return
+ }
const res = await getCode({
phone: formForget.phone,
agentcode: formForget.agentcode,
--
2.39.3
From 34937aeabf4cd48a0172c443c94b291f1ca96a27 Mon Sep 17 00:00:00 2001
From: liushilong <2224574157@qq.com>
Date: Fri, 29 Mar 2024 16:38:36 +0800
Subject: [PATCH 010/143] =?UTF-8?q?fix:=20=E6=89=80=E6=9C=89=E5=AD=97?=
=?UTF-8?q?=E6=AE=B5=E9=83=BD=E8=BE=93=E5=85=A5=E6=95=B0=E6=8D=AE=E5=90=8E?=
=?UTF-8?q?=EF=BC=8C=E4=B8=8B=E4=B8=80=E6=AD=A5=E6=8C=89=E9=92=AE=E5=BA=94?=
=?UTF-8?q?=E8=AF=A5=E5=8F=96=E6=B6=88=E7=BD=AE=E7=81=B0=E8=A3=85=E5=A1=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/login/components/Forget.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/login/components/Forget.vue b/src/views/login/components/Forget.vue
index e6c4e10..01a5bc0 100644
--- a/src/views/login/components/Forget.vue
+++ b/src/views/login/components/Forget.vue
@@ -228,7 +228,7 @@ function switchTab(type: number) {
}
function computedForm() {
- return !formInline.enterprisecode || !formInline.username || !formInline.password;
+ return !formForget.phonecode || !formForget.phone || !formForget.loginname || !formForget.agentcode;
}
function computedFormSure() {
--
2.39.3
From 9c137112f2104b24b0ddbc3d5f9b3a67d19930b9 Mon Sep 17 00:00:00 2001
From: liushilong <2224574157@qq.com>
Date: Fri, 29 Mar 2024 16:52:29 +0800
Subject: [PATCH 011/143] =?UTF-8?q?feat:=20=E3=80=90=E6=B6=88=E6=81=AF?=
=?UTF-8?q?=E9=80=9A=E7=9F=A5=E3=80=91=E7=82=B9=E5=87=BB=E6=9F=A5=E7=9C=8B?=
=?UTF-8?q?=E6=9B=B4=E5=A4=9A=E6=8C=89=E9=92=AE=EF=BC=8C=E5=8D=B3=E5=8A=A0?=
=?UTF-8?q?=E8=BD=BD=E6=89=80=E6=9C=89=E6=95=B0=E6=8D=AE=EF=BC=8C=E6=BB=9A?=
=?UTF-8?q?=E5=8A=A8=E6=98=BE=E7=A4=BA=E3=80=82=E6=AD=A4=E6=97=B6=E6=9F=A5?=
=?UTF-8?q?=E7=9C=8B=E6=9B=B4=E5=A4=9A=E6=8C=89=E9=92=AE=E9=9A=90=E8=97=8F?=
=?UTF-8?q?=EF=BC=8C=E6=97=A0=E9=9C=80=E5=86=8D=E6=AC=A1=E7=82=B9=E5=87=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/message/content/List.vue | 260 ++++++++++++++++-------------
1 file changed, 145 insertions(+), 115 deletions(-)
diff --git a/src/views/message/content/List.vue b/src/views/message/content/List.vue
index 1b1ccf2..3c13e54 100644
--- a/src/views/message/content/List.vue
+++ b/src/views/message/content/List.vue
@@ -1,32 +1,32 @@
-
+
- {{ format(item.sendTime, 'dd') }}
+ {{ format(item.sendTime, "dd") }}
- {{ format(item.sendTime, 'yyyy-MM') }}
+ {{ format(item.sendTime, "yyyy-MM") }}
@@ -150,29 +185,25 @@ function getMore() {
{{ item.titile }}
-
- 审批节点:{{ item.tag.nodeName }}
-
+
审批节点:{{ item.tag.nodeName }}
审批状态:{{ item.tag.states }}
{{ item.tag.sendUserName }}
- {{ format(item.sendTime, 'yyyy-MM-dd HH:mm:ss') }}
+ {{ format(item.sendTime, "yyyy-MM-dd HH:mm:ss") }}
{{ item.userName }}
- {{ format(item.sendTime, 'yyyy-MM-dd HH:mm:ss') }}
+ {{ format(item.sendTime, "yyyy-MM-dd HH:mm:ss") }}
-
- 查看
-
+
查看
- 查看更多
![]()
+ 查看更多
@@ -185,15 +216,15 @@ function getMore() {
flex: 1;
flex-direction: column;
box-sizing: border-box;
- background: #FFF;
+ background: #fff;
border-radius: 3px;
height: calc(100vh - 88px);
position: relative;
- .header{
+ .header {
padding: 24px;
- &-title{
+ &-title {
font-size: 20px;
font-family: PingFang SC, PingFang SC-Medium;
font-weight: 600;
@@ -201,7 +232,7 @@ function getMore() {
line-height: 28px;
}
- .clear{
+ .clear {
font-size: 14px;
font-family: PingFang SC, PingFang SC-Regular;
color: #666666;
@@ -210,7 +241,7 @@ function getMore() {
display: flex;
align-items: center;
- .icon-clear{
+ .icon-clear {
width: 16px;
height: 16px;
margin-right: 6px;
@@ -218,20 +249,20 @@ function getMore() {
}
}
- .content{
+ .content {
display: flex;
- .slider{
- .icon{
+ .slider {
+ .icon {
width: 17px;
height: 17px;
}
- .icon-arrow{
+ .icon-arrow {
width: 14px;
height: 14px;
}
- .item{
+ .item {
width: 200px;
height: 44px;
position: relative;
@@ -240,32 +271,32 @@ function getMore() {
align-items: center;
justify-content: space-between;
cursor: pointer;
- &-active{
- background: rgba(80,122,253,.1);
+ &-active {
+ background: rgba(80, 122, 253, 0.1);
}
}
- .item-left{
+ .item-left {
align-items: center;
}
- .text{
+ .text {
font-size: 14px;
font-family: PingFang SC, PingFang SC-Medium;
font-weight: 600;
color: #333333;
margin-left: 12px;
- &-active{
- color: #507AFD;
+ &-active {
+ color: #507afd;
}
}
- .icon-arrow{
+ .icon-arrow {
width: 14px;
height: 14px;
}
- .line{
+ .line {
position: absolute;
width: 3px;
height: 44px;
@@ -275,7 +306,7 @@ function getMore() {
}
}
- .list{
+ .list {
margin-left: 24px;
flex: 1;
overflow-y: auto;
@@ -284,7 +315,7 @@ function getMore() {
height: calc(100vh - 88px - 76px);
padding-right: 24px;
- .more{
+ .more {
display: flex;
align-items: center;
justify-content: center;
@@ -298,14 +329,14 @@ function getMore() {
background: #fff;
cursor: pointer;
- .icon-more{
+ .icon-more {
width: 14px;
height: 14px;
margin-left: 6px;
}
}
- .item{
+ .item {
display: flex;
align-items: center;
justify-content: space-between;
@@ -313,16 +344,16 @@ function getMore() {
padding: 16px 0 8px 25px;
border-bottom: 1px solid #eeeeee;
- &-disabled{
+ &-disabled {
opacity: 0.5;
}
}
- .pt0{
+ .pt0 {
padding-top: 0;
}
- .num{
+ .num {
font-size: 32px;
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC-Medium;
font-weight: 600;
@@ -332,7 +363,7 @@ function getMore() {
position: relative;
}
- .date{
+ .date {
font-size: 12px;
font-family: PingFang SC, PingFang SC-Regular;
text-align: left;
@@ -340,7 +371,7 @@ function getMore() {
line-height: 17px;
}
- .point{
+ .point {
position: absolute;
right: -2px;
top: 5px;
@@ -350,7 +381,7 @@ function getMore() {
background: #ff4e4f;
}
- .left{
+ .left {
width: 80px;
height: 64px;
border-right: 1px solid #e8e8e8;
@@ -360,18 +391,18 @@ function getMore() {
justify-content: center;
}
- .middle{
+ .middle {
flex: 1;
padding-left: 20px;
}
- .status{
+ .status {
display: flex;
align-items: center;
// margin-top: 8px;
}
- .tag{
+ .tag {
padding: 0 8px;
height: 24px;
border-radius: 2px;
@@ -384,22 +415,22 @@ function getMore() {
align-items: center;
}
- .tag-blue{
- background: rgba(80,122,253,0.10);
+ .tag-blue {
+ background: rgba(80, 122, 253, 0.1);
color: #507afd;
}
- .tag-red{
+ .tag-red {
color: #ff4e4f;
- background: rgba(255,78,79,0.10);
+ background: rgba(255, 78, 79, 0.1);
}
- .tag-green{
- color: #3EE199;
- background: rgba(62,225,153,0.10);
+ .tag-green {
+ color: #3ee199;
+ background: rgba(62, 225, 153, 0.1);
}
- .title{
+ .title {
font-size: 16px;
font-family: PingFang SC, PingFang SC-Medium;
font-weight: 600;
@@ -408,7 +439,7 @@ function getMore() {
line-height: 25px;
}
- .subtitle{
+ .subtitle {
font-size: 12px;
font-family: PingFang SC, PingFang SC-Regular;
text-align: left;
@@ -417,11 +448,11 @@ function getMore() {
// margin-top: 8px;
}
- .name{
+ .name {
margin-right: 16px;
}
- .look{
+ .look {
font-size: 14px;
font-family: PingFang SC, PingFang SC-Regular;
text-align: left;
@@ -430,7 +461,6 @@ function getMore() {
cursor: pointer;
}
}
-
}
}
--
2.39.3
From e616e186b81bc98a35c58573cc2caf8b513e6457 Mon Sep 17 00:00:00 2001
From: Dragon <>
Date: Fri, 29 Mar 2024 16:54:52 +0800
Subject: [PATCH 012/143] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=AE=A1=E6=89=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components.d.ts | 1 +
src/assets/images/task/btn-not-pass.png | Bin 0 -> 2870 bytes
src/assets/images/task/btn-pass.png | Bin 0 -> 2840 bytes
src/views/task/aside/ListItem.vue | 16 +--
src/views/task/content/Content.vue | 145 +++++++++++-------------
src/views/task/modal/BatchModal.vue | 2 +-
6 files changed, 77 insertions(+), 87 deletions(-)
create mode 100644 src/assets/images/task/btn-not-pass.png
create mode 100644 src/assets/images/task/btn-pass.png
diff --git a/components.d.ts b/components.d.ts
index 896d6e9..2e87e2e 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -21,6 +21,7 @@ declare module 'vue' {
NDialogProvider: typeof import('naive-ui')['NDialogProvider']
NDivider: typeof import('naive-ui')['NDivider']
NDropdown: typeof import('naive-ui')['NDropdown']
+ NEllipsis: typeof import('naive-ui')['NEllipsis']
NEmpty: typeof import('naive-ui')['NEmpty']
NForm: typeof import('naive-ui')['NForm']
NFormItem: typeof import('naive-ui')['NFormItem']
diff --git a/src/assets/images/task/btn-not-pass.png b/src/assets/images/task/btn-not-pass.png
new file mode 100644
index 0000000000000000000000000000000000000000..ef7ad59d43a8f8d7c6042acd2a54c4a9ef191b9c
GIT binary patch
literal 2870
zcmV-63(53}P)
r0024&0{{R3Sd%d$0003;P)t-s00030
zfPnmGV*F=f{AgtSW?=ttaQ}RF|9p7-XJY(nWcz1g`)6YNXJY(kV*h)1`)6YRe0cn4
zWB+`3{b*wRXJY+nWdCSr{AXhSe0TqRc>jEN|9p7=dwBnSc>jKS|9pJ^eR%(Tc>jHP
z|9*J?fPnvlegArQ|9p4*n
zZD{^`cl%{w{BdmjZ)*N`a{O#({BUdjd3E|^U;cP>{d#u&ac%zF+WzqH{D6G@wX**E
z`~KM1{e^-3o0$ETlK%Gg{i2`zeR=-4wf?B3{g{>gjfwn&fBvhf{_E@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}5s
zfxLrcfy1+j&WTvOlEl>m+zQw7=Pt7L{g6}R{Rh+(T=~wSLcjk2rHv6I@vTr#wW(wZ
z#=pI!1Hnkq5PCS<0FDo%X&iCcqP8dO<7Hm`Qz>o
z&e^QBr&?%T3WiRStMY@Z)rux=jIk_LlmJzLYtn{_3vJ$CmyQa;mHO)~esdi%Gvg=eI}+Ut+c
zCbUZN;WxYC%WuynwJ4V#Ys!^fuJ%iSrtUJ5HTfX!0->m@
zCRwV$7PG6(Ur?ctU1{rjM;aXK-o#qcIlr-XhJh3Y5}1fhL4b1MvBn@g4e2R>0SE#l
zW7*eHkT?U#-_=f#Kum&E>6mMKg*A17021YBNpx6ObNg#2Rc4(Pc77SCiK4gmSeAh{
zRTw0;gf0t$<)G=XLSOv|2V>FF#jw0hcg{x2yHriY|@C5;()BH^6vf*|4~Ya0%WSxdHbmtnSn
z)3y7|5rEiF=<*xvq6}r}a2>WpX?EJB3k#c~Ta{FY@*^ia(?7;^O4$n!NSyl7;<4fJ
zSxn2%>Zc4(G(4A2@BW7mcd@_r;#1ZBW=xS;s3f-8PPhUT(`q?BR}Njjzw7_iU)ke{
UAP80eqW}N^07*qoM6N<$g2z;wo&W#<
literal 0
HcmV?d00001
diff --git a/src/assets/images/task/btn-pass.png b/src/assets/images/task/btn-pass.png
new file mode 100644
index 0000000000000000000000000000000000000000..31b38c134066cef3a3a941666dc255818067ad3c
GIT binary patch
literal 2840
zcmV+z3+MESP)r0024&0{{R3Sd%d$00045P)t-s00010
zoc}_4@Irj?Ns9ABlJP^6@j`v^LVWNLVNH-eepw*@j`s?M3eGCeDOkj
z@I#XELw)f?e)2_=@l<`B9@I#RC
zLXGf4lJQ2B@=2cmLw@o@l=4H4@c;k+L4EK-iSR>^@Iim@L4fc=gYQCw@Ir&|L4oi>
zjqgH+??R05LW}T0d++=0vm-7Ao{++=0&*A%jtMvN({-4A5i?sDeitya%{Jz!scd7JbobsZ@_m;f&
z(c=5U*ZQ;0`GK$XT$=Jvi}CL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ufjwY1g#x%weGtiSKL!@5O1FKJUMme38^nj*$oO|BjRCu
zx7#fn5`}^Ju~L;MpcHoUmvIpZpFshIF0e3>IXLB=d>FWH-bR(%>g|@9L}f9hrK61q
zOQ+mw29mgNbefyPZSoMVgfSosNC?DqM4np8@Q@|JRr5E7$J9Y=%)#c(D^mQ~0OFf~
zz;byH!lz*{fJhFBm4|Q5{A0nrO2RB!;##s}<#5sT;g6BgLdGn44i=WhWsy#mwh#FZ
z3Jyz;3W_?&bwwAq#rH$F{`mb+If&cv2zix)&uOn
q=^%^#iy8_{ql16f46T`SBi}#Pk{vh0000 {
class="list-item-header-name"
:class="{ 'list-item-header-selected': selected }"
>
- 任务ID:{{ listItem.fromtaskname }}
+
+ 任务ID:{{ listItem.fromtaskname }}
+
@@ -55,7 +57,9 @@ const svgName = computed(() => {
提交时间:{{ format(listItem.createdate, "yyyy-MM-dd HH:mm:ss") }}
- {{ item.name }}:{{ listItem[item.id] }}
+
+ {{ item.name }}:{{ listItem[item.id] }}
+
@@ -145,14 +149,6 @@ const svgName = computed(() => {
line-height: 18px;
}
- .ellipsis{
- display: block;
- width: 226px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
&-selected {
background: rgba(68,113,232,0.07);
}
diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue
index cad5a84..452a5d1 100644
--- a/src/views/task/content/Content.vue
+++ b/src/views/task/content/Content.vue
@@ -3,8 +3,12 @@ import { computed, onMounted, onUnmounted, reactive, ref, unref, watch } from 'v
import { chunk, clone } from 'lodash-es'
import { useDialog, useMessage } from 'naive-ui'
import { useRoute } from 'vue-router'
-import NotPassed from '@/components/Approval/NotPassed.vue'
import BatchModal from '../modal/BatchModal.vue'
+import CustomSettingModal from '../modal/CustomSettingModal.vue'
+import PictureTable from './PictureTable.vue'
+import TaskTable from './TaskTable.vue'
+import History from './History.vue'
+import NotPassed from '@/components/Approval/NotPassed.vue'
import { getAllfieldList, getfieldList } from '@/api/home/filter'
import { TASK_STATUS_OBJ } from '@/enums/index'
@@ -14,12 +18,6 @@ import { useUser } from '@/store/modules/user'
import { isEmpty } from '@/utils'
import { formatToDateHMS } from '@/utils/dateUtil'
import { hideDownload } from '@/utils/image'
-import emitter from '@/utils/mitt'
-import CustomSettingModal from '../modal/CustomSettingModal.vue'
-import PictureTable from './PictureTable.vue'
-import TaskTable from './TaskTable.vue'
-import History from './History.vue'
-import type { ApprovalParam } from '/#/api'
const batch = ref(false)
const selectItems = ref
([])
@@ -28,12 +26,14 @@ const dialog = useDialog()
const notPassModalRef = ref(null)
const batchModalRef = ref(null)
const totalCount = ref(0)
+const taskId: any = ref('') // 任务id
+const packageId: any = ref('') // 包id
const CustomSettingModalRef = ref(null)
const taskTableData = ref([])
const route = useRoute()
const sortBy: any = {
- orderType: 'asc',
+ orderType: 'desc',
orderName: 'similarityScore',
}
@@ -77,8 +77,11 @@ let processItems: any[] = []
onMounted(() => {
window.addEventListener('keydown', handleKeydown)
- if (route.query.id)
- getDetail(route.query.id, route.query.packageid)
+ if (route.query.id) {
+ taskId.value = route.query.id
+ packageId.value = route.query.packageid
+ getDetail()
+ }
})
// 键盘左右箭头快捷切换
@@ -91,12 +94,6 @@ function handleKeydown(event) {
// 在这里执行右箭头的逻辑
}
-// 从任务终审列表跳转过来的
-async function getDetail(taskId, packageid) {
- taskDetailInfo.value = await getTaskDetailInfo(taskId, packageid)
- getTableData()
- getImgList()
-}
// states:1未提交,2待审批,3通过,4不通过
function validate(items: any[]) {
if (items.length === 0)
@@ -140,13 +137,32 @@ function approvalHandler(items?: any) {
return
}
+ const list: any = []
+ processItems.forEach((item) => {
+ list.push({
+ formId: item.id,
+ taskId: item.taskId,
+ taskName: item.fromTaskName,
+ })
+ })
+
+ const param = {
+ result: true,
+ comment: '',
+ disposeType: '',
+ disposeTypeId: '',
+ failCauseId: '',
+ failCauseName: '',
+ flowTaskInfoList: list,
+ }
+
dialog.info({
title: '确认提示',
content: '确认给该任务审批为【通过】吗?',
positiveText: '确定',
negativeText: '取消',
onPositiveClick: () => {
- approval()
+ doAudit(param)
},
onNegativeClick: () => {},
})
@@ -176,46 +192,17 @@ function rejectHandler(items?: any) {
modal.showModal(selectItems.value)
}
-function approval() {
- const formIds: string[] = processItems.map(item => item.id)
- const taskIds: string[] = processItems.map(item => item.taskId)
- const tasknames: string[] = processItems.map(item => item.taskname)
-
- const param: ApprovalParam = {
- formid: formIds,
- taskId: taskIds,
- approvd: true,
- taskComment: 'approval',
- taskname: tasknames,
- }
-
- doAudit(param)
-}
-
function doAudit(param: any) {
audit(param).then((res) => {
const { code } = res
setBatch(false)
- if (code === 'OK')
- emitter.emit('refresh')
- else message.error(res.message)
- })
-}
-
-function reject(idOrDesc: string, backId: string, isOther: boolean) {
- const formIds: string[] = processItems.map(item => item.id)
- const taskIds: string[] = processItems.map(item => item.taskId)
- const tasknames: string[] = processItems.map(item => item.taskname)
-
- const param: ApprovalParam = {
- formid: formIds,
- taskId: taskIds,
- approvd: false,
- taskComment: idOrDesc,
- taskname: isOther ? tasknames : ['其他'],
- }
+ if (code === 'OK') {
+ message.success('审核成功')
+ reloadList()
+ }
- doAudit(param)
+ else { message.error(res.message) }
+ })
}
function showModal(modalRef: any) {
@@ -286,20 +273,6 @@ async function getImgList() {
}
}
-watch(
- () => [taskStore.activeId],
- async () => {
- const packageid = taskStore.getPackageid
- const taskId = taskStore.getActiveId
- setBatch(false)
- if (isEmpty(taskId))
- return
- taskDetailInfo.value = await getTaskDetailInfo(taskId, packageid)
- getTableData()
- getImgList()
- },
-)
-
// 从store里面获取任务id
const currentTaskId = computed(() => {
const index = taskStore.getCurrentIndex
@@ -343,9 +316,26 @@ function previewHandler(event: MouseEvent) {
(imageRef.value as any).mergedOnClick()
}
-function reloadList() {
+watch(
+ () => [taskStore.activeId],
+ () => {
+ taskId.value = taskStore.getPackageid
+ packageId.value = taskStore.getActiveId
+ getDetail()
+ },
+)
+
+// 获取数据
+async function getDetail() {
+ taskDetailInfo.value = await getTaskDetailInfo(taskId.value, packageId.value)
+ setBatch(false)
+ getTableData()
getImgList()
}
+
+function reloadList() {
+ getDetail()
+}
@@ -415,16 +405,9 @@ function reloadList() {
返回
-
-
-
+
-
-
-
+
@@ -733,6 +716,16 @@ function reloadList() {
.batch {
display: flex;
align-items: center;
+
+ .btn-approval{
+ width: 68px;
+ height: 28px;
+ cursor: pointer;
+ }
+
+ .btn-left{
+ margin-left: 16px;
+ }
}
}
diff --git a/src/views/task/modal/BatchModal.vue b/src/views/task/modal/BatchModal.vue
index dfd2f6f..54b7b46 100644
--- a/src/views/task/modal/BatchModal.vue
+++ b/src/views/task/modal/BatchModal.vue
@@ -57,7 +57,7 @@ let _masonry: null | Masonry = null
const show = ref(false)
const sortBy: any = {
- orderType: 'asc',
+ orderType: 'desc',
orderName: 'similarityScore',
}
const batch = ref(false)
--
2.39.3
From 6286f6b272558a2aacc0d7f85a38ab4a2f67224d Mon Sep 17 00:00:00 2001
From: Dragon <>
Date: Fri, 29 Mar 2024 17:05:25 +0800
Subject: [PATCH 013/143] =?UTF-8?q?=E5=AE=A1=E6=89=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/task/content/Content.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue
index 452a5d1..73016c1 100644
--- a/src/views/task/content/Content.vue
+++ b/src/views/task/content/Content.vue
@@ -319,8 +319,8 @@ function previewHandler(event: MouseEvent) {
watch(
() => [taskStore.activeId],
() => {
- taskId.value = taskStore.getPackageid
- packageId.value = taskStore.getActiveId
+ packageId.value = taskStore.getPackageid
+ taskId.value = taskStore.getActiveId
getDetail()
},
)
--
2.39.3
From 6eb9a6e4c91ec7a55e86aeb56e1b6ffcdd010953 Mon Sep 17 00:00:00 2001
From: liushilong <2224574157@qq.com>
Date: Fri, 29 Mar 2024 17:06:36 +0800
Subject: [PATCH 014/143] =?UTF-8?q?fix:=20=E6=89=93=E5=BC=80=E9=AB=98?=
=?UTF-8?q?=E7=BA=A7=E7=AD=9B=E9=80=89=E5=88=97=E8=A1=A8=E5=90=8E=EF=BC=8C?=
=?UTF-8?q?=E5=A7=8B=E7=BB=88=E5=A4=84=E4=BA=8ELoading=E7=8A=B6=E6=80=81bu?=
=?UTF-8?q?g=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/final/comp/FilterModal.vue | 4 ++--
src/views/home/aside/comp/modals/FilterModal.vue | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/views/final/comp/FilterModal.vue b/src/views/final/comp/FilterModal.vue
index 7923eaa..e1f1ebf 100644
--- a/src/views/final/comp/FilterModal.vue
+++ b/src/views/final/comp/FilterModal.vue
@@ -119,8 +119,8 @@ async function query(page: number, pageSize: number) {
search_searchname: { value: keyword.value, op: "like", type: "string" },
};
const result = await getConditionList({ pageNo: page, pageSize }, searchParam, 1);
- const { data, pageCount,total } = result;
- total.value = total;
+ const { data, pageCount,total:totalCount } = result;
+ total.value = totalCount;
tableData.value = data;
pagination.page = page;
pagination.pageCount = pageCount;
diff --git a/src/views/home/aside/comp/modals/FilterModal.vue b/src/views/home/aside/comp/modals/FilterModal.vue
index 5bb7cf9..aa1924f 100644
--- a/src/views/home/aside/comp/modals/FilterModal.vue
+++ b/src/views/home/aside/comp/modals/FilterModal.vue
@@ -111,10 +111,10 @@ async function query(page: number, pageSize: number) {
search_searchname: { value: keyword.value, op: "like", type: "string" },
};
const result = await getConditionList({ pageNo: page, pageSize }, searchParam, 0);
- const { data, pageCount, total } = result;
+ const { data, pageCount, total:totalCount } = result;
tableData.value = data;
pagination.page = page;
- total.value = total;
+ total.value = totalCount;
pagination.pageCount = pageCount;
loading.value = false;
}
--
2.39.3
From 38aa8118c66d2f1552dcf7db28b25bfe82895da1 Mon Sep 17 00:00:00 2001
From: liushilong <2224574157@qq.com>
Date: Fri, 29 Mar 2024 17:39:26 +0800
Subject: [PATCH 015/143] =?UTF-8?q?feat:=20=E5=AF=B9=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=BF=9B=E8=A1=8C=E5=8B=BE=E9=80=89=E5=90=8E?=
=?UTF-8?q?=EF=BC=8C=E7=95=8C=E9=9D=A2=E7=9A=84=E7=8A=B6=E6=80=81=E5=88=87?=
=?UTF-8?q?=E6=8D=A2=E4=B8=8ERP=E8=A6=81=E6=B1=82=E4=B8=8D=E7=AC=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/final/comp/FilterModal.vue | 38 +++++++++++++++++--
.../home/aside/comp/modals/FilterModal.vue | 16 +++++++-
2 files changed, 49 insertions(+), 5 deletions(-)
diff --git a/src/views/final/comp/FilterModal.vue b/src/views/final/comp/FilterModal.vue
index e1f1ebf..b2b4278 100644
--- a/src/views/final/comp/FilterModal.vue
+++ b/src/views/final/comp/FilterModal.vue
@@ -8,6 +8,7 @@ import {
reactive,
ref,
unref,
+ computed,
} from "vue";
import { NDataTable } from "naive-ui";
import type { DataTableColumns, DataTableRowKey } from "naive-ui";
@@ -26,6 +27,7 @@ const emit = defineEmits<{
}>();
const show = ref(false);
+const checkedRowKeys = ref([]);
const cardStyle = {
width: "800px",
@@ -109,7 +111,7 @@ const pagination = reactive({
},
],
showQuickJumper: true,
- prefix:()=>`共 ${total.value} 条数据`
+ prefix: () => `共 ${total.value} 条数据`,
});
const tableData = ref>([]);
const keyword = ref("");
@@ -119,7 +121,7 @@ async function query(page: number, pageSize: number) {
search_searchname: { value: keyword.value, op: "like", type: "string" },
};
const result = await getConditionList({ pageNo: page, pageSize }, searchParam, 1);
- const { data, pageCount,total:totalCount } = result;
+ const { data, pageCount, total: totalCount } = result;
total.value = totalCount;
tableData.value = data;
pagination.page = page;
@@ -283,6 +285,10 @@ const inputHandler = debounce((word) => {
keyword.value = word;
query(1, 5);
}, 300);
+
+const showSearch = computed(() => {
+ return selectionIds.value.length > 0;
+});
@@ -307,7 +313,7 @@ const inputHandler = debounce((word) => {
基本信息
-
@@ -378,6 +400,16 @@ const inputHandler = debounce((word) => {
width: 300px;
border: 1px solid gray;
}
+ .del_btn{
+
+ }
+ .msg{
+ a{
+ margin-left: 30px;
+ cursor: pointer;
+ color: #507afd;
+ }
+ }
}
&-table {
diff --git a/src/views/home/aside/comp/modals/FilterModal.vue b/src/views/home/aside/comp/modals/FilterModal.vue
index aa1924f..ef8428e 100644
--- a/src/views/home/aside/comp/modals/FilterModal.vue
+++ b/src/views/home/aside/comp/modals/FilterModal.vue
@@ -1,5 +1,14 @@
@@ -547,7 +534,6 @@ function approval() {
-
任务包图片
@@ -615,6 +601,7 @@ function approval() {
+
diff --git a/types/workorder.d.ts b/types/workorder.d.ts
index 36781d1..e0fd016 100644
--- a/types/workorder.d.ts
+++ b/types/workorder.d.ts
@@ -16,6 +16,7 @@ export interface OrderState {
activeId: string
currentIndex: number
packageList: PackageListItem[]
+ approvalList: any[]
immersion: boolean
}
--
2.39.3
From bdf4ac31c62814492193b36c3d7c1cba0f6d14d5 Mon Sep 17 00:00:00 2001
From: shuliYao <1397940314@qq.com>
Date: Fri, 29 Mar 2024 20:12:04 +0800
Subject: [PATCH 018/143] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E9=A6=96?=
=?UTF-8?q?=E9=A1=B5=E6=96=B0=E5=9B=BE=E7=89=87=EF=BC=8C=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?-1=E7=9B=B8=E4=BC=BC=E5=BA=A6=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/home/content/Content.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/home/content/Content.vue b/src/views/home/content/Content.vue
index be25774..8ebdf46 100644
--- a/src/views/home/content/Content.vue
+++ b/src/views/home/content/Content.vue
@@ -480,7 +480,7 @@ function cancel(val) {
-
+
{{ `${item.similar}%` }}
--
2.39.3
From ed48e7d6f4b24967a353cf93f8249e354b48fd28 Mon Sep 17 00:00:00 2001
From: Dragon <>
Date: Sat, 30 Mar 2024 08:26:45 +0800
Subject: [PATCH 019/143] bug
---
src/views/final/content/Content.vue | 652 ++++++++++++++--------------
src/views/task/content/Content.vue | 2 +-
2 files changed, 336 insertions(+), 318 deletions(-)
diff --git a/src/views/final/content/Content.vue b/src/views/final/content/Content.vue
index d0b8596..6da9fac 100644
--- a/src/views/final/content/Content.vue
+++ b/src/views/final/content/Content.vue
@@ -1,6 +1,6 @@
@@ -743,7 +761,9 @@ async function refreshHandler(searchId?: any) {
-
小结查重
+
+ 小结查重
+
批量审批
@@ -761,19 +781,13 @@ async function refreshHandler(searchId?: any) {
@@ -823,10 +837,11 @@ async function refreshHandler(searchId?: any) {
:on-success="sucessHandler"
:header-config="headRules"
/>
-
+
+
@@ -834,6 +849,9 @@ async function refreshHandler(searchId?: any) {
--
2.39.3
From a45916ebd0d64089e14912eaf0a6d444fe54136c Mon Sep 17 00:00:00 2001
From: lizijiee <562949697@qq.com>
Date: Sat, 30 Mar 2024 16:00:37 +0800
Subject: [PATCH 029/143] =?UTF-8?q?fix:=20=E6=8E=A5=E5=8F=A3=E5=AD=97?=
=?UTF-8?q?=E6=AE=B5=E8=B0=83=E6=95=B4=EF=BC=8C=E5=89=8D=E7=AB=AF=E6=97=B6?=
=?UTF-8?q?=E9=97=B4=E6=A0=BC=E5=BC=8F=E5=8C=96=E9=94=99=E8=AF=AF=EF=BC=8C?=
=?UTF-8?q?=E9=98=BB=E5=A1=9E=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/worksheet/content/Content.vue | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue
index 8cdbce5..4d2d7f0 100644
--- a/src/views/worksheet/content/Content.vue
+++ b/src/views/worksheet/content/Content.vue
@@ -496,7 +496,7 @@ function reloadList() {
图片大小
- {{ taskDetailInfo?.pictureInfo &&
+ {{ taskDetailInfo?.pictureInfo && taskDetailInfo?.pictureInfo?.imgSize&&
(taskDetailInfo?.pictureInfo?.imgSize / 1000).toFixed(2) }}KB
@@ -522,8 +522,7 @@ function reloadList() {
创建时间
- {{ taskDetailInfo?.pictureInfo &&
- format(taskDetailInfo?.pictureInfo?.createTime, 'yyyy-MM-dd HH:mm:ss') }}
+ {{ taskDetailInfo?.pictureInfo && taskDetailInfo?.pictureInfo.createTime }}
提报时间
--
2.39.3
From 8f499e6343070539fc9115d9c8ebe53cee643e30 Mon Sep 17 00:00:00 2001
From: Dragon <>
Date: Sat, 30 Mar 2024 16:01:48 +0800
Subject: [PATCH 030/143] bug
---
src/components/Approval/NotPassed.vue | 6 +--
src/views/task/aside/Aside.vue | 10 ++++-
src/views/task/aside/ListItem.vue | 3 --
src/views/task/aside/TaskList.vue | 6 +++
src/views/task/content/Content.vue | 61 ++++++++++++---------------
src/views/task/index.vue | 11 ++++-
6 files changed, 52 insertions(+), 45 deletions(-)
diff --git a/src/components/Approval/NotPassed.vue b/src/components/Approval/NotPassed.vue
index e2d4031..04bad76 100644
--- a/src/components/Approval/NotPassed.vue
+++ b/src/components/Approval/NotPassed.vue
@@ -4,9 +4,7 @@ import { useMessage } from 'naive-ui'
import { useDictionary } from '@/store/modules/dictonary'
import { audit } from '@/api/task/task'
-const emit = defineEmits<{
- (e: 'success')
-}>()
+const emit = defineEmits(['success'])
const message = useMessage()
const loading = ref(false)
@@ -104,7 +102,7 @@ async function handleSumbit(e: MouseEvent) {
const { code } = res
if (code === 'OK') {
message.success('审核成功')
- emit('success')
+ emit('success', param)
closeModal()
}
else { message.error(res.message) }
diff --git a/src/views/task/aside/Aside.vue b/src/views/task/aside/Aside.vue
index c8a8ab4..17d1790 100644
--- a/src/views/task/aside/Aside.vue
+++ b/src/views/task/aside/Aside.vue
@@ -20,7 +20,7 @@ import emitter from '@/utils/mitt'
const CustomFieldModalRef = ref(null)
const collapse = ref(false)
const taskStore = useTaskStore()
-const taskListRef = ref(null)
+const taskListRef: any = ref(null)
// 展示字段
const showFieldList = ref([])
@@ -144,6 +144,14 @@ function editFilter(filter: any) {
modal.showModal()
modal.edit(filter)
}
+
+function setAsideItemName(text) {
+ taskListRef.value.setStatusName(text)
+}
+
+defineExpose({
+ setAsideItemName,
+})
diff --git a/src/views/task/aside/ListItem.vue b/src/views/task/aside/ListItem.vue
index d2ac772..f81bf6e 100644
--- a/src/views/task/aside/ListItem.vue
+++ b/src/views/task/aside/ListItem.vue
@@ -53,9 +53,6 @@ const svgName = computed(() => {
"
>{{ listItem.statshisText }}
-
- 提报时间:{{ format(listItem.finishTime, "yyyy-MM-dd HH:mm:ss") }}
-
提交时间:{{ format(listItem.createdate, "yyyy-MM-dd HH:mm:ss") }}
diff --git a/src/views/task/aside/TaskList.vue b/src/views/task/aside/TaskList.vue
index a53597e..eb88cf6 100644
--- a/src/views/task/aside/TaskList.vue
+++ b/src/views/task/aside/TaskList.vue
@@ -104,8 +104,14 @@ async function refreshHandler() {
search('')
}
+function setStatusName(text) {
+ const index = taskStore.getCurrentIndex
+ data.value[index].statshisText = text
+}
+
defineExpose({
search,
+ setStatusName,
})
diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue
index af5d094..af253a2 100644
--- a/src/views/task/content/Content.vue
+++ b/src/views/task/content/Content.vue
@@ -19,6 +19,7 @@ import { isEmpty } from '@/utils'
import { formatToDateHMS } from '@/utils/dateUtil'
import { hideDownload } from '@/utils/image'
+const emit = defineEmits(['setAsideItemName'])
const batch = ref(false)
const selectItems = ref
([])
const message = useMessage()
@@ -43,11 +44,8 @@ function setBatch(value: boolean) {
batch.value = value
- if (value === false) {
- selectItems.value.forEach(item => (item.checked = false))
- selectItems.value.length = 0
- selectItems.value.length = 0
- }
+ if (value === false)
+ selectItems.value = []
}
function onCheckChange(checked: any, item: any) {
@@ -94,6 +92,12 @@ function handleKeydown(event) {
// 在这里执行右箭头的逻辑
}
+// 从store里面获取任务id
+function currentTaskId() {
+ const index = taskStore.getCurrentIndex
+ return taskStore.getApprovalList[index]?.id || ''
+}
+
// states:1未提交,2待审批,3通过,4不通过
function validate(items: any[]) {
if (items.length === 0)
@@ -169,36 +173,22 @@ function approvalHandler(items?: any) {
}
function rejectHandler(items?: any) {
- // let cloneItem: any
- // if (batch.value) {
- // processItems = selectItems.value
- // }
- // else if (overTask.value) {
- // cloneItem = clone(overTask.value)
- // processItems = [cloneItem]
- // }
-
- // if (items !== undefined && !(items instanceof PointerEvent))
- // processItems = items
-
- // const msg = validate(processItems)
-
- // if (msg !== null) {
- // message.error(msg)
- // return
- // }
-
const modal = unref(notPassModalRef)! as any
modal.showModal(selectItems.value)
}
+function singleRejectHandler() {
+ const modal = unref(notPassModalRef)! as any
+ modal.showModal([taskDetailInfo.value])
+}
+
function doAudit(param: any) {
audit(param).then((res) => {
const { code } = res
- setBatch(false)
if (code === 'OK') {
message.success('审核成功')
- reloadList()
+ setBatch(false)
+ reloadList(param, '通过')
}
else { message.error(res.message) }
@@ -273,12 +263,6 @@ async function getImgList() {
}
}
-// 从store里面获取任务id
-const currentTaskId = computed(() => {
- const index = taskStore.getCurrentIndex
- return taskStore.getApprovalList[index]?.id || ''
-})
-
function overTaskHandle() {
const item = taskDetailInfo.value
if (item?.userapprove?.statshis === 2 || item?.userapprove?.statshis == 3) {
@@ -333,7 +317,14 @@ async function getDetail() {
getImgList()
}
-function reloadList() {
+function reloadList(param, text) {
+ // 修改左侧状态
+ const id = currentTaskId()
+ const hasCurrentId = param.flowTaskInfoList.find(item => item.formId === id)
+
+ if (hasCurrentId)
+ emit('setAsideItemName', text)
+
getDetail()
}
@@ -434,7 +425,7 @@ function reloadList() {
width="168"
height="48"
name="r7"
- @click.stop="rejectHandler"
+ @click.stop="singleRejectHandler"
/>
@@ -575,7 +566,7 @@ function reloadList() {
-
+
reloadList(param, '不通过')" />
+import { ref } from 'vue'
import Aside from './aside/Aside.vue'
import Content from './content/Content.vue'
+
+const asideRef: any = ref(null)
+
+function setAsideItemName(text) {
+ asideRef.value.setAsideItemName(text)
+}
--
2.39.3
From ff11552fc67086b1f3ff97fe1599a30a0ecb6976 Mon Sep 17 00:00:00 2001
From: lizijiee <562949697@qq.com>
Date: Sat, 30 Mar 2024 16:06:56 +0800
Subject: [PATCH 031/143] =?UTF-8?q?fix:=202819=20=E3=80=90AI=E5=B7=A5?=
=?UTF-8?q?=E5=8D=95=E7=AE=A1=E7=90=86=E3=80=91=E5=90=8D=E5=AD=97=E6=94=B9?=
=?UTF-8?q?=E5=8F=98=EF=BC=8C=E5=8F=98=E6=88=90=E5=9B=BE=E5=AE=A1=E5=AE=A1?=
=?UTF-8?q?=E6=89=B9=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
mock/user/user.ts | 2 +-
src/router/modules/worksheet.ts | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/mock/user/user.ts b/mock/user/user.ts
index 22854ed..ff5816e 100644
--- a/mock/user/user.ts
+++ b/mock/user/user.ts
@@ -23,7 +23,7 @@ const adminInfo = {
value: 'task-main',
},
{
- label: 'AI工单',
+ label: '图审审批管理',
value: 'worksheet-main',
},
],
diff --git a/src/router/modules/worksheet.ts b/src/router/modules/worksheet.ts
index 8a46a38..d80eb8d 100644
--- a/src/router/modules/worksheet.ts
+++ b/src/router/modules/worksheet.ts
@@ -1,5 +1,5 @@
-import type { RouteRecordRaw } from 'vue-router'
import { Layout } from '@/router/constant'
+import type { RouteRecordRaw } from 'vue-router'
/**
* @param name 路由名称, 必须设置,且不能重名
@@ -19,7 +19,7 @@ const routes: Array = [
redirect: '/worksheet',
component: Layout,
meta: {
- title: 'AI工单',
+ title: '图审审批管理',
permissions: ['worksheet-main'],
svgname: 'worksheet',
svgsize: 22,
@@ -30,7 +30,7 @@ const routes: Array = [
path: 'worksheet',
name: 'worksheet-main',
meta: {
- title: 'AI工单',
+ title: '图审审批管理',
},
component: () => import('@/views/worksheet/index.vue'),
},
--
2.39.3
From ac5aeb5c0511f1b861911dc66dbf54fd455dd1f5 Mon Sep 17 00:00:00 2001
From: liushilong <2224574157@qq.com>
Date: Sat, 30 Mar 2024 18:28:04 +0800
Subject: [PATCH 032/143] =?UTF-8?q?feat:=20bug=E4=BF=AE=E5=A4=8D=EF=BC=8C?=
=?UTF-8?q?=E5=AE=A1=E6=89=B9=E5=8F=B3=E4=BE=A7=E8=A1=A8=E6=A0=BC=E9=AB=98?=
=?UTF-8?q?=E4=BA=AE=E5=B1=95=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/task/content/Content.vue | 563 ++++++++++++----------
src/views/task/content/TaskTable.vue | 20 +-
src/views/task/modal/CustomFieldModal.vue | 5 +-
3 files changed, 314 insertions(+), 274 deletions(-)
diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue
index 697b41a..357c89d 100644
--- a/src/views/task/content/Content.vue
+++ b/src/views/task/content/Content.vue
@@ -1,103 +1,103 @@
@@ -343,24 +345,11 @@ function reloadList() {