Commit ec01d980 authored by 仇晓婷's avatar 仇晓婷

文档分类

parent e1f72a3b
......@@ -30,28 +30,7 @@
<Input v-model="entity.englishName"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('status')" prop="status">
<Dictionary
code="word_classification_status"
v-model="entity.status"
></Dictionary>
<!-- <InputNumber v-model="entity.status"></InputNumber> -->
</FormItem>
</Col>
<Col :span="12">
<FormItem
:label="l('inheritCategoryId')"
prop="inheritCategoryId"
v-if="row.id"
>
<!-- <Checkbox v-model="entity.inheritCategoryId"></Checkbox> -->
<RadioGroup v-model="inherit">
<Radio label="1"></Radio>
<Radio label="0"></Radio>
</RadioGroup>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('templateId')" prop="templateId">
<Select
......@@ -80,18 +59,33 @@
</Select>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('status')" prop="status">
<Dictionary
code="word_classification_status"
v-model="entity.status"
type="radio"
></Dictionary>
<!-- <InputNumber v-model="entity.status"></InputNumber> -->
</FormItem>
</Col>
<Col :span="24">
<FormItem :label="l('description')" prop="description">
<Input v-model="entity.description" type="textarea" :rows="5"></Input>
</FormItem>
</Col>
<!-- <Col :span="24">
<FormItem :label="l('templateId')" prop="templateId">
<Input v-model="entity.templateId"></Input>
<Col :span="12" v-if="eid != 0">
<FormItem label="扩展属性" prop="inheritCategoryId">
<!-- <Checkbox v-model="entity.inheritCategoryId"></Checkbox> -->
<RadioGroup v-model="inherit">
<Radio label="1">继承</Radio>
<Radio label="0">自定义</Radio>
</RadioGroup>
</FormItem>
</Col>-->
<Col :span="24" v-if="inherit == 0">
</Col>
<Col :span="24" v-if="inherit == '0'">
<Divider orientation="left">扩展属性</Divider>
<Table :columns="columns" :data="checkList" border>
<template slot-scope="{ row, index }" slot="title">
......@@ -198,16 +192,15 @@ export default {
type: 0,
englishFullName: "",
englishName: "",
status: 0,
status: 1,
description: "",
inheritCategoryId: "0", //0否,是,row的id值
template: "",
templateId: "",
},
inherit: "0",
inherit: this.eid ? "1" : "0",
rules: {
name: [{ required: true, message: "必填", trigger: "blur" }],
workFlowIds: [{ required: true, message: "必填", trigger: "change" }],
},
checkList: [
{
......@@ -341,6 +334,10 @@ export default {
row: Object,
eid: Number,
},
created() {
// console.log(this.row.id);
console.log(this.eid);
},
mounted() {
this.tebleSet();
this.loadTemplate();
......@@ -435,10 +432,10 @@ export default {
handleSubmit() {
this.$refs.form.validate((v) => {
if (v) {
if (this.row.id) {
this.entity.upId = this.row.id;
if (this.eid) {
this.entity.upId = this.eid;
this.entity.level = this.row.level;
this.entity.inheritCategoryId = this.row.id;
this.entity.inheritCategoryId = this.eid;
} else {
this.entity.upId = 0;
this.entity.level = 1;
......@@ -485,6 +482,5 @@ export default {
return this.$t(key);
},
},
watch: {},
};
</script>
\ No newline at end of file
......@@ -31,28 +31,7 @@
<Input v-model="entity.englishName"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('status')" prop="status">
<Dictionary
code="word_classification_status"
v-model="entity.status"
></Dictionary>
<!-- <InputNumber v-model="entity.status"></InputNumber> -->
</FormItem>
</Col>
<Col :span="12">
<FormItem
:label="l('inheritCategoryId')"
prop="inheritCategoryId"
v-if="entity.upId != 0"
>
<!-- <Checkbox v-model="entity.inheritCategoryId"></Checkbox> -->
<RadioGroup v-model="inherit">
<Radio label="1"></Radio>
<Radio label="0"></Radio>
</RadioGroup>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('templateId')" prop="templateId">
<Select
......@@ -81,17 +60,32 @@
</Select>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('status')" prop="status">
<Dictionary
code="word_classification_status"
v-model="entity.status"
type="radio"
></Dictionary>
<!-- <InputNumber v-model="entity.status"></InputNumber> -->
</FormItem>
</Col>
<Col :span="24">
<FormItem :label="l('description')" prop="description">
<Input v-model="entity.description" type="textarea" :rows="5"></Input>
</FormItem>
</Col>
<!-- <Col :span="24">
<FormItem :label="l('templateId')" prop="templateId">
<Input v-model="entity.templateId"></Input>
<Col :span="12" v-if="eid != 0">
<FormItem label="扩展属性" prop="inheritCategoryId">
<!-- <Checkbox v-model="entity.inheritCategoryId"></Checkbox> -->
<RadioGroup v-model="inherit">
<Radio label="1">继承</Radio>
<Radio label="0">自定义</Radio>
</RadioGroup>
</FormItem>
</Col>-->
</Col>
<Col :span="24" v-if="inherit == 0">
<Divider orientation="left">扩展属性</Divider>
<Table :columns="columns" :data="checkList" border>
......@@ -189,10 +183,11 @@ export default {
return {
parmsName: "app=material&eid=1&name=documentTemplate",
codeList: [],
entity: {},
entity: {
status:'1'
},
rules: {
name: [{ required: true, message: "必填", trigger: "blur" }],
workFlowIds: [{ required: true, message: "必填", trigger: "change" }],
},
templates: [],
workFlows: [],
......
......@@ -223,13 +223,15 @@ export default {
res,
0,
(u) => {
u.expand = true;
// console.log(u);
u.expanded = false;
u.selected = false;
u.checked = false;
},
"upId"
);
this.treeData = this.$u.clone(data);
console.log(this.treeData);
});
},
//查询
......@@ -253,7 +255,7 @@ export default {
this.modal = true;
},
addrow(row) {
this.curId = 0;
this.curId = row.id;
this.row = row;
this.detail = () => import("./add");
this.modal = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment