| | |
| | |  |
| | | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | //using System; |
| | | //using System.Collections.Generic; |
| | | //using System.Linq; |
| | | //using System.Text; |
| | | |
| | | namespace GenerateCode_GEBrilliantFactory |
| | | { |
| | | /// <summary> |
| | | /// VUEæä»¶ |
| | | /// </summary> |
| | | public class VUE_Generate : BaseGenerate |
| | | { |
| | | public static string CreateText(string TableAlias, string modulelogo, string primaryKey, |
| | | List<ColumnModel> columnNameList, string ChinaComment |
| | | , string emport_templeteFileDownName, string emport_excelCategroy) |
| | | { |
| | | var str = TextHelper.ReadText(@"Templete\VUE\VUEæä»¶æ¨¡æ¿.txt"); |
| | | //namespace GenerateCode_GEBrilliantFactory |
| | | //{ |
| | | // /// <summary> |
| | | // /// VUEæä»¶ |
| | | // /// </summary> |
| | | // public class VUE_Generate : BaseGenerate |
| | | // { |
| | | // public static string CreateText(string TableAlias, string modulelogo, string primaryKey, |
| | | // List<ColumnModel> columnNameList, string ChinaComment |
| | | // , string emport_templeteFileDownName, string emport_excelCategroy) |
| | | // { |
| | | // var str = TextHelper.ReadText(@"Templete\VUE\VUEæä»¶æ¨¡æ¿.txt"); |
| | | |
| | | CommonReplace(ref str); |
| | | str = str.Replace("$el-table-column$", StructStrHelper.GetElTableColumnStr(columnNameList));//å表项 |
| | | // CommonReplace(ref str); |
| | | // str = str.Replace("$el-table-column$", StructStrHelper.GetElTableColumnStr(columnNameList));//å表项 |
| | | |
| | | //æ°å¢/ç¼è¾çé¢ |
| | | str = str.Replace("$el-item$", StructStrHelper.GetElFormItemStrForAddEditForm(columnNameList)); |
| | | // //æ°å¢/ç¼è¾çé¢ |
| | | // str = str.Replace("$el-item$", StructStrHelper.GetElFormItemStrForAddEditForm(columnNameList)); |
| | | |
| | | //æ¥ççé¢ |
| | | str = str.Replace("$el-item-view$", StructStrHelper.GetElFormItemStrForViewForm(columnNameList)); |
| | | // //æ¥ççé¢ |
| | | // str = str.Replace("$el-item-view$", StructStrHelper.GetElFormItemStrForViewForm(columnNameList)); |
| | | |
| | | str = str.Replace("$el-form-itemForSearch$", StructStrHelper.GetElFormItemForSearchStr(columnNameList)); |
| | | // str = str.Replace("$el-form-itemForSearch$", StructStrHelper.GetElFormItemForSearchStr(columnNameList)); |
| | | |
| | | //导åºå符串 |
| | | str = str.Replace("$VueExportColumnHeaderStr$", StructStrHelper.GetVueExportTHeaderArrayStr(columnNameList)); |
| | | // //导åºå符串 |
| | | // str = str.Replace("$VueExportColumnHeaderStr$", StructStrHelper.GetVueExportTHeaderArrayStr(columnNameList)); |
| | | |
| | | |
| | | //å
Œ
±æ¥è¯¢çå |
| | | var SearchFormInputPlaceholderNameStr = ""; |
| | | str = str.Replace("$SearchFormInputPlaceholderStr$", StructStrHelper.GetVueSearchFormInputPlaceholderStr(columnNameList, ref SearchFormInputPlaceholderNameStr)); |
| | | str = str.Replace("$SearchFormInputPlaceholderNameStr$", SearchFormInputPlaceholderNameStr); |
| | | // //å
Œ
±æ¥è¯¢çå |
| | | // var SearchFormInputPlaceholderNameStr = ""; |
| | | // str = str.Replace("$SearchFormInputPlaceholderStr$", StructStrHelper.GetVueSearchFormInputPlaceholderStr(columnNameList, ref SearchFormInputPlaceholderNameStr)); |
| | | // str = str.Replace("$SearchFormInputPlaceholderNameStr$", SearchFormInputPlaceholderNameStr); |
| | | |
| | | //é«çº§æ¥è¯¢ |
| | | str = str.Replace("$FormOptionsStr$", StructStrHelper.GetVueFormOptionsStr(columnNameList)); |
| | | // //é«çº§æ¥è¯¢ |
| | | // str = str.Replace("$FormOptionsStr$", StructStrHelper.GetVueFormOptionsStr(columnNameList)); |
| | | |
| | | str = str.Replace("$ChinaComment$", ChinaComment);//ä¸ææ³¨é |
| | | // str = str.Replace("$ChinaComment$", ChinaComment);//ä¸ææ³¨é |
| | | |
| | | |
| | | str = str.Replace("$Modulelogo$", modulelogo);//表å«å(ä»ä¸å®è¦å¨æåæ¿æ¢) |
| | | str = str.Replace("$TableAlias$", TableAlias);//表å«å(ä»ä¸å®è¦å¨æåæ¿æ¢) |
| | | str = str.Replace("$PrimaryKey$", primaryKey);//ä¸»é® |
| | | // str = str.Replace("$Modulelogo$", modulelogo);//表å«å(ä»ä¸å®è¦å¨æåæ¿æ¢) |
| | | // str = str.Replace("$TableAlias$", TableAlias);//表å«å(ä»ä¸å®è¦å¨æåæ¿æ¢) |
| | | // str = str.Replace("$PrimaryKey$", primaryKey);//ä¸»é® |
| | | |
| | | //æ¿æ¢å¯¼å
¥åè½ |
| | | str = str.Replace("$emport_templeteFileDownName$", emport_templeteFileDownName); |
| | | str = str.Replace("$emport_excelCategroy$", emport_excelCategroy); |
| | | // //æ¿æ¢å¯¼å
¥åè½ |
| | | // str = str.Replace("$emport_templeteFileDownName$", emport_templeteFileDownName); |
| | | // str = str.Replace("$emport_excelCategroy$", emport_excelCategroy); |
| | | |
| | | return str; |
| | | } |
| | | } |
| | | } |
| | | // return str; |
| | | // } |
| | | // } |
| | | //} |