¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-05-13 11:39:54 |
| | | * @FilePath: /smart-web/src/views/master/person/main/index.vue |
| | | * @Description: è¿æ¯é»è®¤è®¾ç½®,请设置`customMade`, æå¼koroFileHeaderæ¥çé
ç½® è¿è¡è®¾ç½®: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | | <template> |
| | | <div class="aposcope-main"> |
| | | <div class="main-box"> |
| | | <div class="box-title-dom"> |
| | | <span class="box-title-line"></span> |
| | | <span class="box-title">计åå·¥å</span> |
| | | </div> |
| | | <div class="card"> |
| | | <div class="card-title">计å</div> |
| | | <div class="card-desc"> |
| | | <span @click="goSetField">åæ®µé
ç½®</span> |
| | | <span>计å设置</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="main-box"> |
| | | <div class="box-title-dom"> |
| | | <span class="box-title-line"></span> |
| | | <span class="box-title">产å</span> |
| | | </div> |
| | | <div class="card"> |
| | | <div class="card-title">产å</div> |
| | | <div class="card-desc"> |
| | | <span>åæ®µé
ç½®</span> |
| | | <span>æ¾ç¤ºè®¾ç½®</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | export default { |
| | | name: "custom", |
| | | data(){ |
| | | return { |
| | | |
| | | } |
| | | }, |
| | | created(){ |
| | | |
| | | }, |
| | | mounted(){ |
| | | //this.getMenuList(); |
| | | }, |
| | | components: { |
| | | |
| | | }, |
| | | methods: { |
| | | goSetField() { |
| | | console.log(this.$route,this.$router) |
| | | //this.$router.push({path: "/setField"}) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .aposcope-main { |
| | | min-height: 100%; |
| | | margin: 8px; |
| | | padding:20px; |
| | | background: #fff; |
| | | } |
| | | .main-box { |
| | | margin-bottom: 20px; |
| | | } |
| | | .box-title-dom { |
| | | position: relative; |
| | | } |
| | | .box-title-line { |
| | | display: inline-block; |
| | | width: 2px; |
| | | height: 14px; |
| | | background-color: #3b8e8e; |
| | | position: absolute; |
| | | top: 12px; |
| | | } |
| | | .box-title { |
| | | padding: 8px 8px 0 8px; |
| | | font-weight: 700; |
| | | font-size: 16px; |
| | | color: #333; |
| | | display: flex; |
| | | position: relative; |
| | | } |
| | | .card { |
| | | margin: 24px 0 24px 34px; |
| | | border-radius: 2px; |
| | | width: 260px; |
| | | border: 1px solid #e8eaee; |
| | | padding: 20px 14px; |
| | | } |
| | | .card-title { |
| | | margin-bottom: 26px; |
| | | font-weight: 700; |
| | | font-size: 14px; |
| | | } |
| | | .card-desc { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | color: #3b8e8e; |
| | | font-weight: 400; |
| | | cursor: pointer; |
| | | font-size: 14px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-05-13 11:39:54 |
| | | * @FilePath: /smart-web/src/views/master/person/main/index.vue |
| | | * @Description: è¿æ¯é»è®¤è®¾ç½®,请设置`customMade`, æå¼koroFileHeaderæ¥çé
ç½® è¿è¡è®¾ç½®: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | | <template> |
| | | <div class="aposcope-main"> |
| | | 123 |
| | | </div> |
| | | </template> |
| | | <script> |
| | | export default { |
| | | name: "custom", |
| | | data(){ |
| | | return { |
| | | |
| | | } |
| | | }, |
| | | created(){ |
| | | |
| | | }, |
| | | mounted(){ |
| | | //this.getMenuList(); |
| | | }, |
| | | components: { |
| | | |
| | | }, |
| | | methods: { |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .aposcope-main { |
| | | min-height: 100%; |
| | | margin: 8px; |
| | | padding:20px; |
| | | background: #fff; |
| | | } |
| | | </style> |
| | |
| | | this.isAdd = true; |
| | | var obj = Object.assign({},this.searchDataList[index],{isEdit: true}); |
| | | this.searchDataList.splice(index,1,obj); |
| | | console.log(obj,this.searchDataList[index]) |
| | | }, |
| | | deleteTable(index) { |
| | | this.searchDataList.splice(index,1); |
| | |
| | | this.tableForm.enumType = this.tableForm.enumTypeZn; |
| | | this.tableForm.id = null; |
| | | this.tableForm.objectId = this.detailobj.objectId; |
| | | console.log(this.tableForm,123) |
| | | this.searchDataList.unshift(this.tableForm); |
| | | }, |
| | | cancelTable() { |
| | |
| | | gettableName() { |
| | | this.$HTTP.get(`/api/blade-system/meta-object-type/detail?fId=${this.dictKey}`).then(res=> { //ç©çè¡¨æ°æ® |
| | | if(res.code == 200) { |
| | | console.log(this.tableNameList,res.data.tableName,'gi') |
| | | this.tableNameList.forEach(item=> { |
| | | if(res.data.tableName == item.tableName) { |
| | | this.refCodeList = item.tableColumns; |
| | |
| | | this.metaForm.code = res.data.code; |
| | | this.detailobj = res.data; |
| | | this.detailobj.objectId = res.data.fid; |
| | | console.log(this.detailobj,888) |
| | | } |
| | | }) |
| | | }, |