|
@@ -33,7 +33,7 @@
|
|
|
:labelCol="threeCol.label"
|
|
:labelCol="threeCol.label"
|
|
|
:wrapperCol="threeCol.wrapper"
|
|
:wrapperCol="threeCol.wrapper"
|
|
|
label="稽核名称">
|
|
label="稽核名称">
|
|
|
- <a-input decorator="['tableName1', validatorRules.tableName ]" :readOnly="editPageFlag" placeholder="请输入稽核名称"></a-input>
|
|
|
|
|
|
|
+ <a-input v-decorator="['tableName', validatorRules.tableName ]" :readOnly="editPageFlag" placeholder="请输入稽核名称"></a-input>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="8">
|
|
<a-col :span="8">
|
|
@@ -41,7 +41,7 @@
|
|
|
:labelCol="threeCol.label"
|
|
:labelCol="threeCol.label"
|
|
|
:wrapperCol="threeCol.wrapper"
|
|
:wrapperCol="threeCol.wrapper"
|
|
|
label="稽核描述">
|
|
label="稽核描述">
|
|
|
- <a-input decorator="['tableTxt1', validatorRules.tableTxt ]" :readOnly="editPageFlag" placeholder="请输入稽核描述"></a-input>
|
|
|
|
|
|
|
+ <a-input v-decorator="['tableTxt', validatorRules.tableTxt ]" :readOnly="editPageFlag" placeholder="请输入稽核描述"></a-input>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
@@ -51,10 +51,10 @@
|
|
|
<a-form-item style="width: 100%"
|
|
<a-form-item style="width: 100%"
|
|
|
:labelCol="threeCol.label"
|
|
:labelCol="threeCol.label"
|
|
|
:wrapperCol="threeCol.wrapper"
|
|
:wrapperCol="threeCol.wrapper"
|
|
|
- label="是否包含任务">
|
|
|
|
|
|
|
+ label="任务模式">
|
|
|
<a-select v-decorator="[ 'isTree1', {initialValue: 'N'}]">
|
|
<a-select v-decorator="[ 'isTree1', {initialValue: 'N'}]">
|
|
|
- <a-select-option value="Y">是</a-select-option>
|
|
|
|
|
- <a-select-option value="N">否</a-select-option>
|
|
|
|
|
|
|
+ <a-select-option value="Y">有</a-select-option>
|
|
|
|
|
+ <a-select-option value="N">无</a-select-option>
|
|
|
</a-select>
|
|
</a-select>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
@@ -62,10 +62,10 @@
|
|
|
<a-form-item style="width: 100%"
|
|
<a-form-item style="width: 100%"
|
|
|
:labelCol="threeCol.label"
|
|
:labelCol="threeCol.label"
|
|
|
:wrapperCol="threeCol.wrapper"
|
|
:wrapperCol="threeCol.wrapper"
|
|
|
- label="是否包含导入">
|
|
|
|
|
|
|
+ label="导入功能">
|
|
|
<a-select v-decorator="[ 'isPage1', {initialValue: 'N'}]">
|
|
<a-select v-decorator="[ 'isPage1', {initialValue: 'N'}]">
|
|
|
- <a-select-option value="Y">是</a-select-option>
|
|
|
|
|
- <a-select-option value="N">否</a-select-option>
|
|
|
|
|
|
|
+ <a-select-option value="Y">有</a-select-option>
|
|
|
|
|
+ <a-select-option value="N">无</a-select-option>
|
|
|
</a-select>
|
|
</a-select>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
@@ -74,19 +74,19 @@
|
|
|
:labelCol="threeCol.label"
|
|
:labelCol="threeCol.label"
|
|
|
:wrapperCol="threeCol.wrapper"
|
|
:wrapperCol="threeCol.wrapper"
|
|
|
label="菜单排序">
|
|
label="菜单排序">
|
|
|
- <a-input decorator="['sortIndex1', validatorRules.tableTxt ]" :readOnly="editPageFlag" placeholder="请输入菜单排序"></a-input>
|
|
|
|
|
|
|
+ <a-input-number v-decorator="['sortIndex', {initialValue: 10}]" placeholder="请输入菜单排序"></a-input-number>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <a-row style="width: 100%" :gutter="gutter">
|
|
|
|
|
|
|
+ <a-row style="width: 100%" :gutter="gutter" v-show="false">
|
|
|
<a-col :span="8">
|
|
<a-col :span="8">
|
|
|
<a-form-item style="width: 100%"
|
|
<a-form-item style="width: 100%"
|
|
|
:labelCol="threeCol.label"
|
|
:labelCol="threeCol.label"
|
|
|
:wrapperCol="threeCol.wrapper"
|
|
:wrapperCol="threeCol.wrapper"
|
|
|
label="表名">
|
|
label="表名">
|
|
|
- <a-input decorator="['tableName', validatorRules.tableName ]" :readOnly="editPageFlag" placeholder="请输入表名"></a-input>
|
|
|
|
|
|
|
+ <a-input v-decorator="['tableName3', validatorRules.tableName ]" :readOnly="editPageFlag" placeholder="请输入表名"></a-input>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="8">
|
|
<a-col :span="8">
|
|
@@ -94,7 +94,7 @@
|
|
|
:labelCol="threeCol.label"
|
|
:labelCol="threeCol.label"
|
|
|
:wrapperCol="threeCol.wrapper"
|
|
:wrapperCol="threeCol.wrapper"
|
|
|
label="表描述">
|
|
label="表描述">
|
|
|
- <a-input decorator="['tableTxt', validatorRules.tableTxt ]" :readOnly="editPageFlag" placeholder="请输入表描述"></a-input>
|
|
|
|
|
|
|
+ <a-input v-decorator="['tableTxt3', validatorRules.tableTxt ]" :readOnly="editPageFlag" placeholder="请输入表描述"></a-input>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="8">
|
|
<a-col :span="8">
|
|
@@ -133,15 +133,14 @@
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
|
|
|
|
|
- <a-row style="width: 100%" :gutter="gutter">
|
|
|
|
|
|
|
+ <a-row style="width: 100%" :gutter="gutter" v-show="false">
|
|
|
<a-col :span="8">
|
|
<a-col :span="8">
|
|
|
<a-form-item style="width: 100%"
|
|
<a-form-item style="width: 100%"
|
|
|
:labelCol="threeCol.label"
|
|
:labelCol="threeCol.label"
|
|
|
:wrapperCol="threeCol.wrapper"
|
|
:wrapperCol="threeCol.wrapper"
|
|
|
label="表单分类">
|
|
label="表单分类">
|
|
|
- <j-dict-select-tag decorator="[ 'formCategory', {initialValue: 'temp'}]"
|
|
|
|
|
|
|
+ <j-dict-select-tag v-decorator="[ 'formCategory', {initialValue: 'temp'}]"
|
|
|
dictCode="ol_form_biz_type"
|
|
dictCode="ol_form_biz_type"
|
|
|
- :trigger-change="true"
|
|
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
></j-dict-select-tag>
|
|
></j-dict-select-tag>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -172,7 +171,7 @@
|
|
|
</a-row>
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <a-row style="width: 100%" :gutter="gutter">
|
|
|
|
|
|
|
+ <a-row style="width: 100%" :gutter="gutter" v-show="false">
|
|
|
<a-col :span="8">
|
|
<a-col :span="8">
|
|
|
<a-form-item style="width: 100%"
|
|
<a-form-item style="width: 100%"
|
|
|
:labelCol="threeCol.label"
|
|
:labelCol="threeCol.label"
|
|
@@ -214,7 +213,7 @@
|
|
|
</a-row>
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <a-row style="width: 100%" :gutter="gutter">
|
|
|
|
|
|
|
+ <a-row style="width: 100%" :gutter="gutter" v-show="false">
|
|
|
<a-col :span="8">
|
|
<a-col :span="8">
|
|
|
<a-form-item style="width: 100%"
|
|
<a-form-item style="width: 100%"
|
|
|
:labelCol="threeCol.label"
|
|
:labelCol="threeCol.label"
|
|
@@ -250,7 +249,7 @@
|
|
|
</a-list>
|
|
</a-list>
|
|
|
|
|
|
|
|
<a-tabs defaultActiveKey="1" @change="handleChangeInTabs" v-model="activeKey">
|
|
<a-tabs defaultActiveKey="1" @change="handleChangeInTabs" v-model="activeKey">
|
|
|
- <a-tab-pane tab="数据库属性" key="1" :forceRender="true">
|
|
|
|
|
|
|
+ <a-tab-pane tab="稽核属性" key="1" :forceRender="true">
|
|
|
<db-attribute-table
|
|
<db-attribute-table
|
|
|
ref="table1"
|
|
ref="table1"
|
|
|
@added="handleAdded"
|
|
@added="handleAdded"
|
|
@@ -276,7 +275,11 @@
|
|
|
<query-table ref="table6"></query-table>
|
|
<query-table ref="table6"></query-table>
|
|
|
</a-tab-pane>
|
|
</a-tab-pane>
|
|
|
<a-tab-pane tab="分组配置" key="7" :forceRender="true">
|
|
<a-tab-pane tab="分组配置" key="7" :forceRender="true">
|
|
|
- <filed-group-table ref="table7"></filed-group-table>
|
|
|
|
|
|
|
+ <filed-group-table
|
|
|
|
|
+ ref="table7"
|
|
|
|
|
+ @added="handleGroupAdded"
|
|
|
|
|
+ @deleted="handleGroupDeleted"
|
|
|
|
|
+ ></filed-group-table>
|
|
|
</a-tab-pane>
|
|
</a-tab-pane>
|
|
|
</a-tabs>
|
|
</a-tabs>
|
|
|
|
|
|
|
@@ -515,6 +518,7 @@ export default {
|
|
|
|
|
|
|
|
// 获取model 中的指定字段
|
|
// 获取model 中的指定字段
|
|
|
let filterModel = this.$Jpick(this.model,
|
|
let filterModel = this.$Jpick(this.model,
|
|
|
|
|
+ "tableName","tableTxt"
|
|
|
// "themeTemplate", "tableName", "scroll",
|
|
// "themeTemplate", "tableName", "scroll",
|
|
|
// "tableType", "tableVersion", "tableTxt",
|
|
// "tableType", "tableVersion", "tableTxt",
|
|
|
// "isCheckbox", "isDbSynch", "isPage", "isTree",
|
|
// "isCheckbox", "isDbSynch", "isPage", "isTree",
|
|
@@ -600,6 +604,16 @@ export default {
|
|
|
target.syncTable(dbTable)
|
|
target.syncTable(dbTable)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+ // 同步分组
|
|
|
|
|
+ if (["2"].indexOf(key) !== -1) {
|
|
|
|
|
+ this.getRefPromise("table7").then(table => {
|
|
|
|
|
+ return table.getGroupList();
|
|
|
|
|
+ }).then(groupList => {
|
|
|
|
|
+ this.getRefPromise("table2").then((table) => {
|
|
|
|
|
+ table.changeGroupOption(groupList);
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 同步所有表立即执行并返回Promise 对象
|
|
* 同步所有表立即执行并返回Promise 对象
|
|
@@ -688,16 +702,16 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
handleChangeInTableType (type) {
|
|
handleChangeInTableType (type) {
|
|
|
- // if (1 === type) {
|
|
|
|
|
- // this.templateFlag = true
|
|
|
|
|
- // this.form.setFieldsValue({themeTemplate: "normal"})
|
|
|
|
|
- // } else {
|
|
|
|
|
- // this.templateFlag = false
|
|
|
|
|
- // }
|
|
|
|
|
- // this.showRelationType = 3 === type
|
|
|
|
|
- // this.getRefPromise("table2").then((function (t) {
|
|
|
|
|
- // t.changePageType(3 === type)
|
|
|
|
|
- // }))
|
|
|
|
|
|
|
+ if (type === 1) {
|
|
|
|
|
+ this.templateFlag = true
|
|
|
|
|
+ this.form.setFieldsValue({themeTemplate: "normal"})
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.templateFlag = false
|
|
|
|
|
+ }
|
|
|
|
|
+ this.showRelationType = type === 3
|
|
|
|
|
+ this.getRefPromise("table2").then((function (t) {
|
|
|
|
|
+ t.changePageType(type === 3)
|
|
|
|
|
+ }))
|
|
|
},
|
|
},
|
|
|
handleChangeInIsTree : function(obj) {
|
|
handleChangeInIsTree : function(obj) {
|
|
|
this.showTreeParentIdField = "Y" === obj;
|
|
this.showTreeParentIdField = "Y" === obj;
|
|
@@ -710,6 +724,16 @@ export default {
|
|
|
handleChangeInIdType : function(obj) {
|
|
handleChangeInIdType : function(obj) {
|
|
|
this.showIdSequence = "SEQUENCE" === obj;
|
|
this.showIdSequence = "SEQUENCE" === obj;
|
|
|
},
|
|
},
|
|
|
|
|
+ handleGroupAdded() {
|
|
|
|
|
+ this.getRefPromise("table7").then((table) => {
|
|
|
|
|
+ // console.log('table7',table.getGroupList())
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ handleGroupDeleted() {
|
|
|
|
|
+ this.getRefPromise("table7").then((table) => {
|
|
|
|
|
+ // console.log('table7',table.getGroupList())
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|