This commit is contained in:
weipengfei 2023-08-19 09:31:14 +08:00
parent e172ee6e14
commit 39f6609b22
4 changed files with 12 additions and 12 deletions

View File

@ -1,26 +1,26 @@
import request from '@/utils/request'
// 任务模板列表
// 任务安排列表
export function apiTaskTemplateLists(params: any) {
return request.get({ url: '/task_template.task_template/lists', params })
}
// 添加任务模板
// 添加任务安排
export function apiTaskTemplateAdd(params: any) {
return request.post({ url: '/task_template.task_template/add', params })
}
// 编辑任务模板
// 编辑任务安排
export function apiTaskTemplateEdit(params: any) {
return request.post({ url: '/task_template.task_template/edit', params })
}
// 删除任务模板
// 删除任务安排
export function apiTaskTemplateDelete(params: any) {
return request.post({ url: '/task_template.task_template/delete', params })
}
// 任务模板详情
// 任务安排详情
export function apiTaskTemplateDetail(params: any) {
return request.get({ url: '/task_template.task_template/detail', params })
}

View File

@ -22,7 +22,7 @@
:disabled="true"
v-model="formData.id"
clearable
placeholder="请输入任务模板"
placeholder="请输入任务安排"
/>
</el-form-item>
<el-form-item label="任务日期" prop="datetime">
@ -37,14 +37,14 @@
@change="changeDateTime"
/>
</el-form-item>
<el-form-item label="任务模板" prop="template_id">
<el-form-item label="任务安排" prop="template_id">
<el-input
:disabled="isDisabled"
v-model="formData.template_name"
@click="isShow = true"
name="template_id"
clearable
placeholder="请输入任务模板"
placeholder="请输入任务安排"
/>
</el-form-item>
<el-form-item label="任务描述" v-if="formData.template_name">
@ -60,7 +60,7 @@
</el-form-item> -->
</el-form>
</popup>
<el-dialog v-model="isShow" title="选择任务模板" width="60%">
<el-dialog v-model="isShow" title="选择任务安排" width="60%">
<DialogIndex @customEvent="customEvent" :company_id="props.company_id" />
</el-dialog>
</div>
@ -111,7 +111,7 @@ const rules = reactive<FormRules<RuleForm>>({
datetime: { required: true, message: "请选择时间范围", trigger: "blur" },
template_id: {
required: true,
message: "请选择任务模板",
message: "请选择任务安排",
trigger: "change",
},
});

View File

@ -111,7 +111,7 @@
company_id: row.company_id,
},
}"
>任务模板</router-link
>任务安排</router-link
>
</el-button>
<el-button v-perms="['task.task_calendar']" type="primary" link>

View File

@ -191,7 +191,7 @@ const datalist = ref([]);
const route = useRoute();
//
const popupTitle = computed(() => {
return mode.value == "edit" ? "编辑任务模板" : "新增任务模板";
return mode.value == "edit" ? "编辑任务安排" : "新增任务安排";
});
//