|
@@ -293,6 +293,68 @@
|
|
|
<el-button type="primary" @click="updateRedData" :disabled="redData.loading">保 存</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog :title="shareOptions.title" :visible.sync="shareOptions.open" width="800px" append-to-body>
|
|
|
+
|
|
|
+ <el-form :model="queryCompanyParams" ref="queryCompanyForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
+ <el-form-item label="公司名称" prop="companyName">
|
|
|
+ <el-input
|
|
|
+ style="width: 220px"
|
|
|
+ v-model="queryCompanyParams.companyName"
|
|
|
+ placeholder="请输入企业名称"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleCompanyQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="状态" prop="status">
|
|
|
+ <el-select style="width: 220px" v-model="queryCompanyParams.status" placeholder="请选择状态" clearable size="small">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in statusOptions"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleCompanyQuery">搜索</el-button>
|
|
|
+ <el-button icon="el-icon-refresh" size="mini" @click="resetCompanyQuery">重置</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <el-row :gutter="10" class="mb8">
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ plain
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-connection"
|
|
|
+ size="mini"
|
|
|
+ :disabled="multiple"
|
|
|
+ @click="handleShareTemplate"
|
|
|
+ v-hasPermi="['qw:sopTemp:share']"
|
|
|
+ >分享模板</el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-table v-loading="companysloading" border :data="companyList" @selection-change="handleSelectionCompany">
|
|
|
+ <el-table-column type="selection" width="55" align="center" />
|
|
|
+ <el-table-column label="公司编号" align="center" prop="companyId" />
|
|
|
+ <el-table-column label="企业名" align="center" prop="companyName" />
|
|
|
+ <!-- <el-table-column label="备注" align="center" prop="remark"/>-->
|
|
|
+ <el-table-column label="状态" align="center" prop="status" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag prop="status" v-for="(item, index) in statusOptions" :type="scope.row.status==1?'success':'danger'" v-if="scope.row.status==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <pagination
|
|
|
+ v-show="companyTotal>0"
|
|
|
+ :total="companyTotal"
|
|
|
+ :page.sync="queryCompanyParams.pageNum"
|
|
|
+ :limit.sync="queryCompanyParams.pageSize"
|
|
|
+ @pagination="getCompanyList"
|
|
|
+ />
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -310,7 +372,7 @@ import {
|
|
|
updateRedPackage,
|
|
|
updateTemp
|
|
|
} from "@/api/qw/sopTemp";
|
|
|
-import {getCompanyList} from "@/api/company/company";
|
|
|
+import { getCompanyList, listCompany } from '@/api/company/company'
|
|
|
import {courseList, getRoles} from "@/api/qw/sop";
|
|
|
|
|
|
export default {
|
|
@@ -424,6 +486,8 @@ export default {
|
|
|
this.courseList = response.list;
|
|
|
});
|
|
|
|
|
|
+ this.getCompanyList();
|
|
|
+
|
|
|
getCompanyList().then(response => {
|
|
|
this.companys = response.data;
|
|
|
});
|
|
@@ -437,6 +501,16 @@ export default {
|
|
|
this.resetForm("queryCompanyForm");
|
|
|
this.handleCompanyQuery();
|
|
|
},
|
|
|
+
|
|
|
+ /** 查询企业列表 */
|
|
|
+ getCompanyList() {
|
|
|
+ this.companysloading = true;
|
|
|
+ listCompany(this.queryCompanyParams).then(response => {
|
|
|
+ this.companyList = response.rows;
|
|
|
+ this.companyTotal = response.total;
|
|
|
+ this.companysloading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 查询sop模板列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|