| | |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.fileguid') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.fileGuid }}</label> |
| | | <label class="boxlabel">{{ itemdetail.fname }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | |
| | | <div class="BoxFlex"> |
| | | <div class="BoxFlexinput"> |
| | | <el-input |
| | | v-model="insertform.fileGuid" |
| | | v-model="insertFileGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:100%" |
| | |
| | | id="insertFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="insertFile(0)" |
| | | @change="insertFileData(0)" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 6px;" |
| | |
| | | <div class="BoxFlex"> |
| | | <div class="BoxFlexinput"> |
| | | <el-input |
| | | v-model="insertform.viewGuid" |
| | | v-model="insertViewGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:100%" |
| | |
| | | id="insertimageFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="insertFile(1)" |
| | | @change="insertFileData(1)" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 6px;" |
| | |
| | | components: { MyBread, styleDirTree, styleDepTree }, |
| | | data() { |
| | | return { |
| | | insertFileGuid: "", |
| | | insertViewGuid: "", |
| | | insertFileName: "", |
| | | insertViewName: "", |
| | | |
| | | insertform: { |
| | | |
| | | }, |
| | | dialogFormVisible: false, |
| | | InsertFormdialog: false, |
| | | showCata: false, |
| | |
| | | showDirCata: false, |
| | | showDepCata: false, |
| | | tableData: [], |
| | | insertform: { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | }, |
| | | |
| | | dirFlag: null, |
| | | depFlag: null, |
| | | guidFile: null, |
| | |
| | | $("#insertimageFile").click(); |
| | | } |
| | | }, |
| | | insertFile(res) { |
| | | insertFileData: function (res) { |
| | | |
| | | |
| | | if (res == 0) { |
| | | var val = document.getElementById("insertFile").files; |
| | | if (!val || !val.length) return; |
| | | this.insertform.fileGuid = val[0].name; |
| | | let val = document.getElementById("insertFile").files; |
| | | |
| | | this.insertFileGuid = val[0].name; |
| | | this.insertFileName = val[0].name; |
| | | } else if (res == 1) { |
| | | var val = document.getElementById("insertimageFile").files; |
| | | if (!val || !val.length) return; |
| | | this.insertform.viewGuid = val[0].name; |
| | | let val = document.getElementById("insertimageFile").files; |
| | | |
| | | this.insertViewGuid = val[0].name; |
| | | this.insertViewName = val[0].name; |
| | | } |
| | | }, |
| | | async setinsertFile(res) { |
| | |
| | | insertFromDataClose() { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | |
| | | } |
| | | this.insertFileGuid = ""; |
| | | this.insertViewGuid = "" |
| | | this.filesReset(); |
| | | }, |
| | | handleClose() { |
| | |
| | | } |
| | | if (this.guidFile != null) { |
| | | this.insertform.fileGuid = this.guidFile; |
| | | this.insertform.fname = this.insertFileName; |
| | | } |
| | | if (this.viewFile != null) { |
| | | this.insertform.viewGuid = this.viewFile; |
| | | this.insertform.vname = this.insertViewName; |
| | | } |
| | | |
| | | const data = await insertStyle(this.insertform); |
| | | if (data.code == 200) { |
| | | this.InsertFormdialog = false; |
| | |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | } |
| | | this.insertFileGuid = ""; |
| | | this.insertViewGuid = "" |
| | | this.filesReset(); |
| | | this.$message({ |
| | | message: "添加成功!", |
| | |
| | | } |
| | | this.listData.name = this.ruleForm.name; |
| | | const data = await select_Style_ByPageAndCount(this.listData); |
| | | debugger |
| | | if (data.code != 200) { |
| | | this.$message.error("列表调用失败"); |
| | | } |
| | |
| | | showDetail(index, row) { |
| | | var token = getToken(); |
| | | this.showinfoBox = true; |
| | | |
| | | this.itemdetail = row; |
| | | this.itemdetail.createTime = this.formomentTime( |
| | | this.itemdetail.createTime |