更新命名问题

This commit is contained in:
2025-06-25 11:52:01 +08:00
parent 9f374011ae
commit 6b78ee29cf
57 changed files with 3295 additions and 1288 deletions
+2 -1
View File
@@ -29,7 +29,7 @@ class Index extends BaseController
View::assign('type', get_task_cate());
View::assign('cate', get_work_cate());
View::assign('task_cate', get_task_cate());
View::assign('project', get_project($this->uid));
View::assign('project', get_project());
View::assign('creater', get_admin_name());
View::assign('user_info', get_login_admin());
return view();
@@ -254,6 +254,7 @@ class Index extends BaseController
if (isset($param['project_id'])) {
View::assign('project_id', $param['project_id']);
}
View::assign('project', get_project());
View::assign('cate', get_work_cate());
View::assign('type', get_task_cate());
View::assign('id', $id);
+9 -16
View File
@@ -136,7 +136,7 @@
[
{
field: "id",
title: "任务编号",
title: "ID",
width: 80,
align: "center",
templet: function (d) {
@@ -145,9 +145,8 @@
},
{
field: "type_name",
title: "紧急程度",
title: "优先级",
width: 80,
align: "center",
templet: function (d) {
var html =
'<span class="layui-badge bg-priority-' +
@@ -161,7 +160,6 @@
{
field: "flow_name",
title: "状态",
align: "center",
width: 80,
templet: function (d) {
var html =
@@ -177,7 +175,6 @@
field: "project_id",
title: "所属项目",
width: 200,
align: "center",
templet: function (d) {
var html =
'<a class="link-a"' +
@@ -211,7 +208,6 @@
field: "type_name",
title: "任务类型",
width: 100,
align: "center",
templet: function (d) {
var html =
'<span class="color-status-' +
@@ -226,7 +222,6 @@
field: "type_name",
title: "任务性质",
width: 220,
align: "center",
templet: function (d) {
var html = '';
if (d.is_bug === 0) {
@@ -242,7 +237,6 @@
{
field: "flow_name",
title: "完成进度",
align: "center",
width: 150,
templet: function (d) {
var progress =
@@ -276,14 +270,12 @@
{
field: "creater_name",
title: "创建人",
align: "center",
width: 80,
},
{
field: "director_name",
title: "负责人",
align: "center",
width: 80,
title: "指派负责人",
width: 140,
},
// { field: "assist_admin_names", title: "协作人", width: 200 },
// { field: "cate_name", title: "工作类型", width: 90, align: "center" },
@@ -296,7 +288,7 @@
{
field: "end_time",
title: "预计结束日期",
width: 150,
width: 180,
templet: function (d) {
var html = d.end_time;
if (d.delay > 0) {
@@ -386,12 +378,13 @@
tableReload();
}, 10);
});
//只看我按钮代码
$("#taskForm").on("click", '[lay-filter="onlyme"]', function () {
let loginuser = $("#loginusers").val(); // 从隐藏的输入字段中获取loginuser的值
let loginuser = $("#loginusers").val();
$("#taskForm").find('[name="director_uid"]').val(loginuser); // 将director_uid的值设置为loginuser
$("#taskForm").find('[name="director_uid"]').val(loginuser);
let postData = {
type: $("#taskForm").find('[name="type"]').val(),
@@ -410,7 +403,7 @@
});
//重新加载表格
function tableReload() {
let postData = {
type: $("#taskForm").find('[name="type"]').val(),