1 |
- {"version":3,"sources":["webpack:///./src/components/Page.vue?61f7","webpack:///./src/views/message/templateList.vue?a3bd","webpack:///./src/views/message/templateList.vue?2772","webpack:///src/views/message/templateList.vue","webpack:///./src/views/message/templateList.vue?af81","webpack:///./src/views/message/templateList.vue","webpack:///./src/components/Page.vue?5a44","webpack:///src/components/Page.vue","webpack:///./src/components/Page.vue?7e0d","webpack:///./src/components/Page.vue","webpack:///./node_modules/_core-js@2.6.12@core-js/modules/es6.function.name.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","_m","staticClass","attrs","on","search","nativeOn","$event","type","indexOf","_k","keyCode","key","model","value","form","callback","$$v","$set","expression","_v","staticStyle","dialogVisible","dialogTitle","directives","name","rawName","list","scopedSlots","_u","fn","scope","row","edit","del","id","ref","page","page_size","total","gopage","rules","form1","changeTemplate","_l","item","index","slot","addTtitle","staticRenderFns","components","Page","data","allTemplate","loading","input","defaultProps","methods","selVal","$refs","validate","valid","query","copyid","path","getData","parm","$api","getTemplateList","then","getAllTemplateList","getTemplate","$confirm","message","size","pageButton","created","component","current","handleSizeChange","dP","f","FProto","Function","prototype","nameRE","NAME","configurable","get","match","e"],"mappings":"kHAAA,W,kCCAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACJ,EAAIM,GAAG,GAAGF,EAAG,MAAM,CAACG,YAAY,WAAW,CAACH,EAAG,MAAM,CAACG,YAAY,UAAU,CAACH,EAAG,UAAU,CAACI,MAAM,CAAC,KAAO,QAAQ,cAAc,OAAO,QAAS,EAAK,iBAAiB,SAAS,CAACJ,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQ,KAAK,CAACJ,EAAG,WAAW,CAACI,MAAM,CAAC,UAAY,GAAG,YAAc,cAAcC,GAAG,CAAC,MAAQT,EAAIU,QAAQC,SAAS,CAAC,MAAQ,SAASC,GAAQ,OA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AIsE,QAAQ,cAActE,EAAIoF,qBAC7W9B,EAAkB,GCwBtB,GACE,KADF,WAEI,MAAJ,CACM,KAAN,IAGE,MAAF,CACI,MAAJ,GACI,UAAJ,GACI,QAAJ,IAEE,QAAF,CACI,QADJ,SACA,GAMM,KAAN,OACM,KAAN,qBAEI,iBAVJ,SAUA,GACM,KAAN,wBAGE,QAzBF,cCzBkb,I,wBCQ9a4B,EAAY,eACd,EACAnF,EACAuD,GACA,EACA,KACA,KACA,MAIa,OAAA4B,E,qDCnBf,IAAIG,EAAK,EAAQ,QAAgBC,EAC7BC,EAASC,SAASC,UAClBC,EAAS,wBACTC,EAAO,OAGXA,KAAQJ,GAAU,EAAQ,SAAqBF,EAAGE,EAAQI,EAAM,CAC9DC,cAAc,EACdC,IAAK,WACH,IACE,OAAQ,GAAK5F,MAAM6F,MAAMJ,GAAQ,GACjC,MAAOK,GACP,MAAO,Q","file":"js/chunk-edeb7ee0.7fa029fd.js","sourcesContent":["export * from \"-!../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/_vue-loader@15.9.6@vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.6@vue-loader/lib/index.js??vue-loader-options!./Page.vue?vue&type=style&index=0&lang=scss&\"","export * from \"-!../../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/_vue-loader@15.9.6@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.6@vue-loader/lib/index.js??vue-loader-options!./templateList.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_vm._m(0),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"filter\"},[_c('el-form',{attrs:{\"size\":\"small\",\"label-width\":\"70px\",\"inline\":true,\"label-position\":\"left\"}},[_c('el-form-item',{attrs:{\"label\":\"\"}},[_c('el-input',{attrs:{\"clearable\":\"\",\"placeholder\":\"请输入您要搜索的内容\"},on:{\"clear\":_vm.search},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.search($event)}},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}})],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.search}},[_vm._v(\"搜索\")])],1),_c('el-form-item',{staticStyle:{\"float\":\"right\"}},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){(_vm.dialogVisible = true), (_vm.dialogTitle = '新增模板')}}},[_vm._v(\"新增模板\")])],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"table\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.list,\"height\":\"50vh\",\"border\":\"\",\"default-expand-all\":\"\",\"row-key\":\"id\"}},[_c('el-table-column',{attrs:{\"prop\":\"name\",\"label\":\"模板名称\"}}),_c('el-table-column',{attrs:{\"prop\":\"cname\",\"label\":\"创建人\"}}),_c('el-table-column',{attrs:{\"prop\":\"ctime\",\"label\":\"创建时间\"}}),_c('el-table-column',{attrs:{\"prop\":\"zip\",\"width\":\"150\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.edit)?_c('el-button',{staticClass:\"edit\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编辑\")]):_c('el-button',{staticClass:\"edit\",attrs:{\"type\":\"text\",\"disabled\":\"\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编辑\")]),_c('el-button',{staticClass:\"del\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.del(scope.row.id)}}},[_vm._v(\"删除\")])]}}])})],1),_c('Page',{ref:\"pageButton\",attrs:{\"current\":_vm.form.page,\"page_size\":_vm.form.page_size,\"total\":_vm.total},on:{\"pageChange\":_vm.gopage}})],1),_c('el-dialog',{attrs:{\"title\":_vm.dialogTitle,\"close-on-click-modal\":false,\"visible\":_vm.dialogVisible},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('el-form',{ref:\"form1\",staticClass:\"preview\",attrs:{\"size\":\"small\",\"inline\":false,\"label-width\":\"80px\",\"rules\":_vm.rules,\"model\":_vm.form1}},[_c('el-form-item',{attrs:{\"label\":\"选择历史模板\"}},[_c('el-select',{attrs:{\"filterable\":\"\"},on:{\"change\":_vm.changeTemplate},model:{value:(_vm.form1.copyid),callback:function ($$v) {_vm.$set(_vm.form1, \"copyid\", $$v)},expression:\"form1.copyid\"}},_vm._l((_vm.allTemplate),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.name,\"value\":item.id}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"模板名称\",\"prop\":\"name\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入模板名称\",\"maxlength\":\"50\",\"show-word-limit\":\"\"},model:{value:(_vm.form1.name),callback:function ($$v) {_vm.$set(_vm.form1, \"name\", $$v)},expression:\"form1.name\"}})],1)],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.addTtitle}},[_vm._v(\"确 定\")])],1)],1)],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_c('span',[_vm._v(\"信息管理>\")]),_vm._v(\"问卷模板\")])}]\n\nexport { render, staticRenderFns }","<style lang=\"scss\">\r\n.preview {\r\n .el-form-item {\r\n margin-bottom: 15px;\r\n }\r\n label,\r\n p {\r\n line-height: 25px !important;\r\n }\r\n}\r\n</style>\r\n<template>\r\n <section>\r\n <p><span>信息管理></span>问卷模板</p>\r\n <div class=\"content\">\r\n <div class=\"filter\">\r\n <el-form\r\n size=\"small\"\r\n label-width=\"70px\"\r\n :inline=\"true\"\r\n label-position=\"left\"\r\n >\r\n <el-form-item label=\"\">\r\n <el-input\r\n clearable\r\n placeholder=\"请输入您要搜索的内容\"\r\n v-model=\"form.name\"\r\n @clear=\"search\"\r\n @keyup.enter.native=\"search\"\r\n ></el-input>\r\n </el-form-item>\r\n <el-form-item>\r\n <el-button type=\"primary\" @click=\"search\">搜索</el-button>\r\n </el-form-item>\r\n <el-form-item style=\"float: right\">\r\n <el-button\r\n @click=\"(dialogVisible = true), (dialogTitle = '新增模板')\"\r\n type=\"primary\"\r\n >新增模板</el-button\r\n >\r\n </el-form-item>\r\n </el-form>\r\n </div>\r\n <el-table\r\n class=\"table\"\r\n :data=\"list\"\r\n height=\"50vh\"\r\n border\r\n v-loading=\"loading\"\r\n default-expand-all\r\n row-key=\"id\"\r\n style=\"width: 100%\"\r\n >\r\n <el-table-column prop=\"name\" label=\"模板名称\"> </el-table-column>\r\n <el-table-column prop=\"cname\" label=\"创建人\"> </el-table-column>\r\n <el-table-column prop=\"ctime\" label=\"创建时间\"> </el-table-column>\r\n <el-table-column prop=\"zip\" width=\"150\" label=\"操作\">\r\n <template slot-scope=\"scope\">\r\n <el-button\r\n class=\"edit\"\r\n type=\"text\"\r\n @click=\"edit(scope.row)\"\r\n v-if=\"scope.row.edit\"\r\n >编辑</el-button\r\n >\r\n <el-button\r\n class=\"edit\"\r\n type=\"text\"\r\n @click=\"edit(scope.row)\"\r\n v-else\r\n disabled\r\n >编辑</el-button\r\n >\r\n <el-button class=\"del\" @click=\"del(scope.row.id)\" type=\"text\"\r\n >删除</el-button\r\n >\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <Page\r\n ref=\"pageButton\"\r\n :current=\"form.page\"\r\n :page_size=\"form.page_size\"\r\n :total=\"total\"\r\n @pageChange=\"gopage\"\r\n />\r\n </div>\r\n\r\n <el-dialog\r\n :title=\"dialogTitle\"\r\n :close-on-click-modal=\"false\"\r\n :visible.sync=\"dialogVisible\"\r\n >\r\n <el-form\r\n ref=\"form1\"\r\n size=\"small\"\r\n class=\"preview\"\r\n :inline=\"false\"\r\n label-width=\"80px\"\r\n :rules=\"rules\"\r\n :model=\"form1\"\r\n >\r\n <el-form-item label=\"选择历史模板\">\r\n <el-select v-model=\"form1.copyid\" filterable @change=\"changeTemplate\">\r\n <el-option\r\n v-for=\"(item, index) in allTemplate\"\r\n :key=\"index\"\r\n :label=\"item.name\"\r\n :value=\"item.id\"\r\n ></el-option>\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item label=\"模板名称\" prop=\"name\">\r\n <el-input\r\n v-model=\"form1.name\"\r\n placeholder=\"请输入模板名称\"\r\n maxlength=\"50\"\r\n show-word-limit\r\n ></el-input>\r\n </el-form-item>\r\n </el-form>\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <el-button size=\"small\" type=\"primary\" @click=\"addTtitle\"\r\n >确 定</el-button\r\n >\r\n </span>\r\n </el-dialog>\r\n </section>\r\n</template>\r\n<script>\r\nimport Page from \"../../components/Page\";\r\nexport default {\r\n components: {\r\n Page,\r\n },\r\n data() {\r\n return {\r\n // edit:0,\r\n allTemplate: [],\r\n form: { name: \"\", page: 1, page_size: 20 },\r\n form1: {},\r\n total: 1,\r\n list: [{ name: \"2333\" }],\r\n loading: false,\r\n input: \"\",\r\n dialogVisible: false,\r\n dialogTitle: \"\",\r\n defaultProps: {},\r\n data: [],\r\n rules: {\r\n name: [{ required: true, message: \"请输入标题\", trigger: \"blur\" }],\r\n },\r\n };\r\n },\r\n methods: {\r\n changeTemplate(val){\r\n let selVal = this.allTemplate.filter(function(x){return x.id==val})\r\n this.form1.name = selVal[0].name\r\n },\r\n addTtitle() {\r\n this.$refs[\"form1\"].validate((valid) => {\r\n if (valid) {\r\n let query = { title: this.form1.name, id: this.form1.id }\r\n if(this.form1.copyid){\r\n query.id = this.form1.copyid\r\n query.copyid = this.form1.copyid\r\n }\r\n this.$router.push({\r\n path: \"/message/template/add\",\r\n query: query,\r\n });\r\n }\r\n });\r\n },\r\n search() {\r\n let parm = this.form;\r\n this.getData();\r\n },\r\n getData() {\r\n var parm = this.form;\r\n this.loading = true;\r\n this.$api.getTemplateList(parm).then((res) => {\r\n this.list = res.data.data.list;\r\n this.total = res.data.data.total;\r\n this.loading = false;\r\n });\r\n this.$api.getAllTemplateList().then((res) => {\r\n this.allTemplate = res.data.data;\r\n });\r\n },\r\n edit(row) {\r\n this.$api.getTemplate({ id: row.id }).then((res) => {\r\n this.form1 = row;\r\n this.dialogVisible = true;\r\n });\r\n },\r\n del(id) {\r\n this.$confirm(\r\n \"删除模板与模板相关联的消息会被一起删除,确定删除吗?\",\r\n \"提示\",\r\n {\r\n type: \"warning\",\r\n }\r\n ).then(() => {\r\n this.$api.delTemplate({ id: id }).then((res) => {\r\n this.$message({\r\n message: \"删除成功\",\r\n type: \"success\",\r\n });\r\n this.getData();\r\n });\r\n });\r\n },\r\n gopage(size) {\r\n if (size) {\r\n this.form.page_size = size;\r\n }\r\n this.form.page = this.$refs.pageButton.page;\r\n this.getData();\r\n },\r\n },\r\n created() {\r\n this.getData();\r\n },\r\n};\r\n</script>\r\n","import mod from \"-!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.6@vue-loader/lib/index.js??vue-loader-options!./templateList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.6@vue-loader/lib/index.js??vue-loader-options!./templateList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./templateList.vue?vue&type=template&id=3ce7ab74&\"\nimport script from \"./templateList.vue?vue&type=script&lang=js&\"\nexport * from \"./templateList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./templateList.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/_vue-loader@15.9.6@vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-pagination',{attrs:{\"background\":\"\",\"page-size\":_vm.page_size?_vm.page_size:20,\"current-page\":_vm.current,\"page-sizes\":[10,20, 30, 40, 50,60,70,80,90,100],\"layout\":\"total,sizes,prev, pager, next\",\"total\":_vm.total},on:{\"current-change\":_vm.getData,\"size-change\":_vm.handleSizeChange}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<style lang=\"scss\">\r\n @import '../style/style.scss';\r\n .el-pagination{\r\n li,button{\r\n border: 1px solid #CACACA !important;\r\n background-color: #fff !important;\r\n }\r\n .active{\r\n border:none !important;\r\n background: #3895FE !important;\r\n }\r\n }\r\n</style>\r\n<template>\r\n <el-pagination\r\n @current-change=\"getData\"\r\n background :page-size='page_size?page_size:20'\r\n @size-change=\"handleSizeChange\"\r\n :current-page=\"current\"\r\n :page-sizes=\"[10,20, 30, 40, 50,60,70,80,90,100]\"\r\n layout=\"total,sizes,prev, pager, next\"\r\n :total=\"total\">\r\n </el-pagination>\r\n</template>\r\n<script>\r\nexport default {\r\n data(){\r\n return{\r\n page:1\r\n }\r\n },\r\n props: {\r\n total:'',\r\n page_size:'',\r\n current:''\r\n },\r\n methods:{\r\n getData(type){\r\n // if(type == 1){\r\n // this.data.pageNumber=this.data.pageNumber-1\r\n // }else if(type == 2){\r\n // this.data.pageNumber=this.data.pageNumber+1\r\n // }\r\n this.page=type\r\n this.$emit('pageChange')\r\n },\r\n handleSizeChange(val){\r\n this.$emit('pageChange',val)\r\n }\r\n },\r\n created(){\r\n }\r\n}\r\n</script>","import mod from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.6@vue-loader/lib/index.js??vue-loader-options!./Page.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.6@vue-loader/lib/index.js??vue-loader-options!./Page.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Page.vue?vue&type=template&id=df237d3a&\"\nimport script from \"./Page.vue?vue&type=script&lang=js&\"\nexport * from \"./Page.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Page.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/_vue-loader@15.9.6@vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n"],"sourceRoot":""}
|