1 line
26 KiB
JSON
1 line
26 KiB
JSON
|
|
{"ast":null,"code":"var render = function render() {\n var _vm = this,\n _c = _vm._self._c,\n _setup = _vm._self._setupProxy;\n return _c(\"div\", [_c(\"el-table\", {\n staticStyle: {\n width: \"100%\"\n },\n attrs: {\n data: _vm.rows.filter(data => !_vm.search || data.name.toLowerCase().includes(_vm.search.toLowerCase()) || data.name_cn.toLowerCase().includes(_vm.search.toLowerCase()) || data.app.name.toLowerCase().includes(_vm.search.toLowerCase()) || data.app.name_cn.toLowerCase().includes(_vm.search.toLowerCase()))\n }\n }, [_c(\"el-table-column\", {\n attrs: {\n label: \"英文名称\",\n prop: \"name\",\n width: \"180\"\n }\n }), _c(\"el-table-column\", {\n attrs: {\n label: \"中文名称\",\n prop: \"name_cn\",\n width: \"180\"\n }\n }), _c(\"el-table-column\", {\n attrs: {\n label: \"所属APP\",\n width: \"180\"\n },\n scopedSlots: _vm._u([{\n key: \"default\",\n fn: function (scope) {\n return [_c(\"el-popover\", {\n attrs: {\n trigger: \"hover\",\n placement: \"top\"\n }\n }, [_c(\"p\", [_vm._v(\"英文名称: \" + _vm._s(scope.row.app.name))]), _c(\"p\", [_vm._v(\"所属模块: \" + _vm._s(scope.row.app.module))]), _c(\"div\", {\n staticClass: \"name-wrapper\",\n attrs: {\n slot: \"reference\"\n },\n slot: \"reference\"\n }, [_c(\"el-tag\", {\n attrs: {\n size: \"medium\"\n }\n }, [_vm._v(_vm._s(scope.row.app.name_cn))])], 1)])];\n }\n }])\n }), _c(\"el-table-column\", {\n attrs: {\n align: \"right\"\n },\n scopedSlots: _vm._u([{\n key: \"header\",\n fn: function (scope) {\n return [_c(\"el-input\", {\n attrs: {\n size: \"mini\",\n placeholder: \"输入关键字搜索\"\n },\n model: {\n value: _vm.search,\n callback: function ($$v) {\n _vm.search = $$v;\n },\n expression: \"search\"\n }\n })];\n }\n }, {\n key: \"default\",\n fn: function (scope) {\n return [_c(\"el-button\", {\n attrs: {\n size: \"mini\"\n },\n on: {\n click: function ($event) {\n return _vm.handleEdit(scope.row);\n }\n }\n }, [_vm._v(\"编辑 \")]), _c(\"el-button\", {\n attrs: {\n size: \"mini\",\n type: \"danger\"\n },\n on: {\n click: function ($event) {\n return _vm.handleDelete(scope.row);\n }\n }\n }, [_vm._v(\"删除 \")])];\n }\n }])\n })], 1), _c(\"el-dialog\", {\n attrs: {\n title: \"修改模型\",\n visible: _vm.edit_table_dialog,\n width: \"50%\"\n },\n on: {\n \"update:visible\": function ($event) {\n _vm.edit_table_dialog = $event;\n }\n }\n }, [_c(\"el-table\", {\n staticStyle: {\n width: \"100%\"\n },\n attrs: {\n data: _vm.de_rows.filter(data => !_vm.search || data.name.toLowerCase().includes(_vm.search.toLowerCase()) || data.name_cn.toLowerCase().includes(_vm.search.toLowerCase()))\n }\n }, [_c(\"el-table-column\", {\n attrs: {\n label: \"英文名称\",\n width: \"180\"\n },\n scopedSlots: _vm._u([{\n key: \"default\",\n fn: function (scope) {\n return [_c(\"el-input\", {\n attrs: {\n size: \"mini\",\n placeholder: \"输入英文名\"\n },\n model: {\n value: scope.row.name,\n callback: function ($$v) {\n _vm.$set(scope.row, \"name\", $$v);\n },\n expression: \"scope.row.name\"\n }\n })];\n }\n }])\n }), _c(\"el-table-column\", {\n attrs: {\n label: \"字段类型\",\n width: \"180\"\n },\n scopedSlots: _vm._u([{\n key: \"default\",\n fn:
|