# mosty_hnzy_pc_temp
#湖南中烟pc
### 安装依赖
npm install
或者,直接解压贵州里面的 node_modules.zip 或.rar 压缩包,npm run dev然后缺啥补啥
### 运行
npm run dev
### 打包
npm run build
# ================== 组件使用 ==================
## 选择单位
```js
import Choosebm from "@/components/MyComponents/ChooseDept/index.vue";
const showDept = ref(false);
const zzlx = ref(null);
const deptChange = (val) => {
fromData.value.responsibledeptname = val.orgName;
fromData.value.responsibledeptid = val.id;
}
```
```js
## mosty 组件
import * as MOSTY from "@/components/MyComponents/index";
```
## 标题组件
```html
```
## 编辑和删除 查看
```html
编辑
删除
查看
```
## 文本框调高
```vue
:autosize="{minRows:2,maxRows:5}"
```
## 烟草 api
```js
import { getApi, postApi } from "@/api/tobAcco_api.js"
```
## 字典调用方法
```js
const { proxy } = getCurrentInstance()
const { D_TB_NHDJ } = proxy.$dict("D_TB_NHDJ")
```
```js
props.rowItem.orgCode && props.rowItem.orgCode.replace('XN', '')
ssbmid string 所属部门id
ssbmmc string 所属部门名字
删除
// 冒泡排序
```
### 导入
```js
// 导入模板数据
const uploadFile = () => {
nextTick(() => {
fileBtn.value.click()
})
}
// 获取文件
const changeFile = () => {
nextTick(() => {
let file = fileBtn.value.files[0]
if (!file) { return; }
let data = new FormData()
data.append('file', file);
uploadfilApi(data, `/mosty-jcgl/target/batchUpload`).then(() => {
ElMessage.success("批量上传成功");
listQuery.pageCurrent = 1;
getTabList();
}).finally(() => {
fileBtn.value.value = ''
})
})
}
# ===============督办任务问题=================
1、发布后续流程
2、
import { getItem } from "@/utils/storage";
const isAdmin = ref(getItem('USERID') == '000000')
## 状态标签
{{ D_DTSB_AN_Obj[row.sbStatus] }}
考题库 试卷库 课件库屏蔽上报
1. 左边选择框
2. reportTools.js 屏蔽(isShowReportButton)方法
3. 考题库,【编辑】【删除】权限修改
4. 批量上报屏蔽
5.本级屏蔽
5. 状态栏屏蔽
6. 【上报】按钮