1 line
31 KiB
Plaintext
1 line
31 KiB
Plaintext
{"version":3,"sources":["webpack:///src/views/itemmanager/Version.vue","webpack:///./src/views/itemmanager/Version.vue?4379","webpack:///./src/views/itemmanager/Version.vue"],"names":["Version","data","itemOptions","detailForm","editForm","queryInfo","versionName","itemName","pageNum","pageSize","itemlist","currpage","total","addDialogVisible","editDialogVisible","detailDialogVisible","addForm","comments","itemId","addFormRules","required","message","trigger","min","max","mounted","this","getItemNameList","created","getVersionList","methods","onSearch","_this","$api","version","queryAllVersion","stringify_default","then","res","loading","localStorage","setItem","count","catch","_this2","item","queryAllItemIdAndItemName","handleSizeChange","newSize","handleCurrentChange","newpageNum","addDialogClose","$refs","addFormRef","resetFields","addItem","_this3","validate","valid","addVersion","$notify","msg","type","editDialogClose","editFormRef","showEditDialog","id","_this4","queryVersionById","editItem","_this5","updateVersion","showDetailDialog","_this6","delItem","_this7","$confirm","confirmButtonText","cancelButtonText","deleteVersion","getVersionNameList","itemmanager_Version","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","inline","label","placeholder","clearable","model","value","callback","$$v","$set","expression","_v","_l","key","on","click","span","$event","border","fit","align","width","prop","fixed","scopedSlots","_u","fn","scope","size","row","current-page","page-sizes","page-size","layout","size-change","current-change","update:currentPage","update:current-page","title","visible","close-on-click-modal","update:visible","close","ref","rules","label-width","slot","disabled","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"sJA2IAA,GACAC,KADA,WAEA,OACAC,eACAC,cACAC,YACAC,WACAC,YAAA,GACAC,SAAA,GACAC,QAAA,EACAC,SAAA,IAEAC,YACAC,SAAA,EACAC,MAAA,EACAC,kBAAA,EACAC,mBAAA,EACAC,qBAAA,EACAC,SACAV,YAAA,GACAW,SAAA,GACAC,OAAA,IAEAC,cACAZ,WACAa,UAAA,EAAAC,QAAA,UAAAC,QAAA,SAEAhB,cACAc,UAAA,EAAAC,QAAA,UAAAC,QAAA,SACAC,IAAA,EAAAC,IAAA,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F,SAAA,SAAAC,GAA4Dd,EAAAe,KAAAf,EAAAhF,WAAA,cAAA8F,IAA6CE,WAAA,6BAAsC,GAAAhB,EAAAiB,GAAA,KAAAd,EAAA,gBAAqCG,OAAOE,MAAA,KAAAoB,KAAA,cAAgCzB,EAAA,YAAiBG,OAAO3B,KAAA,WAAA0E,SAAA,IAAgC1C,OAAQC,MAAAZ,EAAAhF,WAAA,SAAA6F,SAAA,SAAAC,GAAyDd,EAAAe,KAAAf,EAAAhF,WAAA,WAAA8F,IAA0CE,WAAA,0BAAmC,OAAAhB,EAAAiB,GAAA,KAAAd,EAAA,QAAiCE,YAAA,gBAAAC,OAAmC8C,KAAA,UAAgBA,KAAA,WAAejD,EAAA,aAAkBiB,IAAIC,MAAA,SAAAE,GAAyBvB,EAAApE,qBAAA,MAAkCoE,EAAAiB,GAAA,sBAEj9NqC,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACE5I,EACAiF,GATF,EAVA,SAAA4D,GACEF,EAAQ,SAaV,kBAEA,MAUeG,EAAA,QAAAJ,EAAiB","file":"static/js/11.8ccb9074dc9dc8086b2c.js","sourcesContent":["<template>\n <div class=\"box\">\n <el-form :inline=\"true\" class=\"item-form-inline\">\n <!-- <el-form-item label=\"版本名称\">\n <el-select v-model=\"queryInfo.versionName\" placeholder=\"请选择\" clearable @clear=\"getVersionList\">\n <el-option\n v-for=\"item in itemOptions\"\n :key=\"item.id\"\n :label=\"item.versionName\"\n :value=\"item.versionName\">\n </el-option>\n </el-select>\n </el-form-item> -->\n <el-form-item label=\"版本名称\">\n <el-input placeholder=\"请输入关键字\" clearable v-model=\"queryInfo.versionName\"></el-input>\n </el-form-item>\n <el-form-item label=\"项目名称\">\n <el-select v-model=\"queryInfo.itemId\" placeholder=\"请选择\" clearable>\n <el-option\n v-for=\"item in itemOptions\"\n :key=\"item.id\"\n :label=\"item.itemName\"\n :value=\"item.id\">\n </el-option>\n </el-select>\n </el-form-item>\n <el-form-item>\n <el-button type=\"primary\" @click=\"onSearch\">查询</el-button>\n </el-form-item>\n </el-form>\n <el-row class=\"add_button\">\n <el-col :span=\"2\">\n <el-button type=\"primary\" @click=\"addDialogVisible = true\">添加</el-button>\n </el-col>\n </el-row>\n <el-table :data=\"itemlist\" border :fit=\"true\">\n <el-table-column label=\"序号\" type=\"index\" align=\"center\" width=\"80\"></el-table-column>\n <el-table-column label=\"版本名称\" prop=\"versionName\" align=\"center\"></el-table-column>\n <el-table-column label=\"项目名称\" prop=\"itemName\" align=\"center\"></el-table-column>\n <el-table-column label=\"备注\" prop=\"comments\" align=\"center\"></el-table-column>\n <el-table-column label=\"创建时间\" prop=\"createTime\" align=\"center\" width=\"170\"></el-table-column>\n <el-table-column label=\"更新时间\" prop=\"updateTime\" align=\"center\" width=\"170\"></el-table-column>\n <el-table-column label=\"操作\" fixed=\"right\" align=\"center\" width=\"180\">\n <template slot-scope=\"scope\">\n <el-button type=\"text\" size=\"small\" @click=\"showDetailDialog(scope.row.id)\">查看</el-button>\n <el-button type=\"text\" size=\"small\" @click=\"showEditDialog(scope.row.id)\">编辑</el-button>\n <el-button type=\"text\" size=\"small\" @click=\"delItem(scope.row.id)\">删除</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-pagination\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n :current-page.sync=\"queryInfo.pageNum\"\n :page-sizes=\"[5, 10, 20, 30]\"\n :page-size=\"queryInfo.pageSize\"\n layout=\"prev, pager, next, sizes, total, jumper\"\n :total=\"total\">\n </el-pagination>\n <el-dialog\n title=\"添加\"\n :visible.sync=\"addDialogVisible\"\n :close-on-click-modal= 'false'\n width=\"30%\" @close=\"addDialogClose\"> \n <el-form :model=\"addForm\" :rules=\"addFormRules\" ref=\"addFormRef\" label-width=\"100px\">\n <el-form-item label=\"项目名称\" prop=\"itemId\">\n <el-select v-model=\"addForm.itemId\" placeholder=\"请选择\" clearable>\n <el-option\n v-for=\"item in itemOptions\"\n :key=\"item.id\"\n :label=\"item.itemName\"\n :value=\"item.id\">\n </el-option>\n </el-select>\n </el-form-item>\n <el-form-item label=\"版本名称\" prop=\"versionName\">\n <el-input v-model=\"addForm.versionName\"></el-input>\n </el-form-item>\n <el-form-item label=\"备注\" prop=\"comments\">\n <el-input type=\"textarea\" v-model=\"addForm.comments\"></el-input>\n </el-form-item>\n </el-form>\n <span slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"addDialogVisible = false\">取 消</el-button>\n <el-button type=\"primary\" @click=\"addItem\">确 定</el-button>\n </span>\n </el-dialog>\n <el-dialog\n title=\"修改\"\n :visible.sync=\"editDialogVisible\"\n :close-on-click-modal= 'false'\n width=\"30%\" @close=\"editDialogClose\">\n <el-form :model=\"editForm\" :rules=\"addFormRules\" ref=\"editFormRef\" label-width=\"100px\"> \n <el-form-item label=\"项目名称\" prop=\"itemId\">\n <el-select v-model=\"editForm.itemId\" placeholder=\"请选择\">\n <el-option\n v-for=\"item in itemOptions\"\n :key=\"item.id\"\n :label=\"item.itemName\"\n :value=\"item.id\">\n </el-option>\n </el-select>\n </el-form-item> \n <el-form-item label=\"版本名称\" prop=\"versionName\">\n <el-input v-model=\"editForm.versionName\"></el-input>\n </el-form-item>\n <el-form-item label=\"备注\" prop=\"comments\">\n <el-input type=\"textarea\" v-model=\"editForm.comments\"></el-input>\n </el-form-item>\n </el-form>\n <span slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"editDialogVisible = false\">取 消</el-button>\n <el-button type=\"primary\" @click=\"editItem\">确 定</el-button>\n </span>\n </el-dialog>\n <el-dialog\n title=\"查看\"\n :visible.sync=\"detailDialogVisible\"\n :close-on-click-modal= 'false'\n width=\"30%\">\n <el-form :model=\"detailForm\" label-width=\"100px\">\n <el-form-item label=\"项目名称\" prop=\"itemName\">\n <el-input v-model=\"detailForm.itemName\" disabled></el-input>\n </el-form-item>\n <el-form-item label=\"版本名称\" prop=\"versionName\">\n <el-input v-model=\"detailForm.versionName\" disabled></el-input>\n </el-form-item>\n <el-form-item label=\"备注\" prop=\"comments\">\n <el-input type=\"textarea\" v-model=\"detailForm.comments\" disabled></el-input>\n </el-form-item>\n </el-form>\n <span slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"detailDialogVisible = false\">取 消</el-button>\n </span>\n </el-dialog>\n </div>\n</template>\n\n<script>\nexport default {\n data () {\n return {\n itemOptions: [],\n detailForm: {},\n editForm: {},\n queryInfo: {\n versionName: '',\n itemName: '',\n pageNum: 1,\n pageSize: 10\n },\n itemlist: [],\n currpage: 1,\n total: 0,\n addDialogVisible: false,\n editDialogVisible: false,\n detailDialogVisible: false,\n addForm: {\n versionName: '',\n comments: '',\n itemId: ''\n },\n addFormRules: {\n itemName: [\n { required: true, message: '请选择项目名称', trigger: 'blur' },\n ],\n versionName: [\n { required: true, message: '请输入版本名称', trigger: 'blur' },\n { min: 1, max: 20, message: '长度在 1 到 20 个字符', trigger: 'blur' }\n ],\n comments: [\n { required: false, message: '请输入备注', trigger: 'blur' },\n { min: 0, max: 200, message: '长度在 0 到 200 个字符', trigger: 'blur' }\n ]\n }\n }\n },\n mounted () {\n // this.getVersionNameList();\n this.getItemNameList()\n },\n created () {\n this.getVersionList()\n },\n methods: {\n onSearch(){\n this.queryInfo.pageNum = 1;\n this.getVersionList()\n },\n\n // getVersionNameList () {\n // this.$api.version.queryAllVersionIdAndVersionName(this.queryInfo.versionName).then(res => {\n // this.loading = false\n // localStorage.setItem(\"active\", 0)\n // this.itemOptions = res.data.data\n // }).catch(() => {\n // this.loading = false\n // })\n // },\n getVersionList () {\n // this.queryInfo.pageNum = 1\n this.$api.version.queryAllVersion(JSON.stringify(this.queryInfo)).then(res => {\n this.loading = false\n localStorage.setItem(\"active\", 0)\n this.itemlist = res.data.data\n this.total = res.data.count \n }).catch(() => {\n this.loading = false\n })\n },\n getItemNameList () {\n this.$api.item.queryAllItemIdAndItemName(this.queryInfo.itemName).then(res => {\n this.loading = false\n localStorage.setItem(\"active\", 0)\n this.itemOptions = res.data.data\n // console.log(itemOptions)\n }).catch(() => {\n this.loading = false\n })\n },\n handleSizeChange (newSize) {\n this.queryInfo.pageSize = newSize\n this.getVersionList()\n },\n handleCurrentChange (newpageNum) {\n this.queryInfo.pageNum = newpageNum\n this.getVersionList()\n },\n addDialogClose () {\n this.$refs.addFormRef.resetFields()\n },\n addItem () {\n this.$refs.addFormRef.validate(valid => {\n if (!valid) return\n this.$api.version.addVersion(JSON.stringify(this.addForm)).then(res => {\n this.$notify({\n message: res.data.msg,\n type: \"success\",\n });\n this.addDialogVisible = false\n this.$refs.addFormRef.resetFields()\n this.getVersionList()\n // this.$refs.addFormRef.resetFields()\n // this.getVersionNameList()\n // this.getItemNameList()\n }).catch(() => {\n this.loading = false\n })\n })\n },\n editDialogClose () {\n this.$refs.editFormRef.resetFields()\n },\n showEditDialog (id) {\n this.editDialogVisible = true\n this.$api.version.queryVersionById(id).then(res => {\n this.loading = false\n this.editForm = res.data.data\n }).catch(() => {\n this.loading = false\n })\n },\n editItem () {\n this.$refs.editFormRef.validate(valid => {\n if (!valid) return\n \n this.$api.version.updateVersion(JSON.stringify(this.editForm)).then(res => {\n this.$notify({\n message: res.data.msg,\n type: \"success\",\n });\n this.editDialogVisible = false\n this.getVersionList()\n // this.getVersionNameList()\n // this.getItemNameList()\n }).catch(() => {\n this.loading = false\n })\n })\n },\n showDetailDialog (id) {\n this.detailDialogVisible = true\n this.$api.version.queryVersionById(id).then(res => {\n this.loading = false\n this.detailForm = res.data.data\n }).catch(() => {\n this.loading = false\n })\n },\n delItem (id) {\n this.$confirm('确定删除该版本吗?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n this.$api.version.deleteVersion(id).then(res => {\n this.$notify({\n message: res.data.msg,\n type: \"success\",\n });\n this.getVersionList()\n this.getVersionNameList()\n }).catch(() => {\n this.loading = false\n })\n }).catch(() => {\n })\n }\n }\n}\n</script>\n\n<style scoped lang=\"less\">\n.box {\n padding: 20px 25px;\n}\n.el-table {\n margin-top: 23px;\n margin-bottom: 20px;\n}\n.el-select {\n width: 100% !important;\n}\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/views/itemmanager/Version.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"box\"},[_c('el-form',{staticClass:\"item-form-inline\",attrs:{\"inline\":true}},[_c('el-form-item',{attrs:{\"label\":\"版本名称\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入关键字\",\"clearable\":\"\"},model:{value:(_vm.queryInfo.versionName),callback:function ($$v) {_vm.$set(_vm.queryInfo, \"versionName\", $$v)},expression:\"queryInfo.versionName\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"项目名称\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择\",\"clearable\":\"\"},model:{value:(_vm.queryInfo.itemId),callback:function ($$v) {_vm.$set(_vm.queryInfo, \"itemId\", $$v)},expression:\"queryInfo.itemId\"}},_vm._l((_vm.itemOptions),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.itemName,\"value\":item.id}})}),1)],1),_vm._v(\" \"),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.onSearch}},[_vm._v(\"查询\")])],1)],1),_vm._v(\" \"),_c('el-row',{staticClass:\"add_button\"},[_c('el-col',{attrs:{\"span\":2}},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){_vm.addDialogVisible = true}}},[_vm._v(\"添加\")])],1)],1),_vm._v(\" \"),_c('el-table',{attrs:{\"data\":_vm.itemlist,\"border\":\"\",\"fit\":true}},[_c('el-table-column',{attrs:{\"label\":\"序号\",\"type\":\"index\",\"align\":\"center\",\"width\":\"80\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"版本名称\",\"prop\":\"versionName\",\"align\":\"center\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"项目名称\",\"prop\":\"itemName\",\"align\":\"center\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"备注\",\"prop\":\"comments\",\"align\":\"center\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"创建时间\",\"prop\":\"createTime\",\"align\":\"center\",\"width\":\"170\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"更新时间\",\"prop\":\"updateTime\",\"align\":\"center\",\"width\":\"170\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作\",\"fixed\":\"right\",\"align\":\"center\",\"width\":\"180\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.showDetailDialog(scope.row.id)}}},[_vm._v(\"查看\")]),_vm._v(\" \"),_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.showEditDialog(scope.row.id)}}},[_vm._v(\"编辑\")]),_vm._v(\" \"),_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.delItem(scope.row.id)}}},[_vm._v(\"删除\")])]}}])})],1),_vm._v(\" \"),_c('el-pagination',{attrs:{\"current-page\":_vm.queryInfo.pageNum,\"page-sizes\":[5, 10, 20, 30],\"page-size\":_vm.queryInfo.pageSize,\"layout\":\"prev, pager, next, sizes, total, jumper\",\"total\":_vm.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange,\"update:currentPage\":function($event){return _vm.$set(_vm.queryInfo, \"pageNum\", $event)},\"update:current-page\":function($event){return _vm.$set(_vm.queryInfo, \"pageNum\", $event)}}}),_vm._v(\" \"),_c('el-dialog',{attrs:{\"title\":\"添加\",\"visible\":_vm.addDialogVisible,\"close-on-click-modal\":false,\"width\":\"30%\"},on:{\"update:visible\":function($event){_vm.addDialogVisible=$event},\"close\":_vm.addDialogClose}},[_c('el-form',{ref:\"addFormRef\",attrs:{\"model\":_vm.addForm,\"rules\":_vm.addFormRules,\"label-width\":\"100px\"}},[_c('el-form-item',{attrs:{\"label\":\"项目名称\",\"prop\":\"itemId\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择\",\"clearable\":\"\"},model:{value:(_vm.addForm.itemId),callback:function ($$v) {_vm.$set(_vm.addForm, \"itemId\", $$v)},expression:\"addForm.itemId\"}},_vm._l((_vm.itemOptions),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.itemName,\"value\":item.id}})}),1)],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"版本名称\",\"prop\":\"versionName\"}},[_c('el-input',{model:{value:(_vm.addForm.versionName),callback:function ($$v) {_vm.$set(_vm.addForm, \"versionName\", $$v)},expression:\"addForm.versionName\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"备注\",\"prop\":\"comments\"}},[_c('el-input',{attrs:{\"type\":\"textarea\"},model:{value:(_vm.addForm.comments),callback:function ($$v) {_vm.$set(_vm.addForm, \"comments\", $$v)},expression:\"addForm.comments\"}})],1)],1),_vm._v(\" \"),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.addDialogVisible = false}}},[_vm._v(\"取 消\")]),_vm._v(\" \"),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.addItem}},[_vm._v(\"确 定\")])],1)],1),_vm._v(\" \"),_c('el-dialog',{attrs:{\"title\":\"修改\",\"visible\":_vm.editDialogVisible,\"close-on-click-modal\":false,\"width\":\"30%\"},on:{\"update:visible\":function($event){_vm.editDialogVisible=$event},\"close\":_vm.editDialogClose}},[_c('el-form',{ref:\"editFormRef\",attrs:{\"model\":_vm.editForm,\"rules\":_vm.addFormRules,\"label-width\":\"100px\"}},[_c('el-form-item',{attrs:{\"label\":\"项目名称\",\"prop\":\"itemId\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择\"},model:{value:(_vm.editForm.itemId),callback:function ($$v) {_vm.$set(_vm.editForm, \"itemId\", $$v)},expression:\"editForm.itemId\"}},_vm._l((_vm.itemOptions),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.itemName,\"value\":item.id}})}),1)],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"版本名称\",\"prop\":\"versionName\"}},[_c('el-input',{model:{value:(_vm.editForm.versionName),callback:function ($$v) {_vm.$set(_vm.editForm, \"versionName\", $$v)},expression:\"editForm.versionName\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"备注\",\"prop\":\"comments\"}},[_c('el-input',{attrs:{\"type\":\"textarea\"},model:{value:(_vm.editForm.comments),callback:function ($$v) {_vm.$set(_vm.editForm, \"comments\", $$v)},expression:\"editForm.comments\"}})],1)],1),_vm._v(\" \"),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.editDialogVisible = false}}},[_vm._v(\"取 消\")]),_vm._v(\" \"),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.editItem}},[_vm._v(\"确 定\")])],1)],1),_vm._v(\" \"),_c('el-dialog',{attrs:{\"title\":\"查看\",\"visible\":_vm.detailDialogVisible,\"close-on-click-modal\":false,\"width\":\"30%\"},on:{\"update:visible\":function($event){_vm.detailDialogVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.detailForm,\"label-width\":\"100px\"}},[_c('el-form-item',{attrs:{\"label\":\"项目名称\",\"prop\":\"itemName\"}},[_c('el-input',{attrs:{\"disabled\":\"\"},model:{value:(_vm.detailForm.itemName),callback:function ($$v) {_vm.$set(_vm.detailForm, \"itemName\", $$v)},expression:\"detailForm.itemName\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"版本名称\",\"prop\":\"versionName\"}},[_c('el-input',{attrs:{\"disabled\":\"\"},model:{value:(_vm.detailForm.versionName),callback:function ($$v) {_vm.$set(_vm.detailForm, \"versionName\", $$v)},expression:\"detailForm.versionName\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"备注\",\"prop\":\"comments\"}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"disabled\":\"\"},model:{value:(_vm.detailForm.comments),callback:function ($$v) {_vm.$set(_vm.detailForm, \"comments\", $$v)},expression:\"detailForm.comments\"}})],1)],1),_vm._v(\" \"),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.detailDialogVisible = false}}},[_vm._v(\"取 消\")])],1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-f9d406d2\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/itemmanager/Version.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-f9d406d2\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Version.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Version.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Version.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-f9d406d2\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./Version.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-f9d406d2\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/itemmanager/Version.vue\n// module id = null\n// module chunks = "],"sourceRoot":""} |